aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-07-30 18:23:31 -0400
committerBen Dooks <ben-linux@fluff.org>2009-07-30 18:22:53 -0400
commit0345b51c6a4bfaf6c066b8055d02116432b6a0c9 (patch)
treecd13c7bea345f30729369caf5053022452a679f9
parent78278d6a9673b487d8229dd430cacdf9964c0d3f (diff)
ARM: S3C2440: CPUFREQ: Add crystal frequency Kconfig entries.
Add entries to select the crystal to select for each different supported board. This information is then available for anything else requiring this, such as the CPUFreq PLL tables. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r--arch/arm/mach-s3c2440/Kconfig6
-rw-r--r--arch/arm/plat-s3c24xx/Kconfig16
2 files changed, 20 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2440/Kconfig b/arch/arm/mach-s3c2440/Kconfig
index 8cfeaec37306..3cb12e39e0a8 100644
--- a/arch/arm/mach-s3c2440/Kconfig
+++ b/arch/arm/mach-s3c2440/Kconfig
@@ -33,6 +33,7 @@ config MACH_ANUBIS
33 select PM_SIMTEC if PM 33 select PM_SIMTEC if PM
34 select HAVE_PATA_PLATFORM 34 select HAVE_PATA_PLATFORM
35 select S3C24XX_GPIO_EXTRA64 35 select S3C24XX_GPIO_EXTRA64
36 select S3C2440_XTAL_12000000
36 select S3C_DEV_USB_HOST 37 select S3C_DEV_USB_HOST
37 help 38 help
38 Say Y here if you are using the Simtec Electronics ANUBIS 39 Say Y here if you are using the Simtec Electronics ANUBIS
@@ -44,6 +45,7 @@ config MACH_OSIRIS
44 select S3C24XX_DCLK 45 select S3C24XX_DCLK
45 select PM_SIMTEC if PM 46 select PM_SIMTEC if PM
46 select S3C24XX_GPIO_EXTRA128 47 select S3C24XX_GPIO_EXTRA128
48 select S3C2440_XTAL_12000000
47 select S3C_DEV_USB_HOST 49 select S3C_DEV_USB_HOST
48 help 50 help
49 Say Y here if you are using the Simtec IM2440D20 module, also 51 Say Y here if you are using the Simtec IM2440D20 module, also
@@ -52,6 +54,7 @@ config MACH_OSIRIS
52config MACH_RX3715 54config MACH_RX3715
53 bool "HP iPAQ rx3715" 55 bool "HP iPAQ rx3715"
54 select CPU_S3C2440 56 select CPU_S3C2440
57 select S3C2440_XTAL_16934400
55 select PM_H1940 if PM 58 select PM_H1940 if PM
56 help 59 help
57 Say Y here if you are using the HP iPAQ rx3715. 60 Say Y here if you are using the HP iPAQ rx3715.
@@ -59,6 +62,7 @@ config MACH_RX3715
59config ARCH_S3C2440 62config ARCH_S3C2440
60 bool "SMDK2440" 63 bool "SMDK2440"
61 select CPU_S3C2440 64 select CPU_S3C2440
65 select S3C2440_XTAL_16934400
62 select MACH_SMDK 66 select MACH_SMDK
63 select S3C_DEV_USB_HOST 67 select S3C_DEV_USB_HOST
64 help 68 help
@@ -67,6 +71,7 @@ config ARCH_S3C2440
67config MACH_NEXCODER_2440 71config MACH_NEXCODER_2440
68 bool "NexVision NEXCODER 2440 Light Board" 72 bool "NexVision NEXCODER 2440 Light Board"
69 select CPU_S3C2440 73 select CPU_S3C2440
74 select S3C2440_XTAL_12000000
70 select S3C_DEV_USB_HOST 75 select S3C_DEV_USB_HOST
71 help 76 help
72 Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board 77 Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board
@@ -75,6 +80,7 @@ config SMDK2440_CPU2440
75 bool "SMDK2440 with S3C2440 CPU module" 80 bool "SMDK2440 with S3C2440 CPU module"
76 depends on ARCH_S3C2440 81 depends on ARCH_S3C2440
77 default y if ARCH_S3C2440 82 default y if ARCH_S3C2440
83 select S3C2440_XTAL_16934400
78 select CPU_S3C2440 84 select CPU_S3C2440
79 85
80config MACH_AT2440EVB 86config MACH_AT2440EVB
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig
index 9c449c048c78..ec9921b6848b 100644
--- a/arch/arm/plat-s3c24xx/Kconfig
+++ b/arch/arm/plat-s3c24xx/Kconfig
@@ -42,16 +42,28 @@ config S3C2440_CPUFREQ
42 help 42 help
43 CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs. 43 CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs.
44 44
45config S3C2440_XTAL_12000000
46 bool
47 help
48 Indicate that the build needs to support 12MHz system
49 crystal.
50
51config S3C2440_XTAL_16934400
52 bool
53 help
54 Indicate that the build needs to support 16.9344MHz system
55 crystal.
56
45config S3C2440_PLL_12000000 57config S3C2440_PLL_12000000
46 bool 58 bool
47 depends on S3C2440_CPUFREQ 59 depends on S3C2440_CPUFREQ && S3C2440_XTAL_12000000
48 default y if CPU_FREQ_S3C24XX_PLL 60 default y if CPU_FREQ_S3C24XX_PLL
49 help 61 help
50 PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals. 62 PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals.
51 63
52config S3C2440_PLL_16934400 64config S3C2440_PLL_16934400
53 bool 65 bool
54 depends on S3C2440_CPUFREQ 66 depends on S3C2440_CPUFREQ && S3C2440_XTAL_16934400
55 default y if CPU_FREQ_S3C24XX_PLL 67 default y if CPU_FREQ_S3C24XX_PLL
56 help 68 help
57 PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals. 69 PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals.