[U-Boot-Users] [PATCH] Change GPIO to control the LSB transmitter on lwmon5 board.
sascha.laue at liebherr.com
sascha.laue at liebherr.com
Fri May 30 09:48:06 CEST 2008
From: Sascha Laue <sascha.laue at liebherr.com>
Signed-off-by: Sascha Laue <sascha.laue at 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
More information about the U-Boot
mailing list