[U-Boot] [PATCH 0/2] arm64: Pine64/A64: USB support

Andre Przywara andre.przywara at arm.com
Fri Oct 21 03:24:28 CEST 2016


Hi,

these two patches enable the first USB host controller on the Pine64 board.
This allows to load and boot from USB pen drives inserted into the lower
USB socket on the board, for instance.
The first patch massages the OHCI driver to compile cleanly for 64-bit.
This is admittedly cutting some corners, as a proper 64-bit fix for that
beast is a bit more involved. But apparently the A64 is the first 64-bit
user and here the fixes are completely safe, as all memory is always
below 4GB. If someone more familiar with that driver could insert checks
that the EDs and TDs are allocated from below 4GB (which is an OHCI
architecture limit as I understand it), I'd be grateful.

The second patch from Amit then adds the right symbols here and there to
enable the USB controller, which just piggy-backs on the H3 support.

This just enables one of the two host controllers (the lower socket),
enabling the other one requires some more tweaking of a PHY switch, as
the second host controller shares a PHY with the OTG controller.
Also we might prefer to use the OTG port as an OTG port in U-Boot
(for fastboot support, for instance).

Amit Singh Tomar (1):
  sunxi: A64: enable USB support

Andre Przywara (1):
  drivers: USB: OHCI: allow compilation for 64-bit targets

 arch/arm/dts/sun50i-a64-pine64-common.dtsi  | 12 ++++++++++++
 arch/arm/dts/sun50i-a64.dtsi                | 29 +++++++++++++++++++++++++++++
 arch/arm/include/asm/arch-sunxi/cpu_sun4i.h |  2 +-
 arch/arm/mach-sunxi/usb_phy.c               |  5 +++--
 configs/pine64_plus_defconfig               |  1 +
 drivers/usb/host/ehci-sunxi.c               |  7 ++++---
 drivers/usb/host/ohci-hcd.c                 | 21 +++++++++++----------
 drivers/usb/host/ohci-sunxi.c               |  3 ++-
 drivers/usb/host/ohci.h                     | 11 +++++++----
 include/configs/sun50i.h                    |  5 +++++
 10 files changed, 75 insertions(+), 21 deletions(-)

-- 
2.8.2



More information about the U-Boot mailing list