blob: 9c449c048c78a77eb77ec125a3a62e09a4b0cab4 [file] [log] [blame]
Ben Dooksa21765a2007-02-11 18:31:01 +01001# arch/arm/plat-s3c24xx/Kconfig
2#
3# Copyright 2007 Simtec Electronics
4#
5# Licensed under GPLv2
6
7config PLAT_S3C24XX
8 bool
Ben Dooksbcae8ae2008-10-21 14:06:32 +01009 depends on ARCH_S3C2410 || ARCH_S3C24A0
10 default y
Ben Dooks7d477a02007-02-12 18:59:35 +010011 select NO_IOPORT
Russell Kingbb2b1802008-07-26 15:36:03 +010012 select ARCH_REQUIRE_GPIOLIB
Ben Dooksa21765a2007-02-11 18:31:01 +010013 help
Ben Dooksd58153d2007-07-22 16:07:09 +010014 Base platform code for any Samsung S3C24XX device
Ben Dooksa21765a2007-02-11 18:31:01 +010015
Ben Dooksb8870602007-02-11 20:33:13 +010016if PLAT_S3C24XX
17
Ben Dooks1b3ba682008-10-21 14:06:22 +010018# code that is shared between a number of the s3c24xx implementations
19
20config 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
Ben Dooks93bc6b62008-10-21 14:06:33 +010026config S3C24XX_DCLK
27 bool
28 help
29 Clock code for supporting DCLK/CLKOUT on S3C24XX architectures
30
Ben Dooksa21765a2007-02-11 18:31:01 +010031config 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
Ben Dooks342e20f2009-07-30 23:23:29 +010037config 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
Ben Dooks78278d62009-07-30 23:23:30 +010045config S3C2440_PLL_12000000
46 bool
47 depends on S3C2440_CPUFREQ
48 default y if CPU_FREQ_S3C24XX_PLL
49 help
50 PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals.
51
52config S3C2440_PLL_16934400
53 bool
54 depends on S3C2440_CPUFREQ
55 default y if CPU_FREQ_S3C24XX_PLL
56 help
57 PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals.
58
Ben Dooks6fc601e2008-07-01 13:17:24 +010059config 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
Ben Dookse2178d42008-11-10 10:59:32 +000066
67# gpio configurations
68
69config S3C24XX_GPIO_EXTRA
70 int
71 default 128 if S3C24XX_GPIO_EXTRA128
72 default 64 if S3C24XX_GPIO_EXTRA64
73 default 0
74
75config 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
81config 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
Ben Dooksa21765a2007-02-11 18:31:01 +010087config 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
Ben Dooksa21765a2007-02-11 18:31:01 +010093config S3C2410_DMA
94 bool "S3C2410 DMA support"
95 depends on ARCH_S3C2410
Ben Dooks97c1b142009-03-19 15:02:39 +000096 select S3C_DMA
Ben Dooksa21765a2007-02-11 18:31:01 +010097 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
102config 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
Ben Dooks28ab44c5b2008-12-18 14:20:04 +0000109config S3C24XX_ADC
110 bool "ADC common driver support"
111 help
112 Core support for the ADC block found in the S3C24XX SoC systems
113 for drivers such as the touchscreen and hwmon to use to share
114 this resource.
115
Ben Dooksb2a6cf32008-10-21 14:06:20 +0100116# SPI default pin configuration code
117
118config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13
119 bool
120 help
121 SPI GPIO configuration code for BUS0 when connected to
122 GPE11, GPE12 and GPE13.
123
124config S3C24XX_SPI_BUS1_GPG5_GPG6_GPG7
125 bool
126 help
127 SPI GPIO configuration code for BUS 1 when connected to
128 GPG5, GPG6 and GPG7.
129
130# common code for s3c24xx based machines, such as the SMDKs.
131
Ben Dooks831a6fc2009-07-30 23:23:26 +0100132# cpu frequency items common between s3c2410 and s3c2440/s3c2442
133
134config S3C2410_IOTIMING
135 bool
136 depends on CPU_FREQ_S3C24XX
137 help
138 Internal node to select io timing code that is common to the s3c2410
139 and s3c2440/s3c2442 cpu frequency support.
140
Ben Dooksa24c0912009-07-30 23:23:27 +0100141config S3C2410_CPUFREQ_UTILS
142 bool
143 depends on CPU_FREQ_S3C24XX
144 help
145 Internal node to select timing code that is common to the s3c2410
146 and s3c2440/s3c244 cpu frequency support.
147
Ben Dooksa21765a2007-02-11 18:31:01 +0100148config MACH_SMDK
149 bool
150 help
151 Common machine code for SMDK2410 and SMDK2440
152
Ben Dooksb8870602007-02-11 20:33:13 +0100153endif