mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
at91: move cpu info print to cpu
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
b32e189079
commit
b2403589b4
@ -382,15 +382,8 @@ int board_eth_init(bd_t *bis)
|
|||||||
int checkboard (void)
|
int checkboard (void)
|
||||||
{
|
{
|
||||||
char *ss;
|
char *ss;
|
||||||
char buf[32];
|
|
||||||
|
|
||||||
printf ("Board : Ronetix PM9263\n");
|
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) {
|
switch (gd->fb_base) {
|
||||||
case PHYS_PSRAM:
|
case PHYS_PSRAM:
|
||||||
|
@ -21,17 +21,34 @@
|
|||||||
* MA 02111-1307 USA
|
* MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <common.h>
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/arch/hardware.h>
|
||||||
#include <asm/arch/at91_pmc.h>
|
#include <asm/arch/at91_pmc.h>
|
||||||
#include <asm/arch/clk.h>
|
#include <asm/arch/clk.h>
|
||||||
#include <asm/arch/io.h>
|
#include <asm/arch/io.h>
|
||||||
|
|
||||||
|
#ifndef AT91_MAIN_CLOCK
|
||||||
|
#define AT91_MAIN_CLOCK 0
|
||||||
|
#endif
|
||||||
|
|
||||||
int arch_cpu_init(void)
|
int arch_cpu_init(void)
|
||||||
{
|
{
|
||||||
#ifdef AT91_MAIN_CLOCK
|
|
||||||
return at91_clock_init(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
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
/* ARM asynchronous clock */
|
/* ARM asynchronous clock */
|
||||||
|
#define CONFIG_DISPLAY_CPUINFO
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
|
|
||||||
#define MASTER_PLL_DIV 15
|
#define MASTER_PLL_DIV 15
|
||||||
|
Loading…
x
Reference in New Issue
Block a user