summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authoryasuhisa umano <yasuhisa.umano.zc@renesas.com>2014-04-18 11:33:08 +0900
committerMarek Vasut <marex@denx.de>2014-06-25 22:31:41 +0200
commit8ecdce7280fff9347ba137ea7431664e1bf57534 (patch)
tree62e3d0862a7e6a43ed75afd5cf33a6deea6eb5b8 /drivers/usb
parent51afc2c68cb88a10e7b7910c4c4f7c50546b0963 (diff)
downloadu-boot-imx-8ecdce7280fff9347ba137ea7431664e1bf57534.zip
u-boot-imx-8ecdce7280fff9347ba137ea7431664e1bf57534.tar.gz
u-boot-imx-8ecdce7280fff9347ba137ea7431664e1bf57534.tar.bz2
usb: r8a66597: Fix initialization hub that using R8A66597_MAX_ROOT_HUB
This driver is processed as two USB hub despite one. The number of root hub is defined in R8A66597_MAX_ROOT_HUB. This fixes that register is accessed by using the definition of R8A66597_MAX_ROOT_HUB. Signed-off-by: Yasuhisa Umano <yasuhisa.umano.zc@renesas.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index dfe5423..c58d2a9 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -164,8 +164,8 @@ static int enable_controller(struct r8a66597 *r8a66597)
r8a66597_bset(r8a66597, INTL, SOFCFG);
r8a66597_write(r8a66597, 0, INTENB0);
- r8a66597_write(r8a66597, 0, INTENB1);
- r8a66597_write(r8a66597, 0, INTENB2);
+ for (port = 0; port < R8A66597_MAX_ROOT_HUB; port++)
+ r8a66597_write(r8a66597, 0, get_intenb_reg(port));
r8a66597_bset(r8a66597, CONFIG_R8A66597_ENDIAN & BIGEND, CFIFOSEL);
r8a66597_bset(r8a66597, CONFIG_R8A66597_ENDIAN & BIGEND, D0FIFOSEL);