Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 1 | # Copyright 2007 Simtec Electronics |
| 2 | # |
| 3 | # Licensed under GPLv2 |
| 4 | |
| 5 | config PLAT_S3C24XX |
| 6 | bool |
Kukjin Kim | b130d5c | 2012-02-03 14:29:23 +0900 | [diff] [blame] | 7 | depends on ARCH_S3C24XX |
Ben Dooks | bcae8ae | 2008-10-21 14:06:32 +0100 | [diff] [blame] | 8 | default y |
Russell King | bb2b180 | 2008-07-26 15:36:03 +0100 | [diff] [blame] | 9 | select ARCH_REQUIRE_GPIOLIB |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 10 | select NO_IOPORT |
Kukjin Kim | 258b78c | 2010-12-03 21:22:42 +0900 | [diff] [blame] | 11 | select S3C_DEV_NAND |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 12 | help |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 13 | Base platform code for any Samsung S3C24XX device |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 14 | |
Ben Dooks | b887060 | 2007-02-11 20:33:13 +0100 | [diff] [blame] | 15 | if PLAT_S3C24XX |
| 16 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 17 | # low-level serial option nodes |
| 18 | |
| 19 | config CPU_LLSERIAL_S3C2410_ONLY |
| 20 | bool |
| 21 | default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440 |
| 22 | |
| 23 | config CPU_LLSERIAL_S3C2440_ONLY |
| 24 | bool |
| 25 | default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410 |
| 26 | |
| 27 | config CPU_LLSERIAL_S3C2410 |
| 28 | bool |
| 29 | help |
| 30 | Selected if there is an S3C2410 (or register compatible) serial |
| 31 | low-level implementation needed |
| 32 | |
| 33 | config CPU_LLSERIAL_S3C2440 |
| 34 | bool |
| 35 | help |
| 36 | Selected if there is an S3C2440 (or register compatible) serial |
| 37 | low-level implementation needed |
| 38 | |
Ben Dooks | 1b3ba68 | 2008-10-21 14:06:22 +0100 | [diff] [blame] | 39 | # code that is shared between a number of the s3c24xx implementations |
| 40 | |
| 41 | config S3C2410_CLOCK |
| 42 | bool |
| 43 | help |
| 44 | Clock code for the S3C2410, and similar processors which |
| 45 | is currently includes the S3C2410, S3C2440, S3C2442. |
| 46 | |
Ben Dooks | 93bc6b6 | 2008-10-21 14:06:33 +0100 | [diff] [blame] | 47 | config S3C24XX_DCLK |
| 48 | bool |
| 49 | help |
| 50 | Clock code for supporting DCLK/CLKOUT on S3C24XX architectures |
| 51 | |
Ben Dooks | e2178d4 | 2008-11-10 10:59:32 +0000 | [diff] [blame] | 52 | # gpio configurations |
| 53 | |
| 54 | config S3C24XX_GPIO_EXTRA |
| 55 | int |
| 56 | default 128 if S3C24XX_GPIO_EXTRA128 |
| 57 | default 64 if S3C24XX_GPIO_EXTRA64 |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 58 | default 16 if ARCH_H1940 |
Ben Dooks | e2178d4 | 2008-11-10 10:59:32 +0000 | [diff] [blame] | 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 | |
Kukjin Kim | 85fd6d6 | 2012-02-06 09:38:19 +0900 | [diff] [blame] | 73 | config S3C24XX_DMA |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 74 | bool "S3C2410 DMA support" |
Kukjin Kim | b130d5c | 2012-02-03 14:29:23 +0900 | [diff] [blame] | 75 | depends on ARCH_S3C24XX |
Ben Dooks | 97c1b14 | 2009-03-19 15:02:39 +0000 | [diff] [blame] | 76 | select S3C_DMA |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 77 | help |
| 78 | S3C2410 DMA support. This is needed for drivers like sound which |
| 79 | use the S3C2410's DMA system to move data to and from the |
| 80 | peripheral blocks. |
| 81 | |
| 82 | config S3C2410_DMA_DEBUG |
| 83 | bool "S3C2410 DMA support debug" |
Kukjin Kim | b130d5c | 2012-02-03 14:29:23 +0900 | [diff] [blame] | 84 | depends on ARCH_S3C24XX && S3C2410_DMA |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 85 | help |
| 86 | Enable debugging output for the DMA code. This option sends info |
| 87 | to the kernel log, at priority KERN_DEBUG. |
| 88 | |
Ben Dooks | b2a6cf3 | 2008-10-21 14:06:20 +0100 | [diff] [blame] | 89 | # common code for s3c24xx based machines, such as the SMDKs. |
| 90 | |
Ben Dooks | 831a6fc | 2009-07-30 23:23:26 +0100 | [diff] [blame] | 91 | # cpu frequency items common between s3c2410 and s3c2440/s3c2442 |
| 92 | |
| 93 | config S3C2410_IOTIMING |
| 94 | bool |
| 95 | depends on CPU_FREQ_S3C24XX |
| 96 | help |
| 97 | Internal node to select io timing code that is common to the s3c2410 |
| 98 | and s3c2440/s3c2442 cpu frequency support. |
| 99 | |
Ben Dooks | a24c091 | 2009-07-30 23:23:27 +0100 | [diff] [blame] | 100 | config S3C2410_CPUFREQ_UTILS |
| 101 | bool |
| 102 | depends on CPU_FREQ_S3C24XX |
| 103 | help |
| 104 | Internal node to select timing code that is common to the s3c2410 |
| 105 | and s3c2440/s3c244 cpu frequency support. |
| 106 | |
Ben Dooks | 140780a | 2009-07-30 23:23:37 +0100 | [diff] [blame] | 107 | # cpu frequency support common to s3c2412, s3c2413 and s3c2442 |
| 108 | |
| 109 | config S3C2412_IOTIMING |
| 110 | bool |
| 111 | depends on CPU_FREQ_S3C24XX && (CPU_S3C2412 || CPU_S3C2443) |
| 112 | help |
| 113 | Intel node to select io timing code that is common to the s3c2412 |
| 114 | and the s3c2443. |
| 115 | |
Ben Dooks | b887060 | 2007-02-11 20:33:13 +0100 | [diff] [blame] | 116 | endif |