summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-starfive.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-01usb: cdns3: add hibernation pm notifier to set roothub wakeupminda.chen1-1/+16
In hibernation resume case. usb devices maybe not emulated, roothub is suspended, In this case, usb devices will be resume fail. Set roothub active while hibernation resume. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-11usb: phy: init phy in resume functionminda.chen1-19/+30
usb phy will be reset in suspend procedure. After resume. Some devices can not work. In usb resume, init phy again. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27usb: cdns: add pm and runtume pm opsminda.chen1-0/+46
add starfive pm supend/resume and runtime pm runtime suspend and resume ops Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-08-01usb: gadget: add usb device mass storage and functinfs supportminda.chen1-0/+3
USB mass storage and functionfs activated by configfs. Support both 2.0 and 3.0. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-07-29usb: cdns3: Enable LS keep-alive signalmason.huo1-8/+48
The default naneng phy setting of LS keep-alive is not enabled, that will cause some usb mouse (Lenovo sm8823) does not work properly. Also some usb keyboards can not enumerated. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-08usb: cdns3: Configuare phy as down-spread-spectrummason.huo1-0/+12
The default phy spread-spectrum mode is up-spread-spectrum, which is violated the usb3 spec. The up-spread-spectrum mode leads to phy buffers overrun. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-06-24usb: cdns3: Optimize code stylemason.huo1-39/+37
2022-06-24usb: cdns3: Set the USB_125M clock explicitlymason.huo1-0/+20
Since the USB_125M clock is divided from pll0 clock, and the pll0 clock changes per the cpu frequency. So, needs to set the clock explicitly. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-05-26USB:cdns3:starfive-jh7110: Update cdns3-starfive driveryanhong.wang1-34/+85
Update cdns3-starfive usb control driver, default support usb2.0 and usb3.0. Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
2022-05-05usb:cdns3:cdns3-starfive: Add StarFive wrapper driver for CDNS USB3 controlleryanhong.wang1-0/+226
Add driver to handle StarFive specific wrapper for Cadence USB3 controller present on JH7110 SoC. Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>