aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c24xx
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:10:02 +0000
committerAndy Green <andy@openmoko.com>2008-11-19 17:10:02 +0000
commit6766f89d034d8e371159119e6f803147b709ce1a (patch)
tree46fad15ff1b93f5727dc01ef34928dac997f2c54 /arch/arm/plat-s3c24xx
parent05d5412711936b6ae9c9bf12e8980853bd9ab6c2 (diff)
tracking-2.6.27-rc1-s3c_lookup_cpu-mismatch.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r--arch/arm/plat-s3c24xx/cpu.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c
index c340cb43f18..8d8cb268740 100644
--- a/arch/arm/plat-s3c24xx/cpu.c
+++ b/arch/arm/plat-s3c24xx/cpu.c
@@ -170,6 +170,24 @@ static struct map_desc s3c_iodesc[] __initdata = {
};
/* read cpu identificaiton code */
+static struct cpu_table * __init
+s3c_lookup_cpu(unsigned long idcode)
+{
+ struct cpu_table *tab;
+ int count;
+
+ tab = cpu_ids;
+ for (count = 0; count < ARRAY_SIZE(cpu_ids); count++, tab++) {
+ if ((idcode & tab->idmask) == tab->idcode)
+ return tab;
+ }
+
+ return NULL;
+}
+
+/* cpu information */
+
+static struct cpu_table *cpu;
static unsigned long s3c24xx_read_idcode_v5(void)
{