Skip to content

Commit

Permalink
canvu500: enable watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
mansr committed Feb 12, 2019
1 parent fc59497 commit c7afe6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions board/cantronik/canvu500/canvu500.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <splash.h>
#include <usb.h>
#include <video.h>
#include <watchdog.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down Expand Up @@ -345,6 +346,10 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;

#ifdef CONFIG_HW_WATCHDOG
hw_watchdog_init();
#endif

#ifdef CONFIG_NAND_MXS
setup_gpmi_nand();
#endif
Expand Down
4 changes: 4 additions & 0 deletions include/configs/canvu500.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
#define CONFIG_MXC_USB_FLAGS 0
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2

/* Watchdog */
#define CONFIG_HW_WATCHDOG
#define CONFIG_IMX_WATCHDOG

#ifdef CONFIG_VIDEO
#define CONFIG_VIDEO_MXS
#define CONFIG_VIDEO_LOGO
Expand Down

0 comments on commit c7afe6d

Please sign in to comment.