uboot下init_sequence_f函数之INIT_FUNC_WATCHDOG_INIT
2017-03-22 08:21
393 查看
include/watchdog.h INIT_FUNC_WATCHDOG_INIT
#if 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 #define INIT_FUNC_WATCHDOG_INIT #define INIT_FUNC_WATCHDOG_RESET #endif
#if defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG)
static int init_func_watchdog_init(void)
{
# if defined(CONFIG_HW_WATCHDOG) && (defined(CONFIG_BLACKFIN) || \
defined(CONFIG_M68K) || defined(CONFIG_MICROBLAZE) || \
defined(CONFIG_SH) || defined(CONFIG_AT91SAM9_WATCHDOG) || \
defined(CONFIG_DESIGNWARE_WATCHDOG) || \
defined(CONFIG_IMX_WATCHDOG))
hw_watchdog_init();
puts(" Watchdog enabled\n");
# endif
WATCHDOG_RESET();
return 0;
}
int init_func_watchdog_reset(void)
{
WATCHDOG_RESET();
return 0;
}
#endif /* CONFIG_WATCHDOG */
相关文章推荐
- uboot下init_sequence_f函数之INIT_FUNC_WATCHDOG_RESET
- uboot下init_sequence_f函数之init_func_spi
- uboot下init_sequence_f函数之init_func_i2c
- uboot下init_sequence_f函数之init_func_ram
- uboot下init_sequence_f函数之post_init_f
- uboot下init_sequence_f函数之reserve_mmu
- uboot下init_sequence_f函数之setup_machine
- uboot下init_sequence_f函数之init_post
- uboot下init_sequence_f函数之reserve_fdt
- uboot下init_sequence_f函数之show_dram_config
- uboot下init_sequence_f函数之dram_init
- uboot下init_sequence_f函数之reserve_pram
- uboot下init_sequence_f函数之reserve_arch
- uboot下init_sequence_f函数之copy_uboot_to_ram
- uboot下init_sequence_f函数之reserve_global_data
- uboot下init_sequence_f函数之display_new_sp
- uboot下init_sequence_f函数之reserve_round_4k
- uboot下init_sequence_f函数之jump_to_copy
- uboot下init_sequence_f函数之reloc_fdt
- uboot下init_sequence_f函数之reserve_trace