Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Jack Humbert
reform-boundary-uboot
Commits
4fd783d6
Commit
4fd783d6
authored
13 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'next' of
git://git.denx.de/u-boot-nios
parents
a8708a86
030103d7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/altera/nios2-generic/nios2-generic.c
+16
-0
16 additions, 0 deletions
board/altera/nios2-generic/nios2-generic.c
with
16 additions
and
0 deletions
board/altera/nios2-generic/nios2-generic.c
+
16
−
0
View file @
4fd783d6
...
...
@@ -24,12 +24,28 @@
#include
<common.h>
#include
<netdev.h>
#include
<mtd/cfi_flash.h>
#include
<asm/io.h>
void
text_base_hook
(
void
);
/* nop hook for text_base.S */
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
static
void
__early_flash_cmd_reset
(
void
)
{
/* reset flash before we read env */
writeb
(
AMD_CMD_RESET
,
CONFIG_ENV_ADDR
);
writeb
(
FLASH_CMD_RESET
,
CONFIG_ENV_ADDR
);
}
void
early_flash_cmd_reset
(
void
)
__attribute__
((
weak
,
alias
(
"__early_flash_cmd_reset"
)));
#endif
int
board_early_init_f
(
void
)
{
text_base_hook
();
#if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
early_flash_cmd_reset
();
#endif
return
0
;
}
...
...
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