public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Change GPIO to control the LSB transmitter on lwmon5 board.
@ 2008-05-30  7:48 sascha.laue at liebherr.com
  2008-07-07  7:59 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: sascha.laue at liebherr.com @ 2008-05-30  7:48 UTC (permalink / raw)
  To: u-boot

From: Sascha Laue <sascha.laue@liebherr.com>


Signed-off-by: Sascha Laue <sascha.laue@liebherr.com>
---
 board/lwmon5/lwmon5.c    |    5 +++--
 include/configs/lwmon5.h |    2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c
index c29dfc1..7bfbb1b 100644
--- a/board/lwmon5/lwmon5.c
+++ b/board/lwmon5/lwmon5.c
@@ -98,7 +98,8 @@ int board_early_init_f(void)
 	gpio_write_bit(CFG_GPIO_FLASH_WP, 1);
 
 #if CONFIG_POST & CFG_POST_BSPEC1
-	gpio_write_bit(CFG_GPIO_HIGHSIDE, 1);
+	/* enable the LSB transmitter */
+	gpio_write_bit(CFG_GPIO_LSB_ENABLE, 1);
 
 	reg = 0; /* reuse as counter */
 	out_be32((void *)CFG_DSPIC_TEST_ADDR,
@@ -114,7 +115,7 @@ int board_early_init_f(void)
 			CFG_DSPIC_TEST_MASK);
 	} else {
 		/* dspic ready - disable LSB transmitter */
-		gpio_write_bit(CFG_GPIO_HIGHSIDE, 0);
+		gpio_write_bit(CFG_GPIO_LSB_ENABLE, 0);
 	}
 #endif
 
diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h
index cf406c8..2ad82ed 100644
--- a/include/configs/lwmon5.h
+++ b/include/configs/lwmon5.h
@@ -521,6 +521,8 @@
 #define CFG_GPIO_FLASH_WP	14
 #define CFG_GPIO_PHY0_RST	22
 #define CFG_GPIO_DSPIC_READY	51
+#define CFG_GPIO_CAN_ENABLE	53
+#define CFG_GPIO_LSB_ENABLE	54
 #define CFG_GPIO_EEPROM_EXT_WP	55
 #define CFG_GPIO_HIGHSIDE	56
 #define CFG_GPIO_EEPROM_INT_WP	57
-- 
1.5.2.4

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

end of thread, other threads:[~2008-07-07  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  7:48 [U-Boot-Users] [PATCH] Change GPIO to control the LSB transmitter on lwmon5 board sascha.laue at liebherr.com
2008-07-07  7:59 ` Stefan Roese

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