public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: OMAP5: DRA7xx: Enable I2C4 and I2C5 usage on the J6Eco EVM
@ 2014-11-14 13:20 Lubomir Popov
  2014-11-17 13:40 ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Lubomir Popov @ 2014-11-14 13:20 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-18 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 13:20 [U-Boot] [PATCH] ARM: OMAP5: DRA7xx: Enable I2C4 and I2C5 usage on the J6Eco EVM Lubomir Popov
2014-11-17 13:40 ` Tom Rini
2014-11-17 14:23   ` Lubomir Popov
2014-12-18 11:00   ` Lubomir Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox