diff mbox

[U-Boot,3/3] board/BuR/tseries: change pinmux

Message ID 1428471515-3964-3-git-send-email-oe5hpm@oevsv.at
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Hannes Schmelzer April 8, 2015, 5:38 a.m. UTC
some pins on the board have been rerouted to other peripherals, so we
change the pinmux to apply with hardware-design.

Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>

---

 board/BuR/tseries/mux.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Comments

Tom Rini April 23, 2015, 1:14 p.m. UTC | #1
On Wed, Apr 08, 2015 at 07:38:35AM +0200, Hannes Petermaier wrote:

> some pins on the board have been rerouted to other peripherals, so we
> change the pinmux to apply with hardware-design.
> 
> Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/BuR/tseries/mux.c b/board/BuR/tseries/mux.c
index caedf00..c5dc4b7 100644
--- a/board/BuR/tseries/mux.c
+++ b/board/BuR/tseries/mux.c
@@ -17,8 +17,10 @@ 
 #include <i2c.h>
 
 static struct module_pin_mux uart0_pin_mux[] = {
+	/* UART0_RTS */
+	{OFFSET(uart0_rtsn), (MODE(0) | PULLUDEN)},
 	/* UART0_CTS */
-	{OFFSET(uart0_ctsn), (MODE(7) | PULLUDEN | PULLUP_EN | RXACTIVE)},
+	{OFFSET(uart0_ctsn), (MODE(0) | PULLUDEN | PULLUP_EN | RXACTIVE)},
 	/* UART0_RXD */
 	{OFFSET(uart0_rxd), (MODE(0) | PULLUDEN | PULLUP_EN | RXACTIVE)},
 	/* UART0_TXD */
@@ -26,9 +28,13 @@  static struct module_pin_mux uart0_pin_mux[] = {
 	{-1},
 };
 static struct module_pin_mux uart1_pin_mux[] = {
-	/* UART0_RXD */
+	/* UART1_RTS as I2C2-SCL */
+	{OFFSET(uart1_rtsn), (MODE(3) | PULLUDEN | PULLUP_EN | RXACTIVE)},
+	/* UART1_CTS as I2C2-SDA */
+	{OFFSET(uart1_ctsn), (MODE(3) | PULLUDEN | PULLUP_EN | RXACTIVE)},
+	/* UART1_RXD */
 	{OFFSET(uart1_rxd), (MODE(0) | PULLUDEN | PULLUP_EN | RXACTIVE)},
-	/* UART0_TXD */
+	/* UART1_TXD */
 	{OFFSET(uart1_txd), (MODE(0) | PULLUDEN)},
 	{-1},
 };