aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/id.c
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2009-11-22 13:10:56 -0500
committerTony Lindgren <tony@atomide.com>2009-11-22 13:24:32 -0500
commit2456a10fb3a9b8c9e970b05e6c1370201675da0a (patch)
tree5e213b07b95f0e4a627a29346a6dd0aecce8b78e /arch/arm/mach-omap2/id.c
parent048f4bd7607eb714d4831f90dea6fd27eac9e494 (diff)
omap3: Introduce OMAP3630
OMAP3630 is the latest in the family of OMAP3 devices and among the changes it introduces are: New OPP levels for new voltage and frequency levels. a bunch of Bug fixes to various modules feature additions, notably with ISP, sDMA etc. Details about the chip is available here: http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12836&contentId=52606 Strategy used: Strategy to introduce this device into Linux was discussed here: Ref: http://marc.info/?t=125343303400003&r=1&w=2 Two approaches were available: a) Consider 3630 generation of devices as a new family of silicon b) Consider 3630 as an offshoot of 3430 family of devices As a common consensus, (b) seems to be more valid for 3630 as: * There are changes which are easily handled by using "FEATURES" infrastructure. For details how to do this, see thread: http://marc.info/?t=125050998500001&r=1&w=2 * Most of existing 34xx infrastructure can be reused(almost 90%+) - so no ugly if (cpu_is_omap34xx() || cpu_is_omap36xx()) all over the place - lesser chance of bugs due to reuse of proven code flow - 36xx specific handling can still be done where required within the existing infrastructure NOTE: * If additional 34xx series are added, OMAP3430_REV_ESXXXX can be added on top of the existing 3630 ones are renumbered This patch was tested on SDP3430, boot tested on 3630 platform using 3430sdp defconfig Signed-off-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> Cc: Allen Pais <allen.pais@ti.com> Cc: Anand Gadiyar <gadiyar@ti.com> Cc: Benoit Cousson <b-cousson@ti.com> Cc: Felipe Balbi <felipe.balbi@nokia.com> Cc: Kevin Hilman <khilman@deeprootsystems.com> Cc: Sanjeev Premi <premi@ti.com> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Sergio Alberto Aguirre Rodriguez <saaguirre@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/id.c')
-rw-r--r--arch/arm/mach-omap2/id.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 88999eaf91b6..1c1511220890 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -209,7 +209,9 @@ void __init omap3_check_revision(void)
209 hawkeye = (idcode >> 12) & 0xffff; 209 hawkeye = (idcode >> 12) & 0xffff;
210 rev = (idcode >> 28) & 0xff; 210 rev = (idcode >> 28) & 0xff;
211 211
212 if (hawkeye == 0xb7ae) { 212 switch (hawkeye) {
213 case 0xb7ae:
214 /* Handle 34xx/35xx devices */
213 switch (rev) { 215 switch (rev) {
214 case 0: /* Take care of early samples */ 216 case 0: /* Take care of early samples */
215 case 1: 217 case 1:
@@ -228,6 +230,21 @@ void __init omap3_check_revision(void)
228 /* Use the latest known revision as default */ 230 /* Use the latest known revision as default */
229 omap_revision = OMAP3430_REV_ES3_1; 231 omap_revision = OMAP3430_REV_ES3_1;
230 } 232 }
233 break;
234 case 0xb891:
235 /* Handle 36xx devices */
236 switch (rev) {
237 case 0:
238 omap_revision = OMAP3630_REV_ES1_0;
239 break;
240 default:
241 /* Use the latest known revision as default */
242 omap_revision = OMAP3630_REV_ES1_0;
243 }
244 break;
245 default:
246 /* Unknown default to latest silicon rev as default*/
247 omap_revision = OMAP3630_REV_ES1_0;
231 } 248 }
232} 249}
233 250
@@ -249,9 +266,10 @@ void __init omap3_cpuinfo(void)
249 * on available features. Upon detection, update the CPU id 266 * on available features. Upon detection, update the CPU id
250 * and CPU class bits. 267 * and CPU class bits.
251 */ 268 */
252 if (omap3_has_iva() && omap3_has_sgx()) { 269 if (cpu_is_omap3630())
270 strcpy(cpu_name, "3630");
271 else if (omap3_has_iva() && omap3_has_sgx())
253 strcpy(cpu_name, "3430/3530"); 272 strcpy(cpu_name, "3430/3530");
254 }
255 else if (omap3_has_sgx()) { 273 else if (omap3_has_sgx()) {
256 omap_revision = OMAP3525_REV(rev); 274 omap_revision = OMAP3525_REV(rev);
257 strcpy(cpu_name, "3525"); 275 strcpy(cpu_name, "3525");