diff options
author | Kevin Hilman <khilman@ti.com> | 2012-04-30 19:37:10 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-05-10 12:39:42 -0400 |
commit | 68a88b9887d7f22645f99f2712fa8c450be374b5 (patch) | |
tree | e4427fe28eaa30aa6ff923cf94bb21f6b1b38ec5 /arch/arm/plat-omap/include/plat/cpu.h | |
parent | 3410773013432aced860f6f12def4fe9da517167 (diff) |
ARM: OMAP: AM35xx: convert 3517 detection/flags to AM35xx
Currently cpu_is_omap3517() actually detects any device in the AM35x
family (3517 and no-SGX version 3505.) To make it more clear what is
being detected, convert the names from 3517 to AM35xx.
This adds a new soc_is_am35xx() which duplicates the cpu_is_omap3517().
In order to avoid cross-tree dependencies with clock-tree changes,
cpu_is_omap3517() is left until the clock changes are merged,
at which point cpu_is_omap3517() will be completely removed.
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
Tested-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
[tony@atomide.com: change to use soc_is_omap instead]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/cpu.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index dc6a86bf2172..bf90212cc9c7 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -121,6 +121,7 @@ IS_OMAP_CLASS(16xx, 0x16) | |||
121 | IS_OMAP_CLASS(24xx, 0x24) | 121 | IS_OMAP_CLASS(24xx, 0x24) |
122 | IS_OMAP_CLASS(34xx, 0x34) | 122 | IS_OMAP_CLASS(34xx, 0x34) |
123 | IS_OMAP_CLASS(44xx, 0x44) | 123 | IS_OMAP_CLASS(44xx, 0x44) |
124 | IS_AM_CLASS(35xx, 0x35) | ||
124 | IS_AM_CLASS(33xx, 0x33) | 125 | IS_AM_CLASS(33xx, 0x33) |
125 | 126 | ||
126 | IS_TI_CLASS(81xx, 0x81) | 127 | IS_TI_CLASS(81xx, 0x81) |
@@ -148,6 +149,7 @@ IS_AM_SUBCLASS(335x, 0x335) | |||
148 | #define cpu_is_ti81xx() 0 | 149 | #define cpu_is_ti81xx() 0 |
149 | #define cpu_is_ti816x() 0 | 150 | #define cpu_is_ti816x() 0 |
150 | #define cpu_is_ti814x() 0 | 151 | #define cpu_is_ti814x() 0 |
152 | #define soc_is_am35xx() 0 | ||
151 | #define cpu_is_am33xx() 0 | 153 | #define cpu_is_am33xx() 0 |
152 | #define cpu_is_am335x() 0 | 154 | #define cpu_is_am335x() 0 |
153 | #define cpu_is_omap44xx() 0 | 155 | #define cpu_is_omap44xx() 0 |
@@ -357,6 +359,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
357 | # undef cpu_is_ti81xx | 359 | # undef cpu_is_ti81xx |
358 | # undef cpu_is_ti816x | 360 | # undef cpu_is_ti816x |
359 | # undef cpu_is_ti814x | 361 | # undef cpu_is_ti814x |
362 | # undef soc_is_am35xx | ||
360 | # undef cpu_is_am33xx | 363 | # undef cpu_is_am33xx |
361 | # undef cpu_is_am335x | 364 | # undef cpu_is_am335x |
362 | # define cpu_is_omap3430() is_omap3430() | 365 | # define cpu_is_omap3430() is_omap3430() |
@@ -378,6 +381,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
378 | # define cpu_is_ti81xx() is_ti81xx() | 381 | # define cpu_is_ti81xx() is_ti81xx() |
379 | # define cpu_is_ti816x() is_ti816x() | 382 | # define cpu_is_ti816x() is_ti816x() |
380 | # define cpu_is_ti814x() is_ti814x() | 383 | # define cpu_is_ti814x() is_ti814x() |
384 | # define soc_is_am35xx() is_am35xx() | ||
381 | # define cpu_is_am33xx() is_am33xx() | 385 | # define cpu_is_am33xx() is_am33xx() |
382 | # define cpu_is_am335x() is_am335x() | 386 | # define cpu_is_am335x() is_am335x() |
383 | #endif | 387 | #endif |
@@ -433,6 +437,10 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
433 | #define TI8148_REV_ES2_0 (TI814X_CLASS | (0x1 << 8)) | 437 | #define TI8148_REV_ES2_0 (TI814X_CLASS | (0x1 << 8)) |
434 | #define TI8148_REV_ES2_1 (TI814X_CLASS | (0x2 << 8)) | 438 | #define TI8148_REV_ES2_1 (TI814X_CLASS | (0x2 << 8)) |
435 | 439 | ||
440 | #define AM35XX_CLASS 0x35170034 | ||
441 | #define AM35XX_REV_ES1_0 AM35XX_CLASS | ||
442 | #define AM35XX_REV_ES1_1 (AM35XX_CLASS | (0x1 << 8)) | ||
443 | |||
436 | #define AM335X_CLASS 0x33500034 | 444 | #define AM335X_CLASS 0x33500034 |
437 | #define AM335X_REV_ES1_0 AM335X_CLASS | 445 | #define AM335X_REV_ES1_0 AM335X_CLASS |
438 | 446 | ||