diff options
author | Ye Li <ye.li@nxp.com> | 2017-03-16 15:59:26 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 17:24:34 +0800 |
commit | d54d59ecc1800a46d5ed897448496b8d73a822aa (patch) | |
tree | f435be93860097c1a9e02da0d5994d17e95729c8 /arch/arm | |
parent | da1c290f0b890fafeb8ce29b53b764eaee53520b (diff) | |
download | u-boot-imx-d54d59ecc1800a46d5ed897448496b8d73a822aa.zip u-boot-imx-d54d59ecc1800a46d5ed897448496b8d73a822aa.tar.gz u-boot-imx-d54d59ecc1800a46d5ed897448496b8d73a822aa.tar.bz2 |
MLK-14445-4 mx7ulp: Fix wrong i2c configuration name
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv7/mx7ulp/clock.c | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-mx7ulp/clock.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/mx7ulp/clock.c b/arch/arm/cpu/armv7/mx7ulp/clock.c index 77b282a..88896dc 100644 --- a/arch/arm/cpu/armv7/mx7ulp/clock.c +++ b/arch/arm/cpu/armv7/mx7ulp/clock.c @@ -73,7 +73,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 */ diff --git a/arch/arm/include/asm/arch-mx7ulp/clock.h b/arch/arm/include/asm/arch-mx7ulp/clock.h index 170a9b3..ddb9d1f 100644 --- a/arch/arm/include/asm/arch-mx7ulp/clock.h +++ b/arch/arm/include/asm/arch-mx7ulp/clock.h @@ -27,7 +27,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 |