diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-28 20:26:54 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-11-10 09:45:53 -0500 |
commit | 9244b2fda9edbc5f1c2b9b9bb827022993663d4a (patch) | |
tree | b68c9fa94af2becba060931f6fc8bc1c4870052c /board | |
parent | 77b5cc2948f5d93fe3d275302f596ffd8701a875 (diff) | |
download | u-boot-9244b2fda9edbc5f1c2b9b9bb827022993663d4a.zip u-boot-9244b2fda9edbc5f1c2b9b9bb827022993663d4a.tar.gz u-boot-9244b2fda9edbc5f1c2b9b9bb827022993663d4a.tar.bz2 |
Convert CONFIG_SYS_I2C_INIT_BOARD to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_I2C_INIT_BOARD
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/keymile/Kconfig | 3 | ||||
-rw-r--r-- | board/samsung/common/board.c | 4 | ||||
-rw-r--r-- | board/samsung/goni/goni.c | 10 |
3 files changed, 3 insertions, 14 deletions
diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig index 9f78443..b8f0578 100644 --- a/board/keymile/Kconfig +++ b/board/keymile/Kconfig @@ -11,6 +11,9 @@ if VENDOR_KM menu "KM Board Setup" +config SYS_I2C_INIT_BOARD + def_bool y if ARM + config HUSH_INIT_VAR def_bool y diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 49d4024..943b498 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -176,10 +176,6 @@ int board_early_init_f(void) return err; } -#ifdef CONFIG_SYS_I2C_INIT_BOARD - board_i2c_init(gd->fdt_blob); -#endif - return exynos_early_init_f(); } #endif diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index ba25ba2..535f8e1 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -33,16 +33,6 @@ int board_init(void) return 0; } -#ifdef CONFIG_SYS_I2C_INIT_BOARD -void i2c_init_board(void) -{ - gpio_request(S5PC110_GPIO_J43, "i2c_clk"); - gpio_request(S5PC110_GPIO_J40, "i2c_data"); - gpio_direction_output(S5PC110_GPIO_J43, 1); - gpio_direction_output(S5PC110_GPIO_J40, 1); -} -#endif - int dram_init(void) { gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE + |