mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
MX31: mx31pdk: Add watchdog support
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
24a514c445
commit
b73850f764
@ -28,9 +28,17 @@
|
|||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#ifdef CONFIG_HW_WATCHDOG
|
||||||
|
void hw_watchdog_reset(void)
|
||||||
|
{
|
||||||
|
mxc_hw_watchdog_reset();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
/* dram_init must store complete ramsize in gd->ram_size */
|
/* dram_init must store complete ramsize in gd->ram_size */
|
||||||
@ -68,6 +76,14 @@ int board_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int board_late_init(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_HW_WATCHDOG
|
||||||
|
mxc_hw_watchdog_enable();
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
printf("Board: MX31PDK\n");
|
printf("Board: MX31PDK\n");
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
|
|
||||||
#define CONFIG_MXC_UART 1
|
#define CONFIG_MXC_UART 1
|
||||||
#define CONFIG_SYS_MX31_UART1 1
|
#define CONFIG_SYS_MX31_UART1 1
|
||||||
|
#define CONFIG_HW_WATCHDOG
|
||||||
|
|
||||||
#define CONFIG_HARD_SPI 1
|
#define CONFIG_HARD_SPI 1
|
||||||
#define CONFIG_MXC_SPI 1
|
#define CONFIG_MXC_SPI 1
|
||||||
@ -98,6 +99,8 @@
|
|||||||
*/
|
*/
|
||||||
#undef CONFIG_CMD_IMLS
|
#undef CONFIG_CMD_IMLS
|
||||||
|
|
||||||
|
#define BOARD_LATE_INIT
|
||||||
|
|
||||||
#define CONFIG_BOOTDELAY 3
|
#define CONFIG_BOOTDELAY 3
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user