diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/cpu.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 2e1789001df..9a028bdebb0 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -176,11 +176,13 @@ IS_OMAP_CLASS(15xx, 0x15) | |||
176 | IS_OMAP_CLASS(16xx, 0x16) | 176 | IS_OMAP_CLASS(16xx, 0x16) |
177 | IS_OMAP_CLASS(24xx, 0x24) | 177 | IS_OMAP_CLASS(24xx, 0x24) |
178 | IS_OMAP_CLASS(34xx, 0x34) | 178 | IS_OMAP_CLASS(34xx, 0x34) |
179 | IS_OMAP_CLASS(44xx, 0x44) | ||
179 | 180 | ||
180 | IS_OMAP_SUBCLASS(242x, 0x242) | 181 | IS_OMAP_SUBCLASS(242x, 0x242) |
181 | IS_OMAP_SUBCLASS(243x, 0x243) | 182 | IS_OMAP_SUBCLASS(243x, 0x243) |
182 | IS_OMAP_SUBCLASS(343x, 0x343) | 183 | IS_OMAP_SUBCLASS(343x, 0x343) |
183 | IS_OMAP_SUBCLASS(363x, 0x363) | 184 | IS_OMAP_SUBCLASS(363x, 0x363) |
185 | IS_OMAP_SUBCLASS(443x, 0x443) | ||
184 | 186 | ||
185 | #define cpu_is_omap7xx() 0 | 187 | #define cpu_is_omap7xx() 0 |
186 | #define cpu_is_omap15xx() 0 | 188 | #define cpu_is_omap15xx() 0 |
@@ -393,11 +395,11 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
393 | (!omap3_has_iva()) && \ | 395 | (!omap3_has_iva()) && \ |
394 | (!omap3_has_sgx())) | 396 | (!omap3_has_sgx())) |
395 | # define cpu_is_omap3515() (cpu_is_omap3430() && \ | 397 | # define cpu_is_omap3515() (cpu_is_omap3430() && \ |
396 | (omap3_has_iva()) && \ | 398 | (!omap3_has_iva()) && \ |
397 | (!omap3_has_sgx())) | 399 | (omap3_has_sgx())) |
398 | # define cpu_is_omap3525() (cpu_is_omap3430() && \ | 400 | # define cpu_is_omap3525() (cpu_is_omap3430() && \ |
399 | (omap3_has_sgx()) && \ | 401 | (!omap3_has_sgx()) && \ |
400 | (!omap3_has_iva())) | 402 | (omap3_has_iva())) |
401 | # define cpu_is_omap3530() (cpu_is_omap3430()) | 403 | # define cpu_is_omap3530() (cpu_is_omap3430()) |
402 | # define cpu_is_omap3505() is_omap3505() | 404 | # define cpu_is_omap3505() is_omap3505() |
403 | # define cpu_is_omap3517() is_omap3517() | 405 | # define cpu_is_omap3517() is_omap3517() |
@@ -408,8 +410,8 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
408 | # if defined(CONFIG_ARCH_OMAP4) | 410 | # if defined(CONFIG_ARCH_OMAP4) |
409 | # undef cpu_is_omap44xx | 411 | # undef cpu_is_omap44xx |
410 | # undef cpu_is_omap443x | 412 | # undef cpu_is_omap443x |
411 | # define cpu_is_omap44xx() 1 | 413 | # define cpu_is_omap44xx() is_omap44xx() |
412 | # define cpu_is_omap443x() 1 | 414 | # define cpu_is_omap443x() is_omap443x() |
413 | # endif | 415 | # endif |
414 | 416 | ||
415 | /* Macros to detect if we have OMAP1 or OMAP2 */ | 417 | /* Macros to detect if we have OMAP1 or OMAP2 */ |
@@ -436,14 +438,15 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
436 | #define OMAP3630_REV_ES1_0 0x36300034 | 438 | #define OMAP3630_REV_ES1_0 0x36300034 |
437 | 439 | ||
438 | #define OMAP35XX_CLASS 0x35000034 | 440 | #define OMAP35XX_CLASS 0x35000034 |
439 | #define OMAP3503_REV(v) (OMAP35XX_CLASS | (0x3503 << 16) | (v << 12)) | 441 | #define OMAP3503_REV(v) (OMAP35XX_CLASS | (0x3503 << 16) | (v << 8)) |
440 | #define OMAP3515_REV(v) (OMAP35XX_CLASS | (0x3515 << 16) | (v << 12)) | 442 | #define OMAP3515_REV(v) (OMAP35XX_CLASS | (0x3515 << 16) | (v << 8)) |
441 | #define OMAP3525_REV(v) (OMAP35XX_CLASS | (0x3525 << 16) | (v << 12)) | 443 | #define OMAP3525_REV(v) (OMAP35XX_CLASS | (0x3525 << 16) | (v << 8)) |
442 | #define OMAP3530_REV(v) (OMAP35XX_CLASS | (0x3530 << 16) | (v << 12)) | 444 | #define OMAP3530_REV(v) (OMAP35XX_CLASS | (0x3530 << 16) | (v << 8)) |
443 | #define OMAP3505_REV(v) (OMAP35XX_CLASS | (0x3505 << 16) | (v << 12)) | 445 | #define OMAP3505_REV(v) (OMAP35XX_CLASS | (0x3505 << 16) | (v << 8)) |
444 | #define OMAP3517_REV(v) (OMAP35XX_CLASS | (0x3517 << 16) | (v << 12)) | 446 | #define OMAP3517_REV(v) (OMAP35XX_CLASS | (0x3517 << 16) | (v << 8)) |
445 | 447 | ||
446 | #define OMAP443X_CLASS 0x44300034 | 448 | #define OMAP443X_CLASS 0x44300044 |
449 | #define OMAP4430_REV_ES1_0 0x44300044 | ||
447 | 450 | ||
448 | /* | 451 | /* |
449 | * omap_chip bits | 452 | * omap_chip bits |