]> git.sur5r.net Git - u-boot/commitdiff
Add support for the lwmon5 board reset via GPIO58.
authorYuri Tikhonov <yur@pollux.denx.de>
Mon, 4 Feb 2008 16:11:53 +0000 (17:11 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 18 Mar 2008 21:24:48 +0000 (22:24 +0100)
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com>
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
board/lwmon5/lwmon5.c
include/configs/lwmon5.h

index 73d5de5886b80d99f44417404da4c6c0a17a9bf9..7c5f6ccf1b0255bf7005784f0f90d4c167b5c9f1 100644 (file)
@@ -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);
+}
index 6489e0eef69eef35d5f912b2994550c357325e16..e179e4f006c4cc702df95a8fda425d9245abd38a 100644 (file)
@@ -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
 #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