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
97c26e00
Commit
97c26e00
authored
17 years ago
by
Mike Frysinger
Browse files
Options
Downloads
Patches
Plain Diff
add Blackfin-specific reginfo command
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
0858b835
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/cmd_reginfo.c
+41
-4
41 additions, 4 deletions
common/cmd_reginfo.c
with
41 additions
and
4 deletions
common/cmd_reginfo.c
+
41
−
4
View file @
97c26e00
...
@@ -329,16 +329,53 @@ int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
...
@@ -329,16 +329,53 @@ int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS0CFG
);
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS0CFG
);
printf
(
"
\t
SDRAMCS1: %08X
\n
"
,
printf
(
"
\t
SDRAMCS1: %08X
\n
"
,
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS1CFG
);
*
(
volatile
ulong
*
)
MPC5XXX_SDRAM_CS1CFG
);
#elif defined(CONFIG_BLACKFIN)
puts
(
"
\n
System Configuration registers
\n
"
);
puts
(
"
\n
PLL Registers
\n
"
);
printf
(
"
\t
PLL_DIV: 0x%04x PLL_CTL: 0x%04x
\n
"
,
bfin_read_PLL_DIV
(),
bfin_read_PLL_CTL
());
printf
(
"
\t
PLL_STAT: 0x%04x PLL_LOCKCNT: 0x%04x
\n
"
,
bfin_read_PLL_STAT
(),
bfin_read_PLL_LOCKCNT
());
printf
(
"
\t
VR_CTL: 0x%04x
\n
"
,
bfin_read_VR_CTL
());
puts
(
"
\n
EBIU AMC Registers
\n
"
);
printf
(
"
\t
EBIU_AMGCTL: 0x%04x
\n
"
,
bfin_read_EBIU_AMGCTL
());
printf
(
"
\t
EBIU_AMBCTL0: 0x%08x EBIU_AMBCTL1: 0x%08x
\n
"
,
bfin_read_EBIU_AMBCTL0
(),
bfin_read_EBIU_AMBCTL1
());
# ifdef EBIU_MODE
printf
(
"
\t
EBIU_MBSCTL: 0x%08x EBIU_ARBSTAT: 0x%08x
\n
"
,
bfin_read_EBIU_MBSCTL
(),
bfin_read_EBIU_ARBSTAT
());
printf
(
"
\t
EBIU_MODE: 0x%08x EBIU_FCTL: 0x%08x
\n
"
,
bfin_read_EBIU_MODE
(),
bfin_read_EBIU_FCTL
());
# endif
# ifdef EBIU_RSTCTL
puts
(
"
\n
EBIU DDR Registers
\n
"
);
printf
(
"
\t
EBIU_DDRCTL0: 0x%08x EBIU_DDRCTL1: 0x%08x
\n
"
,
bfin_read_EBIU_DDRCTL0
(),
bfin_read_EBIU_DDRCTL1
());
printf
(
"
\t
EBIU_DDRCTL2: 0x%08x EBIU_DDRCTL3: 0x%08x
\n
"
,
bfin_read_EBIU_DDRCTL2
(),
bfin_read_EBIU_DDRCTL3
());
printf
(
"
\t
EBIU_DDRQUE: 0x%08x EBIU_RSTCTL 0x%04x
\n
"
,
bfin_read_EBIU_DDRQUE
(),
bfin_read_EBIU_RSTCTL
());
printf
(
"
\t
EBIU_ERRADD: 0x%08x EBIU_ERRMST: 0x%04x
\n
"
,
bfin_read_EBIU_ERRADD
(),
bfin_read_EBIU_ERRMST
());
# else
puts
(
"
\n
EBIU SDC Registers
\n
"
);
printf
(
"
\t
EBIU_SDRRC: 0x%04x EBIU_SDBCTL: 0x%04x
\n
"
,
bfin_read_EBIU_SDRRC
(),
bfin_read_EBIU_SDBCTL
());
printf
(
"
\t
EBIU_SDSTAT: 0x%04x EBIU_SDGCTL: 0x%08x
\n
"
,
bfin_read_EBIU_SDSTAT
(),
bfin_read_EBIU_SDGCTL
());
# endif
#endif
/* CONFIG_MPC5200 */
#endif
/* CONFIG_MPC5200 */
return
0
;
return
0
;
}
}
/**************************************************/
/**************************************************/
#if ( defined(CONFIG_8xx) || defined(CONFIG_405GP) || \
#if defined(CONFIG_CMD_REGINFO)
defined(CONFIG_405EP) || defined(CONFIG_MPC5200) ) && \
defined(CONFIG_CMD_REGINFO)
U_BOOT_CMD
(
U_BOOT_CMD
(
reginfo
,
2
,
1
,
do_reginfo
,
reginfo
,
2
,
1
,
do_reginfo
,
"reginfo - print register information
\n
"
,
"reginfo - print register information
\n
"
,
...
...
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