Merge branch 'stable/generic' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
[pandora-kernel.git] / arch / arm / plat-s3c24xx / Kconfig
1 # Copyright 2007 Simtec Electronics
2 #
3 # Licensed under GPLv2
4
5 config PLAT_S3C24XX
6         bool
7         depends on ARCH_S3C2410 || ARCH_S3C24A0
8         default y
9         select NO_IOPORT
10         select ARCH_REQUIRE_GPIOLIB
11         select S3C_DEV_NAND
12         select S3C_GPIO_CFG_S3C24XX
13         help
14           Base platform code for any Samsung S3C24XX device
15
16 if PLAT_S3C24XX
17
18 # low-level serial option nodes
19
20 config CPU_LLSERIAL_S3C2410_ONLY
21         bool
22         default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440
23
24 config CPU_LLSERIAL_S3C2440_ONLY
25         bool
26         default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410
27
28 config CPU_LLSERIAL_S3C2410
29         bool
30         help
31           Selected if there is an S3C2410 (or register compatible) serial
32           low-level implementation needed
33
34 config CPU_LLSERIAL_S3C2440
35         bool
36         help
37           Selected if there is an S3C2440 (or register compatible) serial
38           low-level implementation needed
39
40 # code that is shared between a number of the s3c24xx implementations
41
42 config S3C2410_CLOCK
43         bool
44         help
45           Clock code for the S3C2410, and similar processors which
46           is currently includes the S3C2410, S3C2440, S3C2442.
47
48 config S3C2443_CLOCK
49         bool
50         help
51           Clock code for the S3C2443 and similar processors, which includes
52           the S3C2416 and S3C2450.
53
54 config S3C24XX_DCLK
55         bool
56         help
57           Clock code for supporting DCLK/CLKOUT on S3C24XX architectures
58
59 config S3C24XX_PWM
60         bool "PWM device support"
61         select HAVE_PWM
62         help
63           Support for exporting the PWM timer blocks via the pwm device
64           system.
65
66 # gpio configurations
67
68 config S3C24XX_GPIO_EXTRA
69         int
70         default 128 if S3C24XX_GPIO_EXTRA128
71         default 64 if S3C24XX_GPIO_EXTRA64
72         default 16 if ARCH_H1940
73         default 0
74
75 config S3C24XX_GPIO_EXTRA64
76         bool
77         help
78           Add an extra 64 gpio numbers to the available GPIO pool. This is
79           available for boards that need extra gpios for external devices.
80
81 config S3C24XX_GPIO_EXTRA128
82         bool
83         help
84           Add an extra 128 gpio numbers to the available GPIO pool. This is
85           available for boards that need extra gpios for external devices.
86
87 config PM_SIMTEC
88         bool
89         help
90           Common power management code for systems that are
91           compatible with the Simtec style of power management
92
93 config S3C2410_DMA
94         bool "S3C2410 DMA support"
95         depends on ARCH_S3C2410
96         select S3C_DMA
97         help
98           S3C2410 DMA support. This is needed for drivers like sound which
99           use the S3C2410's DMA system to move data to and from the
100           peripheral blocks.
101
102 config S3C2410_DMA_DEBUG
103         bool "S3C2410 DMA support debug"
104         depends on ARCH_S3C2410 && S3C2410_DMA
105         help
106           Enable debugging output for the DMA code. This option sends info
107           to the kernel log, at priority KERN_DEBUG.
108
109 # SPI default pin configuration code
110
111 config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13
112         bool
113         help
114           SPI GPIO configuration code for BUS0 when connected to
115           GPE11, GPE12 and GPE13.
116
117 config S3C24XX_SPI_BUS1_GPG5_GPG6_GPG7
118         bool
119         help
120           SPI GPIO configuration code for BUS 1 when connected to
121           GPG5, GPG6 and GPG7.
122
123 config S3C24XX_SPI_BUS1_GPD8_GPD9_GPD10
124         bool
125         help
126           SPI GPIO configuration code for BUS 1 when connected to
127           GPD8, GPD9 and GPD10.
128
129 # common code for s3c24xx based machines, such as the SMDKs.
130
131 # cpu frequency items common between s3c2410 and s3c2440/s3c2442
132
133 config S3C2410_IOTIMING
134         bool
135         depends on CPU_FREQ_S3C24XX
136         help
137           Internal node to select io timing code that is common to the s3c2410
138           and s3c2440/s3c2442 cpu frequency support.
139
140 config S3C2410_CPUFREQ_UTILS
141         bool
142         depends on CPU_FREQ_S3C24XX
143         help
144           Internal node to select timing code that is common to the s3c2410
145           and s3c2440/s3c244 cpu frequency support.
146
147 # cpu frequency support common to s3c2412, s3c2413 and s3c2442
148
149 config S3C2412_IOTIMING
150         bool
151         depends on CPU_FREQ_S3C24XX && (CPU_S3C2412 || CPU_S3C2443)
152         help
153           Intel node to select io timing code that is common to the s3c2412
154           and the s3c2443.
155
156 config MACH_SMDK
157         bool
158         help
159           Common machine code for SMDK2410 and SMDK2440
160
161 config S3C24XX_SIMTEC_AUDIO
162         bool
163         depends on (ARCH_BAST || MACH_VR1000 || MACH_OSIRIS || MACH_ANUBIS)
164         default y
165         help
166           Add audio devices for common Simtec S3C24XX boards
167
168 config S3C2410_SETUP_TS
169         bool
170         help
171           Compile in platform device definition for Samsung TouchScreen.
172
173 endif