For the sysmoBTS we want to easily see the ARM and DSP speed
and the speed of the RAM as well. Invoking bdinfo is annoying
the reason the call was removed is not very clear.

Fixes: SYS#375
This commit is contained in:
Holger Hans Peter Freyther 2014-11-19 23:52:55 +01:00 committed by Holger Hans Peter Freyther
parent d0ffda8ed2
commit 616396f1dc
1 changed files with 32 additions and 0 deletions

View File

@ -206,6 +206,38 @@ int set_cpu_clk_info(void)
return 0;
}
#ifdef CONFIG_DISPLAY_CPUINFO
int print_cpuinfo(void)
{
/* REVISIT fetch and display CPU ID and revision information
* too ... that will matter as more revisions appear.
*/
#if defined(CONFIG_SOC_DM365)
printf("Cores: ARM %d MHz",
pll_sysclk_mhz(DAVINCI_PLL_CNTRL1_BASE, ARM_PLLDIV));
#else
printf("Cores: ARM %d MHz",
pll_sysclk_mhz(DAVINCI_PLL_CNTRL0_BASE, ARM_PLLDIV));
#endif
#ifdef DSP_PLLDIV
printf(", DSP %d MHz",
pll_sysclk_mhz(DAVINCI_PLL_CNTRL0_BASE, DSP_PLLDIV));
#endif
printf("\nDDR: %d MHz\n",
/* DDR PHY uses an x2 input clock */
#if defined(CONFIG_SOC_DM365)
pll_sysclk_mhz(DAVINCI_PLL_CNTRL0_BASE, DDR_PLLDIV)
/ 2);
#else
pll_sysclk_mhz(DAVINCI_PLL_CNTRL1_BASE, DDR_PLLDIV)
/ 2);
#endif
return 0;
}
#endif
#endif /* !CONFIG_SOC_DA8XX */
/*