aboutsummaryrefslogtreecommitdiff
path: root/board/work-microwave
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2021-06-10 22:37:02 -0400
committerTom Rini <trini@konsulko.com>2021-07-06 14:11:50 -0400
commitbd4dbf9e435345cf859922fca74dc0603d7dac2b (patch)
tree947c60f5230b46fca0a2279df607a640c88c8bdd /board/work-microwave
parent3a37386f18c82f7270e892dbd51e3f00cf5d8a19 (diff)
downloadu-boot-bd4dbf9e435345cf859922fca74dc0603d7dac2b.zip
u-boot-bd4dbf9e435345cf859922fca74dc0603d7dac2b.tar.gz
u-boot-bd4dbf9e435345cf859922fca74dc0603d7dac2b.tar.bz2
lpc32xx: Kconfig: switch to CONFIG_CONS_INDEX
There's nothing special or unique to the lpc32xx that requires its own config parameter for specifying the console uart index. Therefore instead of using the lpc32xx-specific CONFIG_SYS_LPC32XX_UART include parameter, use the already-available CONFIG_CONS_INDEX from Kconfig. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/work-microwave')
-rw-r--r--board/work-microwave/work_92105/work_92105.c2
-rw-r--r--board/work-microwave/work_92105/work_92105_spl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/work-microwave/work_92105/work_92105.c b/board/work-microwave/work_92105/work_92105.c
index bdcecff..5d12f84 100644
--- a/board/work-microwave/work_92105/work_92105.c
+++ b/board/work-microwave/work_92105/work_92105.c
@@ -37,7 +37,7 @@ void reset_periph(void)
int board_early_init_f(void)
{
/* initialize serial port for console */
- lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);
+ lpc32xx_uart_init(CONFIG_CONS_INDEX);
/* enable I2C, SSP, MAC, NAND */
lpc32xx_i2c_init(1); /* only I2C1 has devices, I2C2 has none */
lpc32xx_ssp_init();
diff --git a/board/work-microwave/work_92105/work_92105_spl.c b/board/work-microwave/work_92105/work_92105_spl.c
index a31553a..d940114 100644
--- a/board/work-microwave/work_92105/work_92105_spl.c
+++ b/board/work-microwave/work_92105/work_92105_spl.c
@@ -58,7 +58,7 @@ const struct emc_dram_settings dram_128mb = {
void spl_board_init(void)
{
/* initialize serial port for console */
- lpc32xx_uart_init(CONFIG_SYS_LPC32XX_UART);
+ lpc32xx_uart_init(CONFIG_CONS_INDEX);
/* initialize console */
preloader_console_init();
/* init DDR and NAND to chainload U-Boot */