Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
uboot-i9100
Commits
b73850f7
Commit
b73850f7
authored
13 years ago
by
Fabio Estevam
Committed by
Albert ARIBAUD
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MX31: mx31pdk: Add watchdog support
Signed-off-by:
Fabio Estevam
<
fabio.estevam@freescale.com
>
parent
24a514c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/freescale/mx31pdk/mx31pdk.c
+16
-0
16 additions, 0 deletions
board/freescale/mx31pdk/mx31pdk.c
include/configs/mx31pdk.h
+3
-0
3 additions, 0 deletions
include/configs/mx31pdk.h
with
19 additions
and
0 deletions
board/freescale/mx31pdk/mx31pdk.c
+
16
−
0
View file @
b73850f7
...
...
@@ -28,9 +28,17 @@
#include
<netdev.h>
#include
<asm/arch/clock.h>
#include
<asm/arch/imx-regs.h>
#include
<watchdog.h>
DECLARE_GLOBAL_DATA_PTR
;
#ifdef CONFIG_HW_WATCHDOG
void
hw_watchdog_reset
(
void
)
{
mxc_hw_watchdog_reset
();
}
#endif
int
dram_init
(
void
)
{
/* dram_init must store complete ramsize in gd->ram_size */
...
...
@@ -68,6 +76,14 @@ int board_init(void)
return
0
;
}
int
board_late_init
(
void
)
{
#ifdef CONFIG_HW_WATCHDOG
mxc_hw_watchdog_enable
();
#endif
return
0
;
}
int
checkboard
(
void
)
{
printf
(
"Board: MX31PDK
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
include/configs/mx31pdk.h
+
3
−
0
View file @
b73850f7
...
...
@@ -61,6 +61,7 @@
#define CONFIG_MXC_UART 1
#define CONFIG_SYS_MX31_UART1 1
#define CONFIG_HW_WATCHDOG
#define CONFIG_HARD_SPI 1
#define CONFIG_MXC_SPI 1
...
...
@@ -98,6 +99,8 @@
*/
#undef CONFIG_CMD_IMLS
#define BOARD_LATE_INIT
#define CONFIG_BOOTDELAY 3
#define CONFIG_EXTRA_ENV_SETTINGS \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment