]> git.sur5r.net Git - u-boot/commitdiff
arm64: layerscape: Move CONFIG_HAS_FSL_XHCI_USB to Kconfig
authorRan Wang <ran.wang_1@nxp.com>
Mon, 23 Oct 2017 02:09:21 +0000 (10:09 +0800)
committerYork Sun <york.sun@nxp.com>
Fri, 27 Oct 2017 15:43:57 +0000 (08:43 -0700)
Use Kconfig to select QE-HDLC and USB pin-mux.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: York Sun <york.sun@nxp.com>
14 files changed:
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
include/configs/ls1012afrdm.h
include/configs/ls1012aqds.h
include/configs/ls1012ardb.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h
include/configs/ls1043aqds.h
include/configs/ls1043ardb.h
include/configs/ls1046aqds.h
include/configs/ls1046ardb.h
include/configs/ls2080aqds.h
include/configs/ls2080ardb.h
scripts/config_whitelist.txt

index 85b7c70937e84f6694eb1e46c354e3007cc9ec37..8bbc981d43f35415e5e6e406adad7d382479294d 100644 (file)
@@ -490,3 +490,10 @@ config SYS_MC_RSV_MEM_ALIGN
 
 config SPL_LDSCRIPT
        default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
+
+config HAS_FSL_XHCI_USB
+       bool
+       default y if ARCH_LS1043A || ARCH_LS1046A
+       help
+         For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
+         pins, select it when the pins are assigned to USB.
index 6b1ba578e9225da18a40077e8b386e30b2de0cc8..2e5af9cc4e22586f47557dfd188c31c93b96ccea 100644 (file)
 /*
 * USB
 */
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         1
-#endif
 
 #define CONFIG_CMD_MEMINFO
 #define CONFIG_CMD_MEMTEST
index b3121d2c21e8b6b553138516a3f19419433206e7..e0949d0b53d81c9bca490070489a7e3547ed51a5 100644 (file)
 #endif
 
 /*XHCI Support - enabled by default*/
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         1
-#endif
 
 /*  MMC  */
 #ifdef CONFIG_MMC
index e9edcd2bc943d6dcf7dbe0e7ac5788d1a7c5dc50..66ff0043848afe5426b2f9238baadeeb643a5ccb 100644 (file)
 /*
 * USB
 */
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         1
-#endif
 
 /*
  * I2C IO expander
index 63667810bd1a2ef7ed00fa16810ff170b371707e..02bfbd0a7db66217645276a1291e1fd61d2cc325 100644 (file)
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
 /* XHCI Support - enabled by default */
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                1
-#endif
 
 #define CONFIG_SYS_CLK_FREQ            100000000
 #define CONFIG_DDR_CLK_FREQ            100000000
index f3d3aa227123acc968920ffd208cae237e206fe3..0046ded536f21f6d1fddb053304ba3dfd017dc80 100644 (file)
@@ -405,12 +405,8 @@ unsigned long get_board_ddr_clk(void);
 #endif
 
 /*XHCI Support - enabled by default*/
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                1
-#endif
 
 /*
  * Video
index 852ff57fb6defc905c73874c61005e04b4df13e4..0172c9015d3ff0c950d276382e4611ad4a159d93 100644 (file)
 #endif
 
 /* XHCI Support - enabled by default */
-#define CONFIG_HAS_FSL_XHCI_USB
-
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT        1
-#endif
 
 #define CONFIG_SYS_CLK_FREQ            100000000
 #define CONFIG_DDR_CLK_FREQ            100000000
index 5aadd92efd555f0c32f2297710227ee35e750d26..607c289d17950452d4cc07f7681808e7e62863af 100644 (file)
@@ -371,11 +371,8 @@ unsigned long get_board_ddr_clk(void);
 #endif
 
 /* USB */
-#define CONFIG_HAS_FSL_XHCI_USB
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                3
-#endif
 
 /*
  * Miscellaneous configurable options
index f9843f5ebae9f21be046feeee87ed3028a67e868..34be9960c16d7d78032ad73cdd25786336f1dc00 100644 (file)
 
 /* USB */
 #ifndef SPL_NO_USB
-#define CONFIG_HAS_FSL_XHCI_USB
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                3
 #endif
-#endif
 
 /* SATA */
 #ifndef SPL_NO_SATA
index 39bd1c38a8019b3576fe0557f641136f15271425..b0d41b401e8c966ac9b06da994414b769ff8797f 100644 (file)
@@ -137,11 +137,8 @@ unsigned long get_board_ddr_clk(void);
 #endif
 
 /* USB */
-#define CONFIG_HAS_FSL_XHCI_USB
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         3
-#endif
 
 /* SATA */
 #define CONFIG_LIBATA
index 7bbd4ada707a2113fe81b2800b2d1ac8d3ccb210..32b08d8229aa3065f1fabff57d79257196a852d6 100644 (file)
 
 /* USB */
 #ifndef SPL_NO_USB
-#define CONFIG_HAS_FSL_XHCI_USB
-#ifdef CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         3
 #endif
-#endif
 
 /* SATA */
 #ifndef SPL_NO_SATA
index 54d6b51c5528ff601e3b55e7e25d8d2e8c248f76..d594cc10687125e66b48c89e371b47c7e1271b60 100644 (file)
@@ -438,7 +438,6 @@ unsigned long get_board_ddr_clk(void);
 /*
  * USB
  */
-#define CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                2
 
index 9e9979e1c7fc1259fa208fc923ca31866061288d..c368a56657229c67c8f9c115af24ca256cd901ff 100644 (file)
@@ -336,7 +336,6 @@ unsigned long get_board_sys_clk(void);
 /*
  * USB
  */
-#define CONFIG_HAS_FSL_XHCI_USB
 #define CONFIG_USB_XHCI_FSL
 #define CONFIG_USB_MAX_CONTROLLER_COUNT         2
 
index 5ee1601f0e7a022cb9a25ffbaa070e0a1b5988ae..76267495bed2e9531845da7ec66bc14aa2c94120 100644 (file)
@@ -873,7 +873,6 @@ CONFIG_HAS_ETH7
 CONFIG_HAS_FEC
 CONFIG_HAS_FSL_DR_USB
 CONFIG_HAS_FSL_MPH_USB
-CONFIG_HAS_FSL_XHCI_USB
 CONFIG_HAS_POST
 CONFIG_HCLK_FREQ
 CONFIG_HDBOOT