diff options
author | Amit Singh Tomar <amittomer25@gmail.com> | 2016-10-21 02:24:30 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-10-30 11:38:04 +0100 |
commit | 9d6c9d988f0cd2fae095f1c76dc6b786a890108b (patch) | |
tree | fc40b43b090e958863d274bed5c5da8b06e79aeb /arch/arm/mach-sunxi/usb_phy.c | |
parent | 06de0701302488b4ac08f6e6d7bb9b8fcc92f5c2 (diff) | |
download | u-boot-imx-9d6c9d988f0cd2fae095f1c76dc6b786a890108b.zip u-boot-imx-9d6c9d988f0cd2fae095f1c76dc6b786a890108b.tar.gz u-boot-imx-9d6c9d988f0cd2fae095f1c76dc6b786a890108b.tar.bz2 |
sunxi: A64: enable USB support
Mostly by adding MACH_SUN50I to some existing #ifdefs enable support
for the the HCI0 USB host controller on the A64.
Fix up some minor 64-bit hiccups on the way.
Add the bare minimum DT bits to the A64 .dtsi and enable the controllers
and the PHY on the Pine64.
This is limited to the first USB controller at the moment, which is
connected to the lower USB socket on the Pine64 board.
[Andre: remove unneeded defines, enable OHCI, add commit message]
Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/mach-sunxi/usb_phy.c')
-rw-r--r-- | arch/arm/mach-sunxi/usb_phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-sunxi/usb_phy.c b/arch/arm/mach-sunxi/usb_phy.c index bd1bbee..278587b 100644 --- a/arch/arm/mach-sunxi/usb_phy.c +++ b/arch/arm/mach-sunxi/usb_phy.c @@ -146,12 +146,13 @@ __maybe_unused static void usb_phy_write(struct sunxi_usb_phy *phy, int addr, } } -#if defined CONFIG_MACH_SUN8I_H3 +#if defined(CONFIG_MACH_SUN8I_H3) || defined(CONFIG_MACH_SUN50I) static void sunxi_usb_phy_config(struct sunxi_usb_phy *phy) { +#if defined CONFIG_MACH_SUN8I_H3 if (phy->id == 0) clrbits_le32(SUNXI_USBPHY_BASE + REG_PHY_UNK_H3, 0x01); - +#endif clrbits_le32(phy->base + REG_PMU_UNK_H3, 0x02); } #elif defined CONFIG_MACH_SUN8I_A83T |