summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@pollux.denx.de>2008-02-04 17:11:53 +0100
committerWolfgang Denk <wd@denx.de>2008-03-18 21:59:24 +0100
commitff818b21b069f4bc9cb73373cc5a16014be101b7 (patch)
treecea950fede325dfea0a5d9d41c0e583aba5ebd7e
parent603f194e5ad81bb2ef42d6d8aaa74de175bcb411 (diff)
downloadtalos-obmc-uboot-ff818b21b069f4bc9cb73373cc5a16014be101b7.tar.gz
talos-obmc-uboot-ff818b21b069f4bc9cb73373cc5a16014be101b7.zip
Add support for the lwmon5 board reset via GPIO58.
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
-rw-r--r--board/lwmon5/lwmon5.c5
-rw-r--r--include/configs/lwmon5.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c
index 73d5de5886..7c5f6ccf1b 100644
--- a/board/lwmon5/lwmon5.c
+++ b/board/lwmon5/lwmon5.c
@@ -594,3 +594,8 @@ void video_get_info_str (int line_number, char *info)
}
#endif
#endif /* CONFIG_VIDEO */
+
+void board_reset(void)
+{
+ gpio_write_bit(CFG_GPIO_BOARD_RESET, 1);
+}
diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h
index 6489e0eef6..e179e4f006 100644
--- a/include/configs/lwmon5.h
+++ b/include/configs/lwmon5.h
@@ -36,6 +36,7 @@
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
#define CONFIG_BOARD_POSTCLK_INIT 1 /* Call board_postclk_init */
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
+#define CONFIG_BOARD_RESET 1 /* Call board_reset */
/*-----------------------------------------------------------------------
* Base addresses -- Note these are effective addresses where the
@@ -516,6 +517,7 @@
#define CFG_GPIO_EEPROM_EXT_WP 55
#define CFG_GPIO_HIGHSIDE 56
#define CFG_GPIO_EEPROM_INT_WP 57
+#define CFG_GPIO_BOARD_RESET 58
#define CFG_GPIO_LIME_S 59
#define CFG_GPIO_LIME_RST 60
#define CFG_GPIO_SYSMON_STATUS 62
OpenPOWER on IntegriCloud