aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig2
-rw-r--r--arch/arm/Kconfig.debug2
-rw-r--r--arch/arm/mach-s5pc100/include/mach/io.h18
-rw-r--r--arch/arm/mach-s5pc100/include/mach/timex.h24
-rw-r--r--arch/arm/mach-s5pc100/include/mach/vmalloc.h17
-rw-r--r--arch/arm/plat-s3c/Kconfig85
-rw-r--r--arch/arm/plat-s3c24xx/Kconfig22
-rw-r--r--arch/arm/plat-s5p/Kconfig1
-rw-r--r--arch/arm/plat-samsung/Kconfig59
9 files changed, 142 insertions, 88 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9618dcfa66f3..5c691c658074 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -627,7 +627,7 @@ config ARCH_S3C2410
627 627
628config ARCH_S3C64XX 628config ARCH_S3C64XX
629 bool "Samsung S3C64XX" 629 bool "Samsung S3C64XX"
630 select PLAT_S3C 630 select PLAT_SAMSUNG
631 select CPU_V6 631 select CPU_V6
632 select GENERIC_GPIO 632 select GENERIC_GPIO
633 select ARM_VIC 633 select ARM_VIC
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 5cb9326df7a7..91344af75f39 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -117,7 +117,7 @@ config DEBUG_CLPS711X_UART2
117 cause the debug messages to appear on the first serial port. 117 cause the debug messages to appear on the first serial port.
118 118
119config DEBUG_S3C_UART 119config DEBUG_S3C_UART
120 depends on PLAT_S3C 120 depends on PLAT_SAMSUNG
121 int "S3C UART to use for low-level debug" 121 int "S3C UART to use for low-level debug"
122 default "0" 122 default "0"
123 help 123 help
diff --git a/arch/arm/mach-s5pc100/include/mach/io.h b/arch/arm/mach-s5pc100/include/mach/io.h
new file mode 100644
index 000000000000..819acf5eaf89
--- /dev/null
+++ b/arch/arm/mach-s5pc100/include/mach/io.h
@@ -0,0 +1,18 @@
1/* arch/arm/mach-s5pc100/include/mach/io.h
2 *
3 * Copyright 2008 Simtec Electronics
4 * Ben Dooks <ben-linux@fluff.org>
5 *
6 * Default IO routines for S5PC100 systems
7 */
8
9#ifndef __ASM_ARM_ARCH_IO_H
10#define __ASM_ARM_ARCH_IO_H
11
12/* No current ISA/PCI bus support. */
13#define __io(a) __typesafe_io(a)
14#define __mem_pci(a) (a)
15
16#define IO_SPACE_LIMIT (0xFFFFFFFF)
17
18#endif
diff --git a/arch/arm/mach-s5pc100/include/mach/timex.h b/arch/arm/mach-s5pc100/include/mach/timex.h
new file mode 100644
index 000000000000..47ffb17aff96
--- /dev/null
+++ b/arch/arm/mach-s5pc100/include/mach/timex.h
@@ -0,0 +1,24 @@
1/* arch/arm/mach-s5pc100/include/mach/timex.h
2 *
3 * Copyright (c) 2003-2005 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * S3C6400 - time parameters
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11*/
12
13#ifndef __ASM_ARCH_TIMEX_H
14#define __ASM_ARCH_TIMEX_H
15
16/* CLOCK_TICK_RATE needs to be evaluatable by the cpp, so making it
17 * a variable is useless. It seems as long as we make our timers an
18 * exact multiple of HZ, any value that makes a 1->1 correspondence
19 * for the time conversion functions to/from jiffies is acceptable.
20*/
21
22#define CLOCK_TICK_RATE 12000000
23
24#endif /* __ASM_ARCH_TIMEX_H */
diff --git a/arch/arm/mach-s5pc100/include/mach/vmalloc.h b/arch/arm/mach-s5pc100/include/mach/vmalloc.h
new file mode 100644
index 000000000000..61b95158a437
--- /dev/null
+++ b/arch/arm/mach-s5pc100/include/mach/vmalloc.h
@@ -0,0 +1,17 @@
1/* arch/arm/mach-s5pc100/include/mach/vmalloc.h
2 *
3 * Copyright 2010 Ben Dooks <ben-linux@fluff.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * S3C6400 vmalloc definition
10*/
11
12#ifndef __ASM_ARCH_VMALLOC_H
13#define __ASM_ARCH_VMALLOC_H
14
15#define VMALLOC_END (0xE0000000)
16
17#endif /* __ASM_ARCH_VMALLOC_H */
diff --git a/arch/arm/plat-s3c/Kconfig b/arch/arm/plat-s3c/Kconfig
index 2367908c4f62..6108ba9c2bee 100644
--- a/arch/arm/plat-s3c/Kconfig
+++ b/arch/arm/plat-s3c/Kconfig
@@ -9,88 +9,3 @@ config PLAT_S3C
9 select NO_IOPORT 9 select NO_IOPORT
10 help 10 help
11 Base platform code for any Samsung S3C device 11 Base platform code for any Samsung S3C device
12
13# low-level serial option nodes
14
15if PLAT_S3C
16
17config CPU_LLSERIAL_S3C2410_ONLY
18 bool
19 default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440
20
21config CPU_LLSERIAL_S3C2440_ONLY
22 bool
23 default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410
24
25config CPU_LLSERIAL_S3C2410
26 bool
27 help
28 Selected if there is an S3C2410 (or register compatible) serial
29 low-level implementation needed
30
31config CPU_LLSERIAL_S3C2440
32 bool
33 help
34 Selected if there is an S3C2440 (or register compatible) serial
35 low-level implementation needed
36
37# boot configurations
38
39comment "Boot options"
40
41config S3C_BOOT_WATCHDOG
42 bool "S3C Initialisation watchdog"
43 depends on S3C2410_WATCHDOG
44 help
45 Say y to enable the watchdog during the kernel decompression
46 stage. If the kernel fails to uncompress, then the watchdog
47 will trigger a reset and the system should restart.
48
49config S3C_BOOT_ERROR_RESET
50 bool "S3C Reboot on decompression error"
51 help
52 Say y here to use the watchdog to reset the system if the
53 kernel decompressor detects an error during decompression.
54
55config S3C_BOOT_UART_FORCE_FIFO
56 bool "Force UART FIFO on during boot process"
57 default y
58 help
59 Say Y here to force the UART FIFOs on during the kernel
60 uncompressor
61
62
63config S3C_LOWLEVEL_UART_PORT
64 int "S3C UART to use for low-level messages"
65 default 0
66 help
67 Choice of which UART port to use for the low-level messages,
68 such as the `Uncompressing...` at start time. The value of
69 this configuration should be between zero and two. The port
70 must have been initialised by the boot-loader before use.
71
72# options for gpiolib support
73
74config S3C_GPIO_SPACE
75 int "Space between gpio banks"
76 default 0
77 help
78 Add a number of spare GPIO entries between each bank for debugging
79 purposes. This allows any problems where an counter overflows from
80 one bank to another to be caught, at the expense of using a little
81 more memory.
82
83config S3C_GPIO_TRACK
84 bool
85 help
86 Internal configuration option to enable the s3c specific gpio
87 chip tracking if the platform requires it.
88
89# DMA
90
91config S3C_DMA
92 bool
93 help
94 Internal configuration for S3C DMA core
95
96endif
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig
index 0cc5760b668a..6e93ef8f3d43 100644
--- a/arch/arm/plat-s3c24xx/Kconfig
+++ b/arch/arm/plat-s3c24xx/Kconfig
@@ -14,6 +14,28 @@ config PLAT_S3C24XX
14 14
15if PLAT_S3C24XX 15if PLAT_S3C24XX
16 16
17# low-level serial option nodes
18
19config CPU_LLSERIAL_S3C2410_ONLY
20 bool
21 default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440
22
23config CPU_LLSERIAL_S3C2440_ONLY
24 bool
25 default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410
26
27config CPU_LLSERIAL_S3C2410
28 bool
29 help
30 Selected if there is an S3C2410 (or register compatible) serial
31 low-level implementation needed
32
33config CPU_LLSERIAL_S3C2440
34 bool
35 help
36 Selected if there is an S3C2440 (or register compatible) serial
37 low-level implementation needed
38
17# code that is shared between a number of the s3c24xx implementations 39# code that is shared between a number of the s3c24xx implementations
18 40
19config S3C2410_CLOCK 41config S3C2410_CLOCK
diff --git a/arch/arm/plat-s5p/Kconfig b/arch/arm/plat-s5p/Kconfig
index fca6dade9fd9..e5d1305764a3 100644
--- a/arch/arm/plat-s5p/Kconfig
+++ b/arch/arm/plat-s5p/Kconfig
@@ -9,7 +9,6 @@ config PLAT_S5P
9 bool 9 bool
10 depends on ARCH_S5P6440 10 depends on ARCH_S5P6440
11 default y 11 default y
12 select PLAT_S3C
13 select ARM_VIC 12 select ARM_VIC
14 select NO_IOPORT 13 select NO_IOPORT
15 select ARCH_REQUIRE_GPIOLIB 14 select ARCH_REQUIRE_GPIOLIB
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 72da6461db12..93bd89385f59 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -13,6 +13,43 @@ config PLAT_SAMSUNG
13 13
14if PLAT_SAMSUNG 14if PLAT_SAMSUNG
15 15
16# boot configurations
17
18comment "Boot options"
19
20config S3C_BOOT_WATCHDOG
21 bool "S3C Initialisation watchdog"
22 depends on S3C2410_WATCHDOG
23 help
24 Say y to enable the watchdog during the kernel decompression
25 stage. If the kernel fails to uncompress, then the watchdog
26 will trigger a reset and the system should restart.
27
28config S3C_BOOT_ERROR_RESET
29 bool "S3C Reboot on decompression error"
30 help
31 Say y here to use the watchdog to reset the system if the
32 kernel decompressor detects an error during decompression.
33
34config S3C_BOOT_UART_FORCE_FIFO
35 bool "Force UART FIFO on during boot process"
36 default y
37 help
38 Say Y here to force the UART FIFOs on during the kernel
39 uncompressor
40
41
42config S3C_LOWLEVEL_UART_PORT
43 int "S3C UART to use for low-level messages"
44 default 0
45 help
46 Choice of which UART port to use for the low-level messages,
47 such as the `Uncompressing...` at start time. The value of
48 this configuration should be between zero and two. The port
49 must have been initialised by the boot-loader before use.
50
51# clock options
52
16config SAMSUNG_CLKSRC 53config SAMSUNG_CLKSRC
17 bool 54 bool
18 help 55 help
@@ -81,6 +118,21 @@ config SAMSUNG_GPIO_EXTRA
81 provides. This allows expanding the GPIO space for use with 118 provides. This allows expanding the GPIO space for use with
82 GPIO expanders. 119 GPIO expanders.
83 120
121config S3C_GPIO_SPACE
122 int "Space between gpio banks"
123 default 0
124 help
125 Add a number of spare GPIO entries between each bank for debugging
126 purposes. This allows any problems where an counter overflows from
127 one bank to another to be caught, at the expense of using a little
128 more memory.
129
130config S3C_GPIO_TRACK
131 bool
132 help
133 Internal configuration option to enable the s3c specific gpio
134 chip tracking if the platform requires it.
135
84# ADC driver 136# ADC driver
85 137
86config S3C_ADC 138config S3C_ADC
@@ -138,6 +190,13 @@ config S3C64XX_DEV_SPI
138 Compile in platform device definitions for S3C64XX's type 190 Compile in platform device definitions for S3C64XX's type
139 SPI controllers. 191 SPI controllers.
140 192
193# DMA
194
195config S3C_DMA
196 bool
197 help
198 Internal configuration for S3C DMA core
199
141comment "Power management" 200comment "Power management"
142 201
143config SAMSUNG_PM_DEBUG 202config SAMSUNG_PM_DEBUG