summaryrefslogtreecommitdiff
path: root/board/davinci/common/misc.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-05-15 23:47:12 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:49 +0200
commit7a4f511b59f08f51dde4ceacbd45f49b8bf2a5cc (patch)
tree6080253e837c7f4f79f662a51ab1fe5d13448423 /board/davinci/common/misc.c
parentdaea928829098cae3c9ec6b801e52ba616725034 (diff)
downloadu-boot-imx-7a4f511b59f08f51dde4ceacbd45f49b8bf2a5cc.zip
u-boot-imx-7a4f511b59f08f51dde4ceacbd45f49b8bf2a5cc.tar.gz
u-boot-imx-7a4f511b59f08f51dde4ceacbd45f49b8bf2a5cc.tar.bz2
davinci: display correct clock info
Move the clock-rate dumping code into the cpu/.../davinci area where it should have been, enabled by CONFIG_DISPLAY_CPUINFO, updating the format and showing the DSP clock (where relevant). Switch boards to use the cpuinfo() hook for this stuff. Remove a few now-obsolete PLL #defines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'board/davinci/common/misc.c')
-rw-r--r--board/davinci/common/misc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/board/davinci/common/misc.c b/board/davinci/common/misc.c
index cfab729..ffdc20b 100644
--- a/board/davinci/common/misc.c
+++ b/board/davinci/common/misc.c
@@ -28,6 +28,7 @@
#include <net.h>
#include <asm/arch/hardware.h>
+
DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
@@ -38,18 +39,6 @@ int dram_init(void)
return(0);
}
-static int dv_get_pllm_output(uint32_t pllm)
-{
- return (pllm + 1) * (CONFIG_SYS_HZ_CLOCK / 1000000);
-}
-
-void dv_display_clk_infos(void)
-{
- printf("ARM Clock: %dMHz\n", dv_get_pllm_output(REG(PLL1_PLLM)) / 2);
- printf("DDR Clock: %dMHz\n", dv_get_pllm_output(REG(PLL2_PLLM)) /
- ((REG(PLL2_DIV2) & 0x1f) + 1) / 2);
-}
-
#ifdef CONFIG_DRIVER_TI_EMAC
/* Read ethernet MAC address from EEPROM for DVEVM compatible boards.