summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-12-12 07:36:04 -0800
committerYe Li <ye.li@nxp.com>2018-12-12 18:29:56 -0800
commitde4e64ce378dd8841beb47455e3c776a3e086455 (patch)
tree220638e5c320a3cc0ab405d86b68eb6f6ac9ff37 /arch
parentbcb82557f9731d5ea849400832e80e1589b2aeba (diff)
MLK-20577 imx8qxp: Fix wrong LPCG register address for MIPI i2c
The previous LPCG register addresses seem wrong. By checking the LPCG with JTAG, the ipg_clk, ipg_s_clk, and perclk uses one register as the standard implementation method, not use 3 registers. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 10f8f616d50f0f13f32a75ed390245d902ae0d9b)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-imx8/i2c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/include/asm/arch-imx8/i2c.h b/arch/arm/include/asm/arch-imx8/i2c.h
index 6506efffda..4b1bd4ba27 100644
--- a/arch/arm/include/asm/arch-imx8/i2c.h
+++ b/arch/arm/include/asm/arch-imx8/i2c.h
@@ -38,10 +38,10 @@ static struct imx_i2c_map imx_i2c_desc[] = {
{15, SC_R_MIPI_1_I2C_0, {MIPI_DSI_1_LPCG + 0x14, MIPI_DSI_1_LPCG + 0x18, MIPI_DSI_1_LPCG + 0x1c}},
{16, SC_R_MIPI_1_I2C_1, {MIPI_DSI_1_LPCG + 0x24, MIPI_DSI_1_LPCG + 0x28, MIPI_DSI_1_LPCG + 0x2c}},
#else
- {13, SC_R_MIPI_0_I2C_0, {DI_MIPI0_LPCG, DI_MIPI0_LPCG + 0x10, DI_MIPI0_LPCG + 0x14}},
- {14, SC_R_MIPI_0_I2C_1, {DI_MIPI0_LPCG, DI_MIPI0_LPCG + 0x10, DI_MIPI0_LPCG + 0x14}},
- {15, SC_R_MIPI_1_I2C_0, {DI_MIPI1_LPCG, DI_MIPI1_LPCG + 0x10, DI_MIPI1_LPCG + 0x14}},
- {16, SC_R_MIPI_1_I2C_1, {DI_MIPI1_LPCG, DI_MIPI1_LPCG + 0x10, DI_MIPI1_LPCG + 0x14}},
+ {13, SC_R_MIPI_0_I2C_0, {DI_MIPI0_LPCG + 0x10}},
+ {14, SC_R_MIPI_0_I2C_1, {DI_MIPI0_LPCG + 0x14}},
+ {15, SC_R_MIPI_1_I2C_0, {DI_MIPI1_LPCG + 0x10}},
+ {16, SC_R_MIPI_1_I2C_1, {DI_MIPI1_LPCG + 0x14}},
#endif
};
#endif /* __ASM_ARCH_IMX8_I2C_H__ */