ARM: S3C64XX: Redo voltage ranges for cpufreq
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Nov 2009 14:42:12 +0000 (14:42 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 1 Dec 2009 01:35:39 +0000 (01:35 +0000)
commite9c08f0d5737a988e735f7371bc0bffb343c485c
tree5f80c72a4a3611fda72c8a2e67ed93e7c319f601
parent43f1069ef9af9a0b1fa1a1d6b49b2b05e1efc998
ARM: S3C64XX: Redo voltage ranges for cpufreq

The documentation for the S3C6410 CPU voltage scaling is rather
unclear, with omitted values for several speed settings. Originally
the code was using only quoted values, resulting in some fairly odd
settings. The S3C6410 is also unusual in that the both the maximum
and minimum voltages quoted scale as the frequency rises, rather
than just the minimum voltage.

Clean this up a bit by always using the specified typical settings
as the minimum voltage (ignoring any specified minimum voltage) in
order to avoid running near the edge of the processor capabilities.
Also use the next quoted maximum voltages rather than the typical
voltages where no maximum voltage is quoted, allowing operation on
a greater range of systems.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/cpufreq.c