OSDN Git Service

ARM: S3C2440: CPUFREQ: Add crystal frequency Kconfig entries.
authorBen Dooks <ben@simtec.co.uk>
Thu, 30 Jul 2009 22:23:31 +0000 (23:23 +0100)
committerBen Dooks <ben-linux@fluff.org>
Thu, 30 Jul 2009 22:22:53 +0000 (23:22 +0100)
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>
arch/arm/mach-s3c2440/Kconfig
arch/arm/plat-s3c24xx/Kconfig

index 8cfeaec..3cb12e3 100644 (file)
@@ -33,6 +33,7 @@ config MACH_ANUBIS
        select PM_SIMTEC if PM
        select HAVE_PATA_PLATFORM
        select S3C24XX_GPIO_EXTRA64
+       select S3C2440_XTAL_12000000
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the Simtec Electronics ANUBIS
@@ -44,6 +45,7 @@ config MACH_OSIRIS
        select S3C24XX_DCLK
        select PM_SIMTEC if PM
        select S3C24XX_GPIO_EXTRA128
+       select S3C2440_XTAL_12000000
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the Simtec IM2440D20 module, also
@@ -52,6 +54,7 @@ config MACH_OSIRIS
 config MACH_RX3715
        bool "HP iPAQ rx3715"
        select CPU_S3C2440
+       select S3C2440_XTAL_16934400
        select PM_H1940 if PM
        help
          Say Y here if you are using the HP iPAQ rx3715.
@@ -59,6 +62,7 @@ config MACH_RX3715
 config ARCH_S3C2440
        bool "SMDK2440"
        select CPU_S3C2440
+       select S3C2440_XTAL_16934400
        select MACH_SMDK
        select S3C_DEV_USB_HOST
        help
@@ -67,6 +71,7 @@ config ARCH_S3C2440
 config MACH_NEXCODER_2440
        bool "NexVision NEXCODER 2440 Light Board"
        select CPU_S3C2440
+       select S3C2440_XTAL_12000000
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board
@@ -75,6 +80,7 @@ config SMDK2440_CPU2440
        bool "SMDK2440 with S3C2440 CPU module"
        depends on ARCH_S3C2440
        default y if ARCH_S3C2440
+       select S3C2440_XTAL_16934400
        select CPU_S3C2440
 
 config MACH_AT2440EVB
index 9c449c0..ec9921b 100644 (file)
@@ -42,16 +42,28 @@ config S3C2440_CPUFREQ
        help
          CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs.
 
+config S3C2440_XTAL_12000000
+       bool
+       help
+         Indicate that the build needs to support 12MHz system
+         crystal.
+
+config S3C2440_XTAL_16934400
+       bool
+       help
+         Indicate that the build needs to support 16.9344MHz system
+         crystal.
+
 config S3C2440_PLL_12000000
        bool
-       depends on S3C2440_CPUFREQ
+       depends on S3C2440_CPUFREQ && S3C2440_XTAL_12000000
        default y if CPU_FREQ_S3C24XX_PLL
        help
          PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals.
 
 config S3C2440_PLL_16934400
        bool
-       depends on S3C2440_CPUFREQ
+       depends on S3C2440_CPUFREQ && S3C2440_XTAL_16934400
        default y if CPU_FREQ_S3C24XX_PLL
        help
          PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals.