Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U-Boot
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
U-Boot
Commits
d8780739
Commit
d8780739
authored
8 years ago
by
Kenneth Johansson
Browse files
Options
Downloads
Patches
Plain Diff
Fix reset.
parent
875607ef
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/inteno/ex300/board.c
+14
-0
14 additions, 0 deletions
board/inteno/ex300/board.c
include/configs/ex300.h
+0
-1
0 additions, 1 deletion
include/configs/ex300.h
with
14 additions
and
1 deletion
board/inteno/ex300/board.c
+
14
−
0
View file @
d8780739
...
@@ -62,8 +62,22 @@ int board_early_init_f(void)
...
@@ -62,8 +62,22 @@ int board_early_init_f(void)
#define RT2880_REG_PIORESET (RT2880_PRGIO_ADDR + 0x40)
#define RT2880_REG_PIORESET (RT2880_PRGIO_ADDR + 0x40)
void
_machine_restart
(
void
)
{
void
__iomem
*
reset_base
;
reset_base
=
(
void
__iomem
*
)
CKSEG1ADDR
(
RT2880_RSTCTRL_REG
);
__raw_writel
(
0x1
,
reset_base
);
mdelay
(
1000
);
}
void
trigger_hw_reset
(
void
)
void
trigger_hw_reset
(
void
)
{
{
printf
(
"BUG: we are supposed to do some reset here.!
\n
"
);
#ifdef GPIO14_RESET_MODE
#ifdef GPIO14_RESET_MODE
//set GPIO14 as output to trigger hw reset circuit
//set GPIO14 as output to trigger hw reset circuit
RALINK_REG
(
RT2880_REG_PIODIR
)
|=
1
<<
14
;
//output mode
RALINK_REG
(
RT2880_REG_PIODIR
)
|=
1
<<
14
;
//output mode
...
...
This diff is collapsed.
Click to expand it.
include/configs/ex300.h
+
0
−
1
View file @
d8780739
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#define RALINK_EPHY_INIT
#define RALINK_EPHY_INIT
#define RX_SCATTER_GATTER_DMA
#define RX_SCATTER_GATTER_DMA
#define CONFIG_SYS_RX_ETH_BUFFER 60
/* code assumes 24+24 plus some extra I guess. */
#define CONFIG_SYS_RX_ETH_BUFFER 60
/* code assumes 24+24 plus some extra I guess. */
#define GPIO14_RESET_MODE
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_BOARD_EARLY_INIT_R
#define CONFIG_BOARD_EARLY_INIT_R
...
...
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