i.MX7ULP: Fix wrong i2c configuration name
authorYe Li <ye.li@nxp.com>
Mon, 22 Jul 2019 01:24:53 +0000 (01:24 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:16 +0000 (16:35 +0200)
Wrong I2c driver configuration name is used in codes, so I2c driver is
not built. Correct it.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-mx7ulp/clock.h
arch/arm/mach-imx/mx7ulp/clock.c
configs/mx7ulp_evk_defconfig
configs/mx7ulp_evk_plugin_defconfig

index bf69785831588e378fa7ac34a260ec04bbf969da..eb02a20fdc52b2e32619cc19d5522ec54dd5b4f6 100644 (file)
@@ -26,7 +26,7 @@ enum mxc_clock {
 
 u32 mxc_get_clock(enum mxc_clock clk);
 u32 get_lpuart_clk(void);
-#ifdef CONFIG_SYS_LPI2C_IMX
+#ifdef CONFIG_SYS_I2C_IMX_LPI2C
 int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
 u32 imx_get_i2cclk(unsigned i2c_num);
 #endif
index dc317fe810ab5f26dc840d52718f32da25c3752c..e333c7815b449a8bbd8d8ef859e93bf9c96fe6ab 100644 (file)
@@ -72,7 +72,7 @@ u32 get_lpuart_clk(void)
        return pcc_clock_get_rate(lpuart_pcc_clks[index - 4]);
 }
 
-#ifdef CONFIG_SYS_LPI2C_IMX
+#ifdef CONFIG_SYS_I2C_IMX_LPI2C
 int enable_i2c_clk(unsigned char enable, unsigned i2c_num)
 {
        /* Set parent to FIRC DIV2 clock */
index dc6cc2ba37a718a67762c73e9cf6367ea7afa023..b92e0fa3932ff2583547d60e153e117388f1e834 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_DM_GPIO=y
 CONFIG_IMX_RGPIO2P=y
 # CONFIG_MXC_GPIO is not set
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_DM_MMC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
index b2451adce70cf70c261b218f098574c0b458894b..970c0c7dbd409de5a46895da5fbfe754d97663a2 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_IMX_RGPIO2P=y
 # CONFIG_MXC_GPIO is not set
 CONFIG_DM_I2C=y
 CONFIG_DM_MMC=y
+CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PINCTRL=y