aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone/ddr3_spd.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-02-21 11:17:07 -0500
committerTom Rini <trini@konsulko.com>2021-02-21 11:17:07 -0500
commitb732c8780c3f7b47b00bd59e5f6ad7d6ec099d68 (patch)
tree2e4d72720d9254f7ba8be5a981368d77d92f91dc /arch/arm/mach-keystone/ddr3_spd.c
parent72993e8e03845f82c3ccf7c72f205c9afd8da6d6 (diff)
parent2147a16983d17bcb0438607aa7760494afc27014 (diff)
Merge tag 'for-v2021.04' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c
i2c changes for v2021.04 new feature: - Allow disabling driver model for I2C in SPL fixes: - i2c-gpio: Fix GPIO output - at91: fix crash when using 'i2c probe'
Diffstat (limited to 'arch/arm/mach-keystone/ddr3_spd.c')
-rw-r--r--arch/arm/mach-keystone/ddr3_spd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-keystone/ddr3_spd.c b/arch/arm/mach-keystone/ddr3_spd.c
index 3803449c2b..c4a1908af8 100644
--- a/arch/arm/mach-keystone/ddr3_spd.c
+++ b/arch/arm/mach-keystone/ddr3_spd.c
@@ -404,7 +404,7 @@ static void init_ddr3param(struct ddr3_spd_cb *spd_cb,
static int ddr3_read_spd(ddr3_spd_eeprom_t *spd_params)
{
int ret;
-#ifndef CONFIG_DM_I2C
+#if !CONFIG_IS_ENABLED(DM_I2C)
int old_bus;
i2c_init(CONFIG_SYS_DAVINCI_I2C_SPEED, CONFIG_SYS_DAVINCI_I2C_SLAVE);