ARM: S3C2440: CPUFREQ: Add core support.
[safe/jmp/linux-2.6] / arch / arm / plat-s3c24xx / Kconfig
1 # arch/arm/plat-s3c24xx/Kconfig
2 #
3 # Copyright 2007 Simtec Electronics
4 #
5 # Licensed under GPLv2
6
7 config PLAT_S3C24XX
8         bool
9         depends on ARCH_S3C2410 || ARCH_S3C24A0
10         default y
11         select NO_IOPORT
12         select ARCH_REQUIRE_GPIOLIB
13         help
14           Base platform code for any Samsung S3C24XX device
15
16 if PLAT_S3C24XX
17
18 # code that is shared between a number of the s3c24xx implementations
19
20 config S3C2410_CLOCK
21         bool
22         help
23           Clock code for the S3C2410, and similar processors which
24           is currently includes the S3C2410, S3C2440, S3C2442.
25
26 config S3C24XX_DCLK
27         bool
28         help
29           Clock code for supporting DCLK/CLKOUT on S3C24XX architectures
30
31 config CPU_S3C244X
32         bool
33         depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442)
34         help
35           Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems.
36
37 config S3C2440_CPUFREQ
38         bool "S3C2440/S3C2442 CPU Frequency scaling support"
39         depends on CPU_FREQ_S3C24XX && (CPU_S3C2440 || CPU_S3C2442)
40         select S3C2410_CPUFREQ_UTILS
41         default y
42         help
43           CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs.
44
45 config S3C24XX_PWM
46         bool "PWM device support"
47         select HAVE_PWM
48         help
49           Support for exporting the PWM timer blocks via the pwm device
50           system.
51
52
53 # gpio configurations
54
55 config S3C24XX_GPIO_EXTRA
56         int
57         default 128 if S3C24XX_GPIO_EXTRA128
58         default 64 if S3C24XX_GPIO_EXTRA64
59         default 0
60
61 config S3C24XX_GPIO_EXTRA64
62         bool
63         help
64           Add an extra 64 gpio numbers to the available GPIO pool. This is
65           available for boards that need extra gpios for external devices.
66
67 config S3C24XX_GPIO_EXTRA128
68         bool
69         help
70           Add an extra 128 gpio numbers to the available GPIO pool. This is
71           available for boards that need extra gpios for external devices.
72
73 config PM_SIMTEC
74         bool
75         help
76           Common power management code for systems that are
77           compatible with the Simtec style of power management
78
79 config S3C2410_DMA
80         bool "S3C2410 DMA support"
81         depends on ARCH_S3C2410
82         select S3C_DMA
83         help
84           S3C2410 DMA support. This is needed for drivers like sound which
85           use the S3C2410's DMA system to move data to and from the
86           peripheral blocks.
87
88 config S3C2410_DMA_DEBUG
89         bool "S3C2410 DMA support debug"
90         depends on ARCH_S3C2410 && S3C2410_DMA
91         help
92           Enable debugging output for the DMA code. This option sends info
93           to the kernel log, at priority KERN_DEBUG.
94
95 config S3C24XX_ADC
96         bool "ADC common driver support"
97         help
98           Core support for the ADC block found in the S3C24XX SoC systems
99           for drivers such as the touchscreen and hwmon to use to share
100           this resource.
101
102 # SPI default pin configuration code
103
104 config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13
105         bool
106         help
107           SPI GPIO configuration code for BUS0 when connected to
108           GPE11, GPE12 and GPE13.
109
110 config S3C24XX_SPI_BUS1_GPG5_GPG6_GPG7
111         bool
112         help
113           SPI GPIO configuration code for BUS 1 when connected to
114           GPG5, GPG6 and GPG7.
115
116 # common code for s3c24xx based machines, such as the SMDKs.
117
118 # cpu frequency items common between s3c2410 and s3c2440/s3c2442
119
120 config S3C2410_IOTIMING
121         bool
122         depends on CPU_FREQ_S3C24XX
123         help
124           Internal node to select io timing code that is common to the s3c2410
125           and s3c2440/s3c2442 cpu frequency support.
126
127 config S3C2410_CPUFREQ_UTILS
128         bool
129         depends on CPU_FREQ_S3C24XX
130         help
131           Internal node to select timing code that is common to the s3c2410
132           and s3c2440/s3c244 cpu frequency support.
133
134 config MACH_SMDK
135         bool
136         help
137           Common machine code for SMDK2410 and SMDK2440
138
139 endif