diff options
author | Changhwan Youn <chaos.youn@samsung.com> | 2010-07-15 23:15:38 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-05 05:32:42 -0400 |
commit | cc0e72b87a4afb520fab09b67e1c16e4ec4aaadb (patch) | |
tree | e105572441c714d86c84d611f375dd1c32f372c6 /arch | |
parent | cfca3a619baeaba3a0037fef5da48108e9c0bb1c (diff) |
ARM: S5PV310: Add new Kconfig and Makefiles
This patch adds the Kconfig and Makefile for the new S5PV310 SoC.
It also updates arch/arm Kconfig, Makefile and arch/arm/mm/Kconfig
to include support for the new S5PV310.
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/Kconfig | 24 | ||||
-rw-r--r-- | arch/arm/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/Kconfig | 26 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/Makefile | 20 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/Makefile.boot | 2 | ||||
-rw-r--r-- | arch/arm/mm/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/plat-s5p/Kconfig | 5 |
7 files changed, 73 insertions, 8 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 98922f7d2d12..3e68a93ce71f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -704,6 +704,15 @@ config ARCH_S5PV210 | |||
704 | help | 704 | help |
705 | Samsung S5PV210/S5PC110 series based systems | 705 | Samsung S5PV210/S5PC110 series based systems |
706 | 706 | ||
707 | config ARCH_S5PV310 | ||
708 | bool "Samsung S5PV310/S5PC210" | ||
709 | select CPU_V7 | ||
710 | select GENERIC_GPIO | ||
711 | select HAVE_CLK | ||
712 | select GENERIC_CLOCKEVENTS | ||
713 | help | ||
714 | Samsung S5PV310 series based systems | ||
715 | |||
707 | config ARCH_SHARK | 716 | config ARCH_SHARK |
708 | bool "Shark" | 717 | bool "Shark" |
709 | select CPU_SA110 | 718 | select CPU_SA110 |
@@ -904,6 +913,8 @@ source "arch/arm/mach-s5pc100/Kconfig" | |||
904 | 913 | ||
905 | source "arch/arm/mach-s5pv210/Kconfig" | 914 | source "arch/arm/mach-s5pv210/Kconfig" |
906 | 915 | ||
916 | source "arch/arm/mach-s5pv310/Kconfig" | ||
917 | |||
907 | source "arch/arm/mach-shmobile/Kconfig" | 918 | source "arch/arm/mach-shmobile/Kconfig" |
908 | 919 | ||
909 | source "arch/arm/plat-stmp3xxx/Kconfig" | 920 | source "arch/arm/plat-stmp3xxx/Kconfig" |
@@ -1100,10 +1111,11 @@ config SMP | |||
1100 | bool "Symmetric Multi-Processing (EXPERIMENTAL)" | 1111 | bool "Symmetric Multi-Processing (EXPERIMENTAL)" |
1101 | depends on EXPERIMENTAL && (REALVIEW_EB_ARM11MP || REALVIEW_EB_A9MP ||\ | 1112 | depends on EXPERIMENTAL && (REALVIEW_EB_ARM11MP || REALVIEW_EB_A9MP ||\ |
1102 | MACH_REALVIEW_PB11MP || MACH_REALVIEW_PBX || ARCH_OMAP4 ||\ | 1113 | MACH_REALVIEW_PB11MP || MACH_REALVIEW_PBX || ARCH_OMAP4 ||\ |
1103 | ARCH_U8500 || ARCH_VEXPRESS_CA9X4) | 1114 | ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_S5PV310) |
1104 | depends on GENERIC_CLOCKEVENTS | 1115 | depends on GENERIC_CLOCKEVENTS |
1105 | select USE_GENERIC_SMP_HELPERS | 1116 | select USE_GENERIC_SMP_HELPERS |
1106 | select HAVE_ARM_SCU if (ARCH_REALVIEW || ARCH_OMAP4 || ARCH_U8500 || ARCH_VEXPRESS_CA9X4) | 1117 | select HAVE_ARM_SCU if (ARCH_REALVIEW || ARCH_OMAP4 || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 ||\ |
1118 | ARCH_S5PV310) | ||
1107 | help | 1119 | help |
1108 | This enables support for systems with more than one CPU. If you have | 1120 | This enables support for systems with more than one CPU. If you have |
1109 | a system with only one CPU, like most personal computers, say N. If | 1121 | a system with only one CPU, like most personal computers, say N. If |
@@ -1172,9 +1184,10 @@ config HOTPLUG_CPU | |||
1172 | config LOCAL_TIMERS | 1184 | config LOCAL_TIMERS |
1173 | bool "Use local timer interrupts" | 1185 | bool "Use local timer interrupts" |
1174 | depends on SMP && (REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || \ | 1186 | depends on SMP && (REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || \ |
1175 | REALVIEW_EB_A9MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || ARCH_U8500) | 1187 | REALVIEW_EB_A9MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || \ |
1188 | ARCH_U8500 || ARCH_S5PV310) | ||
1176 | default y | 1189 | default y |
1177 | select HAVE_ARM_TWD if (ARCH_REALVIEW || ARCH_OMAP4 || ARCH_U8500) | 1190 | select HAVE_ARM_TWD if (ARCH_REALVIEW || ARCH_OMAP4 || ARCH_U8500 || ARCH_S5PV310) |
1178 | help | 1191 | help |
1179 | Enable support for local timers on SMP platforms, rather then the | 1192 | Enable support for local timers on SMP platforms, rather then the |
1180 | legacy IPI broadcast method. Local timers allows the system | 1193 | legacy IPI broadcast method. Local timers allows the system |
@@ -1186,7 +1199,8 @@ source kernel/Kconfig.preempt | |||
1186 | config HZ | 1199 | config HZ |
1187 | int | 1200 | int |
1188 | default 128 if ARCH_L7200 | 1201 | default 128 if ARCH_L7200 |
1189 | default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P6440 || ARCH_S5P6442 || ARCH_S5PV210 | 1202 | default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P6440 || ARCH_S5P6442 || \ |
1203 | ARCH_S5PV210 || ARCH_S5PV310 | ||
1190 | default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER | 1204 | default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER |
1191 | default AT91_TIMER_HZ if ARCH_AT91 | 1205 | default AT91_TIMER_HZ if ARCH_AT91 |
1192 | default 100 | 1206 | default 100 |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 64ba313724d2..d80c9f98d1bf 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -170,6 +170,7 @@ machine-$(CONFIG_ARCH_S5P6440) := s5p6440 | |||
170 | machine-$(CONFIG_ARCH_S5P6442) := s5p6442 | 170 | machine-$(CONFIG_ARCH_S5P6442) := s5p6442 |
171 | machine-$(CONFIG_ARCH_S5PC100) := s5pc100 | 171 | machine-$(CONFIG_ARCH_S5PC100) := s5pc100 |
172 | machine-$(CONFIG_ARCH_S5PV210) := s5pv210 | 172 | machine-$(CONFIG_ARCH_S5PV210) := s5pv210 |
173 | machine-$(CONFIG_ARCH_S5PV310) := s5pv310 | ||
173 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 174 | machine-$(CONFIG_ARCH_SA1100) := sa1100 |
174 | machine-$(CONFIG_ARCH_SHARK) := shark | 175 | machine-$(CONFIG_ARCH_SHARK) := shark |
175 | machine-$(CONFIG_ARCH_SHMOBILE) := shmobile | 176 | machine-$(CONFIG_ARCH_SHMOBILE) := shmobile |
diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig new file mode 100644 index 000000000000..24ef3cd5b4bc --- /dev/null +++ b/arch/arm/mach-s5pv310/Kconfig | |||
@@ -0,0 +1,26 @@ | |||
1 | # arch/arm/mach-s5pv310/Kconfig | ||
2 | # | ||
3 | # Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | # http://www.samsung.com/ | ||
5 | # | ||
6 | # Licensed under GPLv2 | ||
7 | |||
8 | # Configuration options for the S5PV310 | ||
9 | |||
10 | if ARCH_S5PV310 | ||
11 | |||
12 | config CPU_S5PV310 | ||
13 | bool | ||
14 | select PLAT_S5P | ||
15 | help | ||
16 | Enable S5PV310 CPU support | ||
17 | |||
18 | # machine support | ||
19 | |||
20 | config MACH_SMDKV310 | ||
21 | bool "SMDKV310" | ||
22 | select CPU_S5PV310 | ||
23 | select ARCH_SPARSEMEM_ENABLE | ||
24 | help | ||
25 | Machine support for Samsung SMDKV310 | ||
26 | endif | ||
diff --git a/arch/arm/mach-s5pv310/Makefile b/arch/arm/mach-s5pv310/Makefile new file mode 100644 index 000000000000..1b263a5b0f5f --- /dev/null +++ b/arch/arm/mach-s5pv310/Makefile | |||
@@ -0,0 +1,20 @@ | |||
1 | # arch/arm/mach-s5pv310/Makefile | ||
2 | # | ||
3 | # Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | # http://www.samsung.com/ | ||
5 | # | ||
6 | # Licensed under GPLv2 | ||
7 | |||
8 | obj-y := | ||
9 | obj-m := | ||
10 | obj-n := | ||
11 | obj- := | ||
12 | |||
13 | # Core support for S5PV310 system | ||
14 | |||
15 | obj-$(CONFIG_CPU_S5PV310) += cpu.o init.o clock.o irq-combiner.o | ||
16 | obj-$(CONFIG_CPU_S5PV310) += setup-i2c0.o time.o | ||
17 | |||
18 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o | ||
19 | obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o | ||
20 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | ||
diff --git a/arch/arm/mach-s5pv310/Makefile.boot b/arch/arm/mach-s5pv310/Makefile.boot new file mode 100644 index 000000000000..d65956ffb43d --- /dev/null +++ b/arch/arm/mach-s5pv310/Makefile.boot | |||
@@ -0,0 +1,2 @@ | |||
1 | zreladdr-y := 0x40008000 | ||
2 | params_phys-y := 0x40000100 | ||
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 101105e52610..9ca76bfe471c 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -782,7 +782,8 @@ config CACHE_L2X0 | |||
782 | bool "Enable the L2x0 outer cache controller" | 782 | bool "Enable the L2x0 outer cache controller" |
783 | depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ | 783 | depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ |
784 | REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \ | 784 | REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \ |
785 | ARCH_NOMADIK || ARCH_OMAP4 || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 | 785 | ARCH_NOMADIK || ARCH_OMAP4 || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || \ |
786 | ARCH_S5PV310 | ||
786 | default y | 787 | default y |
787 | select OUTER_CACHE | 788 | select OUTER_CACHE |
788 | select OUTER_CACHE_SYNC | 789 | select OUTER_CACHE_SYNC |
diff --git a/arch/arm/plat-s5p/Kconfig b/arch/arm/plat-s5p/Kconfig index 11d6a1bbd90d..907ac6312a1d 100644 --- a/arch/arm/plat-s5p/Kconfig +++ b/arch/arm/plat-s5p/Kconfig | |||
@@ -7,9 +7,10 @@ | |||
7 | 7 | ||
8 | config PLAT_S5P | 8 | config PLAT_S5P |
9 | bool | 9 | bool |
10 | depends on (ARCH_S5P6440 || ARCH_S5P6442 || ARCH_S5PC100 || ARCH_S5PV210) | 10 | depends on (ARCH_S5P6440 || ARCH_S5P6442 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_S5PV310) |
11 | default y | 11 | default y |
12 | select ARM_VIC | 12 | select ARM_VIC if !ARCH_S5PV310 |
13 | select ARM_GIC if ARCH_S5PV310 | ||
13 | select NO_IOPORT | 14 | select NO_IOPORT |
14 | select ARCH_REQUIRE_GPIOLIB | 15 | select ARCH_REQUIRE_GPIOLIB |
15 | select S3C_GPIO_TRACK | 16 | select S3C_GPIO_TRACK |