]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: UniPhier: remove EHCI platform devices
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 26 Feb 2015 17:26:54 +0000 (02:26 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:06:21 +0000 (14:06 +0200)
Now UniPhier platform highly depends on Device Tree configuration
(CONFIG_OF_CONTROL is select'ed by Kconfig).  Since the EHCI is only
used on main U-Boot, we can drop platform devices of the EHCI
controllers.  We still keep UART platform devices because they might
be useful for SPL.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Marek Vasut <marex@denx.de>
arch/arm/mach-uniphier/include/mach/ehci-uniphier.h
arch/arm/mach-uniphier/include/mach/platdevice.h
arch/arm/mach-uniphier/ph1-ld4/platdevice.c
arch/arm/mach-uniphier/ph1-pro4/platdevice.c
arch/arm/mach-uniphier/ph1-sld8/platdevice.c
drivers/usb/host/Kconfig
drivers/usb/host/ehci-uniphier.c

index e9c5fb4af846c59d7bc0060f73bf01afa55a4f41..3ba31833c3db952a0b910800b48d5d4e054a13f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Panasonic Corporation
+ * Copyright (C) 2014-2015 Panasonic Corporation
  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
 #include <asm/io.h>
 #include "mio-regs.h"
 
-struct uniphier_ehci_platform_data {
-       unsigned long base;
-};
-
-extern struct uniphier_ehci_platform_data uniphier_ehci_platdata[];
-
 static inline void uniphier_ehci_reset(int index, int on)
 {
        u32 tmp;
index b004c2f328ec967c47314676f755d9583043f2f7..cdf7d132d44ad29d87a65d28050fdb4765ed781d 100644 (file)
@@ -21,6 +21,4 @@ U_BOOT_DEVICE(serial##n) = {                                          \
        .platdata = &serial_device##n                                   \
 };
 
-#include <mach/ehci-uniphier.h>
-
 #endif /* ARCH_PLATDEVICE_H */
index 5a3fbdcac044a2956ca3695961245a8e6bf231b9..c0e62943be3f8903c427f3f751ca07fc1546fa68 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Panasonic Corporation
+ * Copyright (C) 2014-2015 Panasonic Corporation
  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
@@ -13,15 +13,3 @@ SERIAL_DEVICE(0, 0x54006800, UART_MASTER_CLK)
 SERIAL_DEVICE(1, 0x54006900, UART_MASTER_CLK)
 SERIAL_DEVICE(2, 0x54006a00, UART_MASTER_CLK)
 SERIAL_DEVICE(3, 0x54006b00, UART_MASTER_CLK)
-
-struct uniphier_ehci_platform_data uniphier_ehci_platdata[] = {
-       {
-               .base = 0x5a800100,
-       },
-       {
-               .base = 0x5a810100,
-       },
-       {
-               .base = 0x5a820100,
-       },
-};
index 5fc5d387b4477c0ddbfd76e11a8c9746e3bbf871..7440ceddffa17f67481fa5861310fcf2d265cc2f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Panasonic Corporation
+ * Copyright (C) 2014-2015 Panasonic Corporation
  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
@@ -13,12 +13,3 @@ SERIAL_DEVICE(0, 0x54006800, UART_MASTER_CLK)
 SERIAL_DEVICE(1, 0x54006900, UART_MASTER_CLK)
 SERIAL_DEVICE(2, 0x54006a00, UART_MASTER_CLK)
 SERIAL_DEVICE(3, 0x54006b00, UART_MASTER_CLK)
-
-struct uniphier_ehci_platform_data uniphier_ehci_platdata[] = {
-       {
-               .base = 0x5a800100,
-       },
-       {
-               .base = 0x5a810100,
-       },
-};
index ee6d3e2d755c15cd130cecf2e64c8fa9416f725e..aa334a1ca4524d0f654cb917dbc8f906a27dadf9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Panasonic Corporation
+ * Copyright (C) 2014-2015 Panasonic Corporation
  *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
@@ -13,15 +13,3 @@ SERIAL_DEVICE(0, 0x54006800, UART_MASTER_CLK)
 SERIAL_DEVICE(1, 0x54006900, UART_MASTER_CLK)
 SERIAL_DEVICE(2, 0x54006a00, UART_MASTER_CLK)
 SERIAL_DEVICE(3, 0x54006b00, UART_MASTER_CLK)
-
-struct uniphier_ehci_platform_data uniphier_ehci_platdata[] = {
-       {
-               .base = 0x5a800100,
-       },
-       {
-               .base = 0x5a810100,
-       },
-       {
-               .base = 0x5a820100,
-       },
-};
index 30d1457638a8115a5c954a763a6d19bbee13252b..0e005c2a1f69cccf53e15a8d7595511ebf6535b0 100644 (file)
@@ -47,7 +47,7 @@ if USB_EHCI_HCD
 
 config USB_EHCI_UNIPHIER
        bool "Support for Panasonic UniPhier on-chip EHCI USB controller"
-       depends on ARCH_UNIPHIER
+       depends on ARCH_UNIPHIER && OF_CONTROL
        default y
        ---help---
          Enables support for the on-chip EHCI controller on Panasonic
index 42e2204d3941957a2604b426721995cc9ca3f93c..68959efb20eb24f51a9d2dd92953ff3d478477b1 100644 (file)
@@ -9,10 +9,9 @@
 #include <linux/err.h>
 #include <usb.h>
 #include <mach/ehci-uniphier.h>
+#include <fdtdec.h>
 #include "ehci.h"
 
-#ifdef CONFIG_OF_CONTROL
-#include <fdtdec.h>
 DECLARE_GLOBAL_DATA_PTR;
 
 #define FDT            gd->fdt_blob
@@ -35,18 +34,7 @@ static int get_uniphier_ehci_base(int index, struct ehci_hccr **base)
 
        return -ENODEV; /* not found */
 }
-#else
-static int get_uniphier_ehci_base(int index, struct ehci_hccr **base)
-{
-       *base = (struct ehci_hccr *)uniphier_ehci_platdata[index].base;
-       return 0;
-}
-#endif
 
-/*
- * Create the appropriate control structures to manage
- * a new EHCI host controller.
- */
 int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr **hccr,
                  struct ehci_hcor **hcor)
 {