summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch b/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch
new file mode 100644
index 00000000..fa2790dc
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch
@@ -0,0 +1,63 @@
1From e2121ca4fd82f8313b764fe7fb24511ef7d10904 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Wed, 16 Nov 2011 18:57:12 +0100
4Subject: [PATCH 05/10] am335x-evm: enable i2c2 pinmux for beaglebone
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 board/ti/am335x/mux.c | 18 ++++++++++++++++++
9 1 file changed, 18 insertions(+)
10
11diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
12index 885b33f..70645d4 100644
13--- a/board/ti/am335x/mux.c
14+++ b/board/ti/am335x/mux.c
15@@ -310,6 +310,12 @@ static struct module_pin_mux i2c1_pin_mux[] = {
16 {-1},
17 };
18
19+static struct module_pin_mux i2c2_pin_mux[] = {
20+ {OFFSET(uart1_ctsn), (MODE(3) | RXACTIVE | PULLUDEN | SLEWCTRL)}, /* I2C_DATA */
21+ {OFFSET(uart1_rtsn), (MODE(3) | RXACTIVE | PULLUDEN | SLEWCTRL)}, /* I2C_SCLK */
22+ {-1},
23+};
24+
25 #ifndef CONFIG_NO_ETH
26 static struct module_pin_mux rgmii1_pin_mux[] = {
27 {OFFSET(mii1_txen), MODE(2)}, /* RGMII1_TCTL */
28@@ -598,6 +604,7 @@ static struct evm_pin_mux sk_evm_pin_mux[] = {
29 static struct evm_pin_mux beaglebone_pin_mux[] = {
30 {uart0_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD},
31 {i2c1_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_4, DEV_ON_BASEBOARD},
32+ {i2c2_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD},
33 #ifdef CONFIG_NAND
34 {nand_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_3, DEV_ON_DGHTR_BRD},
35 #endif
36@@ -617,6 +624,7 @@ static struct evm_pin_mux beaglebone_pin_mux[] = {
37 static struct evm_pin_mux beaglebone_old_pin_mux[] = {
38 {uart0_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD},
39 {i2c1_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_4, DEV_ON_BASEBOARD},
40+ {i2c2_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD},
41 #ifdef CONFIG_NAND
42 {nand_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_3, DEV_ON_DGHTR_BRD},
43 #endif
44@@ -713,6 +721,16 @@ void enable_i2c0_pin_mux(void)
45 configure_module_pin_mux(i2c0_pin_mux);
46 }
47
48+void enable_i2c1_pin_mux(void)
49+{
50+ configure_module_pin_mux(i2c1_pin_mux);
51+}
52+
53+void enable_i2c2_pin_mux(void)
54+{
55+ configure_module_pin_mux(i2c2_pin_mux);
56+}
57+
58 void enable_uart0_pin_mux(void)
59 {
60 configure_module_pin_mux(uart0_pin_mux);
61--
621.7.10
63