[PATCH 07/10] ARM: Layerscape: TQMLS1046a: Fix pinmux setup for i2c4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With this the I2C mux on i2c4 works properly.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 arch/arm/boards/tqmls1046a/board.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boards/tqmls1046a/board.c b/arch/arm/boards/tqmls1046a/board.c
index 5d6d5ad62c..4fc8e76d65 100644
--- a/arch/arm/boards/tqmls1046a/board.c
+++ b/arch/arm/boards/tqmls1046a/board.c
@@ -7,6 +7,7 @@
 #include <linux/sizes.h>
 #include <linux/clk.h>
 #include <linux/clkdev.h>
+#include <soc/fsl/immap_lsch2.h>
 
 static int tqmls1046a_mem_init(void)
 {
@@ -21,11 +22,16 @@ mem_initcall(tqmls1046a_mem_init);
 
 static int tqmls1046a_postcore_init(void)
 {
+	struct ccsr_scfg *scfg = IOMEM(LSCH2_SCFG_ADDR);
+
 	if (!of_machine_is_compatible("tqc,tqmls1046a"))
 		return 0;
 
 	defaultenv_append_directory(defaultenv_tqmls1046a);
 
+	/* Configure iomux for i2c4 */
+	out_be32(&scfg->rcwpmuxcr0, 0x3300);
+
 	return 0;
 }
 
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux