diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-02-05 22:45:25 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-23 09:52:51 -0500 |
commit | d41ad52040dee5043ce6b1d49a1c8864706d2bfd (patch) | |
tree | 90543a401c03b84d3a4e2cf36ce622cd625479a2 /arch/arm/plat-omap | |
parent | c0bf31320dea2cbcbab1f53ee15a8520f762409b (diff) |
[ARM] OMAP3: update ES level flags to discriminate between post-ES2 revisions
Some OMAP3 chip behaviors change in ES levels after ES2. Modify the
existing omap_chip flags to add options for ES3.0 and ES3.1.
Add a new macro, CHIP_GE_OMAP3430ES2, to cover ES levels from ES2
onwards - a common pattern for OMAP3 features. Update all current
users of the omap_chip macros to use this new macro.
Also add CHIP_GE_OMAP3430ES3_1 to cover the USBTLL SAR errata case
(described and fixed in the following patch)
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/mach/cpu.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h index a8e1178a9468..4166a970daa4 100644 --- a/arch/arm/plat-omap/include/mach/cpu.h +++ b/arch/arm/plat-omap/include/mach/cpu.h | |||
@@ -355,13 +355,27 @@ IS_OMAP_TYPE(3430, 0x3430) | |||
355 | * use omap_chip_is(). | 355 | * use omap_chip_is(). |
356 | * | 356 | * |
357 | */ | 357 | */ |
358 | #define CHIP_IS_OMAP2420 (1 << 0) | 358 | #define CHIP_IS_OMAP2420 (1 << 0) |
359 | #define CHIP_IS_OMAP2430 (1 << 1) | 359 | #define CHIP_IS_OMAP2430 (1 << 1) |
360 | #define CHIP_IS_OMAP3430 (1 << 2) | 360 | #define CHIP_IS_OMAP3430 (1 << 2) |
361 | #define CHIP_IS_OMAP3430ES1 (1 << 3) | 361 | #define CHIP_IS_OMAP3430ES1 (1 << 3) |
362 | #define CHIP_IS_OMAP3430ES2 (1 << 4) | 362 | #define CHIP_IS_OMAP3430ES2 (1 << 4) |
363 | #define CHIP_IS_OMAP3430ES3_0 (1 << 5) | ||
364 | #define CHIP_IS_OMAP3430ES3_1 (1 << 6) | ||
365 | |||
366 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) | ||
367 | |||
368 | /* | ||
369 | * "GE" here represents "greater than or equal to" in terms of ES | ||
370 | * levels. So CHIP_GE_OMAP3430ES2 is intended to match all OMAP3430 | ||
371 | * chips at ES2 and beyond, but not, for example, any OMAP lines after | ||
372 | * OMAP3. | ||
373 | */ | ||
374 | #define CHIP_GE_OMAP3430ES2 (CHIP_IS_OMAP3430ES2 | \ | ||
375 | CHIP_IS_OMAP3430ES3_0 | \ | ||
376 | CHIP_IS_OMAP3430ES3_1) | ||
377 | #define CHIP_GE_OMAP3430ES3_1 (CHIP_IS_OMAP3430ES3_1) | ||
363 | 378 | ||
364 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) | ||
365 | 379 | ||
366 | int omap_chip_is(struct omap_chip_id oci); | 380 | int omap_chip_is(struct omap_chip_id oci); |
367 | int omap_type(void); | 381 | int omap_type(void); |