Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor 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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
b2403589
Commit
b2403589
authored
15 years ago
by
Jean-Christophe PLAGNIOL-VILLARD
Committed by
Wolfgang Denk
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
at91: move cpu info print to cpu
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD
<
plagnioj@jcrosoft.com
>
parent
b32e1890
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/ronetix/pm9263/pm9263.c
+0
-7
0 additions, 7 deletions
board/ronetix/pm9263/pm9263.c
cpu/arm926ejs/at91/cpu.c
+22
-5
22 additions, 5 deletions
cpu/arm926ejs/at91/cpu.c
include/configs/pm9263.h
+1
-0
1 addition, 0 deletions
include/configs/pm9263.h
with
23 additions
and
12 deletions
board/ronetix/pm9263/pm9263.c
+
0
−
7
View file @
b2403589
...
...
@@ -382,15 +382,8 @@ int board_eth_init(bd_t *bis)
int
checkboard
(
void
)
{
char
*
ss
;
char
buf
[
32
];
printf
(
"Board : Ronetix PM9263
\n
"
);
printf
(
"Crystal frequency: %8s MHz
\n
"
,
strmhz
(
buf
,
get_main_clk_rate
()));
printf
(
"CPU clock : %8s MHz
\n
"
,
strmhz
(
buf
,
get_cpu_clk_rate
()));
printf
(
"Master clock : %8s MHz
\n
"
,
strmhz
(
buf
,
get_mck_clk_rate
()));
switch
(
gd
->
fb_base
)
{
case
PHYS_PSRAM
:
...
...
This diff is collapsed.
Click to expand it.
cpu/arm926ejs/at91/cpu.c
+
22
−
5
View file @
b2403589
...
...
@@ -21,17 +21,34 @@
* MA 02111-1307 USA
*/
#include
<co
nfig
.h>
#include
<co
mmon
.h>
#include
<asm/arch/hardware.h>
#include
<asm/arch/at91_pmc.h>
#include
<asm/arch/clk.h>
#include
<asm/arch/io.h>
#ifndef AT91_MAIN_CLOCK
#define AT91_MAIN_CLOCK 0
#endif
int
arch_cpu_init
(
void
)
{
#ifdef AT91_MAIN_CLOCK
return
at91_clock_init
(
AT91_MAIN_CLOCK
);
#else
return
at91_clock_init
(
0
);
#endif
}
#if defined(CONFIG_DISPLAY_CPUINFO)
int
print_cpuinfo
(
void
)
{
char
buf
[
32
];
printf
(
"CPU: %s
\n
"
,
AT91_CPU_NAME
);
printf
(
"Crystal frequency: %8s MHz
\n
"
,
strmhz
(
buf
,
get_main_clk_rate
()));
printf
(
"CPU clock : %8s MHz
\n
"
,
strmhz
(
buf
,
get_cpu_clk_rate
()));
printf
(
"Master clock : %8s MHz
\n
"
,
strmhz
(
buf
,
get_mck_clk_rate
()));
return
0
;
}
#endif
This diff is collapsed.
Click to expand it.
include/configs/pm9263.h
+
1
−
0
View file @
b2403589
...
...
@@ -29,6 +29,7 @@
#define __CONFIG_H
/* ARM asynchronous clock */
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
#define MASTER_PLL_DIV 15
...
...
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