[PATCH v8 0/4] Adding usb2.0 host-phy support for exynos5250
Vivek Gautam
gautam.vivek at samsung.com
Wed Jan 23 00:00:39 EST 2013
Changes from v7:
- Rebased on 'xceive' of Balbi's usb tree.
- Placing proper Acked By's received for each patch.
Changes from v6:
- Changing macro names from 'HOST_CTRL0_FSEL_CLKSEL_XX' to 'FSEL_CLKSEL_XX'
since it's being used by HOST and OTG block to prepare reference clock.
- Directly Assigning 'FSEL_CLKSEL_XX' to refclk_freq in
samsung_usbphy_get_refclk_freq() instead of ORing them since we are
anyways using macros:
"HOST_CTRL0_FSEL(_x) ((_x) << 16)"
"OTG_SYS_FSEL(_x) ((_x) << 4)"
Changes from v5:
- Adding hostphy enable mask and hostphy register offsets
to driver data in order to access the HOSTPHY CONTROL register.
- Adding member 'otg' to struct samsung-usbphy so that its consumers
can call otg->set_host so as to make 'phy' aware of the consumer type:
HOST/DEVICE
- Adding 'otg' to 'struct s5p_ehci_hcd' and 'struct exynos_ohci_hcd'
which keeps track of 'otg' of the controllers' phy. This then sets
the host.
- Moved samsung_usbphy_set_type() calls from ehci-s5p and ohci-exynos
to phy driver itself where based on phy_type it is called.
- Added separate macro definition for USB20PHY_CFG register to select
between host/device type usb link.
- Removing unnecessary argument 'phy_type' from samsung_usbphy_set_type()
and samsung_usbphy_cfg_sel().
- Addressed few nits:
-- added macro for 'KHZ'
-- removing useless 'if' from samsung_usbphy_cfg_sel()
-- keeping the place of clk_get intact and requesting driver
data before that.
Vivek Gautam (4):
ARM: EXYNOS: Update & move usb-phy types to generic include layer
usb: phy: samsung: Add host phy support to samsung-phy driver
USB: ehci-s5p: Add phy driver support
USB: ohci-exynos: Add phy driver support
.../devicetree/bindings/usb/samsung-usbphy.txt | 12 +-
drivers/usb/host/ehci-s5p.c | 81 +++-
drivers/usb/host/ohci-exynos.c | 85 +++-
drivers/usb/phy/Kconfig | 2 +-
drivers/usb/phy/samsung-usbphy.c | 513 ++++++++++++++++++--
include/linux/usb/samsung_usb_phy.h | 16 +
6 files changed, 636 insertions(+), 73 deletions(-)
create mode 100644 include/linux/usb/samsung_usb_phy.h
--
1.7.6.5
More information about the devicetree-discuss
mailing list