]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: ehci: rmobile: Collect up address data
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Tue, 4 Nov 2014 00:56:42 +0000 (09:56 +0900)
committerMarek Vasut <marex@denx.de>
Tue, 4 Nov 2014 05:04:01 +0000 (06:04 +0100)
R8A7791, R8A7793 and R8A7794 have same IP of USB controller.
This collect up address data of each SoCs.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
drivers/usb/host/ehci-rmobile.c

index a89f04b8ea30d92519da000ebb61fedfe986e48b..b4330876f83d1e3737d4f4b39d693a8a631a4abb 100644 (file)
@@ -22,17 +22,8 @@ static u32 usb_base_address[CONFIG_USB_MAX_CONTROLLER_COUNT] = {
        0xEE0A0000,     /* USB1 */
        0xEE0C0000,     /* USB2 */
 };
-#elif defined(CONFIG_R8A7791)
-static u32 usb_base_address[CONFIG_USB_MAX_CONTROLLER_COUNT] = {
-       0xEE080000,     /* USB0 (EHCI) */
-       0xEE0C0000,     /* USB1 */
-};
-#elif defined(CONFIG_R8A7793)
-static u32 usb_base_address[CONFIG_USB_MAX_CONTROLLER_COUNT] = {
-       0xEE080000,     /* USB0 (EHCI) */
-       0xEE0C0000,     /* USB1 */
-};
-#elif defined(CONFIG_R8A7794)
+#elif defined(CONFIG_R8A7791) || defined(CONFIG_R8A7793) || \
+       defined(CONFIG_R8A7794)
 static u32 usb_base_address[CONFIG_USB_MAX_CONTROLLER_COUNT] = {
        0xEE080000,     /* USB0 (EHCI) */
        0xEE0C0000,     /* USB1 */