]> git.baikalelectronics.ru Git - uboot.git/commit
mx25: fix the offset between the USB ports' registers
authorMartin Kaiser <martin@kaiser.cx>
Mon, 16 Jul 2018 20:11:57 +0000 (22:11 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 09:05:04 +0000 (11:05 +0200)
commit710aee92e8cf7a015dc0064dbb3e77e98abae945
treefebe80f867ed7055c0129a891071f81e2970b0c8
parent02135ed9236743bcf7e6bf711e112e150e9c7cef
mx25: fix the offset between the USB ports' registers

The USBOH module on imx25 chips contains two USB controllers which are
called USB OTG Controller and USB Host Controller. Each one has its EHCI
root hub. The OTG Controller's EHCI registers start at offset 0, the Host
Controller's registers start at offset 0x400.

We set CONFIG_MXC_USB_PORT=0 to select the OTG Controller and 1 for the
Host Controller. Therefore, IMX_USB_PORT_OFFSET must be 0x400. Using
this setting, the Host Controller starts working on my imx25 board.

Please note that the imx25 reference manual claims that the Host
Controller's registers start at 0x200. This is not correct. The Linux
Kernel uses the correct offset 0x400 in imx25.dtsi.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
arch/arm/include/asm/arch-mx25/imx-regs.h