diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2014-07-17 19:01:34 +0800 |
---|---|---|
committer | Sonic Zhang <sonic.zhang@analog.com> | 2014-08-07 15:15:19 +0800 |
commit | d54d7eb965e96fc451beaac58cd79efdcf848fd9 (patch) | |
tree | 69a0f3ca2b02c6496975505bc24242197ab0ef9c /include | |
parent | c49eabeffce351b561d79466a6f7cc4e304c063a (diff) | |
download | u-boot-imx-d54d7eb965e96fc451beaac58cd79efdcf848fd9.zip u-boot-imx-d54d7eb965e96fc451beaac58cd79efdcf848fd9.tar.gz u-boot-imx-d54d7eb965e96fc451beaac58cd79efdcf848fd9.tar.bz2 |
support blackfin board initialization in generic board_f
- init hardware watchdog if applicable
- use CONFIG_SYS_MONITOR_LEN as the gd monitor len for Blackfin
- reserve u-boot memory at the top field of the RAM for Blackfin
- avoid refer to CONFIG_SYS_MONITOR_LEN, which is not defined by Blackfin
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/watchdog.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index bd0a8d6..9273fa1 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -21,7 +21,8 @@ int init_func_watchdog_reset(void); #endif -#ifdef CONFIG_WATCHDOG +#if defined(CONFIG_SYS_GENERIC_BOARD) && \ + (defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG)) #define INIT_FUNC_WATCHDOG_INIT init_func_watchdog_init, #define INIT_FUNC_WATCHDOG_RESET init_func_watchdog_reset, #else |