[ARM] S3C6410: Initial CPU support code
Initial support for the Samsung S3C6410 SoC. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
parent
beda30f6a9
commit
d626aeedc9
|
@ -123,7 +123,7 @@ endif
|
||||||
machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2442 s3c2443
|
machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2442 s3c2443
|
||||||
machine-$(CONFIG_ARCH_S3C24A0) := s3c24a0
|
machine-$(CONFIG_ARCH_S3C24A0) := s3c24a0
|
||||||
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c
|
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c
|
||||||
machine-$(CONFIG_ARCH_S3C64XX) := s3c6400
|
machine-$(CONFIG_ARCH_S3C64XX) := s3c6400 s3c6410
|
||||||
plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c
|
plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c
|
||||||
machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x
|
machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x
|
||||||
machine-$(CONFIG_ARCH_VERSATILE) := versatile
|
machine-$(CONFIG_ARCH_VERSATILE) := versatile
|
||||||
|
|
|
@ -6,3 +6,9 @@
|
||||||
# Licensed under GPLv2
|
# Licensed under GPLv2
|
||||||
|
|
||||||
# Configuration options for the S3C6410 CPU
|
# Configuration options for the S3C6410 CPU
|
||||||
|
|
||||||
|
config CPU_S3C6410
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Enable S3C6410 CPU support
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
# arch/arm/plat-s3c6410/Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2008 Openmoko, Inc.
|
||||||
|
# Copyright 2008 Simtec Electronics
|
||||||
|
#
|
||||||
|
# Licensed under GPLv2
|
||||||
|
|
||||||
|
obj-y :=
|
||||||
|
obj-m :=
|
||||||
|
obj-n :=
|
||||||
|
obj- :=
|
||||||
|
|
||||||
|
# Core support for S3C6410 system
|
||||||
|
|
||||||
|
obj-$(CONFIG_CPU_S3C6410) += cpu.o
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
/* linux/arch/arm/mach-s3c6410/cpu.c
|
||||||
|
*
|
||||||
|
* Copyright 2008 Simtec Electronics
|
||||||
|
* Copyright 2008 Simtec Electronics
|
||||||
|
* Ben Dooks <ben@simtec.co.uk>
|
||||||
|
* http://armlinux.simtec.co.uk/
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/list.h>
|
||||||
|
#include <linux/timer.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/clk.h>
|
||||||
|
#include <linux/io.h>
|
||||||
|
#include <linux/sysdev.h>
|
||||||
|
#include <linux/serial_core.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <mach/hardware.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
||||||
|
#include <plat/cpu-freq.h>
|
||||||
|
#include <plat/regs-serial.h>
|
||||||
|
|
||||||
|
#include <plat/cpu.h>
|
||||||
|
#include <plat/devs.h>
|
||||||
|
#include <plat/clock.h>
|
||||||
|
#include <plat/s3c6410.h>
|
||||||
|
|
||||||
|
/* Initial IO mappings */
|
||||||
|
|
||||||
|
static struct map_desc s3c6410_iodesc[] __initdata = {
|
||||||
|
};
|
||||||
|
|
||||||
|
/* s3c6410_map_io
|
||||||
|
*
|
||||||
|
* register the standard cpu IO areas
|
||||||
|
*/
|
||||||
|
|
||||||
|
void __init s3c6410_map_io(void)
|
||||||
|
{
|
||||||
|
iotable_init(s3c6410_iodesc, ARRAY_SIZE(s3c6410_iodesc));
|
||||||
|
}
|
||||||
|
|
||||||
|
void __init s3c6410_init_clocks(int xtal)
|
||||||
|
{
|
||||||
|
printk(KERN_INFO "%s: initialising clocks\n", __func__);
|
||||||
|
s3c24xx_register_baseclocks(xtal);
|
||||||
|
}
|
||||||
|
|
||||||
|
struct sysdev_class s3c6410_sysclass = {
|
||||||
|
.name = "s3c6410-core",
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct sys_device s3c6410_sysdev = {
|
||||||
|
.cls = &s3c6410_sysclass,
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init s3c6410_core_init(void)
|
||||||
|
{
|
||||||
|
return sysdev_class_register(&s3c6410_sysclass);
|
||||||
|
}
|
||||||
|
|
||||||
|
core_initcall(s3c6410_core_init);
|
||||||
|
|
||||||
|
int __init s3c6410_init(void)
|
||||||
|
{
|
||||||
|
printk("S3C6410: Initialising architecture\n");
|
||||||
|
|
||||||
|
return sysdev_register(&s3c6410_sysdev);
|
||||||
|
}
|
Loading…
Reference in New Issue