davinci: Support various speedgrades for MityDSP-L138 and MityARM-1808 SoMs
authorMichael Williamson <michael.williamson@criticallink.com>
Tue, 4 Jan 2011 12:50:23 +0000 (07:50 -0500)
committerKevin Hilman <khilman@ti.com>
Mon, 28 Feb 2011 22:53:28 +0000 (14:53 -0800)
commit6619490a7f8c3e38406bfc03c755367fec21372d
tree4912e6cb97b0e405b8ab5991e03c507b962522e0
parentcbb691fb89ae01fde4ccce3b7351a0fa9fe1a47b
davinci: Support various speedgrades for MityDSP-L138 and MityARM-1808 SoMs

For the MityDSP-L138/MityARM-1808 SoMs, the speed grade can be determined
from the part number string read from the factory configuration block on
the on-board I2C PROM.  Configure the maximum CPU speed based on this
information.

This patch was tested using a MityDSP-L138 and MityARM-1808 at various
speedgrades.  Also, for code coverage, a bogus configuration was tested
as well as a configuration having an unknown part number.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Tested-by: Michael Williamson <michael.williamson@criticallink.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-davinci/board-mityomapl138.c