[U-Boot] [PATCH] ARM: OMAP5: DRA7xx: Enable I2C4 and I2C5 usage on the J6Eco EVM
Lubomir Popov
lpopov at mm-sol.com
Fri Nov 14 14:20:44 CET 2014
On the J6Eco EVM we have two on-board devices on the I2C5 bus; this
bus is also routed to the camera and expansion connectors. I2C4 is
routed to one of the expansion connectors. This patch enables usage
of these two buses.
For I2C5 to work, the 'ARM: OMAP5: DRA7xx: Enable I2C5 operation'
patch is required as a prerequisite.
Tested on a J6 ECO EVM rev.B with a DRA726 ES1.0.
Signed-off-by: Lubomir Popov <l-popov at ti.com>
---
board/ti/dra7xx/evm.c | 7 +++++++
board/ti/dra7xx/mux_data.h | 8 ++++++++
2 files changed, 15 insertions(+)
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 37df7b2..25dae8e 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -124,6 +124,13 @@ void set_muxconf_regs_essential(void)
core_padconf_array_essential,
sizeof(core_padconf_array_essential) /
sizeof(struct pad_conf_entry));
+
+ if (omap_revision() == DRA722_ES1_0) {
+ do_set_mux32((*ctrl)->control_padconf_core_base,
+ core_padconf_array_j6ecoevm,
+ sizeof(core_padconf_array_j6ecoevm) /
+ sizeof(struct pad_conf_entry));
+ }
}
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_GENERIC_MMC)
diff --git a/board/ti/dra7xx/mux_data.h b/board/ti/dra7xx/mux_data.h
index 4824077..f155f65 100644
--- a/board/ti/dra7xx/mux_data.h
+++ b/board/ti/dra7xx/mux_data.h
@@ -141,4 +141,12 @@ const struct pad_conf_entry core_padconf_array_essential[] = {
{USB2_DRVVBUS, (M0 | IEN | FSC) },
{SPI1_CS1, (PEN | IDIS | M14) },
};
+
+const struct pad_conf_entry core_padconf_array_j6ecoevm[] = {
+ {MCASP1_AXR0, (IEN | PTU | PDIS | M10)},/* I2C5_SDA */
+ {MCASP1_AXR1, (IEN | PTU | PDIS | M10)},/* I2C5_SCL */
+
+ {MCASP4_ACLKX, (IEN | PTU | PDIS | M4)},/* I2C4_SDA */
+ {MCASP4_FSX, (IEN | PTU | PDIS | M4)}, /* I2C4_SCL */
+};
#endif /* _MUX_DATA_DRA7XX_H_ */
--
1.7.9.5
More information about the U-Boot
mailing list