summaryrefslogtreecommitdiff
path: root/board/eets
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-28 04:18:30 +0300
committerTom Rini <trini@konsulko.com>2021-09-01 00:47:49 +0300
commita2ac2b964bfbb20d6791ee94b9034a50cfadb5b0 (patch)
tree9ab0cc43b3abf55efbab3014e5a0d818a7c5f051 /board/eets
parentab92b38a0161f0d8efa1c2112d944ef8f755dfbe (diff)
downloadu-boot-a2ac2b964bfbb20d6791ee94b9034a50cfadb5b0.tar.xz
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/eets')
-rw-r--r--board/eets/pdu001/Makefile2
-rw-r--r--board/eets/pdu001/board.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/board/eets/pdu001/Makefile b/board/eets/pdu001/Makefile
index 08c6d536d3..a5990ce3ad 100644
--- a/board/eets/pdu001/Makefile
+++ b/board/eets/pdu001/Makefile
@@ -6,7 +6,7 @@
# SPDX-License-Identifier: GPL-2.0+
#
-ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),)
+ifeq ($(CONFIG_$(SPL_)SKIP_LOWLEVEL_INIT),)
obj-y := mux.o
endif
diff --git a/board/eets/pdu001/board.c b/board/eets/pdu001/board.c
index f806d1e767..9f3cfd4f84 100644
--- a/board/eets/pdu001/board.c
+++ b/board/eets/pdu001/board.c
@@ -162,7 +162,7 @@ static void set_mpu_and_core_voltage(void)
}
}
-#ifndef CONFIG_SKIP_LOWLEVEL_INIT
+#if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT)
static const struct ddr_data ddr2_data = {
.datardsratio0 = MT47H128M16RT25E_RD_DQS,
.datafwsratio0 = MT47H128M16RT25E_PHY_FIFO_WE,
@@ -235,7 +235,7 @@ void sdram_init(void)
config_ddr(266, &ioregs, &ddr2_data,
&ddr2_cmd_ctrl_data, &ddr2_emif_reg_data, 0);
}
-#endif /* CONFIG_SKIP_LOWLEVEL_INIT */
+#endif /* CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) */
#ifdef CONFIG_DEBUG_UART
void board_debug_uart_init(void)