diff options
author | Andy Green <andy@openmoko.com> | 2009-03-09 21:02:16 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-09 21:02:16 +0000 |
commit | 84ca90e51953ac15f10b430dfe422896d69c4867 (patch) | |
tree | 565a010782c50f0e5d86eb340602e03b4044c7e6 /arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | |
parent | 5cdd4f17f1375a228c4b33e57912ccc057395f68 (diff) |
fix-s3c-cpu-detect-make-compatible-atag16.patch
The current version of CPU detection patch from Mark Brown and
Kyungmin Park takes a dump on system_rev. This patch changes it
to retain the low 16 of system_rev from the bootloader ATAG, and
adds access #defines and changes to use them.
No doubt they'll issue a better version of the CPU detection
patch and then this can be reverted.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx/neo1973_pm_gsm.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c index 63591cdff6f..fbd9f0eece3 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c @@ -27,6 +27,7 @@ #include <mach/s3c24xx-serial.h> #include <mach/hardware.h> +#include <mach/cpu.h> /* For GTA02 */ #include <mach/gta02.h> @@ -281,7 +282,7 @@ static struct attribute_group gta01_gsm_attr_group = { static int __init gta01_gsm_probe(struct platform_device *pdev) { - switch (system_rev) { + switch (S3C_SYSTEM_REV_ATAG) { case GTA01v3_SYSTEM_REV: gta01_gsm.gpio_ngsm_en = GTA01v3_GPIO_nGSM_EN; break; @@ -309,7 +310,7 @@ static int __init gta01_gsm_probe(struct platform_device *pdev) break; } - switch (system_rev) { + switch (S3C_SYSTEM_REV_ATAG) { case GTA01v4_SYSTEM_REV: case GTA01Bv2_SYSTEM_REV: gta01_gsm_sysfs_entries[ARRAY_SIZE(gta01_gsm_sysfs_entries)-2] = |