]> git.sur5r.net Git - u-boot/commit
DaVinci DA8xx: fix set_cpu_clk_info()
authorLaurence Withers <lwithers@guralp.com>
Mon, 30 Jul 2012 23:30:37 +0000 (23:30 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:14 +0000 (14:58 +0200)
commitbe7d257895596f753e09fb7710524db5f6fd7c0b
treec3167e1d312f0714e3f4ecf9bfd8af168c940b0d
parentde9d2e3d60dba1ab775ad67032b5afa00086f53f
DaVinci DA8xx: fix set_cpu_clk_info()

For the DA8xx family of SoCs, the set_cpu_clk_info() function was not
initialising the DSP frequency, leading to 'bdinfo' command output such as:

  [...snip...]
  ARM frequency = 300 MHz
  DSP frequency = -536870913 MHz
  DDR frequency = 300 MHz

This commit provides a separate implementation of set_cpu_clk_info() for
the DA8xx SoCs that initialises the DSP frequency to zero (since
currently the DSP is not enabled by U-Boot on any DA8xx platform). The
separate implementation is justified because there is no common code
between DA8xx and the other SoC families. It is now much easier to
understand the flow of the two separate functions.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Cc: Tom Rini <trini@ti.com>
Cc: Hadli, Manjunath <manjunath.hadli@ti.com>
Cc: Heiko Schocher <hs@denx.de>
arch/arm/cpu/arm926ejs/davinci/cpu.c