diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-27 21:18:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-31 17:47:49 -0400 |
commit | a2ac2b964bfbb20d6791ee94b9034a50cfadb5b0 (patch) | |
tree | 9ab0cc43b3abf55efbab3014e5a0d818a7c5f051 /board/grinn | |
parent | ab92b38a0161f0d8efa1c2112d944ef8f755dfbe (diff) | |
download | u-boot-a2ac2b964bfbb20d6791ee94b9034a50cfadb5b0.tar.gz |
Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig
This converts the following to Kconfig:
CONFIG_SKIP_LOWLEVEL_INIT
CONFIG_SKIP_LOWLEVEL_INIT_ONLY
In order to do this, we need to introduce SPL and TPL variants of these
options so that we can clearly disable these options only in SPL in some
cases, and both instances in other cases.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/grinn')
-rw-r--r-- | board/grinn/chiliboard/board.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/board/grinn/chiliboard/board.c b/board/grinn/chiliboard/board.c index 12480f5729..6423c1efb2 100644 --- a/board/grinn/chiliboard/board.c +++ b/board/grinn/chiliboard/board.c @@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR; static __maybe_unused struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; -#ifndef CONFIG_SKIP_LOWLEVEL_INIT +#if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) static struct module_pin_mux uart0_pin_mux[] = { {OFFSET(uart0_rxd), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* UART0_RXD */ {OFFSET(uart0_txd), (MODE(0) | PULLUDEN)}, /* UART0_TXD */ @@ -69,9 +69,7 @@ static void enable_board_pin_mux(void) configure_module_pin_mux(rmii1_pin_mux); configure_module_pin_mux(mmc0_pin_mux); } -#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ -#ifndef CONFIG_SKIP_LOWLEVEL_INIT void set_uart_mux_conf(void) { configure_module_pin_mux(uart0_pin_mux); @@ -86,7 +84,7 @@ void am33xx_spl_board_init(void) { chilisom_spl_board_init(); } -#endif +#endif /* CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) */ /* * Basic board specific setup. Pinmux has been handled already. |