Convert all of CONFIG_CONS_INDEX to Kconfig
This converts the following to Kconfig: CONFIG_CONS_INDEX We have existing entries for this option in a number of places, with different guards on them. They're also sometimes used for things not directly inside of the serial driver. First, introduce a new symbol to guard the use of CONFIG_CONS_INDEX, so that in the case where we don't need this for the serial driver, but for some other use, we can still do it. Next, consolidate all of these into the single entry in drivers/serial/Kconfig. Finally, introduce CONS_INDEX_[023456] so that we can imply a correct value here to make the defconfig side of this smaller. Signed-off-by: Adam Ford <aford173@gmail.com> [trini: Rework a lot of the logic here, such that I took authorship from Adam, but kept his S-o-B line] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -725,6 +725,7 @@ config ARCH_SUNXI
|
||||
select OF_BOARD_SETUP
|
||||
select OF_CONTROL
|
||||
select OF_SEPARATE
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
select SPL_STACK_R if SPL
|
||||
select SPL_SYS_MALLOC_SIMPLE if SPL
|
||||
select SYS_NS16550
|
||||
@@ -914,6 +915,7 @@ config TARGET_HIKEY
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
select PL01X_SERIAL
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
help
|
||||
Support for HiKey 96boards platform. It features a HI6220
|
||||
SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#define CONFIG_SYS_NS16550_CLK 100000000
|
||||
#define CONFIG_SYS_NS16550_CLK_DIV 54
|
||||
#define CONFIG_SERIAL_MULTI
|
||||
#define CONFIG_CONS_INDEX 3
|
||||
#define CONFIG_SYS_NS16550_COM3 0x18023000
|
||||
|
||||
/* Ethernet */
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#define CONFIG_SYS_NS16550_REG_SIZE 1
|
||||
|
||||
#define CONFIG_SYS_NS16550_CLK 0x03b9aca0
|
||||
#define CONFIG_CONS_INDEX 1
|
||||
#define CONFIG_SYS_NS16550_COM1 0x18000300
|
||||
|
||||
#endif /* __ARCH_CONFIGS_H */
|
||||
|
||||
@@ -27,12 +27,6 @@
|
||||
#define CONFIG_SYS_NS16550_CLK 13000000
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_LPC32XX_HSUART)
|
||||
#define CONFIG_CONS_INDEX (CONFIG_SYS_LPC32XX_UART - 2)
|
||||
#else
|
||||
#define CONFIG_CONS_INDEX CONFIG_SYS_LPC32XX_UART
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_BAUDRATE_TABLE \
|
||||
{ 9600, 19200, 38400, 57600, 115200, 230400, 460800 }
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ config OMAP54XX
|
||||
|
||||
config TI814X
|
||||
bool "TI814X SoC"
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
help
|
||||
Support for AM335x SOC from Texas Instruments.
|
||||
The AM335x high performance SOC features a Cortex-A8
|
||||
@@ -81,6 +82,7 @@ config TI814X
|
||||
|
||||
config TI816X
|
||||
bool "TI816X SoC"
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
imply NAND_OMAP_ELM
|
||||
imply NAND_OMAP_GPMC
|
||||
help
|
||||
@@ -90,6 +92,7 @@ config TI816X
|
||||
|
||||
config AM43XX
|
||||
bool "AM43XX SoC"
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
imply NAND_OMAP_ELM
|
||||
imply NAND_OMAP_GPMC
|
||||
imply SPL_DM
|
||||
@@ -111,6 +114,7 @@ config AM43XX
|
||||
|
||||
config AM33XX
|
||||
bool "AM33XX SoC"
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
imply NAND_OMAP_ELM
|
||||
imply NAND_OMAP_GPMC
|
||||
imply SPL_NAND_AM33XX_BCH
|
||||
|
||||
@@ -80,6 +80,7 @@ config MACH_SUN5I
|
||||
select ARM_CORTEX_CPU_IS_UP
|
||||
select SUNXI_GEN_SUN4I
|
||||
select SUPPORT_SPL
|
||||
imply CONS_INDEX_2 if !DM_SERIAL
|
||||
|
||||
config MACH_SUN6I
|
||||
bool "sun6i (Allwinner A31)"
|
||||
@@ -110,6 +111,7 @@ config MACH_SUN8I_A23
|
||||
select SUNXI_GEN_SUN6I
|
||||
select SUPPORT_SPL
|
||||
select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
|
||||
imply CONS_INDEX_5 if !DM_SERIAL
|
||||
|
||||
config MACH_SUN8I_A33
|
||||
bool "sun8i (Allwinner A33)"
|
||||
@@ -120,6 +122,7 @@ config MACH_SUN8I_A33
|
||||
select SUNXI_GEN_SUN6I
|
||||
select SUPPORT_SPL
|
||||
select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
|
||||
imply CONS_INDEX_5 if !DM_SERIAL
|
||||
|
||||
config MACH_SUN8I_A83T
|
||||
bool "sun8i (Allwinner A83T)"
|
||||
|
||||
Reference in New Issue
Block a user