Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149235
b: refs/heads/master
c: 1deb507
h: refs/heads/master
i:
  149233: bf2078d
  149231: ba8166d
v: v3
  • Loading branch information
Ben Dooks committed May 7, 2009
1 parent 7cb6c16 commit c08421b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0abfe9aab1867abd96b44a425ad27ce021891e4f
refs/heads/master: 1deb507dc7612e6c81b7953e827d1c859c1d8c0b
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-s3c/include/plat/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ extern struct sysdev_class s3c2440_sysclass;
extern struct sysdev_class s3c2442_sysclass;
extern struct sysdev_class s3c2443_sysclass;
extern struct sysdev_class s3c6410_sysclass;
extern struct sysdev_class s3c64xx_sysclass;

19 changes: 19 additions & 0 deletions trunk/arch/arm/plat-s3c64xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/sysdev.h>
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/io.h>
Expand Down Expand Up @@ -104,6 +105,16 @@ static struct map_desc s3c_iodesc[] __initdata = {
},
};


struct sysdev_class s3c64xx_sysclass = {
.name = "s3c64xx-core",
};

static struct sys_device s3c64xx_sysdev = {
.cls = &s3c64xx_sysclass,
};


/* read cpu identification code */

void __init s3c64xx_init_io(struct map_desc *mach_desc, int size)
Expand All @@ -117,3 +128,11 @@ void __init s3c64xx_init_io(struct map_desc *mach_desc, int size)
idcode = __raw_readl(S3C_VA_SYS + 0x118);
s3c_init_cpu(idcode, cpu_ids, ARRAY_SIZE(cpu_ids));
}

static __init int s3c64xx_sysdev_init(void)
{
sysdev_class_register(&s3c64xx_sysclass);
return sysdev_register(&s3c64xx_sysdev);
}

core_initcall(s3c64xx_sysdev_init);

0 comments on commit c08421b

Please sign in to comment.