diff options
Diffstat (limited to 'arch/arm')
149 files changed, 19228 insertions, 1350 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 08b7cc900cae..1b7e5c2e90ef 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -93,15 +93,49 @@ choice | |||
93 | prompt "ARM system type" | 93 | prompt "ARM system type" |
94 | default ARCH_VERSATILE | 94 | default ARCH_VERSATILE |
95 | 95 | ||
96 | config ARCH_AAEC2000 | ||
97 | bool "Agilent AAEC-2000 based" | ||
98 | select ARM_AMBA | ||
99 | help | ||
100 | This enables support for systems based on the Agilent AAEC-2000 | ||
101 | |||
102 | config ARCH_INTEGRATOR | ||
103 | bool "ARM Ltd. Integrator family" | ||
104 | select ARM_AMBA | ||
105 | select ICST525 | ||
106 | help | ||
107 | Support for ARM's Integrator platform. | ||
108 | |||
109 | config ARCH_REALVIEW | ||
110 | bool "ARM Ltd. RealView family" | ||
111 | select ARM_AMBA | ||
112 | select ICST307 | ||
113 | help | ||
114 | This enables support for ARM Ltd RealView boards. | ||
115 | |||
116 | config ARCH_VERSATILE | ||
117 | bool "ARM Ltd. Versatile family" | ||
118 | select ARM_AMBA | ||
119 | select ARM_VIC | ||
120 | select ICST307 | ||
121 | help | ||
122 | This enables support for ARM Ltd Versatile board. | ||
123 | |||
124 | config ARCH_AT91RM9200 | ||
125 | bool "Atmel AT91RM9200" | ||
126 | help | ||
127 | Say Y here if you intend to run this kernel on an Atmel | ||
128 | AT91RM9200-based board. | ||
129 | |||
96 | config ARCH_CLPS7500 | 130 | config ARCH_CLPS7500 |
97 | bool "Cirrus-CL-PS7500FE" | 131 | bool "Cirrus CL-PS7500FE" |
98 | select TIMER_ACORN | 132 | select TIMER_ACORN |
99 | select ISA | 133 | select ISA |
100 | help | 134 | help |
101 | Support for the Cirrus Logic PS7500FE system-on-a-chip. | 135 | Support for the Cirrus Logic PS7500FE system-on-a-chip. |
102 | 136 | ||
103 | config ARCH_CLPS711X | 137 | config ARCH_CLPS711X |
104 | bool "CLPS711x/EP721x-based" | 138 | bool "Cirrus Logic CLPS711x/EP721x-based" |
105 | help | 139 | help |
106 | Support for Cirrus Logic 711x/721x based boards. | 140 | Support for Cirrus Logic 711x/721x based boards. |
107 | 141 | ||
@@ -135,12 +169,22 @@ config ARCH_FOOTBRIDGE | |||
135 | Support for systems based on the DC21285 companion chip | 169 | Support for systems based on the DC21285 companion chip |
136 | ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder. | 170 | ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder. |
137 | 171 | ||
138 | config ARCH_INTEGRATOR | 172 | config ARCH_NETX |
139 | bool "Integrator" | 173 | bool "Hilscher NetX based" |
140 | select ARM_AMBA | 174 | select ARM_VIC |
141 | select ICST525 | ||
142 | help | 175 | help |
143 | Support for ARM's Integrator platform. | 176 | This enables support for systems based on the Hilscher NetX Soc |
177 | |||
178 | config ARCH_H720X | ||
179 | bool "Hynix HMS720x-based" | ||
180 | select ISA_DMA_API | ||
181 | help | ||
182 | This enables support for systems based on the Hynix HMS720x | ||
183 | |||
184 | config ARCH_IMX | ||
185 | bool "IMX" | ||
186 | help | ||
187 | Support for Motorola's i.MX family of processors (MX1, MXL). | ||
144 | 188 | ||
145 | config ARCH_IOP3XX | 189 | config ARCH_IOP3XX |
146 | bool "IOP3xx-based" | 190 | bool "IOP3xx-based" |
@@ -178,6 +222,11 @@ config ARCH_L7200 | |||
178 | If you have any questions or comments about the Linux kernel port | 222 | If you have any questions or comments about the Linux kernel port |
179 | to this board, send e-mail to <sjhill@cotw.com>. | 223 | to this board, send e-mail to <sjhill@cotw.com>. |
180 | 224 | ||
225 | config ARCH_PNX4008 | ||
226 | bool "Philips Nexperia PNX4008 Mobile" | ||
227 | help | ||
228 | This enables support for Philips PNX4008 mobile platform. | ||
229 | |||
181 | config ARCH_PXA | 230 | config ARCH_PXA |
182 | bool "PXA2xx-based" | 231 | bool "PXA2xx-based" |
183 | select ARCH_MTD_XIP | 232 | select ARCH_MTD_XIP |
@@ -232,44 +281,6 @@ config ARCH_OMAP | |||
232 | help | 281 | help |
233 | Support for TI's OMAP platform (OMAP1 and OMAP2). | 282 | Support for TI's OMAP platform (OMAP1 and OMAP2). |
234 | 283 | ||
235 | config ARCH_VERSATILE | ||
236 | bool "Versatile" | ||
237 | select ARM_AMBA | ||
238 | select ARM_VIC | ||
239 | select ICST307 | ||
240 | help | ||
241 | This enables support for ARM Ltd Versatile board. | ||
242 | |||
243 | config ARCH_REALVIEW | ||
244 | bool "RealView" | ||
245 | select ARM_AMBA | ||
246 | select ICST307 | ||
247 | help | ||
248 | This enables support for ARM Ltd RealView boards. | ||
249 | |||
250 | config ARCH_IMX | ||
251 | bool "IMX" | ||
252 | help | ||
253 | Support for Motorola's i.MX family of processors (MX1, MXL). | ||
254 | |||
255 | config ARCH_H720X | ||
256 | bool "Hynix-HMS720x-based" | ||
257 | select ISA_DMA_API | ||
258 | help | ||
259 | This enables support for systems based on the Hynix HMS720x | ||
260 | |||
261 | config ARCH_AAEC2000 | ||
262 | bool "Agilent AAEC-2000 based" | ||
263 | select ARM_AMBA | ||
264 | help | ||
265 | This enables support for systems based on the Agilent AAEC-2000 | ||
266 | |||
267 | config ARCH_AT91RM9200 | ||
268 | bool "AT91RM9200" | ||
269 | help | ||
270 | Say Y here if you intend to run this kernel on an Atmel | ||
271 | AT91RM9200-based board. | ||
272 | |||
273 | endchoice | 284 | endchoice |
274 | 285 | ||
275 | source "arch/arm/mach-clps711x/Kconfig" | 286 | source "arch/arm/mach-clps711x/Kconfig" |
@@ -314,6 +325,8 @@ source "arch/arm/mach-realview/Kconfig" | |||
314 | 325 | ||
315 | source "arch/arm/mach-at91rm9200/Kconfig" | 326 | source "arch/arm/mach-at91rm9200/Kconfig" |
316 | 327 | ||
328 | source "arch/arm/mach-netx/Kconfig" | ||
329 | |||
317 | # Definitions to make life easier | 330 | # Definitions to make life easier |
318 | config ARCH_ACORN | 331 | config ARCH_ACORN |
319 | bool | 332 | bool |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6f8e84c1c1f2..282b14e2f464 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -116,6 +116,8 @@ endif | |||
116 | machine-$(CONFIG_ARCH_REALVIEW) := realview | 116 | machine-$(CONFIG_ARCH_REALVIEW) := realview |
117 | machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 | 117 | machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 |
118 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx | 118 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx |
119 | machine-$(CONFIG_ARCH_PNX4008) := pnx4008 | ||
120 | machine-$(CONFIG_ARCH_NETX) := netx | ||
119 | 121 | ||
120 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 122 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
121 | # This is what happens if you forget the IOCS16 line. | 123 | # This is what happens if you forget the IOCS16 line. |
diff --git a/arch/arm/boot/compressed/head-at91rm9200.S b/arch/arm/boot/compressed/head-at91rm9200.S index 2119ea62b547..57a3b163b2cb 100644 --- a/arch/arm/boot/compressed/head-at91rm9200.S +++ b/arch/arm/boot/compressed/head-at91rm9200.S | |||
@@ -49,6 +49,18 @@ | |||
49 | cmp r7, r3 | 49 | cmp r7, r3 |
50 | beq 99f | 50 | beq 99f |
51 | 51 | ||
52 | @ Embest ATEB9200 : 923 | ||
53 | mov r3, #(MACH_TYPE_ATEB9200 & 0xff) | ||
54 | orr r3, r3, #(MACH_TYPE_ATEB9200 & 0xff00) | ||
55 | cmp r7, r3 | ||
56 | beq 99f | ||
57 | |||
58 | @ Sperry-Sun KAFA : 662 | ||
59 | mov r3, #(MACH_TYPE_KAFA & 0xff) | ||
60 | orr r3, r3, #(MACH_TYPE_KAFA & 0xff00) | ||
61 | cmp r7, r3 | ||
62 | beq 99f | ||
63 | |||
52 | @ Unknown board, use the AT91RM9200DK board | 64 | @ Unknown board, use the AT91RM9200DK board |
53 | @ mov r7, #MACH_TYPE_AT91RM9200 | 65 | @ mov r7, #MACH_TYPE_AT91RM9200 |
54 | mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff) | 66 | mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff) |
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index b56f5e691d65..23016f6aa645 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -605,8 +605,8 @@ proc_types: | |||
605 | b __armv4_mmu_cache_off | 605 | b __armv4_mmu_cache_off |
606 | b __armv4_mmu_cache_flush | 606 | b __armv4_mmu_cache_flush |
607 | 607 | ||
608 | .word 0x00070000 @ ARMv6 | 608 | .word 0x0007b000 @ ARMv6 |
609 | .word 0x000f0000 | 609 | .word 0x0007f000 |
610 | b __armv4_mmu_cache_on | 610 | b __armv4_mmu_cache_on |
611 | b __armv4_mmu_cache_off | 611 | b __armv4_mmu_cache_off |
612 | b __armv6_mmu_cache_flush | 612 | b __armv6_mmu_cache_flush |
diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile index 847e3e6356c6..e1289a256ce5 100644 --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile | |||
@@ -16,3 +16,4 @@ obj-$(CONFIG_SHARP_PARAM) += sharpsl_param.o | |||
16 | obj-$(CONFIG_SHARPSL_PM) += sharpsl_pm.o | 16 | obj-$(CONFIG_SHARPSL_PM) += sharpsl_pm.o |
17 | obj-$(CONFIG_SHARP_SCOOP) += scoop.o | 17 | obj-$(CONFIG_SHARP_SCOOP) += scoop.o |
18 | obj-$(CONFIG_ARCH_IXP2000) += uengine.o | 18 | obj-$(CONFIG_ARCH_IXP2000) += uengine.o |
19 | obj-$(CONFIG_ARCH_IXP23XX) += uengine.o | ||
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 7971d0dc6892..5b7c26395b44 100644 --- a/arch/arm/common/dmabounce.c +++ b/arch/arm/common/dmabounce.c | |||
@@ -77,6 +77,8 @@ struct dmabounce_device_info { | |||
77 | #endif | 77 | #endif |
78 | struct dmabounce_pool small; | 78 | struct dmabounce_pool small; |
79 | struct dmabounce_pool large; | 79 | struct dmabounce_pool large; |
80 | |||
81 | rwlock_t lock; | ||
80 | }; | 82 | }; |
81 | 83 | ||
82 | static LIST_HEAD(dmabounce_devs); | 84 | static LIST_HEAD(dmabounce_devs); |
@@ -116,6 +118,7 @@ alloc_safe_buffer(struct dmabounce_device_info *device_info, void *ptr, | |||
116 | struct safe_buffer *buf; | 118 | struct safe_buffer *buf; |
117 | struct dmabounce_pool *pool; | 119 | struct dmabounce_pool *pool; |
118 | struct device *dev = device_info->dev; | 120 | struct device *dev = device_info->dev; |
121 | unsigned long flags; | ||
119 | 122 | ||
120 | dev_dbg(dev, "%s(ptr=%p, size=%d, dir=%d)\n", | 123 | dev_dbg(dev, "%s(ptr=%p, size=%d, dir=%d)\n", |
121 | __func__, ptr, size, dir); | 124 | __func__, ptr, size, dir); |
@@ -163,8 +166,12 @@ alloc_safe_buffer(struct dmabounce_device_info *device_info, void *ptr, | |||
163 | print_alloc_stats(device_info); | 166 | print_alloc_stats(device_info); |
164 | #endif | 167 | #endif |
165 | 168 | ||
169 | write_lock_irqsave(&device_info->lock, flags); | ||
170 | |||
166 | list_add(&buf->node, &device_info->safe_buffers); | 171 | list_add(&buf->node, &device_info->safe_buffers); |
167 | 172 | ||
173 | write_unlock_irqrestore(&device_info->lock, flags); | ||
174 | |||
168 | return buf; | 175 | return buf; |
169 | } | 176 | } |
170 | 177 | ||
@@ -172,22 +179,32 @@ alloc_safe_buffer(struct dmabounce_device_info *device_info, void *ptr, | |||
172 | static inline struct safe_buffer * | 179 | static inline struct safe_buffer * |
173 | find_safe_buffer(struct dmabounce_device_info *device_info, dma_addr_t safe_dma_addr) | 180 | find_safe_buffer(struct dmabounce_device_info *device_info, dma_addr_t safe_dma_addr) |
174 | { | 181 | { |
175 | struct safe_buffer *b; | 182 | struct safe_buffer *b = NULL; |
183 | unsigned long flags; | ||
184 | |||
185 | read_lock_irqsave(&device_info->lock, flags); | ||
176 | 186 | ||
177 | list_for_each_entry(b, &device_info->safe_buffers, node) | 187 | list_for_each_entry(b, &device_info->safe_buffers, node) |
178 | if (b->safe_dma_addr == safe_dma_addr) | 188 | if (b->safe_dma_addr == safe_dma_addr) |
179 | return b; | 189 | break; |
180 | 190 | ||
181 | return NULL; | 191 | read_unlock_irqrestore(&device_info->lock, flags); |
192 | return b; | ||
182 | } | 193 | } |
183 | 194 | ||
184 | static inline void | 195 | static inline void |
185 | free_safe_buffer(struct dmabounce_device_info *device_info, struct safe_buffer *buf) | 196 | free_safe_buffer(struct dmabounce_device_info *device_info, struct safe_buffer *buf) |
186 | { | 197 | { |
198 | unsigned long flags; | ||
199 | |||
187 | dev_dbg(device_info->dev, "%s(buf=%p)\n", __func__, buf); | 200 | dev_dbg(device_info->dev, "%s(buf=%p)\n", __func__, buf); |
188 | 201 | ||
202 | write_lock_irqsave(&device_info->lock, flags); | ||
203 | |||
189 | list_del(&buf->node); | 204 | list_del(&buf->node); |
190 | 205 | ||
206 | write_unlock_irqrestore(&device_info->lock, flags); | ||
207 | |||
191 | if (buf->pool) | 208 | if (buf->pool) |
192 | dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr); | 209 | dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr); |
193 | else | 210 | else |
@@ -396,7 +413,6 @@ dma_addr_t | |||
396 | dma_map_single(struct device *dev, void *ptr, size_t size, | 413 | dma_map_single(struct device *dev, void *ptr, size_t size, |
397 | enum dma_data_direction dir) | 414 | enum dma_data_direction dir) |
398 | { | 415 | { |
399 | unsigned long flags; | ||
400 | dma_addr_t dma_addr; | 416 | dma_addr_t dma_addr; |
401 | 417 | ||
402 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", | 418 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", |
@@ -404,12 +420,8 @@ dma_map_single(struct device *dev, void *ptr, size_t size, | |||
404 | 420 | ||
405 | BUG_ON(dir == DMA_NONE); | 421 | BUG_ON(dir == DMA_NONE); |
406 | 422 | ||
407 | local_irq_save(flags); | ||
408 | |||
409 | dma_addr = map_single(dev, ptr, size, dir); | 423 | dma_addr = map_single(dev, ptr, size, dir); |
410 | 424 | ||
411 | local_irq_restore(flags); | ||
412 | |||
413 | return dma_addr; | 425 | return dma_addr; |
414 | } | 426 | } |
415 | 427 | ||
@@ -424,25 +436,18 @@ void | |||
424 | dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, | 436 | dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, |
425 | enum dma_data_direction dir) | 437 | enum dma_data_direction dir) |
426 | { | 438 | { |
427 | unsigned long flags; | ||
428 | |||
429 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", | 439 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", |
430 | __func__, (void *) dma_addr, size, dir); | 440 | __func__, (void *) dma_addr, size, dir); |
431 | 441 | ||
432 | BUG_ON(dir == DMA_NONE); | 442 | BUG_ON(dir == DMA_NONE); |
433 | 443 | ||
434 | local_irq_save(flags); | ||
435 | |||
436 | unmap_single(dev, dma_addr, size, dir); | 444 | unmap_single(dev, dma_addr, size, dir); |
437 | |||
438 | local_irq_restore(flags); | ||
439 | } | 445 | } |
440 | 446 | ||
441 | int | 447 | int |
442 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | 448 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, |
443 | enum dma_data_direction dir) | 449 | enum dma_data_direction dir) |
444 | { | 450 | { |
445 | unsigned long flags; | ||
446 | int i; | 451 | int i; |
447 | 452 | ||
448 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", | 453 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", |
@@ -450,8 +455,6 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
450 | 455 | ||
451 | BUG_ON(dir == DMA_NONE); | 456 | BUG_ON(dir == DMA_NONE); |
452 | 457 | ||
453 | local_irq_save(flags); | ||
454 | |||
455 | for (i = 0; i < nents; i++, sg++) { | 458 | for (i = 0; i < nents; i++, sg++) { |
456 | struct page *page = sg->page; | 459 | struct page *page = sg->page; |
457 | unsigned int offset = sg->offset; | 460 | unsigned int offset = sg->offset; |
@@ -462,8 +465,6 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
462 | map_single(dev, ptr, length, dir); | 465 | map_single(dev, ptr, length, dir); |
463 | } | 466 | } |
464 | 467 | ||
465 | local_irq_restore(flags); | ||
466 | |||
467 | return nents; | 468 | return nents; |
468 | } | 469 | } |
469 | 470 | ||
@@ -471,7 +472,6 @@ void | |||
471 | dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, | 472 | dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, |
472 | enum dma_data_direction dir) | 473 | enum dma_data_direction dir) |
473 | { | 474 | { |
474 | unsigned long flags; | ||
475 | int i; | 475 | int i; |
476 | 476 | ||
477 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", | 477 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", |
@@ -479,55 +479,38 @@ dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
479 | 479 | ||
480 | BUG_ON(dir == DMA_NONE); | 480 | BUG_ON(dir == DMA_NONE); |
481 | 481 | ||
482 | local_irq_save(flags); | ||
483 | |||
484 | for (i = 0; i < nents; i++, sg++) { | 482 | for (i = 0; i < nents; i++, sg++) { |
485 | dma_addr_t dma_addr = sg->dma_address; | 483 | dma_addr_t dma_addr = sg->dma_address; |
486 | unsigned int length = sg->length; | 484 | unsigned int length = sg->length; |
487 | 485 | ||
488 | unmap_single(dev, dma_addr, length, dir); | 486 | unmap_single(dev, dma_addr, length, dir); |
489 | } | 487 | } |
490 | |||
491 | local_irq_restore(flags); | ||
492 | } | 488 | } |
493 | 489 | ||
494 | void | 490 | void |
495 | dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_addr, size_t size, | 491 | dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_addr, size_t size, |
496 | enum dma_data_direction dir) | 492 | enum dma_data_direction dir) |
497 | { | 493 | { |
498 | unsigned long flags; | ||
499 | |||
500 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", | 494 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", |
501 | __func__, (void *) dma_addr, size, dir); | 495 | __func__, (void *) dma_addr, size, dir); |
502 | 496 | ||
503 | local_irq_save(flags); | ||
504 | |||
505 | sync_single(dev, dma_addr, size, dir); | 497 | sync_single(dev, dma_addr, size, dir); |
506 | |||
507 | local_irq_restore(flags); | ||
508 | } | 498 | } |
509 | 499 | ||
510 | void | 500 | void |
511 | dma_sync_single_for_device(struct device *dev, dma_addr_t dma_addr, size_t size, | 501 | dma_sync_single_for_device(struct device *dev, dma_addr_t dma_addr, size_t size, |
512 | enum dma_data_direction dir) | 502 | enum dma_data_direction dir) |
513 | { | 503 | { |
514 | unsigned long flags; | ||
515 | |||
516 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", | 504 | dev_dbg(dev, "%s(ptr=%p,size=%d,dir=%x)\n", |
517 | __func__, (void *) dma_addr, size, dir); | 505 | __func__, (void *) dma_addr, size, dir); |
518 | 506 | ||
519 | local_irq_save(flags); | ||
520 | |||
521 | sync_single(dev, dma_addr, size, dir); | 507 | sync_single(dev, dma_addr, size, dir); |
522 | |||
523 | local_irq_restore(flags); | ||
524 | } | 508 | } |
525 | 509 | ||
526 | void | 510 | void |
527 | dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, | 511 | dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, |
528 | enum dma_data_direction dir) | 512 | enum dma_data_direction dir) |
529 | { | 513 | { |
530 | unsigned long flags; | ||
531 | int i; | 514 | int i; |
532 | 515 | ||
533 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", | 516 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", |
@@ -535,23 +518,18 @@ dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, | |||
535 | 518 | ||
536 | BUG_ON(dir == DMA_NONE); | 519 | BUG_ON(dir == DMA_NONE); |
537 | 520 | ||
538 | local_irq_save(flags); | ||
539 | |||
540 | for (i = 0; i < nents; i++, sg++) { | 521 | for (i = 0; i < nents; i++, sg++) { |
541 | dma_addr_t dma_addr = sg->dma_address; | 522 | dma_addr_t dma_addr = sg->dma_address; |
542 | unsigned int length = sg->length; | 523 | unsigned int length = sg->length; |
543 | 524 | ||
544 | sync_single(dev, dma_addr, length, dir); | 525 | sync_single(dev, dma_addr, length, dir); |
545 | } | 526 | } |
546 | |||
547 | local_irq_restore(flags); | ||
548 | } | 527 | } |
549 | 528 | ||
550 | void | 529 | void |
551 | dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, | 530 | dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, |
552 | enum dma_data_direction dir) | 531 | enum dma_data_direction dir) |
553 | { | 532 | { |
554 | unsigned long flags; | ||
555 | int i; | 533 | int i; |
556 | 534 | ||
557 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", | 535 | dev_dbg(dev, "%s(sg=%p,nents=%d,dir=%x)\n", |
@@ -559,16 +537,12 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, | |||
559 | 537 | ||
560 | BUG_ON(dir == DMA_NONE); | 538 | BUG_ON(dir == DMA_NONE); |
561 | 539 | ||
562 | local_irq_save(flags); | ||
563 | |||
564 | for (i = 0; i < nents; i++, sg++) { | 540 | for (i = 0; i < nents; i++, sg++) { |
565 | dma_addr_t dma_addr = sg->dma_address; | 541 | dma_addr_t dma_addr = sg->dma_address; |
566 | unsigned int length = sg->length; | 542 | unsigned int length = sg->length; |
567 | 543 | ||
568 | sync_single(dev, dma_addr, length, dir); | 544 | sync_single(dev, dma_addr, length, dir); |
569 | } | 545 | } |
570 | |||
571 | local_irq_restore(flags); | ||
572 | } | 546 | } |
573 | 547 | ||
574 | static int | 548 | static int |
@@ -622,6 +596,7 @@ dmabounce_register_dev(struct device *dev, unsigned long small_buffer_size, | |||
622 | 596 | ||
623 | device_info->dev = dev; | 597 | device_info->dev = dev; |
624 | INIT_LIST_HEAD(&device_info->safe_buffers); | 598 | INIT_LIST_HEAD(&device_info->safe_buffers); |
599 | rwlock_init(&device_info->lock); | ||
625 | 600 | ||
626 | #ifdef STATS | 601 | #ifdef STATS |
627 | device_info->total_allocs = 0; | 602 | device_info->total_allocs = 0; |
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 3cd8c9ee4510..045e37e07330 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -49,13 +49,6 @@ | |||
49 | #define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */ | 49 | #define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */ |
50 | #define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */ | 50 | #define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */ |
51 | 51 | ||
52 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
53 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
54 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
55 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
56 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
57 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
58 | |||
59 | /* | 52 | /* |
60 | * Prototypes | 53 | * Prototypes |
61 | */ | 54 | */ |
@@ -82,12 +75,13 @@ DEFINE_LED_TRIGGER(sharpsl_charge_led_trigger); | |||
82 | static int get_percentage(int voltage) | 75 | static int get_percentage(int voltage) |
83 | { | 76 | { |
84 | int i = sharpsl_pm.machinfo->bat_levels - 1; | 77 | int i = sharpsl_pm.machinfo->bat_levels - 1; |
78 | int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_status() : 0; | ||
85 | struct battery_thresh *thresh; | 79 | struct battery_thresh *thresh; |
86 | 80 | ||
87 | if (sharpsl_pm.charge_mode == CHRG_ON) | 81 | if (sharpsl_pm.charge_mode == CHRG_ON) |
88 | thresh=sharpsl_pm.machinfo->bat_levels_acin; | 82 | thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_acin; |
89 | else | 83 | else |
90 | thresh=sharpsl_pm.machinfo->bat_levels_noac; | 84 | thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noac; |
91 | 85 | ||
92 | while (i > 0 && (voltage > thresh[i].voltage)) | 86 | while (i > 0 && (voltage > thresh[i].voltage)) |
93 | i--; | 87 | i--; |
@@ -131,7 +125,7 @@ static void sharpsl_battery_thread(void *private_) | |||
131 | sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE); | 125 | sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE); |
132 | 126 | ||
133 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ | 127 | /* Corgi cannot confirm when battery fully charged so periodically kick! */ |
134 | if (machine_is_corgi() && (sharpsl_pm.charge_mode == CHRG_ON) | 128 | if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON) |
135 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) | 129 | && time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL)) |
136 | schedule_work(&toggle_charger); | 130 | schedule_work(&toggle_charger); |
137 | 131 | ||
@@ -166,11 +160,11 @@ static void sharpsl_battery_thread(void *private_) | |||
166 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || | 160 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || |
167 | (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) { | 161 | (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) { |
168 | if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) { | 162 | if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) { |
169 | corgibl_limit_intensity(1); | 163 | sharpsl_pm.machinfo->backlight_limit(1); |
170 | sharpsl_pm.flags |= SHARPSL_BL_LIMIT; | 164 | sharpsl_pm.flags |= SHARPSL_BL_LIMIT; |
171 | } | 165 | } |
172 | } else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) { | 166 | } else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) { |
173 | corgibl_limit_intensity(0); | 167 | sharpsl_pm.machinfo->backlight_limit(0); |
174 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; | 168 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; |
175 | } | 169 | } |
176 | 170 | ||
@@ -418,7 +412,7 @@ static int sharpsl_check_battery_temp(void) | |||
418 | val = get_select_val(buff); | 412 | val = get_select_val(buff); |
419 | 413 | ||
420 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); | 414 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); |
421 | if (val > SHARPSL_CHARGE_ON_TEMP) | 415 | if (val > sharpsl_pm.machinfo->charge_on_temp) |
422 | return -1; | 416 | return -1; |
423 | 417 | ||
424 | return 0; | 418 | return 0; |
@@ -450,7 +444,7 @@ static int sharpsl_check_battery_voltage(void) | |||
450 | val = get_select_val(buff); | 444 | val = get_select_val(buff); |
451 | dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val); | 445 | dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val); |
452 | 446 | ||
453 | if (val < SHARPSL_CHARGE_ON_VOLT) | 447 | if (val < sharpsl_pm.machinfo->charge_on_volt) |
454 | return -1; | 448 | return -1; |
455 | 449 | ||
456 | return 0; | 450 | return 0; |
@@ -468,7 +462,7 @@ static int sharpsl_ac_check(void) | |||
468 | temp = get_select_val(buff); | 462 | temp = get_select_val(buff); |
469 | dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp); | 463 | dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp); |
470 | 464 | ||
471 | if ((temp > SHARPSL_CHARGE_ON_ACIN_HIGH) || (temp < SHARPSL_CHARGE_ON_ACIN_LOW)) { | 465 | if ((temp > sharpsl_pm.machinfo->charge_acin_high) || (temp < sharpsl_pm.machinfo->charge_acin_low)) { |
472 | dev_err(sharpsl_pm.dev, "Error: AC check failed.\n"); | 466 | dev_err(sharpsl_pm.dev, "Error: AC check failed.\n"); |
473 | return -1; | 467 | return -1; |
474 | } | 468 | } |
@@ -627,8 +621,8 @@ static int sharpsl_fatal_check(void) | |||
627 | temp = get_select_val(buff); | 621 | temp = get_select_val(buff); |
628 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); | 622 | dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); |
629 | 623 | ||
630 | if ((acin && (temp < SHARPSL_FATAL_ACIN_VOLT)) || | 624 | if ((acin && (temp < sharpsl_pm.machinfo->fatal_acin_volt)) || |
631 | (!acin && (temp < SHARPSL_FATAL_NOACIN_VOLT))) | 625 | (!acin && (temp < sharpsl_pm.machinfo->fatal_noacin_volt))) |
632 | return -1; | 626 | return -1; |
633 | return 0; | 627 | return 0; |
634 | } | 628 | } |
diff --git a/arch/arm/common/uengine.c b/arch/arm/common/uengine.c index a1310b71004e..dfca596a9a27 100644 --- a/arch/arm/common/uengine.c +++ b/arch/arm/common/uengine.c | |||
@@ -18,10 +18,26 @@ | |||
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/string.h> | 19 | #include <linux/string.h> |
20 | #include <asm/hardware.h> | 20 | #include <asm/hardware.h> |
21 | #include <asm/arch/ixp2000-regs.h> | 21 | #include <asm/arch/hardware.h> |
22 | #include <asm/hardware/uengine.h> | 22 | #include <asm/hardware/uengine.h> |
23 | #include <asm/io.h> | 23 | #include <asm/io.h> |
24 | 24 | ||
25 | #if defined(CONFIG_ARCH_IXP2000) | ||
26 | #define IXP_UENGINE_CSR_VIRT_BASE IXP2000_UENGINE_CSR_VIRT_BASE | ||
27 | #define IXP_PRODUCT_ID IXP2000_PRODUCT_ID | ||
28 | #define IXP_MISC_CONTROL IXP2000_MISC_CONTROL | ||
29 | #define IXP_RESET1 IXP2000_RESET1 | ||
30 | #else | ||
31 | #if defined(CONFIG_ARCH_IXP23XX) | ||
32 | #define IXP_UENGINE_CSR_VIRT_BASE IXP23XX_UENGINE_CSR_VIRT_BASE | ||
33 | #define IXP_PRODUCT_ID IXP23XX_PRODUCT_ID | ||
34 | #define IXP_MISC_CONTROL IXP23XX_MISC_CONTROL | ||
35 | #define IXP_RESET1 IXP23XX_RESET1 | ||
36 | #else | ||
37 | #error unknown platform | ||
38 | #endif | ||
39 | #endif | ||
40 | |||
25 | #define USTORE_ADDRESS 0x000 | 41 | #define USTORE_ADDRESS 0x000 |
26 | #define USTORE_DATA_LOWER 0x004 | 42 | #define USTORE_DATA_LOWER 0x004 |
27 | #define USTORE_DATA_UPPER 0x008 | 43 | #define USTORE_DATA_UPPER 0x008 |
@@ -43,7 +59,7 @@ u32 ixp2000_uengine_mask; | |||
43 | 59 | ||
44 | static void *ixp2000_uengine_csr_area(int uengine) | 60 | static void *ixp2000_uengine_csr_area(int uengine) |
45 | { | 61 | { |
46 | return ((void *)IXP2000_UENGINE_CSR_VIRT_BASE) + (uengine << 10); | 62 | return ((void *)IXP_UENGINE_CSR_VIRT_BASE) + (uengine << 10); |
47 | } | 63 | } |
48 | 64 | ||
49 | /* | 65 | /* |
@@ -91,8 +107,13 @@ EXPORT_SYMBOL(ixp2000_uengine_csr_write); | |||
91 | 107 | ||
92 | void ixp2000_uengine_reset(u32 uengine_mask) | 108 | void ixp2000_uengine_reset(u32 uengine_mask) |
93 | { | 109 | { |
94 | ixp2000_reg_wrb(IXP2000_RESET1, uengine_mask & ixp2000_uengine_mask); | 110 | u32 value; |
95 | ixp2000_reg_wrb(IXP2000_RESET1, 0); | 111 | |
112 | value = ixp2000_reg_read(IXP_RESET1) & ~ixp2000_uengine_mask; | ||
113 | |||
114 | uengine_mask &= ixp2000_uengine_mask; | ||
115 | ixp2000_reg_wrb(IXP_RESET1, value | uengine_mask); | ||
116 | ixp2000_reg_wrb(IXP_RESET1, value); | ||
96 | } | 117 | } |
97 | EXPORT_SYMBOL(ixp2000_uengine_reset); | 118 | EXPORT_SYMBOL(ixp2000_uengine_reset); |
98 | 119 | ||
@@ -235,11 +256,12 @@ static int check_ixp_type(struct ixp2000_uengine_code *c) | |||
235 | u32 product_id; | 256 | u32 product_id; |
236 | u32 rev; | 257 | u32 rev; |
237 | 258 | ||
238 | product_id = ixp2000_reg_read(IXP2000_PRODUCT_ID); | 259 | product_id = ixp2000_reg_read(IXP_PRODUCT_ID); |
239 | if (((product_id >> 16) & 0x1f) != 0) | 260 | if (((product_id >> 16) & 0x1f) != 0) |
240 | return 0; | 261 | return 0; |
241 | 262 | ||
242 | switch ((product_id >> 8) & 0xff) { | 263 | switch ((product_id >> 8) & 0xff) { |
264 | #ifdef CONFIG_ARCH_IXP2000 | ||
243 | case 0: /* IXP2800 */ | 265 | case 0: /* IXP2800 */ |
244 | if (!(c->cpu_model_bitmask & 4)) | 266 | if (!(c->cpu_model_bitmask & 4)) |
245 | return 0; | 267 | return 0; |
@@ -254,6 +276,14 @@ static int check_ixp_type(struct ixp2000_uengine_code *c) | |||
254 | if (!(c->cpu_model_bitmask & 2)) | 276 | if (!(c->cpu_model_bitmask & 2)) |
255 | return 0; | 277 | return 0; |
256 | break; | 278 | break; |
279 | #endif | ||
280 | |||
281 | #ifdef CONFIG_ARCH_IXP23XX | ||
282 | case 4: /* IXP23xx */ | ||
283 | if (!(c->cpu_model_bitmask & 0x3f0)) | ||
284 | return 0; | ||
285 | break; | ||
286 | #endif | ||
257 | 287 | ||
258 | default: | 288 | default: |
259 | return 0; | 289 | return 0; |
@@ -432,7 +462,8 @@ static int __init ixp2000_uengine_init(void) | |||
432 | /* | 462 | /* |
433 | * Determine number of microengines present. | 463 | * Determine number of microengines present. |
434 | */ | 464 | */ |
435 | switch ((ixp2000_reg_read(IXP2000_PRODUCT_ID) >> 8) & 0x1fff) { | 465 | switch ((ixp2000_reg_read(IXP_PRODUCT_ID) >> 8) & 0x1fff) { |
466 | #ifdef CONFIG_ARCH_IXP2000 | ||
436 | case 0: /* IXP2800 */ | 467 | case 0: /* IXP2800 */ |
437 | case 1: /* IXP2850 */ | 468 | case 1: /* IXP2850 */ |
438 | ixp2000_uengine_mask = 0x00ff00ff; | 469 | ixp2000_uengine_mask = 0x00ff00ff; |
@@ -441,10 +472,17 @@ static int __init ixp2000_uengine_init(void) | |||
441 | case 2: /* IXP2400 */ | 472 | case 2: /* IXP2400 */ |
442 | ixp2000_uengine_mask = 0x000f000f; | 473 | ixp2000_uengine_mask = 0x000f000f; |
443 | break; | 474 | break; |
475 | #endif | ||
476 | |||
477 | #ifdef CONFIG_ARCH_IXP23XX | ||
478 | case 4: /* IXP23xx */ | ||
479 | ixp2000_uengine_mask = (*IXP23XX_EXP_CFG_FUSE >> 8) & 0xf; | ||
480 | break; | ||
481 | #endif | ||
444 | 482 | ||
445 | default: | 483 | default: |
446 | printk(KERN_INFO "Detected unknown IXP2000 model (%.8x)\n", | 484 | printk(KERN_INFO "Detected unknown IXP2000 model (%.8x)\n", |
447 | (unsigned int)ixp2000_reg_read(IXP2000_PRODUCT_ID)); | 485 | (unsigned int)ixp2000_reg_read(IXP_PRODUCT_ID)); |
448 | ixp2000_uengine_mask = 0x00000000; | 486 | ixp2000_uengine_mask = 0x00000000; |
449 | break; | 487 | break; |
450 | } | 488 | } |
@@ -457,15 +495,15 @@ static int __init ixp2000_uengine_init(void) | |||
457 | /* | 495 | /* |
458 | * Synchronise timestamp counters across all microengines. | 496 | * Synchronise timestamp counters across all microengines. |
459 | */ | 497 | */ |
460 | value = ixp2000_reg_read(IXP2000_MISC_CONTROL); | 498 | value = ixp2000_reg_read(IXP_MISC_CONTROL); |
461 | ixp2000_reg_wrb(IXP2000_MISC_CONTROL, value & ~0x80); | 499 | ixp2000_reg_wrb(IXP_MISC_CONTROL, value & ~0x80); |
462 | for (uengine = 0; uengine < 32; uengine++) { | 500 | for (uengine = 0; uengine < 32; uengine++) { |
463 | if (ixp2000_uengine_mask & (1 << uengine)) { | 501 | if (ixp2000_uengine_mask & (1 << uengine)) { |
464 | ixp2000_uengine_csr_write(uengine, TIMESTAMP_LOW, 0); | 502 | ixp2000_uengine_csr_write(uengine, TIMESTAMP_LOW, 0); |
465 | ixp2000_uengine_csr_write(uengine, TIMESTAMP_HIGH, 0); | 503 | ixp2000_uengine_csr_write(uengine, TIMESTAMP_HIGH, 0); |
466 | } | 504 | } |
467 | } | 505 | } |
468 | ixp2000_reg_wrb(IXP2000_MISC_CONTROL, value | 0x80); | 506 | ixp2000_reg_wrb(IXP_MISC_CONTROL, value | 0x80); |
469 | 507 | ||
470 | return 0; | 508 | return 0; |
471 | } | 509 | } |
diff --git a/arch/arm/configs/ateb9200_defconfig b/arch/arm/configs/ateb9200_defconfig new file mode 100644 index 000000000000..69c39e098743 --- /dev/null +++ b/arch/arm/configs/ateb9200_defconfig | |||
@@ -0,0 +1,1312 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc3 | ||
4 | # Sun May 7 16:53:18 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | # CONFIG_POSIX_MQUEUE is not set | ||
29 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
30 | CONFIG_SYSCTL=y | ||
31 | # CONFIG_AUDIT is not set | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | # CONFIG_RELAY is not set | ||
34 | CONFIG_INITRAMFS_SOURCE="" | ||
35 | CONFIG_UID16=y | ||
36 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
37 | CONFIG_EMBEDDED=y | ||
38 | CONFIG_KALLSYMS=y | ||
39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
40 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | ||
42 | CONFIG_BUG=y | ||
43 | CONFIG_ELF_CORE=y | ||
44 | CONFIG_BASE_FULL=y | ||
45 | CONFIG_FUTEX=y | ||
46 | CONFIG_EPOLL=y | ||
47 | CONFIG_SHMEM=y | ||
48 | CONFIG_SLAB=y | ||
49 | # CONFIG_TINY_SHMEM is not set | ||
50 | CONFIG_BASE_SMALL=0 | ||
51 | # CONFIG_SLOB is not set | ||
52 | |||
53 | # | ||
54 | # Loadable module support | ||
55 | # | ||
56 | CONFIG_MODULES=y | ||
57 | CONFIG_MODULE_UNLOAD=y | ||
58 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
59 | # CONFIG_MODVERSIONS is not set | ||
60 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
61 | CONFIG_KMOD=y | ||
62 | |||
63 | # | ||
64 | # Block layer | ||
65 | # | ||
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
67 | |||
68 | # | ||
69 | # IO Schedulers | ||
70 | # | ||
71 | CONFIG_IOSCHED_NOOP=y | ||
72 | CONFIG_IOSCHED_AS=y | ||
73 | CONFIG_IOSCHED_DEADLINE=y | ||
74 | CONFIG_IOSCHED_CFQ=y | ||
75 | CONFIG_DEFAULT_AS=y | ||
76 | # CONFIG_DEFAULT_DEADLINE is not set | ||
77 | # CONFIG_DEFAULT_CFQ is not set | ||
78 | # CONFIG_DEFAULT_NOOP is not set | ||
79 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
80 | |||
81 | # | ||
82 | # System Type | ||
83 | # | ||
84 | # CONFIG_ARCH_CLPS7500 is not set | ||
85 | # CONFIG_ARCH_CLPS711X is not set | ||
86 | # CONFIG_ARCH_CO285 is not set | ||
87 | # CONFIG_ARCH_EBSA110 is not set | ||
88 | # CONFIG_ARCH_EP93XX is not set | ||
89 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
90 | # CONFIG_ARCH_INTEGRATOR is not set | ||
91 | # CONFIG_ARCH_IOP3XX is not set | ||
92 | # CONFIG_ARCH_IXP4XX is not set | ||
93 | # CONFIG_ARCH_IXP2000 is not set | ||
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | ||
96 | # CONFIG_ARCH_PXA is not set | ||
97 | # CONFIG_ARCH_RPC is not set | ||
98 | # CONFIG_ARCH_SA1100 is not set | ||
99 | # CONFIG_ARCH_S3C2410 is not set | ||
100 | # CONFIG_ARCH_SHARK is not set | ||
101 | # CONFIG_ARCH_LH7A40X is not set | ||
102 | # CONFIG_ARCH_OMAP is not set | ||
103 | # CONFIG_ARCH_VERSATILE is not set | ||
104 | # CONFIG_ARCH_REALVIEW is not set | ||
105 | # CONFIG_ARCH_IMX is not set | ||
106 | # CONFIG_ARCH_H720X is not set | ||
107 | # CONFIG_ARCH_AAEC2000 is not set | ||
108 | CONFIG_ARCH_AT91RM9200=y | ||
109 | |||
110 | # | ||
111 | # AT91RM9200 Implementations | ||
112 | # | ||
113 | |||
114 | # | ||
115 | # AT91RM9200 Board Type | ||
116 | # | ||
117 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
118 | # CONFIG_MACH_AT91RM9200EK is not set | ||
119 | # CONFIG_MACH_CSB337 is not set | ||
120 | # CONFIG_MACH_CSB637 is not set | ||
121 | # CONFIG_MACH_CARMEVA is not set | ||
122 | # CONFIG_MACH_KB9200 is not set | ||
123 | CONFIG_MACH_ATEB9200=y | ||
124 | # CONFIG_MACH_KAFA is not set | ||
125 | |||
126 | # | ||
127 | # AT91 Feature Selections | ||
128 | # | ||
129 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
130 | |||
131 | # | ||
132 | # Processor Type | ||
133 | # | ||
134 | CONFIG_CPU_32=y | ||
135 | CONFIG_CPU_ARM920T=y | ||
136 | CONFIG_CPU_32v4=y | ||
137 | CONFIG_CPU_ABRT_EV4T=y | ||
138 | CONFIG_CPU_CACHE_V4WT=y | ||
139 | CONFIG_CPU_CACHE_VIVT=y | ||
140 | CONFIG_CPU_COPY_V4WB=y | ||
141 | CONFIG_CPU_TLB_V4WBI=y | ||
142 | |||
143 | # | ||
144 | # Processor Features | ||
145 | # | ||
146 | CONFIG_ARM_THUMB=y | ||
147 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
148 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
149 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
150 | |||
151 | # | ||
152 | # Bus support | ||
153 | # | ||
154 | |||
155 | # | ||
156 | # PCCARD (PCMCIA/CardBus) support | ||
157 | # | ||
158 | CONFIG_PCCARD=m | ||
159 | # CONFIG_PCMCIA_DEBUG is not set | ||
160 | CONFIG_PCMCIA=m | ||
161 | CONFIG_PCMCIA_LOAD_CIS=y | ||
162 | CONFIG_PCMCIA_IOCTL=y | ||
163 | |||
164 | # | ||
165 | # PC-card bridges | ||
166 | # | ||
167 | CONFIG_AT91_CF=m | ||
168 | |||
169 | # | ||
170 | # Kernel Features | ||
171 | # | ||
172 | CONFIG_PREEMPT=y | ||
173 | CONFIG_NO_IDLE_HZ=y | ||
174 | CONFIG_HZ=100 | ||
175 | # CONFIG_AEABI is not set | ||
176 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
177 | CONFIG_SELECT_MEMORY_MODEL=y | ||
178 | CONFIG_FLATMEM_MANUAL=y | ||
179 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
180 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
181 | CONFIG_FLATMEM=y | ||
182 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
183 | # CONFIG_SPARSEMEM_STATIC is not set | ||
184 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
185 | # CONFIG_LEDS is not set | ||
186 | CONFIG_ALIGNMENT_TRAP=y | ||
187 | |||
188 | # | ||
189 | # Boot options | ||
190 | # | ||
191 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
192 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
193 | CONFIG_CMDLINE="" | ||
194 | # CONFIG_XIP_KERNEL is not set | ||
195 | |||
196 | # | ||
197 | # Floating point emulation | ||
198 | # | ||
199 | |||
200 | # | ||
201 | # At least one emulation must be selected | ||
202 | # | ||
203 | CONFIG_FPE_NWFPE=y | ||
204 | # CONFIG_FPE_NWFPE_XP is not set | ||
205 | # CONFIG_FPE_FASTFPE is not set | ||
206 | |||
207 | # | ||
208 | # Userspace binary formats | ||
209 | # | ||
210 | CONFIG_BINFMT_ELF=y | ||
211 | # CONFIG_BINFMT_AOUT is not set | ||
212 | # CONFIG_BINFMT_MISC is not set | ||
213 | # CONFIG_ARTHUR is not set | ||
214 | |||
215 | # | ||
216 | # Power management options | ||
217 | # | ||
218 | CONFIG_PM=y | ||
219 | CONFIG_PM_LEGACY=y | ||
220 | # CONFIG_PM_DEBUG is not set | ||
221 | # CONFIG_APM is not set | ||
222 | |||
223 | # | ||
224 | # Networking | ||
225 | # | ||
226 | CONFIG_NET=y | ||
227 | |||
228 | # | ||
229 | # Networking options | ||
230 | # | ||
231 | # CONFIG_NETDEBUG is not set | ||
232 | CONFIG_PACKET=y | ||
233 | # CONFIG_PACKET_MMAP is not set | ||
234 | CONFIG_UNIX=y | ||
235 | CONFIG_XFRM=y | ||
236 | # CONFIG_XFRM_USER is not set | ||
237 | CONFIG_NET_KEY=y | ||
238 | CONFIG_INET=y | ||
239 | # CONFIG_IP_MULTICAST is not set | ||
240 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
241 | CONFIG_IP_FIB_HASH=y | ||
242 | # CONFIG_IP_PNP is not set | ||
243 | # CONFIG_NET_IPIP is not set | ||
244 | # CONFIG_NET_IPGRE is not set | ||
245 | # CONFIG_ARPD is not set | ||
246 | # CONFIG_SYN_COOKIES is not set | ||
247 | # CONFIG_INET_AH is not set | ||
248 | # CONFIG_INET_ESP is not set | ||
249 | # CONFIG_INET_IPCOMP is not set | ||
250 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
251 | # CONFIG_INET_TUNNEL is not set | ||
252 | CONFIG_INET_DIAG=y | ||
253 | CONFIG_INET_TCP_DIAG=y | ||
254 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
255 | CONFIG_TCP_CONG_BIC=y | ||
256 | # CONFIG_IPV6 is not set | ||
257 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
258 | # CONFIG_INET6_TUNNEL is not set | ||
259 | # CONFIG_NETFILTER is not set | ||
260 | |||
261 | # | ||
262 | # DCCP Configuration (EXPERIMENTAL) | ||
263 | # | ||
264 | # CONFIG_IP_DCCP is not set | ||
265 | |||
266 | # | ||
267 | # SCTP Configuration (EXPERIMENTAL) | ||
268 | # | ||
269 | # CONFIG_IP_SCTP is not set | ||
270 | |||
271 | # | ||
272 | # TIPC Configuration (EXPERIMENTAL) | ||
273 | # | ||
274 | # CONFIG_TIPC is not set | ||
275 | # CONFIG_ATM is not set | ||
276 | CONFIG_BRIDGE=m | ||
277 | CONFIG_VLAN_8021Q=m | ||
278 | # CONFIG_DECNET is not set | ||
279 | CONFIG_LLC=m | ||
280 | # CONFIG_LLC2 is not set | ||
281 | # CONFIG_IPX is not set | ||
282 | # CONFIG_ATALK is not set | ||
283 | # CONFIG_X25 is not set | ||
284 | # CONFIG_LAPB is not set | ||
285 | # CONFIG_NET_DIVERT is not set | ||
286 | # CONFIG_ECONET is not set | ||
287 | # CONFIG_WAN_ROUTER is not set | ||
288 | |||
289 | # | ||
290 | # QoS and/or fair queueing | ||
291 | # | ||
292 | # CONFIG_NET_SCHED is not set | ||
293 | |||
294 | # | ||
295 | # Network testing | ||
296 | # | ||
297 | # CONFIG_NET_PKTGEN is not set | ||
298 | # CONFIG_HAMRADIO is not set | ||
299 | # CONFIG_IRDA is not set | ||
300 | # CONFIG_BT is not set | ||
301 | CONFIG_IEEE80211=m | ||
302 | # CONFIG_IEEE80211_DEBUG is not set | ||
303 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
304 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
305 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
306 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
307 | CONFIG_WIRELESS_EXT=y | ||
308 | |||
309 | # | ||
310 | # Device Drivers | ||
311 | # | ||
312 | |||
313 | # | ||
314 | # Generic Driver Options | ||
315 | # | ||
316 | CONFIG_STANDALONE=y | ||
317 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
318 | CONFIG_FW_LOADER=y | ||
319 | |||
320 | # | ||
321 | # Connector - unified userspace <-> kernelspace linker | ||
322 | # | ||
323 | # CONFIG_CONNECTOR is not set | ||
324 | |||
325 | # | ||
326 | # Memory Technology Devices (MTD) | ||
327 | # | ||
328 | CONFIG_MTD=y | ||
329 | # CONFIG_MTD_DEBUG is not set | ||
330 | # CONFIG_MTD_CONCAT is not set | ||
331 | CONFIG_MTD_PARTITIONS=y | ||
332 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
333 | CONFIG_MTD_CMDLINE_PARTS=y | ||
334 | # CONFIG_MTD_AFS_PARTS is not set | ||
335 | |||
336 | # | ||
337 | # User Modules And Translation Layers | ||
338 | # | ||
339 | CONFIG_MTD_CHAR=y | ||
340 | # CONFIG_MTD_BLOCK is not set | ||
341 | CONFIG_MTD_BLOCK_RO=y | ||
342 | # CONFIG_FTL is not set | ||
343 | # CONFIG_NFTL is not set | ||
344 | # CONFIG_INFTL is not set | ||
345 | # CONFIG_RFD_FTL is not set | ||
346 | |||
347 | # | ||
348 | # RAM/ROM/Flash chip drivers | ||
349 | # | ||
350 | # CONFIG_MTD_CFI is not set | ||
351 | # CONFIG_MTD_JEDECPROBE is not set | ||
352 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
353 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
354 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
355 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
356 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
357 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
358 | CONFIG_MTD_CFI_I1=y | ||
359 | CONFIG_MTD_CFI_I2=y | ||
360 | # CONFIG_MTD_CFI_I4 is not set | ||
361 | # CONFIG_MTD_CFI_I8 is not set | ||
362 | # CONFIG_MTD_RAM is not set | ||
363 | # CONFIG_MTD_ROM is not set | ||
364 | # CONFIG_MTD_ABSENT is not set | ||
365 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
366 | |||
367 | # | ||
368 | # Mapping drivers for chip access | ||
369 | # | ||
370 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
371 | # CONFIG_MTD_PLATRAM is not set | ||
372 | |||
373 | # | ||
374 | # Self-contained MTD device drivers | ||
375 | # | ||
376 | # CONFIG_MTD_SLRAM is not set | ||
377 | # CONFIG_MTD_PHRAM is not set | ||
378 | # CONFIG_MTD_MTDRAM is not set | ||
379 | # CONFIG_MTD_BLOCK2MTD is not set | ||
380 | |||
381 | # | ||
382 | # Disk-On-Chip Device Drivers | ||
383 | # | ||
384 | # CONFIG_MTD_DOC2000 is not set | ||
385 | # CONFIG_MTD_DOC2001 is not set | ||
386 | # CONFIG_MTD_DOC2001PLUS is not set | ||
387 | CONFIG_MTD_AT91_DATAFLASH=y | ||
388 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
389 | |||
390 | # | ||
391 | # NAND Flash Device Drivers | ||
392 | # | ||
393 | # CONFIG_MTD_NAND is not set | ||
394 | |||
395 | # | ||
396 | # OneNAND Flash Device Drivers | ||
397 | # | ||
398 | # CONFIG_MTD_ONENAND is not set | ||
399 | |||
400 | # | ||
401 | # Parallel port support | ||
402 | # | ||
403 | # CONFIG_PARPORT is not set | ||
404 | |||
405 | # | ||
406 | # Plug and Play support | ||
407 | # | ||
408 | |||
409 | # | ||
410 | # Block devices | ||
411 | # | ||
412 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
413 | CONFIG_BLK_DEV_LOOP=m | ||
414 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
415 | CONFIG_BLK_DEV_NBD=m | ||
416 | # CONFIG_BLK_DEV_UB is not set | ||
417 | # CONFIG_BLK_DEV_RAM is not set | ||
418 | # CONFIG_BLK_DEV_INITRD is not set | ||
419 | # CONFIG_CDROM_PKTCDVD is not set | ||
420 | # CONFIG_ATA_OVER_ETH is not set | ||
421 | |||
422 | # | ||
423 | # ATA/ATAPI/MFM/RLL support | ||
424 | # | ||
425 | # CONFIG_IDE is not set | ||
426 | |||
427 | # | ||
428 | # SCSI device support | ||
429 | # | ||
430 | # CONFIG_RAID_ATTRS is not set | ||
431 | CONFIG_SCSI=m | ||
432 | CONFIG_SCSI_PROC_FS=y | ||
433 | |||
434 | # | ||
435 | # SCSI support type (disk, tape, CD-ROM) | ||
436 | # | ||
437 | CONFIG_BLK_DEV_SD=m | ||
438 | # CONFIG_CHR_DEV_ST is not set | ||
439 | # CONFIG_CHR_DEV_OSST is not set | ||
440 | CONFIG_BLK_DEV_SR=m | ||
441 | CONFIG_BLK_DEV_SR_VENDOR=y | ||
442 | CONFIG_CHR_DEV_SG=m | ||
443 | # CONFIG_CHR_DEV_SCH is not set | ||
444 | |||
445 | # | ||
446 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
447 | # | ||
448 | CONFIG_SCSI_MULTI_LUN=y | ||
449 | # CONFIG_SCSI_CONSTANTS is not set | ||
450 | # CONFIG_SCSI_LOGGING is not set | ||
451 | |||
452 | # | ||
453 | # SCSI Transport Attributes | ||
454 | # | ||
455 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
456 | # CONFIG_SCSI_FC_ATTRS is not set | ||
457 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
458 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
459 | |||
460 | # | ||
461 | # SCSI low-level drivers | ||
462 | # | ||
463 | # CONFIG_ISCSI_TCP is not set | ||
464 | # CONFIG_SCSI_SATA is not set | ||
465 | # CONFIG_SCSI_DEBUG is not set | ||
466 | |||
467 | # | ||
468 | # PCMCIA SCSI adapter support | ||
469 | # | ||
470 | # CONFIG_PCMCIA_AHA152X is not set | ||
471 | # CONFIG_PCMCIA_FDOMAIN is not set | ||
472 | # CONFIG_PCMCIA_NINJA_SCSI is not set | ||
473 | # CONFIG_PCMCIA_QLOGIC is not set | ||
474 | # CONFIG_PCMCIA_SYM53C500 is not set | ||
475 | |||
476 | # | ||
477 | # Multi-device support (RAID and LVM) | ||
478 | # | ||
479 | # CONFIG_MD is not set | ||
480 | |||
481 | # | ||
482 | # Fusion MPT device support | ||
483 | # | ||
484 | # CONFIG_FUSION is not set | ||
485 | |||
486 | # | ||
487 | # IEEE 1394 (FireWire) support | ||
488 | # | ||
489 | |||
490 | # | ||
491 | # I2O device support | ||
492 | # | ||
493 | |||
494 | # | ||
495 | # Network device support | ||
496 | # | ||
497 | CONFIG_NETDEVICES=y | ||
498 | CONFIG_DUMMY=m | ||
499 | # CONFIG_BONDING is not set | ||
500 | # CONFIG_EQUALIZER is not set | ||
501 | CONFIG_TUN=m | ||
502 | |||
503 | # | ||
504 | # PHY device support | ||
505 | # | ||
506 | CONFIG_PHYLIB=y | ||
507 | |||
508 | # | ||
509 | # MII PHY device drivers | ||
510 | # | ||
511 | # CONFIG_MARVELL_PHY is not set | ||
512 | CONFIG_DAVICOM_PHY=y | ||
513 | # CONFIG_QSEMI_PHY is not set | ||
514 | # CONFIG_LXT_PHY is not set | ||
515 | # CONFIG_CICADA_PHY is not set | ||
516 | |||
517 | # | ||
518 | # Ethernet (10 or 100Mbit) | ||
519 | # | ||
520 | CONFIG_NET_ETHERNET=y | ||
521 | CONFIG_MII=y | ||
522 | CONFIG_ARM_AT91_ETHER=y | ||
523 | # CONFIG_SMC91X is not set | ||
524 | # CONFIG_DM9000 is not set | ||
525 | |||
526 | # | ||
527 | # Ethernet (1000 Mbit) | ||
528 | # | ||
529 | |||
530 | # | ||
531 | # Ethernet (10000 Mbit) | ||
532 | # | ||
533 | |||
534 | # | ||
535 | # Token Ring devices | ||
536 | # | ||
537 | |||
538 | # | ||
539 | # Wireless LAN (non-hamradio) | ||
540 | # | ||
541 | CONFIG_NET_RADIO=y | ||
542 | # CONFIG_NET_WIRELESS_RTNETLINK is not set | ||
543 | |||
544 | # | ||
545 | # Obsolete Wireless cards support (pre-802.11) | ||
546 | # | ||
547 | # CONFIG_STRIP is not set | ||
548 | # CONFIG_PCMCIA_WAVELAN is not set | ||
549 | # CONFIG_PCMCIA_NETWAVE is not set | ||
550 | |||
551 | # | ||
552 | # Wireless 802.11 Frequency Hopping cards support | ||
553 | # | ||
554 | # CONFIG_PCMCIA_RAYCS is not set | ||
555 | |||
556 | # | ||
557 | # Wireless 802.11b ISA/PCI cards support | ||
558 | # | ||
559 | # CONFIG_HERMES is not set | ||
560 | # CONFIG_ATMEL is not set | ||
561 | |||
562 | # | ||
563 | # Wireless 802.11b Pcmcia/Cardbus cards support | ||
564 | # | ||
565 | # CONFIG_AIRO_CS is not set | ||
566 | # CONFIG_PCMCIA_WL3501 is not set | ||
567 | # CONFIG_HOSTAP is not set | ||
568 | CONFIG_NET_WIRELESS=y | ||
569 | |||
570 | # | ||
571 | # PCMCIA network device support | ||
572 | # | ||
573 | # CONFIG_NET_PCMCIA is not set | ||
574 | |||
575 | # | ||
576 | # Wan interfaces | ||
577 | # | ||
578 | # CONFIG_WAN is not set | ||
579 | CONFIG_PPP=m | ||
580 | # CONFIG_PPP_MULTILINK is not set | ||
581 | # CONFIG_PPP_FILTER is not set | ||
582 | CONFIG_PPP_ASYNC=m | ||
583 | CONFIG_PPP_SYNC_TTY=m | ||
584 | CONFIG_PPP_DEFLATE=m | ||
585 | CONFIG_PPP_BSDCOMP=m | ||
586 | # CONFIG_PPP_MPPE is not set | ||
587 | CONFIG_PPPOE=m | ||
588 | # CONFIG_SLIP is not set | ||
589 | # CONFIG_SHAPER is not set | ||
590 | # CONFIG_NETCONSOLE is not set | ||
591 | # CONFIG_NETPOLL is not set | ||
592 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
593 | |||
594 | # | ||
595 | # ISDN subsystem | ||
596 | # | ||
597 | # CONFIG_ISDN is not set | ||
598 | |||
599 | # | ||
600 | # Input device support | ||
601 | # | ||
602 | CONFIG_INPUT=y | ||
603 | |||
604 | # | ||
605 | # Userland interfaces | ||
606 | # | ||
607 | CONFIG_INPUT_MOUSEDEV=y | ||
608 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
609 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
610 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
611 | # CONFIG_INPUT_JOYDEV is not set | ||
612 | # CONFIG_INPUT_TSDEV is not set | ||
613 | # CONFIG_INPUT_EVDEV is not set | ||
614 | # CONFIG_INPUT_EVBUG is not set | ||
615 | |||
616 | # | ||
617 | # Input Device Drivers | ||
618 | # | ||
619 | CONFIG_INPUT_KEYBOARD=y | ||
620 | CONFIG_KEYBOARD_ATKBD=y | ||
621 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
622 | # CONFIG_KEYBOARD_LKKBD is not set | ||
623 | # CONFIG_KEYBOARD_XTKBD is not set | ||
624 | # CONFIG_KEYBOARD_NEWTON is not set | ||
625 | CONFIG_INPUT_MOUSE=y | ||
626 | CONFIG_MOUSE_PS2=y | ||
627 | # CONFIG_MOUSE_SERIAL is not set | ||
628 | # CONFIG_MOUSE_VSXXXAA is not set | ||
629 | # CONFIG_INPUT_JOYSTICK is not set | ||
630 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
631 | # CONFIG_INPUT_MISC is not set | ||
632 | |||
633 | # | ||
634 | # Hardware I/O ports | ||
635 | # | ||
636 | CONFIG_SERIO=y | ||
637 | CONFIG_SERIO_SERPORT=y | ||
638 | CONFIG_SERIO_LIBPS2=y | ||
639 | # CONFIG_SERIO_RAW is not set | ||
640 | # CONFIG_GAMEPORT is not set | ||
641 | |||
642 | # | ||
643 | # Character devices | ||
644 | # | ||
645 | CONFIG_VT=y | ||
646 | CONFIG_VT_CONSOLE=y | ||
647 | CONFIG_HW_CONSOLE=y | ||
648 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
649 | |||
650 | # | ||
651 | # Serial drivers | ||
652 | # | ||
653 | # CONFIG_SERIAL_8250 is not set | ||
654 | |||
655 | # | ||
656 | # Non-8250 serial port support | ||
657 | # | ||
658 | CONFIG_SERIAL_AT91=y | ||
659 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
660 | # CONFIG_SERIAL_AT91_TTYAT is not set | ||
661 | CONFIG_SERIAL_CORE=y | ||
662 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
663 | CONFIG_UNIX98_PTYS=y | ||
664 | CONFIG_LEGACY_PTYS=y | ||
665 | CONFIG_LEGACY_PTY_COUNT=256 | ||
666 | |||
667 | # | ||
668 | # IPMI | ||
669 | # | ||
670 | # CONFIG_IPMI_HANDLER is not set | ||
671 | |||
672 | # | ||
673 | # Watchdog Cards | ||
674 | # | ||
675 | # CONFIG_WATCHDOG is not set | ||
676 | # CONFIG_NVRAM is not set | ||
677 | # CONFIG_DTLK is not set | ||
678 | # CONFIG_R3964 is not set | ||
679 | |||
680 | # | ||
681 | # Ftape, the floppy tape device driver | ||
682 | # | ||
683 | |||
684 | # | ||
685 | # PCMCIA character devices | ||
686 | # | ||
687 | # CONFIG_SYNCLINK_CS is not set | ||
688 | # CONFIG_CARDMAN_4000 is not set | ||
689 | # CONFIG_CARDMAN_4040 is not set | ||
690 | # CONFIG_RAW_DRIVER is not set | ||
691 | |||
692 | # | ||
693 | # TPM devices | ||
694 | # | ||
695 | # CONFIG_TCG_TPM is not set | ||
696 | # CONFIG_TELCLOCK is not set | ||
697 | CONFIG_AT91_SPI=y | ||
698 | CONFIG_AT91_SPIDEV=y | ||
699 | |||
700 | # | ||
701 | # I2C support | ||
702 | # | ||
703 | CONFIG_I2C=m | ||
704 | CONFIG_I2C_CHARDEV=m | ||
705 | |||
706 | # | ||
707 | # I2C Algorithms | ||
708 | # | ||
709 | CONFIG_I2C_ALGOBIT=m | ||
710 | CONFIG_I2C_ALGOPCF=m | ||
711 | CONFIG_I2C_ALGOPCA=m | ||
712 | |||
713 | # | ||
714 | # I2C Hardware Bus support | ||
715 | # | ||
716 | CONFIG_I2C_AT91=m | ||
717 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
718 | # CONFIG_I2C_STUB is not set | ||
719 | # CONFIG_I2C_PCA_ISA is not set | ||
720 | |||
721 | # | ||
722 | # Miscellaneous I2C Chip support | ||
723 | # | ||
724 | # CONFIG_SENSORS_DS1337 is not set | ||
725 | # CONFIG_SENSORS_DS1374 is not set | ||
726 | # CONFIG_SENSORS_EEPROM is not set | ||
727 | # CONFIG_SENSORS_PCF8574 is not set | ||
728 | # CONFIG_SENSORS_PCA9539 is not set | ||
729 | # CONFIG_SENSORS_PCF8591 is not set | ||
730 | # CONFIG_SENSORS_MAX6875 is not set | ||
731 | # CONFIG_I2C_DEBUG_CORE is not set | ||
732 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
733 | # CONFIG_I2C_DEBUG_BUS is not set | ||
734 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
735 | |||
736 | # | ||
737 | # SPI support | ||
738 | # | ||
739 | # CONFIG_SPI is not set | ||
740 | # CONFIG_SPI_MASTER is not set | ||
741 | |||
742 | # | ||
743 | # Dallas's 1-wire bus | ||
744 | # | ||
745 | # CONFIG_W1 is not set | ||
746 | |||
747 | # | ||
748 | # Hardware Monitoring support | ||
749 | # | ||
750 | CONFIG_HWMON=y | ||
751 | # CONFIG_HWMON_VID is not set | ||
752 | # CONFIG_SENSORS_ADM1021 is not set | ||
753 | # CONFIG_SENSORS_ADM1025 is not set | ||
754 | # CONFIG_SENSORS_ADM1026 is not set | ||
755 | # CONFIG_SENSORS_ADM1031 is not set | ||
756 | # CONFIG_SENSORS_ADM9240 is not set | ||
757 | # CONFIG_SENSORS_ASB100 is not set | ||
758 | # CONFIG_SENSORS_ATXP1 is not set | ||
759 | # CONFIG_SENSORS_DS1621 is not set | ||
760 | # CONFIG_SENSORS_F71805F is not set | ||
761 | # CONFIG_SENSORS_FSCHER is not set | ||
762 | # CONFIG_SENSORS_FSCPOS is not set | ||
763 | # CONFIG_SENSORS_GL518SM is not set | ||
764 | # CONFIG_SENSORS_GL520SM is not set | ||
765 | # CONFIG_SENSORS_IT87 is not set | ||
766 | # CONFIG_SENSORS_LM63 is not set | ||
767 | # CONFIG_SENSORS_LM75 is not set | ||
768 | # CONFIG_SENSORS_LM77 is not set | ||
769 | # CONFIG_SENSORS_LM78 is not set | ||
770 | # CONFIG_SENSORS_LM80 is not set | ||
771 | # CONFIG_SENSORS_LM83 is not set | ||
772 | # CONFIG_SENSORS_LM85 is not set | ||
773 | # CONFIG_SENSORS_LM87 is not set | ||
774 | # CONFIG_SENSORS_LM90 is not set | ||
775 | # CONFIG_SENSORS_LM92 is not set | ||
776 | # CONFIG_SENSORS_MAX1619 is not set | ||
777 | # CONFIG_SENSORS_PC87360 is not set | ||
778 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
779 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
780 | # CONFIG_SENSORS_W83781D is not set | ||
781 | # CONFIG_SENSORS_W83792D is not set | ||
782 | # CONFIG_SENSORS_W83L785TS is not set | ||
783 | # CONFIG_SENSORS_W83627HF is not set | ||
784 | # CONFIG_SENSORS_W83627EHF is not set | ||
785 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
786 | |||
787 | # | ||
788 | # Misc devices | ||
789 | # | ||
790 | |||
791 | # | ||
792 | # LED devices | ||
793 | # | ||
794 | # CONFIG_NEW_LEDS is not set | ||
795 | |||
796 | # | ||
797 | # LED drivers | ||
798 | # | ||
799 | |||
800 | # | ||
801 | # LED Triggers | ||
802 | # | ||
803 | |||
804 | # | ||
805 | # Multimedia devices | ||
806 | # | ||
807 | # CONFIG_VIDEO_DEV is not set | ||
808 | |||
809 | # | ||
810 | # Digital Video Broadcasting Devices | ||
811 | # | ||
812 | # CONFIG_DVB is not set | ||
813 | # CONFIG_USB_DABUSB is not set | ||
814 | |||
815 | # | ||
816 | # Graphics support | ||
817 | # | ||
818 | # CONFIG_FB is not set | ||
819 | |||
820 | # | ||
821 | # Console display driver support | ||
822 | # | ||
823 | # CONFIG_VGA_CONSOLE is not set | ||
824 | CONFIG_DUMMY_CONSOLE=y | ||
825 | |||
826 | # | ||
827 | # Sound | ||
828 | # | ||
829 | CONFIG_SOUND=y | ||
830 | |||
831 | # | ||
832 | # Advanced Linux Sound Architecture | ||
833 | # | ||
834 | # CONFIG_SND is not set | ||
835 | |||
836 | # | ||
837 | # Open Sound System | ||
838 | # | ||
839 | # CONFIG_SOUND_PRIME is not set | ||
840 | |||
841 | # | ||
842 | # USB support | ||
843 | # | ||
844 | CONFIG_USB_ARCH_HAS_HCD=y | ||
845 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
846 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
847 | CONFIG_USB=y | ||
848 | # CONFIG_USB_DEBUG is not set | ||
849 | |||
850 | # | ||
851 | # Miscellaneous USB options | ||
852 | # | ||
853 | CONFIG_USB_DEVICEFS=y | ||
854 | # CONFIG_USB_BANDWIDTH is not set | ||
855 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
856 | # CONFIG_USB_SUSPEND is not set | ||
857 | # CONFIG_USB_OTG is not set | ||
858 | |||
859 | # | ||
860 | # USB Host Controller Drivers | ||
861 | # | ||
862 | # CONFIG_USB_ISP116X_HCD is not set | ||
863 | CONFIG_USB_OHCI_HCD=y | ||
864 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
865 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
866 | # CONFIG_USB_SL811_HCD is not set | ||
867 | |||
868 | # | ||
869 | # USB Device Class drivers | ||
870 | # | ||
871 | CONFIG_USB_ACM=m | ||
872 | CONFIG_USB_PRINTER=m | ||
873 | |||
874 | # | ||
875 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
876 | # | ||
877 | |||
878 | # | ||
879 | # may also be needed; see USB_STORAGE Help for more information | ||
880 | # | ||
881 | CONFIG_USB_STORAGE=m | ||
882 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
883 | CONFIG_USB_STORAGE_DATAFAB=y | ||
884 | CONFIG_USB_STORAGE_FREECOM=y | ||
885 | CONFIG_USB_STORAGE_DPCM=y | ||
886 | CONFIG_USB_STORAGE_USBAT=y | ||
887 | CONFIG_USB_STORAGE_SDDR09=y | ||
888 | CONFIG_USB_STORAGE_SDDR55=y | ||
889 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
890 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
891 | # CONFIG_USB_LIBUSUAL is not set | ||
892 | |||
893 | # | ||
894 | # USB Input Devices | ||
895 | # | ||
896 | CONFIG_USB_HID=m | ||
897 | CONFIG_USB_HIDINPUT=y | ||
898 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
899 | CONFIG_HID_FF=y | ||
900 | CONFIG_HID_PID=y | ||
901 | CONFIG_LOGITECH_FF=y | ||
902 | CONFIG_THRUSTMASTER_FF=y | ||
903 | CONFIG_USB_HIDDEV=y | ||
904 | |||
905 | # | ||
906 | # USB HID Boot Protocol drivers | ||
907 | # | ||
908 | # CONFIG_USB_KBD is not set | ||
909 | # CONFIG_USB_MOUSE is not set | ||
910 | # CONFIG_USB_AIPTEK is not set | ||
911 | # CONFIG_USB_WACOM is not set | ||
912 | # CONFIG_USB_ACECAD is not set | ||
913 | # CONFIG_USB_KBTAB is not set | ||
914 | # CONFIG_USB_POWERMATE is not set | ||
915 | # CONFIG_USB_TOUCHSCREEN is not set | ||
916 | # CONFIG_USB_YEALINK is not set | ||
917 | # CONFIG_USB_XPAD is not set | ||
918 | # CONFIG_USB_ATI_REMOTE is not set | ||
919 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
920 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
921 | # CONFIG_USB_APPLETOUCH is not set | ||
922 | |||
923 | # | ||
924 | # USB Imaging devices | ||
925 | # | ||
926 | # CONFIG_USB_MDC800 is not set | ||
927 | # CONFIG_USB_MICROTEK is not set | ||
928 | |||
929 | # | ||
930 | # USB Network Adapters | ||
931 | # | ||
932 | # CONFIG_USB_CATC is not set | ||
933 | # CONFIG_USB_KAWETH is not set | ||
934 | # CONFIG_USB_PEGASUS is not set | ||
935 | # CONFIG_USB_RTL8150 is not set | ||
936 | CONFIG_USB_USBNET=y | ||
937 | CONFIG_USB_NET_AX8817X=y | ||
938 | CONFIG_USB_NET_CDCETHER=y | ||
939 | CONFIG_USB_NET_GL620A=y | ||
940 | CONFIG_USB_NET_NET1080=y | ||
941 | CONFIG_USB_NET_PLUSB=y | ||
942 | CONFIG_USB_NET_RNDIS_HOST=y | ||
943 | CONFIG_USB_NET_CDC_SUBSET=y | ||
944 | CONFIG_USB_ALI_M5632=y | ||
945 | CONFIG_USB_AN2720=y | ||
946 | CONFIG_USB_BELKIN=y | ||
947 | CONFIG_USB_ARMLINUX=y | ||
948 | CONFIG_USB_EPSON2888=y | ||
949 | CONFIG_USB_NET_ZAURUS=y | ||
950 | # CONFIG_USB_ZD1201 is not set | ||
951 | CONFIG_USB_MON=y | ||
952 | |||
953 | # | ||
954 | # USB port drivers | ||
955 | # | ||
956 | |||
957 | # | ||
958 | # USB Serial Converter support | ||
959 | # | ||
960 | CONFIG_USB_SERIAL=m | ||
961 | CONFIG_USB_SERIAL_GENERIC=y | ||
962 | # CONFIG_USB_SERIAL_AIRPRIME is not set | ||
963 | # CONFIG_USB_SERIAL_ANYDATA is not set | ||
964 | # CONFIG_USB_SERIAL_BELKIN is not set | ||
965 | # CONFIG_USB_SERIAL_WHITEHEAT is not set | ||
966 | # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set | ||
967 | CONFIG_USB_SERIAL_CP2101=m | ||
968 | # CONFIG_USB_SERIAL_CYPRESS_M8 is not set | ||
969 | # CONFIG_USB_SERIAL_EMPEG is not set | ||
970 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
971 | # CONFIG_USB_SERIAL_FUNSOFT is not set | ||
972 | # CONFIG_USB_SERIAL_VISOR is not set | ||
973 | # CONFIG_USB_SERIAL_IPAQ is not set | ||
974 | # CONFIG_USB_SERIAL_IR is not set | ||
975 | # CONFIG_USB_SERIAL_EDGEPORT is not set | ||
976 | # CONFIG_USB_SERIAL_EDGEPORT_TI is not set | ||
977 | # CONFIG_USB_SERIAL_GARMIN is not set | ||
978 | # CONFIG_USB_SERIAL_IPW is not set | ||
979 | # CONFIG_USB_SERIAL_KEYSPAN_PDA is not set | ||
980 | # CONFIG_USB_SERIAL_KEYSPAN is not set | ||
981 | # CONFIG_USB_SERIAL_KLSI is not set | ||
982 | # CONFIG_USB_SERIAL_KOBIL_SCT is not set | ||
983 | # CONFIG_USB_SERIAL_MCT_U232 is not set | ||
984 | # CONFIG_USB_SERIAL_NAVMAN is not set | ||
985 | CONFIG_USB_SERIAL_PL2303=m | ||
986 | # CONFIG_USB_SERIAL_HP4X is not set | ||
987 | # CONFIG_USB_SERIAL_SAFE is not set | ||
988 | # CONFIG_USB_SERIAL_TI is not set | ||
989 | # CONFIG_USB_SERIAL_CYBERJACK is not set | ||
990 | # CONFIG_USB_SERIAL_XIRCOM is not set | ||
991 | # CONFIG_USB_SERIAL_OPTION is not set | ||
992 | # CONFIG_USB_SERIAL_OMNINET is not set | ||
993 | |||
994 | # | ||
995 | # USB Miscellaneous drivers | ||
996 | # | ||
997 | # CONFIG_USB_EMI62 is not set | ||
998 | # CONFIG_USB_EMI26 is not set | ||
999 | # CONFIG_USB_AUERSWALD is not set | ||
1000 | # CONFIG_USB_RIO500 is not set | ||
1001 | # CONFIG_USB_LEGOTOWER is not set | ||
1002 | # CONFIG_USB_LCD is not set | ||
1003 | # CONFIG_USB_LED is not set | ||
1004 | # CONFIG_USB_CYTHERM is not set | ||
1005 | # CONFIG_USB_PHIDGETKIT is not set | ||
1006 | # CONFIG_USB_PHIDGETSERVO is not set | ||
1007 | # CONFIG_USB_IDMOUSE is not set | ||
1008 | # CONFIG_USB_LD is not set | ||
1009 | # CONFIG_USB_TEST is not set | ||
1010 | |||
1011 | # | ||
1012 | # USB DSL modem support | ||
1013 | # | ||
1014 | |||
1015 | # | ||
1016 | # USB Gadget Support | ||
1017 | # | ||
1018 | CONFIG_USB_GADGET=m | ||
1019 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1020 | CONFIG_USB_GADGET_SELECTED=y | ||
1021 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1022 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1023 | # CONFIG_USB_GADGET_GOKU is not set | ||
1024 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1025 | # CONFIG_USB_GADGET_OMAP is not set | ||
1026 | CONFIG_USB_GADGET_AT91=y | ||
1027 | CONFIG_USB_AT91=m | ||
1028 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1029 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
1030 | # CONFIG_USB_ZERO is not set | ||
1031 | CONFIG_USB_ETH=m | ||
1032 | CONFIG_USB_ETH_RNDIS=y | ||
1033 | CONFIG_USB_GADGETFS=m | ||
1034 | CONFIG_USB_FILE_STORAGE=m | ||
1035 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1036 | CONFIG_USB_G_SERIAL=m | ||
1037 | |||
1038 | # | ||
1039 | # MMC/SD Card support | ||
1040 | # | ||
1041 | CONFIG_MMC=m | ||
1042 | CONFIG_MMC_DEBUG=y | ||
1043 | CONFIG_MMC_BLOCK=m | ||
1044 | CONFIG_MMC_AT91RM9200=m | ||
1045 | |||
1046 | # | ||
1047 | # Real Time Clock | ||
1048 | # | ||
1049 | CONFIG_RTC_LIB=y | ||
1050 | CONFIG_RTC_CLASS=y | ||
1051 | # CONFIG_RTC_HCTOSYS is not set | ||
1052 | |||
1053 | # | ||
1054 | # RTC interfaces | ||
1055 | # | ||
1056 | CONFIG_RTC_INTF_SYSFS=y | ||
1057 | CONFIG_RTC_INTF_PROC=y | ||
1058 | CONFIG_RTC_INTF_DEV=y | ||
1059 | |||
1060 | # | ||
1061 | # RTC drivers | ||
1062 | # | ||
1063 | # CONFIG_RTC_DRV_X1205 is not set | ||
1064 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1065 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1066 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1067 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1068 | CONFIG_RTC_DRV_AT91=y | ||
1069 | # CONFIG_RTC_DRV_TEST is not set | ||
1070 | |||
1071 | # | ||
1072 | # File systems | ||
1073 | # | ||
1074 | CONFIG_EXT2_FS=m | ||
1075 | # CONFIG_EXT2_FS_XATTR is not set | ||
1076 | # CONFIG_EXT2_FS_XIP is not set | ||
1077 | CONFIG_EXT3_FS=m | ||
1078 | CONFIG_EXT3_FS_XATTR=y | ||
1079 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1080 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1081 | CONFIG_JBD=m | ||
1082 | # CONFIG_JBD_DEBUG is not set | ||
1083 | CONFIG_FS_MBCACHE=m | ||
1084 | CONFIG_REISERFS_FS=m | ||
1085 | # CONFIG_REISERFS_CHECK is not set | ||
1086 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1087 | # CONFIG_REISERFS_FS_XATTR is not set | ||
1088 | # CONFIG_JFS_FS is not set | ||
1089 | CONFIG_FS_POSIX_ACL=y | ||
1090 | # CONFIG_XFS_FS is not set | ||
1091 | # CONFIG_OCFS2_FS is not set | ||
1092 | # CONFIG_MINIX_FS is not set | ||
1093 | # CONFIG_ROMFS_FS is not set | ||
1094 | CONFIG_INOTIFY=y | ||
1095 | # CONFIG_QUOTA is not set | ||
1096 | CONFIG_DNOTIFY=y | ||
1097 | # CONFIG_AUTOFS_FS is not set | ||
1098 | # CONFIG_AUTOFS4_FS is not set | ||
1099 | # CONFIG_FUSE_FS is not set | ||
1100 | |||
1101 | # | ||
1102 | # CD-ROM/DVD Filesystems | ||
1103 | # | ||
1104 | CONFIG_ISO9660_FS=m | ||
1105 | CONFIG_JOLIET=y | ||
1106 | CONFIG_ZISOFS=y | ||
1107 | CONFIG_ZISOFS_FS=m | ||
1108 | CONFIG_UDF_FS=m | ||
1109 | CONFIG_UDF_NLS=y | ||
1110 | |||
1111 | # | ||
1112 | # DOS/FAT/NT Filesystems | ||
1113 | # | ||
1114 | CONFIG_FAT_FS=m | ||
1115 | CONFIG_MSDOS_FS=m | ||
1116 | CONFIG_VFAT_FS=m | ||
1117 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1118 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1119 | CONFIG_NTFS_FS=m | ||
1120 | # CONFIG_NTFS_DEBUG is not set | ||
1121 | CONFIG_NTFS_RW=y | ||
1122 | |||
1123 | # | ||
1124 | # Pseudo filesystems | ||
1125 | # | ||
1126 | CONFIG_PROC_FS=y | ||
1127 | CONFIG_SYSFS=y | ||
1128 | CONFIG_TMPFS=y | ||
1129 | # CONFIG_HUGETLB_PAGE is not set | ||
1130 | CONFIG_RAMFS=y | ||
1131 | # CONFIG_CONFIGFS_FS is not set | ||
1132 | |||
1133 | # | ||
1134 | # Miscellaneous filesystems | ||
1135 | # | ||
1136 | # CONFIG_ADFS_FS is not set | ||
1137 | # CONFIG_AFFS_FS is not set | ||
1138 | # CONFIG_HFS_FS is not set | ||
1139 | # CONFIG_HFSPLUS_FS is not set | ||
1140 | # CONFIG_BEFS_FS is not set | ||
1141 | # CONFIG_BFS_FS is not set | ||
1142 | # CONFIG_EFS_FS is not set | ||
1143 | # CONFIG_JFFS_FS is not set | ||
1144 | # CONFIG_JFFS2_FS is not set | ||
1145 | CONFIG_CRAMFS=y | ||
1146 | # CONFIG_VXFS_FS is not set | ||
1147 | # CONFIG_HPFS_FS is not set | ||
1148 | # CONFIG_QNX4FS_FS is not set | ||
1149 | # CONFIG_SYSV_FS is not set | ||
1150 | # CONFIG_UFS_FS is not set | ||
1151 | |||
1152 | # | ||
1153 | # Network File Systems | ||
1154 | # | ||
1155 | CONFIG_NFS_FS=m | ||
1156 | CONFIG_NFS_V3=y | ||
1157 | CONFIG_NFS_V3_ACL=y | ||
1158 | CONFIG_NFS_V4=y | ||
1159 | CONFIG_NFS_DIRECTIO=y | ||
1160 | CONFIG_NFSD=m | ||
1161 | CONFIG_NFSD_V3=y | ||
1162 | # CONFIG_NFSD_V3_ACL is not set | ||
1163 | CONFIG_NFSD_V4=y | ||
1164 | CONFIG_NFSD_TCP=y | ||
1165 | CONFIG_LOCKD=m | ||
1166 | CONFIG_LOCKD_V4=y | ||
1167 | CONFIG_EXPORTFS=m | ||
1168 | CONFIG_NFS_ACL_SUPPORT=m | ||
1169 | CONFIG_NFS_COMMON=y | ||
1170 | CONFIG_SUNRPC=m | ||
1171 | CONFIG_SUNRPC_GSS=m | ||
1172 | CONFIG_RPCSEC_GSS_KRB5=m | ||
1173 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1174 | # CONFIG_SMB_FS is not set | ||
1175 | # CONFIG_CIFS is not set | ||
1176 | # CONFIG_NCP_FS is not set | ||
1177 | # CONFIG_CODA_FS is not set | ||
1178 | # CONFIG_AFS_FS is not set | ||
1179 | # CONFIG_9P_FS is not set | ||
1180 | |||
1181 | # | ||
1182 | # Partition Types | ||
1183 | # | ||
1184 | CONFIG_PARTITION_ADVANCED=y | ||
1185 | # CONFIG_ACORN_PARTITION is not set | ||
1186 | # CONFIG_OSF_PARTITION is not set | ||
1187 | # CONFIG_AMIGA_PARTITION is not set | ||
1188 | # CONFIG_ATARI_PARTITION is not set | ||
1189 | CONFIG_MAC_PARTITION=y | ||
1190 | CONFIG_MSDOS_PARTITION=y | ||
1191 | CONFIG_BSD_DISKLABEL=y | ||
1192 | CONFIG_MINIX_SUBPARTITION=y | ||
1193 | CONFIG_SOLARIS_X86_PARTITION=y | ||
1194 | CONFIG_UNIXWARE_DISKLABEL=y | ||
1195 | # CONFIG_LDM_PARTITION is not set | ||
1196 | # CONFIG_SGI_PARTITION is not set | ||
1197 | # CONFIG_ULTRIX_PARTITION is not set | ||
1198 | # CONFIG_SUN_PARTITION is not set | ||
1199 | # CONFIG_KARMA_PARTITION is not set | ||
1200 | # CONFIG_EFI_PARTITION is not set | ||
1201 | |||
1202 | # | ||
1203 | # Native Language Support | ||
1204 | # | ||
1205 | CONFIG_NLS=m | ||
1206 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1207 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1208 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1209 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1210 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1211 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1212 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1213 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1214 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1215 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1216 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1217 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1218 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1219 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1220 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1221 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1222 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1223 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1224 | CONFIG_NLS_CODEPAGE_932=m | ||
1225 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1226 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1227 | # CONFIG_NLS_ISO8859_8 is not set | ||
1228 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1229 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1230 | CONFIG_NLS_ASCII=m | ||
1231 | # CONFIG_NLS_ISO8859_1 is not set | ||
1232 | # CONFIG_NLS_ISO8859_2 is not set | ||
1233 | # CONFIG_NLS_ISO8859_3 is not set | ||
1234 | # CONFIG_NLS_ISO8859_4 is not set | ||
1235 | # CONFIG_NLS_ISO8859_5 is not set | ||
1236 | # CONFIG_NLS_ISO8859_6 is not set | ||
1237 | # CONFIG_NLS_ISO8859_7 is not set | ||
1238 | # CONFIG_NLS_ISO8859_9 is not set | ||
1239 | # CONFIG_NLS_ISO8859_13 is not set | ||
1240 | # CONFIG_NLS_ISO8859_14 is not set | ||
1241 | CONFIG_NLS_ISO8859_15=m | ||
1242 | # CONFIG_NLS_KOI8_R is not set | ||
1243 | # CONFIG_NLS_KOI8_U is not set | ||
1244 | CONFIG_NLS_UTF8=m | ||
1245 | |||
1246 | # | ||
1247 | # Profiling support | ||
1248 | # | ||
1249 | CONFIG_PROFILING=y | ||
1250 | CONFIG_OPROFILE=m | ||
1251 | |||
1252 | # | ||
1253 | # Kernel hacking | ||
1254 | # | ||
1255 | # CONFIG_PRINTK_TIME is not set | ||
1256 | # CONFIG_MAGIC_SYSRQ is not set | ||
1257 | # CONFIG_DEBUG_KERNEL is not set | ||
1258 | CONFIG_LOG_BUF_SHIFT=14 | ||
1259 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1260 | # CONFIG_DEBUG_FS is not set | ||
1261 | CONFIG_FRAME_POINTER=y | ||
1262 | # CONFIG_UNWIND_INFO is not set | ||
1263 | # CONFIG_DEBUG_USER is not set | ||
1264 | |||
1265 | # | ||
1266 | # Security options | ||
1267 | # | ||
1268 | # CONFIG_KEYS is not set | ||
1269 | # CONFIG_SECURITY is not set | ||
1270 | |||
1271 | # | ||
1272 | # Cryptographic options | ||
1273 | # | ||
1274 | CONFIG_CRYPTO=y | ||
1275 | # CONFIG_CRYPTO_HMAC is not set | ||
1276 | # CONFIG_CRYPTO_NULL is not set | ||
1277 | # CONFIG_CRYPTO_MD4 is not set | ||
1278 | CONFIG_CRYPTO_MD5=y | ||
1279 | # CONFIG_CRYPTO_SHA1 is not set | ||
1280 | # CONFIG_CRYPTO_SHA256 is not set | ||
1281 | # CONFIG_CRYPTO_SHA512 is not set | ||
1282 | # CONFIG_CRYPTO_WP512 is not set | ||
1283 | # CONFIG_CRYPTO_TGR192 is not set | ||
1284 | CONFIG_CRYPTO_DES=m | ||
1285 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1286 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1287 | # CONFIG_CRYPTO_SERPENT is not set | ||
1288 | CONFIG_CRYPTO_AES=m | ||
1289 | # CONFIG_CRYPTO_CAST5 is not set | ||
1290 | # CONFIG_CRYPTO_CAST6 is not set | ||
1291 | # CONFIG_CRYPTO_TEA is not set | ||
1292 | CONFIG_CRYPTO_ARC4=m | ||
1293 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1294 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1295 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1296 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
1297 | # CONFIG_CRYPTO_CRC32C is not set | ||
1298 | # CONFIG_CRYPTO_TEST is not set | ||
1299 | |||
1300 | # | ||
1301 | # Hardware crypto devices | ||
1302 | # | ||
1303 | |||
1304 | # | ||
1305 | # Library routines | ||
1306 | # | ||
1307 | CONFIG_CRC_CCITT=m | ||
1308 | CONFIG_CRC16=m | ||
1309 | CONFIG_CRC32=y | ||
1310 | CONFIG_LIBCRC32C=m | ||
1311 | CONFIG_ZLIB_INFLATE=y | ||
1312 | CONFIG_ZLIB_DEFLATE=m | ||
diff --git a/arch/arm/configs/carmeva_defconfig b/arch/arm/configs/carmeva_defconfig new file mode 100644 index 000000000000..5ccd29a7c1fb --- /dev/null +++ b/arch/arm/configs/carmeva_defconfig | |||
@@ -0,0 +1,723 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.12-rc4 | ||
4 | # Tue Jun 14 12:05:24 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_SWAP=y | ||
26 | # CONFIG_SYSVIPC is not set | ||
27 | # CONFIG_POSIX_MQUEUE is not set | ||
28 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
29 | # CONFIG_SYSCTL is not set | ||
30 | # CONFIG_AUDIT is not set | ||
31 | # CONFIG_HOTPLUG is not set | ||
32 | CONFIG_KOBJECT_UEVENT=y | ||
33 | # CONFIG_IKCONFIG is not set | ||
34 | CONFIG_EMBEDDED=y | ||
35 | CONFIG_KALLSYMS=y | ||
36 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
37 | CONFIG_PRINTK=y | ||
38 | CONFIG_BUG=y | ||
39 | CONFIG_BASE_FULL=y | ||
40 | CONFIG_FUTEX=y | ||
41 | CONFIG_EPOLL=y | ||
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SHMEM=y | ||
44 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
45 | CONFIG_CC_ALIGN_LABELS=0 | ||
46 | CONFIG_CC_ALIGN_LOOPS=0 | ||
47 | CONFIG_CC_ALIGN_JUMPS=0 | ||
48 | # CONFIG_TINY_SHMEM is not set | ||
49 | CONFIG_BASE_SMALL=0 | ||
50 | |||
51 | # | ||
52 | # Loadable module support | ||
53 | # | ||
54 | CONFIG_MODULES=y | ||
55 | CONFIG_MODULE_UNLOAD=y | ||
56 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
57 | CONFIG_OBSOLETE_MODPARM=y | ||
58 | # CONFIG_MODVERSIONS is not set | ||
59 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
60 | # CONFIG_KMOD is not set | ||
61 | |||
62 | # | ||
63 | # System Type | ||
64 | # | ||
65 | # CONFIG_ARCH_CLPS7500 is not set | ||
66 | # CONFIG_ARCH_CLPS711X is not set | ||
67 | # CONFIG_ARCH_CO285 is not set | ||
68 | # CONFIG_ARCH_EBSA110 is not set | ||
69 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
70 | # CONFIG_ARCH_INTEGRATOR is not set | ||
71 | # CONFIG_ARCH_IOP3XX is not set | ||
72 | # CONFIG_ARCH_IXP4XX is not set | ||
73 | # CONFIG_ARCH_IXP2000 is not set | ||
74 | # CONFIG_ARCH_L7200 is not set | ||
75 | # CONFIG_ARCH_PXA is not set | ||
76 | # CONFIG_ARCH_RPC is not set | ||
77 | # CONFIG_ARCH_SA1100 is not set | ||
78 | # CONFIG_ARCH_S3C2410 is not set | ||
79 | # CONFIG_ARCH_SHARK is not set | ||
80 | # CONFIG_ARCH_LH7A40X is not set | ||
81 | # CONFIG_ARCH_OMAP is not set | ||
82 | # CONFIG_ARCH_VERSATILE is not set | ||
83 | # CONFIG_ARCH_IMX is not set | ||
84 | # CONFIG_ARCH_H720X is not set | ||
85 | CONFIG_ARCH_AT91RM9200=y | ||
86 | |||
87 | # | ||
88 | # AT91RM9200 Implementations | ||
89 | # | ||
90 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
91 | # CONFIG_MACH_AT91RM9200EK is not set | ||
92 | # CONFIG_MACH_CSB337 is not set | ||
93 | # CONFIG_MACH_CSB637 is not set | ||
94 | CONFIG_MACH_CARMEVA=y | ||
95 | |||
96 | # | ||
97 | # Processor Type | ||
98 | # | ||
99 | CONFIG_CPU_32=y | ||
100 | CONFIG_CPU_ARM920T=y | ||
101 | CONFIG_CPU_32v4=y | ||
102 | CONFIG_CPU_ABRT_EV4T=y | ||
103 | CONFIG_CPU_CACHE_V4WT=y | ||
104 | CONFIG_CPU_CACHE_VIVT=y | ||
105 | CONFIG_CPU_COPY_V4WB=y | ||
106 | CONFIG_CPU_TLB_V4WBI=y | ||
107 | |||
108 | # | ||
109 | # Processor Features | ||
110 | # | ||
111 | CONFIG_ARM_THUMB=y | ||
112 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
113 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
114 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
115 | |||
116 | # | ||
117 | # Bus support | ||
118 | # | ||
119 | CONFIG_ISA_DMA_API=y | ||
120 | |||
121 | # | ||
122 | # PCCARD (PCMCIA/CardBus) support | ||
123 | # | ||
124 | # CONFIG_PCCARD is not set | ||
125 | |||
126 | # | ||
127 | # Kernel Features | ||
128 | # | ||
129 | # CONFIG_SMP is not set | ||
130 | # CONFIG_PREEMPT is not set | ||
131 | # CONFIG_DISCONTIGMEM is not set | ||
132 | # CONFIG_LEDS is not set | ||
133 | CONFIG_ALIGNMENT_TRAP=y | ||
134 | |||
135 | # | ||
136 | # Boot options | ||
137 | # | ||
138 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
139 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
140 | CONFIG_CMDLINE="" | ||
141 | # CONFIG_XIP_KERNEL is not set | ||
142 | |||
143 | # | ||
144 | # Floating point emulation | ||
145 | # | ||
146 | |||
147 | # | ||
148 | # At least one emulation must be selected | ||
149 | # | ||
150 | CONFIG_FPE_NWFPE=y | ||
151 | # CONFIG_FPE_NWFPE_XP is not set | ||
152 | # CONFIG_FPE_FASTFPE is not set | ||
153 | |||
154 | # | ||
155 | # Userspace binary formats | ||
156 | # | ||
157 | CONFIG_BINFMT_ELF=y | ||
158 | # CONFIG_BINFMT_AOUT is not set | ||
159 | # CONFIG_BINFMT_MISC is not set | ||
160 | # CONFIG_ARTHUR is not set | ||
161 | |||
162 | # | ||
163 | # Power management options | ||
164 | # | ||
165 | # CONFIG_PM is not set | ||
166 | |||
167 | # | ||
168 | # Device Drivers | ||
169 | # | ||
170 | |||
171 | # | ||
172 | # Generic Driver Options | ||
173 | # | ||
174 | CONFIG_STANDALONE=y | ||
175 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
176 | # CONFIG_FW_LOADER is not set | ||
177 | |||
178 | # | ||
179 | # Memory Technology Devices (MTD) | ||
180 | # | ||
181 | CONFIG_MTD=y | ||
182 | # CONFIG_MTD_DEBUG is not set | ||
183 | # CONFIG_MTD_CONCAT is not set | ||
184 | CONFIG_MTD_PARTITIONS=y | ||
185 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
186 | CONFIG_MTD_CMDLINE_PARTS=y | ||
187 | # CONFIG_MTD_AFS_PARTS is not set | ||
188 | |||
189 | # | ||
190 | # User Modules And Translation Layers | ||
191 | # | ||
192 | CONFIG_MTD_CHAR=y | ||
193 | CONFIG_MTD_BLOCK=y | ||
194 | # CONFIG_FTL is not set | ||
195 | # CONFIG_NFTL is not set | ||
196 | # CONFIG_INFTL is not set | ||
197 | |||
198 | # | ||
199 | # RAM/ROM/Flash chip drivers | ||
200 | # | ||
201 | # CONFIG_MTD_CFI is not set | ||
202 | # CONFIG_MTD_JEDECPROBE is not set | ||
203 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
204 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
205 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
206 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
207 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
208 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
209 | CONFIG_MTD_CFI_I1=y | ||
210 | CONFIG_MTD_CFI_I2=y | ||
211 | # CONFIG_MTD_CFI_I4 is not set | ||
212 | # CONFIG_MTD_CFI_I8 is not set | ||
213 | # CONFIG_MTD_RAM is not set | ||
214 | # CONFIG_MTD_ROM is not set | ||
215 | # CONFIG_MTD_ABSENT is not set | ||
216 | |||
217 | # | ||
218 | # Mapping drivers for chip access | ||
219 | # | ||
220 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
221 | |||
222 | # | ||
223 | # Self-contained MTD device drivers | ||
224 | # | ||
225 | # CONFIG_MTD_SLRAM is not set | ||
226 | # CONFIG_MTD_PHRAM is not set | ||
227 | # CONFIG_MTD_MTDRAM is not set | ||
228 | # CONFIG_MTD_BLKMTD is not set | ||
229 | # CONFIG_MTD_BLOCK2MTD is not set | ||
230 | |||
231 | # | ||
232 | # Disk-On-Chip Device Drivers | ||
233 | # | ||
234 | # CONFIG_MTD_DOC2000 is not set | ||
235 | # CONFIG_MTD_DOC2001 is not set | ||
236 | # CONFIG_MTD_DOC2001PLUS is not set | ||
237 | CONFIG_MTD_AT91_DATAFLASH=y | ||
238 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
239 | |||
240 | # | ||
241 | # NAND Flash Device Drivers | ||
242 | # | ||
243 | # CONFIG_MTD_NAND is not set | ||
244 | |||
245 | # | ||
246 | # Parallel port support | ||
247 | # | ||
248 | # CONFIG_PARPORT is not set | ||
249 | |||
250 | # | ||
251 | # Plug and Play support | ||
252 | # | ||
253 | |||
254 | # | ||
255 | # Block devices | ||
256 | # | ||
257 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
258 | # CONFIG_BLK_DEV_LOOP is not set | ||
259 | # CONFIG_BLK_DEV_NBD is not set | ||
260 | CONFIG_BLK_DEV_RAM=y | ||
261 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
262 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
263 | CONFIG_BLK_DEV_INITRD=y | ||
264 | CONFIG_INITRAMFS_SOURCE="" | ||
265 | # CONFIG_CDROM_PKTCDVD is not set | ||
266 | |||
267 | # | ||
268 | # IO Schedulers | ||
269 | # | ||
270 | CONFIG_IOSCHED_NOOP=y | ||
271 | CONFIG_IOSCHED_AS=y | ||
272 | CONFIG_IOSCHED_DEADLINE=y | ||
273 | CONFIG_IOSCHED_CFQ=y | ||
274 | # CONFIG_ATA_OVER_ETH is not set | ||
275 | |||
276 | # | ||
277 | # SCSI device support | ||
278 | # | ||
279 | # CONFIG_SCSI is not set | ||
280 | |||
281 | # | ||
282 | # Multi-device support (RAID and LVM) | ||
283 | # | ||
284 | # CONFIG_MD is not set | ||
285 | |||
286 | # | ||
287 | # Fusion MPT device support | ||
288 | # | ||
289 | |||
290 | # | ||
291 | # IEEE 1394 (FireWire) support | ||
292 | # | ||
293 | |||
294 | # | ||
295 | # I2O device support | ||
296 | # | ||
297 | |||
298 | # | ||
299 | # Networking support | ||
300 | # | ||
301 | CONFIG_NET=y | ||
302 | |||
303 | # | ||
304 | # Networking options | ||
305 | # | ||
306 | # CONFIG_PACKET is not set | ||
307 | CONFIG_UNIX=y | ||
308 | # CONFIG_NET_KEY is not set | ||
309 | CONFIG_INET=y | ||
310 | CONFIG_IP_MULTICAST=y | ||
311 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
312 | CONFIG_IP_PNP=y | ||
313 | # CONFIG_IP_PNP_DHCP is not set | ||
314 | # CONFIG_IP_PNP_BOOTP is not set | ||
315 | # CONFIG_IP_PNP_RARP is not set | ||
316 | # CONFIG_NET_IPIP is not set | ||
317 | # CONFIG_NET_IPGRE is not set | ||
318 | # CONFIG_IP_MROUTE is not set | ||
319 | # CONFIG_ARPD is not set | ||
320 | # CONFIG_SYN_COOKIES is not set | ||
321 | # CONFIG_INET_AH is not set | ||
322 | # CONFIG_INET_ESP is not set | ||
323 | # CONFIG_INET_IPCOMP is not set | ||
324 | # CONFIG_INET_TUNNEL is not set | ||
325 | CONFIG_IP_TCPDIAG=y | ||
326 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
327 | # CONFIG_IPV6 is not set | ||
328 | # CONFIG_NETFILTER is not set | ||
329 | |||
330 | # | ||
331 | # SCTP Configuration (EXPERIMENTAL) | ||
332 | # | ||
333 | # CONFIG_IP_SCTP is not set | ||
334 | # CONFIG_ATM is not set | ||
335 | # CONFIG_BRIDGE is not set | ||
336 | # CONFIG_VLAN_8021Q is not set | ||
337 | # CONFIG_DECNET is not set | ||
338 | # CONFIG_LLC2 is not set | ||
339 | # CONFIG_IPX is not set | ||
340 | # CONFIG_ATALK is not set | ||
341 | # CONFIG_X25 is not set | ||
342 | # CONFIG_LAPB is not set | ||
343 | # CONFIG_NET_DIVERT is not set | ||
344 | # CONFIG_ECONET is not set | ||
345 | # CONFIG_WAN_ROUTER is not set | ||
346 | |||
347 | # | ||
348 | # QoS and/or fair queueing | ||
349 | # | ||
350 | # CONFIG_NET_SCHED is not set | ||
351 | # CONFIG_NET_CLS_ROUTE is not set | ||
352 | |||
353 | # | ||
354 | # Network testing | ||
355 | # | ||
356 | # CONFIG_NET_PKTGEN is not set | ||
357 | # CONFIG_NETPOLL is not set | ||
358 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
359 | # CONFIG_HAMRADIO is not set | ||
360 | # CONFIG_IRDA is not set | ||
361 | # CONFIG_BT is not set | ||
362 | CONFIG_NETDEVICES=y | ||
363 | # CONFIG_DUMMY is not set | ||
364 | # CONFIG_BONDING is not set | ||
365 | # CONFIG_EQUALIZER is not set | ||
366 | # CONFIG_TUN is not set | ||
367 | |||
368 | # | ||
369 | # Ethernet (10 or 100Mbit) | ||
370 | # | ||
371 | CONFIG_NET_ETHERNET=y | ||
372 | CONFIG_MII=y | ||
373 | CONFIG_ARM_AT91_ETHER=y | ||
374 | CONFIG_ARM_AT91_ETHER_RMII=y | ||
375 | # CONFIG_SMC91X is not set | ||
376 | |||
377 | # | ||
378 | # Ethernet (1000 Mbit) | ||
379 | # | ||
380 | |||
381 | # | ||
382 | # Ethernet (10000 Mbit) | ||
383 | # | ||
384 | |||
385 | # | ||
386 | # Token Ring devices | ||
387 | # | ||
388 | |||
389 | # | ||
390 | # Wireless LAN (non-hamradio) | ||
391 | # | ||
392 | # CONFIG_NET_RADIO is not set | ||
393 | |||
394 | # | ||
395 | # Wan interfaces | ||
396 | # | ||
397 | # CONFIG_WAN is not set | ||
398 | # CONFIG_PPP is not set | ||
399 | # CONFIG_SLIP is not set | ||
400 | # CONFIG_SHAPER is not set | ||
401 | # CONFIG_NETCONSOLE is not set | ||
402 | |||
403 | # | ||
404 | # ISDN subsystem | ||
405 | # | ||
406 | # CONFIG_ISDN is not set | ||
407 | |||
408 | # | ||
409 | # Input device support | ||
410 | # | ||
411 | CONFIG_INPUT=y | ||
412 | |||
413 | # | ||
414 | # Userland interfaces | ||
415 | # | ||
416 | # CONFIG_INPUT_MOUSEDEV is not set | ||
417 | # CONFIG_INPUT_JOYDEV is not set | ||
418 | # CONFIG_INPUT_TSDEV is not set | ||
419 | # CONFIG_INPUT_EVDEV is not set | ||
420 | # CONFIG_INPUT_EVBUG is not set | ||
421 | |||
422 | # | ||
423 | # Input Device Drivers | ||
424 | # | ||
425 | # CONFIG_INPUT_KEYBOARD is not set | ||
426 | # CONFIG_INPUT_MOUSE is not set | ||
427 | # CONFIG_INPUT_JOYSTICK is not set | ||
428 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
429 | # CONFIG_INPUT_MISC is not set | ||
430 | |||
431 | # | ||
432 | # Hardware I/O ports | ||
433 | # | ||
434 | CONFIG_SERIO=m | ||
435 | CONFIG_SERIO_SERPORT=m | ||
436 | # CONFIG_SERIO_LIBPS2 is not set | ||
437 | # CONFIG_SERIO_RAW is not set | ||
438 | # CONFIG_GAMEPORT is not set | ||
439 | CONFIG_SOUND_GAMEPORT=y | ||
440 | |||
441 | # | ||
442 | # Character devices | ||
443 | # | ||
444 | CONFIG_VT=y | ||
445 | CONFIG_VT_CONSOLE=y | ||
446 | CONFIG_HW_CONSOLE=y | ||
447 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
448 | |||
449 | # | ||
450 | # Serial drivers | ||
451 | # | ||
452 | # CONFIG_SERIAL_8250 is not set | ||
453 | |||
454 | # | ||
455 | # Non-8250 serial port support | ||
456 | # | ||
457 | CONFIG_SERIAL_AT91=y | ||
458 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
459 | CONFIG_SERIAL_CORE=y | ||
460 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
461 | CONFIG_UNIX98_PTYS=y | ||
462 | CONFIG_LEGACY_PTYS=y | ||
463 | CONFIG_LEGACY_PTY_COUNT=256 | ||
464 | |||
465 | # | ||
466 | # IPMI | ||
467 | # | ||
468 | # CONFIG_IPMI_HANDLER is not set | ||
469 | |||
470 | # | ||
471 | # Watchdog Cards | ||
472 | # | ||
473 | # CONFIG_WATCHDOG is not set | ||
474 | # CONFIG_NVRAM is not set | ||
475 | # CONFIG_RTC is not set | ||
476 | # CONFIG_AT91_RTC is not set | ||
477 | # CONFIG_DTLK is not set | ||
478 | # CONFIG_R3964 is not set | ||
479 | |||
480 | # | ||
481 | # Ftape, the floppy tape device driver | ||
482 | # | ||
483 | # CONFIG_DRM is not set | ||
484 | # CONFIG_RAW_DRIVER is not set | ||
485 | |||
486 | # | ||
487 | # TPM devices | ||
488 | # | ||
489 | CONFIG_AT91_SPI=y | ||
490 | CONFIG_AT91_SPIDEV=y | ||
491 | |||
492 | # | ||
493 | # I2C support | ||
494 | # | ||
495 | # CONFIG_I2C is not set | ||
496 | |||
497 | # | ||
498 | # Misc devices | ||
499 | # | ||
500 | |||
501 | # | ||
502 | # Multimedia devices | ||
503 | # | ||
504 | # CONFIG_VIDEO_DEV is not set | ||
505 | |||
506 | # | ||
507 | # Digital Video Broadcasting Devices | ||
508 | # | ||
509 | # CONFIG_DVB is not set | ||
510 | |||
511 | # | ||
512 | # Graphics support | ||
513 | # | ||
514 | # CONFIG_FB is not set | ||
515 | |||
516 | # | ||
517 | # Console display driver support | ||
518 | # | ||
519 | # CONFIG_VGA_CONSOLE is not set | ||
520 | CONFIG_DUMMY_CONSOLE=y | ||
521 | |||
522 | # | ||
523 | # Sound | ||
524 | # | ||
525 | # CONFIG_SOUND is not set | ||
526 | |||
527 | # | ||
528 | # USB support | ||
529 | # | ||
530 | CONFIG_USB_ARCH_HAS_HCD=y | ||
531 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
532 | # CONFIG_USB is not set | ||
533 | |||
534 | # | ||
535 | # USB Gadget Support | ||
536 | # | ||
537 | # CONFIG_USB_GADGET is not set | ||
538 | |||
539 | # | ||
540 | # MMC/SD Card support | ||
541 | # | ||
542 | CONFIG_MMC=m | ||
543 | CONFIG_MMC_DEBUG=y | ||
544 | CONFIG_MMC_BLOCK=m | ||
545 | CONFIG_MMC_AT91RM9200=m | ||
546 | |||
547 | # | ||
548 | # File systems | ||
549 | # | ||
550 | CONFIG_EXT2_FS=y | ||
551 | CONFIG_EXT2_FS_XATTR=y | ||
552 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
553 | # CONFIG_EXT2_FS_SECURITY is not set | ||
554 | # CONFIG_EXT3_FS is not set | ||
555 | # CONFIG_JBD is not set | ||
556 | CONFIG_FS_MBCACHE=y | ||
557 | # CONFIG_REISERFS_FS is not set | ||
558 | # CONFIG_JFS_FS is not set | ||
559 | |||
560 | # | ||
561 | # XFS support | ||
562 | # | ||
563 | # CONFIG_XFS_FS is not set | ||
564 | # CONFIG_MINIX_FS is not set | ||
565 | # CONFIG_ROMFS_FS is not set | ||
566 | # CONFIG_QUOTA is not set | ||
567 | # CONFIG_DNOTIFY is not set | ||
568 | # CONFIG_AUTOFS_FS is not set | ||
569 | # CONFIG_AUTOFS4_FS is not set | ||
570 | |||
571 | # | ||
572 | # CD-ROM/DVD Filesystems | ||
573 | # | ||
574 | # CONFIG_ISO9660_FS is not set | ||
575 | # CONFIG_UDF_FS is not set | ||
576 | |||
577 | # | ||
578 | # DOS/FAT/NT Filesystems | ||
579 | # | ||
580 | # CONFIG_MSDOS_FS is not set | ||
581 | # CONFIG_VFAT_FS is not set | ||
582 | # CONFIG_NTFS_FS is not set | ||
583 | |||
584 | # | ||
585 | # Pseudo filesystems | ||
586 | # | ||
587 | CONFIG_PROC_FS=y | ||
588 | CONFIG_SYSFS=y | ||
589 | # CONFIG_DEVFS_FS is not set | ||
590 | CONFIG_DEVPTS_FS_XATTR=y | ||
591 | CONFIG_DEVPTS_FS_SECURITY=y | ||
592 | # CONFIG_TMPFS is not set | ||
593 | # CONFIG_HUGETLB_PAGE is not set | ||
594 | CONFIG_RAMFS=y | ||
595 | |||
596 | # | ||
597 | # Miscellaneous filesystems | ||
598 | # | ||
599 | # CONFIG_ADFS_FS is not set | ||
600 | # CONFIG_AFFS_FS is not set | ||
601 | # CONFIG_HFS_FS is not set | ||
602 | # CONFIG_HFSPLUS_FS is not set | ||
603 | # CONFIG_BEFS_FS is not set | ||
604 | # CONFIG_BFS_FS is not set | ||
605 | # CONFIG_EFS_FS is not set | ||
606 | CONFIG_JFFS_FS=y | ||
607 | CONFIG_JFFS_FS_VERBOSE=0 | ||
608 | CONFIG_JFFS_PROC_FS=y | ||
609 | CONFIG_JFFS2_FS=y | ||
610 | CONFIG_JFFS2_FS_DEBUG=0 | ||
611 | CONFIG_JFFS2_FS_NAND=y | ||
612 | # CONFIG_JFFS2_FS_NOR_ECC is not set | ||
613 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
614 | CONFIG_JFFS2_ZLIB=y | ||
615 | CONFIG_JFFS2_RTIME=y | ||
616 | # CONFIG_JFFS2_RUBIN is not set | ||
617 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
618 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
619 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
620 | # CONFIG_CRAMFS is not set | ||
621 | # CONFIG_VXFS_FS is not set | ||
622 | # CONFIG_HPFS_FS is not set | ||
623 | # CONFIG_QNX4FS_FS is not set | ||
624 | # CONFIG_SYSV_FS is not set | ||
625 | # CONFIG_UFS_FS is not set | ||
626 | |||
627 | # | ||
628 | # Network File Systems | ||
629 | # | ||
630 | CONFIG_NFS_FS=y | ||
631 | CONFIG_NFS_V3=y | ||
632 | CONFIG_NFS_V4=y | ||
633 | # CONFIG_NFS_DIRECTIO is not set | ||
634 | CONFIG_NFSD=y | ||
635 | # CONFIG_NFSD_V3 is not set | ||
636 | CONFIG_NFSD_TCP=y | ||
637 | CONFIG_ROOT_NFS=y | ||
638 | CONFIG_LOCKD=y | ||
639 | CONFIG_LOCKD_V4=y | ||
640 | CONFIG_EXPORTFS=y | ||
641 | CONFIG_SUNRPC=y | ||
642 | CONFIG_SUNRPC_GSS=y | ||
643 | CONFIG_RPCSEC_GSS_KRB5=y | ||
644 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
645 | # CONFIG_SMB_FS is not set | ||
646 | # CONFIG_CIFS is not set | ||
647 | # CONFIG_NCP_FS is not set | ||
648 | # CONFIG_CODA_FS is not set | ||
649 | # CONFIG_AFS_FS is not set | ||
650 | |||
651 | # | ||
652 | # Partition Types | ||
653 | # | ||
654 | # CONFIG_PARTITION_ADVANCED is not set | ||
655 | CONFIG_MSDOS_PARTITION=y | ||
656 | |||
657 | # | ||
658 | # Native Language Support | ||
659 | # | ||
660 | # CONFIG_NLS is not set | ||
661 | |||
662 | # | ||
663 | # Profiling support | ||
664 | # | ||
665 | # CONFIG_PROFILING is not set | ||
666 | |||
667 | # | ||
668 | # Kernel hacking | ||
669 | # | ||
670 | # CONFIG_PRINTK_TIME is not set | ||
671 | # CONFIG_DEBUG_KERNEL is not set | ||
672 | CONFIG_LOG_BUF_SHIFT=14 | ||
673 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
674 | CONFIG_FRAME_POINTER=y | ||
675 | # CONFIG_DEBUG_USER is not set | ||
676 | |||
677 | # | ||
678 | # Security options | ||
679 | # | ||
680 | # CONFIG_KEYS is not set | ||
681 | # CONFIG_SECURITY is not set | ||
682 | |||
683 | # | ||
684 | # Cryptographic options | ||
685 | # | ||
686 | CONFIG_CRYPTO=y | ||
687 | # CONFIG_CRYPTO_HMAC is not set | ||
688 | # CONFIG_CRYPTO_NULL is not set | ||
689 | # CONFIG_CRYPTO_MD4 is not set | ||
690 | CONFIG_CRYPTO_MD5=y | ||
691 | # CONFIG_CRYPTO_SHA1 is not set | ||
692 | # CONFIG_CRYPTO_SHA256 is not set | ||
693 | # CONFIG_CRYPTO_SHA512 is not set | ||
694 | # CONFIG_CRYPTO_WP512 is not set | ||
695 | # CONFIG_CRYPTO_TGR192 is not set | ||
696 | CONFIG_CRYPTO_DES=y | ||
697 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
698 | # CONFIG_CRYPTO_TWOFISH is not set | ||
699 | # CONFIG_CRYPTO_SERPENT is not set | ||
700 | # CONFIG_CRYPTO_AES is not set | ||
701 | # CONFIG_CRYPTO_CAST5 is not set | ||
702 | # CONFIG_CRYPTO_CAST6 is not set | ||
703 | # CONFIG_CRYPTO_TEA is not set | ||
704 | # CONFIG_CRYPTO_ARC4 is not set | ||
705 | # CONFIG_CRYPTO_KHAZAD is not set | ||
706 | # CONFIG_CRYPTO_ANUBIS is not set | ||
707 | # CONFIG_CRYPTO_DEFLATE is not set | ||
708 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
709 | # CONFIG_CRYPTO_CRC32C is not set | ||
710 | # CONFIG_CRYPTO_TEST is not set | ||
711 | |||
712 | # | ||
713 | # Hardware crypto devices | ||
714 | # | ||
715 | |||
716 | # | ||
717 | # Library routines | ||
718 | # | ||
719 | # CONFIG_CRC_CCITT is not set | ||
720 | CONFIG_CRC32=y | ||
721 | # CONFIG_LIBCRC32C is not set | ||
722 | CONFIG_ZLIB_INFLATE=y | ||
723 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/kafa_defconfig b/arch/arm/configs/kafa_defconfig new file mode 100644 index 000000000000..51ded20e3f64 --- /dev/null +++ b/arch/arm/configs/kafa_defconfig | |||
@@ -0,0 +1,884 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc3 | ||
4 | # Sun May 7 16:54:53 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | # CONFIG_LOCALVERSION_AUTO is not set | ||
26 | # CONFIG_SWAP is not set | ||
27 | CONFIG_SYSVIPC=y | ||
28 | # CONFIG_POSIX_MQUEUE is not set | ||
29 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
30 | CONFIG_SYSCTL=y | ||
31 | # CONFIG_AUDIT is not set | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | # CONFIG_RELAY is not set | ||
34 | CONFIG_INITRAMFS_SOURCE="" | ||
35 | CONFIG_UID16=y | ||
36 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
37 | # CONFIG_EMBEDDED is not set | ||
38 | CONFIG_KALLSYMS=y | ||
39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
40 | CONFIG_HOTPLUG=y | ||
41 | CONFIG_PRINTK=y | ||
42 | CONFIG_BUG=y | ||
43 | CONFIG_ELF_CORE=y | ||
44 | CONFIG_BASE_FULL=y | ||
45 | CONFIG_FUTEX=y | ||
46 | CONFIG_EPOLL=y | ||
47 | CONFIG_SHMEM=y | ||
48 | CONFIG_SLAB=y | ||
49 | # CONFIG_TINY_SHMEM is not set | ||
50 | CONFIG_BASE_SMALL=0 | ||
51 | # CONFIG_SLOB is not set | ||
52 | |||
53 | # | ||
54 | # Loadable module support | ||
55 | # | ||
56 | CONFIG_MODULES=y | ||
57 | CONFIG_MODULE_UNLOAD=y | ||
58 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
59 | # CONFIG_MODVERSIONS is not set | ||
60 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
61 | # CONFIG_KMOD is not set | ||
62 | |||
63 | # | ||
64 | # Block layer | ||
65 | # | ||
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
67 | |||
68 | # | ||
69 | # IO Schedulers | ||
70 | # | ||
71 | CONFIG_IOSCHED_NOOP=y | ||
72 | # CONFIG_IOSCHED_AS is not set | ||
73 | CONFIG_IOSCHED_DEADLINE=y | ||
74 | # CONFIG_IOSCHED_CFQ is not set | ||
75 | # CONFIG_DEFAULT_AS is not set | ||
76 | CONFIG_DEFAULT_DEADLINE=y | ||
77 | # CONFIG_DEFAULT_CFQ is not set | ||
78 | # CONFIG_DEFAULT_NOOP is not set | ||
79 | CONFIG_DEFAULT_IOSCHED="deadline" | ||
80 | |||
81 | # | ||
82 | # System Type | ||
83 | # | ||
84 | # CONFIG_ARCH_CLPS7500 is not set | ||
85 | # CONFIG_ARCH_CLPS711X is not set | ||
86 | # CONFIG_ARCH_CO285 is not set | ||
87 | # CONFIG_ARCH_EBSA110 is not set | ||
88 | # CONFIG_ARCH_EP93XX is not set | ||
89 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
90 | # CONFIG_ARCH_INTEGRATOR is not set | ||
91 | # CONFIG_ARCH_IOP3XX is not set | ||
92 | # CONFIG_ARCH_IXP4XX is not set | ||
93 | # CONFIG_ARCH_IXP2000 is not set | ||
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | ||
96 | # CONFIG_ARCH_PXA is not set | ||
97 | # CONFIG_ARCH_RPC is not set | ||
98 | # CONFIG_ARCH_SA1100 is not set | ||
99 | # CONFIG_ARCH_S3C2410 is not set | ||
100 | # CONFIG_ARCH_SHARK is not set | ||
101 | # CONFIG_ARCH_LH7A40X is not set | ||
102 | # CONFIG_ARCH_OMAP is not set | ||
103 | # CONFIG_ARCH_VERSATILE is not set | ||
104 | # CONFIG_ARCH_REALVIEW is not set | ||
105 | # CONFIG_ARCH_IMX is not set | ||
106 | # CONFIG_ARCH_H720X is not set | ||
107 | # CONFIG_ARCH_AAEC2000 is not set | ||
108 | CONFIG_ARCH_AT91RM9200=y | ||
109 | |||
110 | # | ||
111 | # AT91RM9200 Implementations | ||
112 | # | ||
113 | |||
114 | # | ||
115 | # AT91RM9200 Board Type | ||
116 | # | ||
117 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
118 | # CONFIG_MACH_AT91RM9200EK is not set | ||
119 | # CONFIG_MACH_CSB337 is not set | ||
120 | # CONFIG_MACH_CSB637 is not set | ||
121 | # CONFIG_MACH_CARMEVA is not set | ||
122 | # CONFIG_MACH_KB9200 is not set | ||
123 | # CONFIG_MACH_ATEB9200 is not set | ||
124 | CONFIG_MACH_KAFA=y | ||
125 | |||
126 | # | ||
127 | # AT91 Feature Selections | ||
128 | # | ||
129 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
130 | |||
131 | # | ||
132 | # Processor Type | ||
133 | # | ||
134 | CONFIG_CPU_32=y | ||
135 | CONFIG_CPU_ARM920T=y | ||
136 | CONFIG_CPU_32v4=y | ||
137 | CONFIG_CPU_ABRT_EV4T=y | ||
138 | CONFIG_CPU_CACHE_V4WT=y | ||
139 | CONFIG_CPU_CACHE_VIVT=y | ||
140 | CONFIG_CPU_COPY_V4WB=y | ||
141 | CONFIG_CPU_TLB_V4WBI=y | ||
142 | |||
143 | # | ||
144 | # Processor Features | ||
145 | # | ||
146 | # CONFIG_ARM_THUMB is not set | ||
147 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
148 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
149 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
150 | |||
151 | # | ||
152 | # Bus support | ||
153 | # | ||
154 | |||
155 | # | ||
156 | # PCCARD (PCMCIA/CardBus) support | ||
157 | # | ||
158 | # CONFIG_PCCARD is not set | ||
159 | |||
160 | # | ||
161 | # Kernel Features | ||
162 | # | ||
163 | CONFIG_PREEMPT=y | ||
164 | # CONFIG_NO_IDLE_HZ is not set | ||
165 | CONFIG_HZ=100 | ||
166 | # CONFIG_AEABI is not set | ||
167 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
168 | CONFIG_SELECT_MEMORY_MODEL=y | ||
169 | CONFIG_FLATMEM_MANUAL=y | ||
170 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
171 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
172 | CONFIG_FLATMEM=y | ||
173 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
174 | # CONFIG_SPARSEMEM_STATIC is not set | ||
175 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
176 | CONFIG_LEDS=y | ||
177 | # CONFIG_LEDS_TIMER is not set | ||
178 | CONFIG_LEDS_CPU=y | ||
179 | CONFIG_ALIGNMENT_TRAP=y | ||
180 | |||
181 | # | ||
182 | # Boot options | ||
183 | # | ||
184 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
185 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
186 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200 initrd=0x20800000,10M root=/dev/ram0 rw" | ||
187 | # CONFIG_XIP_KERNEL is not set | ||
188 | |||
189 | # | ||
190 | # Floating point emulation | ||
191 | # | ||
192 | |||
193 | # | ||
194 | # At least one emulation must be selected | ||
195 | # | ||
196 | CONFIG_FPE_NWFPE=y | ||
197 | # CONFIG_FPE_NWFPE_XP is not set | ||
198 | # CONFIG_FPE_FASTFPE is not set | ||
199 | |||
200 | # | ||
201 | # Userspace binary formats | ||
202 | # | ||
203 | CONFIG_BINFMT_ELF=y | ||
204 | # CONFIG_BINFMT_AOUT is not set | ||
205 | CONFIG_BINFMT_MISC=y | ||
206 | # CONFIG_ARTHUR is not set | ||
207 | |||
208 | # | ||
209 | # Power management options | ||
210 | # | ||
211 | # CONFIG_PM is not set | ||
212 | # CONFIG_APM is not set | ||
213 | |||
214 | # | ||
215 | # Networking | ||
216 | # | ||
217 | CONFIG_NET=y | ||
218 | |||
219 | # | ||
220 | # Networking options | ||
221 | # | ||
222 | # CONFIG_NETDEBUG is not set | ||
223 | CONFIG_PACKET=y | ||
224 | # CONFIG_PACKET_MMAP is not set | ||
225 | CONFIG_UNIX=y | ||
226 | # CONFIG_NET_KEY is not set | ||
227 | CONFIG_INET=y | ||
228 | # CONFIG_IP_MULTICAST is not set | ||
229 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
230 | CONFIG_IP_FIB_HASH=y | ||
231 | # CONFIG_IP_PNP is not set | ||
232 | # CONFIG_NET_IPIP is not set | ||
233 | # CONFIG_NET_IPGRE is not set | ||
234 | # CONFIG_ARPD is not set | ||
235 | # CONFIG_SYN_COOKIES is not set | ||
236 | # CONFIG_INET_AH is not set | ||
237 | # CONFIG_INET_ESP is not set | ||
238 | # CONFIG_INET_IPCOMP is not set | ||
239 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
240 | # CONFIG_INET_TUNNEL is not set | ||
241 | # CONFIG_INET_DIAG is not set | ||
242 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
243 | CONFIG_TCP_CONG_BIC=y | ||
244 | # CONFIG_IPV6 is not set | ||
245 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
246 | # CONFIG_INET6_TUNNEL is not set | ||
247 | # CONFIG_NETFILTER is not set | ||
248 | |||
249 | # | ||
250 | # DCCP Configuration (EXPERIMENTAL) | ||
251 | # | ||
252 | # CONFIG_IP_DCCP is not set | ||
253 | |||
254 | # | ||
255 | # SCTP Configuration (EXPERIMENTAL) | ||
256 | # | ||
257 | # CONFIG_IP_SCTP is not set | ||
258 | |||
259 | # | ||
260 | # TIPC Configuration (EXPERIMENTAL) | ||
261 | # | ||
262 | # CONFIG_TIPC is not set | ||
263 | # CONFIG_ATM is not set | ||
264 | # CONFIG_BRIDGE is not set | ||
265 | # CONFIG_VLAN_8021Q is not set | ||
266 | # CONFIG_DECNET is not set | ||
267 | # CONFIG_LLC2 is not set | ||
268 | # CONFIG_IPX is not set | ||
269 | # CONFIG_ATALK is not set | ||
270 | # CONFIG_X25 is not set | ||
271 | # CONFIG_LAPB is not set | ||
272 | # CONFIG_NET_DIVERT is not set | ||
273 | # CONFIG_ECONET is not set | ||
274 | # CONFIG_WAN_ROUTER is not set | ||
275 | |||
276 | # | ||
277 | # QoS and/or fair queueing | ||
278 | # | ||
279 | # CONFIG_NET_SCHED is not set | ||
280 | |||
281 | # | ||
282 | # Network testing | ||
283 | # | ||
284 | # CONFIG_NET_PKTGEN is not set | ||
285 | # CONFIG_HAMRADIO is not set | ||
286 | # CONFIG_IRDA is not set | ||
287 | # CONFIG_BT is not set | ||
288 | # CONFIG_IEEE80211 is not set | ||
289 | |||
290 | # | ||
291 | # Device Drivers | ||
292 | # | ||
293 | |||
294 | # | ||
295 | # Generic Driver Options | ||
296 | # | ||
297 | CONFIG_STANDALONE=y | ||
298 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
299 | # CONFIG_FW_LOADER is not set | ||
300 | |||
301 | # | ||
302 | # Connector - unified userspace <-> kernelspace linker | ||
303 | # | ||
304 | # CONFIG_CONNECTOR is not set | ||
305 | |||
306 | # | ||
307 | # Memory Technology Devices (MTD) | ||
308 | # | ||
309 | CONFIG_MTD=y | ||
310 | # CONFIG_MTD_DEBUG is not set | ||
311 | # CONFIG_MTD_CONCAT is not set | ||
312 | CONFIG_MTD_PARTITIONS=y | ||
313 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
314 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
315 | # CONFIG_MTD_AFS_PARTS is not set | ||
316 | |||
317 | # | ||
318 | # User Modules And Translation Layers | ||
319 | # | ||
320 | CONFIG_MTD_CHAR=y | ||
321 | # CONFIG_MTD_BLOCK is not set | ||
322 | CONFIG_MTD_BLOCK_RO=y | ||
323 | # CONFIG_FTL is not set | ||
324 | # CONFIG_NFTL is not set | ||
325 | # CONFIG_INFTL is not set | ||
326 | # CONFIG_RFD_FTL is not set | ||
327 | |||
328 | # | ||
329 | # RAM/ROM/Flash chip drivers | ||
330 | # | ||
331 | # CONFIG_MTD_CFI is not set | ||
332 | # CONFIG_MTD_JEDECPROBE is not set | ||
333 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
334 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
335 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
336 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
337 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
338 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
339 | CONFIG_MTD_CFI_I1=y | ||
340 | CONFIG_MTD_CFI_I2=y | ||
341 | # CONFIG_MTD_CFI_I4 is not set | ||
342 | # CONFIG_MTD_CFI_I8 is not set | ||
343 | # CONFIG_MTD_RAM is not set | ||
344 | # CONFIG_MTD_ROM is not set | ||
345 | # CONFIG_MTD_ABSENT is not set | ||
346 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
347 | |||
348 | # | ||
349 | # Mapping drivers for chip access | ||
350 | # | ||
351 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
352 | # CONFIG_MTD_PLATRAM is not set | ||
353 | |||
354 | # | ||
355 | # Self-contained MTD device drivers | ||
356 | # | ||
357 | # CONFIG_MTD_SLRAM is not set | ||
358 | # CONFIG_MTD_PHRAM is not set | ||
359 | # CONFIG_MTD_MTDRAM is not set | ||
360 | # CONFIG_MTD_BLOCK2MTD is not set | ||
361 | |||
362 | # | ||
363 | # Disk-On-Chip Device Drivers | ||
364 | # | ||
365 | # CONFIG_MTD_DOC2000 is not set | ||
366 | # CONFIG_MTD_DOC2001 is not set | ||
367 | # CONFIG_MTD_DOC2001PLUS is not set | ||
368 | CONFIG_MTD_AT91_DATAFLASH=y | ||
369 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
370 | |||
371 | # | ||
372 | # NAND Flash Device Drivers | ||
373 | # | ||
374 | # CONFIG_MTD_NAND is not set | ||
375 | |||
376 | # | ||
377 | # OneNAND Flash Device Drivers | ||
378 | # | ||
379 | # CONFIG_MTD_ONENAND is not set | ||
380 | |||
381 | # | ||
382 | # Parallel port support | ||
383 | # | ||
384 | # CONFIG_PARPORT is not set | ||
385 | |||
386 | # | ||
387 | # Plug and Play support | ||
388 | # | ||
389 | |||
390 | # | ||
391 | # Block devices | ||
392 | # | ||
393 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
394 | # CONFIG_BLK_DEV_LOOP is not set | ||
395 | # CONFIG_BLK_DEV_NBD is not set | ||
396 | # CONFIG_BLK_DEV_RAM is not set | ||
397 | # CONFIG_BLK_DEV_INITRD is not set | ||
398 | # CONFIG_CDROM_PKTCDVD is not set | ||
399 | # CONFIG_ATA_OVER_ETH is not set | ||
400 | |||
401 | # | ||
402 | # SCSI device support | ||
403 | # | ||
404 | # CONFIG_RAID_ATTRS is not set | ||
405 | # CONFIG_SCSI is not set | ||
406 | |||
407 | # | ||
408 | # Multi-device support (RAID and LVM) | ||
409 | # | ||
410 | # CONFIG_MD is not set | ||
411 | |||
412 | # | ||
413 | # Fusion MPT device support | ||
414 | # | ||
415 | # CONFIG_FUSION is not set | ||
416 | |||
417 | # | ||
418 | # IEEE 1394 (FireWire) support | ||
419 | # | ||
420 | |||
421 | # | ||
422 | # I2O device support | ||
423 | # | ||
424 | |||
425 | # | ||
426 | # Network device support | ||
427 | # | ||
428 | CONFIG_NETDEVICES=y | ||
429 | # CONFIG_DUMMY is not set | ||
430 | # CONFIG_BONDING is not set | ||
431 | # CONFIG_EQUALIZER is not set | ||
432 | # CONFIG_TUN is not set | ||
433 | |||
434 | # | ||
435 | # PHY device support | ||
436 | # | ||
437 | CONFIG_PHYLIB=y | ||
438 | |||
439 | # | ||
440 | # MII PHY device drivers | ||
441 | # | ||
442 | # CONFIG_MARVELL_PHY is not set | ||
443 | CONFIG_DAVICOM_PHY=y | ||
444 | # CONFIG_QSEMI_PHY is not set | ||
445 | # CONFIG_LXT_PHY is not set | ||
446 | # CONFIG_CICADA_PHY is not set | ||
447 | |||
448 | # | ||
449 | # Ethernet (10 or 100Mbit) | ||
450 | # | ||
451 | CONFIG_NET_ETHERNET=y | ||
452 | CONFIG_MII=y | ||
453 | CONFIG_ARM_AT91_ETHER=y | ||
454 | # CONFIG_SMC91X is not set | ||
455 | # CONFIG_DM9000 is not set | ||
456 | |||
457 | # | ||
458 | # Ethernet (1000 Mbit) | ||
459 | # | ||
460 | |||
461 | # | ||
462 | # Ethernet (10000 Mbit) | ||
463 | # | ||
464 | |||
465 | # | ||
466 | # Token Ring devices | ||
467 | # | ||
468 | |||
469 | # | ||
470 | # Wireless LAN (non-hamradio) | ||
471 | # | ||
472 | # CONFIG_NET_RADIO is not set | ||
473 | |||
474 | # | ||
475 | # Wan interfaces | ||
476 | # | ||
477 | # CONFIG_WAN is not set | ||
478 | # CONFIG_PPP is not set | ||
479 | # CONFIG_SLIP is not set | ||
480 | # CONFIG_SHAPER is not set | ||
481 | # CONFIG_NETCONSOLE is not set | ||
482 | # CONFIG_NETPOLL is not set | ||
483 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
484 | |||
485 | # | ||
486 | # ISDN subsystem | ||
487 | # | ||
488 | # CONFIG_ISDN is not set | ||
489 | |||
490 | # | ||
491 | # Input device support | ||
492 | # | ||
493 | CONFIG_INPUT=y | ||
494 | |||
495 | # | ||
496 | # Userland interfaces | ||
497 | # | ||
498 | CONFIG_INPUT_MOUSEDEV=y | ||
499 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
500 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
501 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
502 | # CONFIG_INPUT_JOYDEV is not set | ||
503 | # CONFIG_INPUT_TSDEV is not set | ||
504 | # CONFIG_INPUT_EVDEV is not set | ||
505 | # CONFIG_INPUT_EVBUG is not set | ||
506 | |||
507 | # | ||
508 | # Input Device Drivers | ||
509 | # | ||
510 | # CONFIG_INPUT_KEYBOARD is not set | ||
511 | # CONFIG_INPUT_MOUSE is not set | ||
512 | # CONFIG_INPUT_JOYSTICK is not set | ||
513 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
514 | # CONFIG_INPUT_MISC is not set | ||
515 | |||
516 | # | ||
517 | # Hardware I/O ports | ||
518 | # | ||
519 | # CONFIG_SERIO is not set | ||
520 | # CONFIG_GAMEPORT is not set | ||
521 | |||
522 | # | ||
523 | # Character devices | ||
524 | # | ||
525 | CONFIG_VT=y | ||
526 | CONFIG_VT_CONSOLE=y | ||
527 | CONFIG_HW_CONSOLE=y | ||
528 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
529 | |||
530 | # | ||
531 | # Serial drivers | ||
532 | # | ||
533 | # CONFIG_SERIAL_8250 is not set | ||
534 | |||
535 | # | ||
536 | # Non-8250 serial port support | ||
537 | # | ||
538 | CONFIG_SERIAL_AT91=y | ||
539 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
540 | # CONFIG_SERIAL_AT91_TTYAT is not set | ||
541 | CONFIG_SERIAL_CORE=y | ||
542 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
543 | CONFIG_UNIX98_PTYS=y | ||
544 | CONFIG_LEGACY_PTYS=y | ||
545 | CONFIG_LEGACY_PTY_COUNT=32 | ||
546 | |||
547 | # | ||
548 | # IPMI | ||
549 | # | ||
550 | # CONFIG_IPMI_HANDLER is not set | ||
551 | |||
552 | # | ||
553 | # Watchdog Cards | ||
554 | # | ||
555 | CONFIG_WATCHDOG=y | ||
556 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
557 | |||
558 | # | ||
559 | # Watchdog Device Drivers | ||
560 | # | ||
561 | # CONFIG_SOFT_WATCHDOG is not set | ||
562 | CONFIG_AT91_WATCHDOG=y | ||
563 | # CONFIG_NVRAM is not set | ||
564 | # CONFIG_DTLK is not set | ||
565 | # CONFIG_R3964 is not set | ||
566 | |||
567 | # | ||
568 | # Ftape, the floppy tape device driver | ||
569 | # | ||
570 | # CONFIG_RAW_DRIVER is not set | ||
571 | |||
572 | # | ||
573 | # TPM devices | ||
574 | # | ||
575 | # CONFIG_TCG_TPM is not set | ||
576 | # CONFIG_TELCLOCK is not set | ||
577 | CONFIG_AT91_SPI=y | ||
578 | CONFIG_AT91_SPIDEV=y | ||
579 | |||
580 | # | ||
581 | # I2C support | ||
582 | # | ||
583 | CONFIG_I2C=y | ||
584 | CONFIG_I2C_CHARDEV=y | ||
585 | |||
586 | # | ||
587 | # I2C Algorithms | ||
588 | # | ||
589 | # CONFIG_I2C_ALGOBIT is not set | ||
590 | # CONFIG_I2C_ALGOPCF is not set | ||
591 | # CONFIG_I2C_ALGOPCA is not set | ||
592 | |||
593 | # | ||
594 | # I2C Hardware Bus support | ||
595 | # | ||
596 | CONFIG_I2C_AT91=y | ||
597 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
598 | # CONFIG_I2C_STUB is not set | ||
599 | # CONFIG_I2C_PCA_ISA is not set | ||
600 | |||
601 | # | ||
602 | # Miscellaneous I2C Chip support | ||
603 | # | ||
604 | # CONFIG_SENSORS_DS1337 is not set | ||
605 | # CONFIG_SENSORS_DS1374 is not set | ||
606 | # CONFIG_SENSORS_EEPROM is not set | ||
607 | # CONFIG_SENSORS_PCF8574 is not set | ||
608 | # CONFIG_SENSORS_PCA9539 is not set | ||
609 | # CONFIG_SENSORS_PCF8591 is not set | ||
610 | # CONFIG_SENSORS_MAX6875 is not set | ||
611 | # CONFIG_I2C_DEBUG_CORE is not set | ||
612 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
613 | # CONFIG_I2C_DEBUG_BUS is not set | ||
614 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
615 | |||
616 | # | ||
617 | # SPI support | ||
618 | # | ||
619 | # CONFIG_SPI is not set | ||
620 | # CONFIG_SPI_MASTER is not set | ||
621 | |||
622 | # | ||
623 | # Dallas's 1-wire bus | ||
624 | # | ||
625 | # CONFIG_W1 is not set | ||
626 | |||
627 | # | ||
628 | # Hardware Monitoring support | ||
629 | # | ||
630 | # CONFIG_HWMON is not set | ||
631 | # CONFIG_HWMON_VID is not set | ||
632 | |||
633 | # | ||
634 | # Misc devices | ||
635 | # | ||
636 | |||
637 | # | ||
638 | # LED devices | ||
639 | # | ||
640 | # CONFIG_NEW_LEDS is not set | ||
641 | |||
642 | # | ||
643 | # LED drivers | ||
644 | # | ||
645 | |||
646 | # | ||
647 | # LED Triggers | ||
648 | # | ||
649 | |||
650 | # | ||
651 | # Multimedia devices | ||
652 | # | ||
653 | # CONFIG_VIDEO_DEV is not set | ||
654 | |||
655 | # | ||
656 | # Digital Video Broadcasting Devices | ||
657 | # | ||
658 | # CONFIG_DVB is not set | ||
659 | |||
660 | # | ||
661 | # Graphics support | ||
662 | # | ||
663 | # CONFIG_FB is not set | ||
664 | |||
665 | # | ||
666 | # Console display driver support | ||
667 | # | ||
668 | # CONFIG_VGA_CONSOLE is not set | ||
669 | CONFIG_DUMMY_CONSOLE=y | ||
670 | |||
671 | # | ||
672 | # Sound | ||
673 | # | ||
674 | # CONFIG_SOUND is not set | ||
675 | |||
676 | # | ||
677 | # USB support | ||
678 | # | ||
679 | CONFIG_USB_ARCH_HAS_HCD=y | ||
680 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
681 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
682 | # CONFIG_USB is not set | ||
683 | |||
684 | # | ||
685 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
686 | # | ||
687 | |||
688 | # | ||
689 | # USB Gadget Support | ||
690 | # | ||
691 | # CONFIG_USB_GADGET is not set | ||
692 | |||
693 | # | ||
694 | # MMC/SD Card support | ||
695 | # | ||
696 | # CONFIG_MMC is not set | ||
697 | |||
698 | # | ||
699 | # Real Time Clock | ||
700 | # | ||
701 | CONFIG_RTC_LIB=y | ||
702 | CONFIG_RTC_CLASS=y | ||
703 | # CONFIG_RTC_HCTOSYS is not set | ||
704 | |||
705 | # | ||
706 | # RTC interfaces | ||
707 | # | ||
708 | CONFIG_RTC_INTF_SYSFS=y | ||
709 | CONFIG_RTC_INTF_PROC=y | ||
710 | CONFIG_RTC_INTF_DEV=y | ||
711 | |||
712 | # | ||
713 | # RTC drivers | ||
714 | # | ||
715 | # CONFIG_RTC_DRV_X1205 is not set | ||
716 | # CONFIG_RTC_DRV_DS1672 is not set | ||
717 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
718 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
719 | # CONFIG_RTC_DRV_M48T86 is not set | ||
720 | CONFIG_RTC_DRV_AT91=y | ||
721 | # CONFIG_RTC_DRV_TEST is not set | ||
722 | |||
723 | # | ||
724 | # File systems | ||
725 | # | ||
726 | # CONFIG_EXT2_FS is not set | ||
727 | CONFIG_EXT3_FS=y | ||
728 | # CONFIG_EXT3_FS_XATTR is not set | ||
729 | CONFIG_JBD=y | ||
730 | # CONFIG_JBD_DEBUG is not set | ||
731 | # CONFIG_REISERFS_FS is not set | ||
732 | # CONFIG_JFS_FS is not set | ||
733 | # CONFIG_FS_POSIX_ACL is not set | ||
734 | # CONFIG_XFS_FS is not set | ||
735 | # CONFIG_OCFS2_FS is not set | ||
736 | # CONFIG_MINIX_FS is not set | ||
737 | # CONFIG_ROMFS_FS is not set | ||
738 | # CONFIG_INOTIFY is not set | ||
739 | # CONFIG_QUOTA is not set | ||
740 | CONFIG_DNOTIFY=y | ||
741 | # CONFIG_AUTOFS_FS is not set | ||
742 | # CONFIG_AUTOFS4_FS is not set | ||
743 | # CONFIG_FUSE_FS is not set | ||
744 | |||
745 | # | ||
746 | # CD-ROM/DVD Filesystems | ||
747 | # | ||
748 | # CONFIG_ISO9660_FS is not set | ||
749 | # CONFIG_UDF_FS is not set | ||
750 | |||
751 | # | ||
752 | # DOS/FAT/NT Filesystems | ||
753 | # | ||
754 | # CONFIG_MSDOS_FS is not set | ||
755 | # CONFIG_VFAT_FS is not set | ||
756 | # CONFIG_NTFS_FS is not set | ||
757 | |||
758 | # | ||
759 | # Pseudo filesystems | ||
760 | # | ||
761 | CONFIG_PROC_FS=y | ||
762 | CONFIG_SYSFS=y | ||
763 | CONFIG_TMPFS=y | ||
764 | # CONFIG_HUGETLB_PAGE is not set | ||
765 | CONFIG_RAMFS=y | ||
766 | # CONFIG_CONFIGFS_FS is not set | ||
767 | |||
768 | # | ||
769 | # Miscellaneous filesystems | ||
770 | # | ||
771 | # CONFIG_ADFS_FS is not set | ||
772 | # CONFIG_AFFS_FS is not set | ||
773 | # CONFIG_HFS_FS is not set | ||
774 | # CONFIG_HFSPLUS_FS is not set | ||
775 | # CONFIG_BEFS_FS is not set | ||
776 | # CONFIG_BFS_FS is not set | ||
777 | # CONFIG_EFS_FS is not set | ||
778 | # CONFIG_JFFS_FS is not set | ||
779 | # CONFIG_JFFS2_FS is not set | ||
780 | CONFIG_CRAMFS=y | ||
781 | # CONFIG_VXFS_FS is not set | ||
782 | # CONFIG_HPFS_FS is not set | ||
783 | # CONFIG_QNX4FS_FS is not set | ||
784 | # CONFIG_SYSV_FS is not set | ||
785 | # CONFIG_UFS_FS is not set | ||
786 | |||
787 | # | ||
788 | # Network File Systems | ||
789 | # | ||
790 | CONFIG_NFS_FS=m | ||
791 | CONFIG_NFS_V3=y | ||
792 | # CONFIG_NFS_V3_ACL is not set | ||
793 | # CONFIG_NFS_V4 is not set | ||
794 | # CONFIG_NFS_DIRECTIO is not set | ||
795 | # CONFIG_NFSD is not set | ||
796 | CONFIG_LOCKD=m | ||
797 | CONFIG_LOCKD_V4=y | ||
798 | CONFIG_NFS_COMMON=y | ||
799 | CONFIG_SUNRPC=m | ||
800 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
801 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
802 | # CONFIG_SMB_FS is not set | ||
803 | # CONFIG_CIFS is not set | ||
804 | # CONFIG_NCP_FS is not set | ||
805 | # CONFIG_CODA_FS is not set | ||
806 | # CONFIG_AFS_FS is not set | ||
807 | # CONFIG_9P_FS is not set | ||
808 | |||
809 | # | ||
810 | # Partition Types | ||
811 | # | ||
812 | # CONFIG_PARTITION_ADVANCED is not set | ||
813 | CONFIG_MSDOS_PARTITION=y | ||
814 | |||
815 | # | ||
816 | # Native Language Support | ||
817 | # | ||
818 | # CONFIG_NLS is not set | ||
819 | |||
820 | # | ||
821 | # Profiling support | ||
822 | # | ||
823 | # CONFIG_PROFILING is not set | ||
824 | |||
825 | # | ||
826 | # Kernel hacking | ||
827 | # | ||
828 | # CONFIG_PRINTK_TIME is not set | ||
829 | # CONFIG_MAGIC_SYSRQ is not set | ||
830 | # CONFIG_DEBUG_KERNEL is not set | ||
831 | CONFIG_LOG_BUF_SHIFT=14 | ||
832 | CONFIG_DEBUG_BUGVERBOSE=y | ||
833 | # CONFIG_DEBUG_FS is not set | ||
834 | CONFIG_FRAME_POINTER=y | ||
835 | # CONFIG_UNWIND_INFO is not set | ||
836 | # CONFIG_DEBUG_USER is not set | ||
837 | |||
838 | # | ||
839 | # Security options | ||
840 | # | ||
841 | # CONFIG_KEYS is not set | ||
842 | # CONFIG_SECURITY is not set | ||
843 | |||
844 | # | ||
845 | # Cryptographic options | ||
846 | # | ||
847 | CONFIG_CRYPTO=y | ||
848 | # CONFIG_CRYPTO_HMAC is not set | ||
849 | # CONFIG_CRYPTO_NULL is not set | ||
850 | # CONFIG_CRYPTO_MD4 is not set | ||
851 | CONFIG_CRYPTO_MD5=y | ||
852 | # CONFIG_CRYPTO_SHA1 is not set | ||
853 | # CONFIG_CRYPTO_SHA256 is not set | ||
854 | # CONFIG_CRYPTO_SHA512 is not set | ||
855 | # CONFIG_CRYPTO_WP512 is not set | ||
856 | # CONFIG_CRYPTO_TGR192 is not set | ||
857 | CONFIG_CRYPTO_DES=y | ||
858 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
859 | # CONFIG_CRYPTO_TWOFISH is not set | ||
860 | # CONFIG_CRYPTO_SERPENT is not set | ||
861 | # CONFIG_CRYPTO_AES is not set | ||
862 | # CONFIG_CRYPTO_CAST5 is not set | ||
863 | # CONFIG_CRYPTO_CAST6 is not set | ||
864 | # CONFIG_CRYPTO_TEA is not set | ||
865 | # CONFIG_CRYPTO_ARC4 is not set | ||
866 | # CONFIG_CRYPTO_KHAZAD is not set | ||
867 | # CONFIG_CRYPTO_ANUBIS is not set | ||
868 | # CONFIG_CRYPTO_DEFLATE is not set | ||
869 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
870 | # CONFIG_CRYPTO_CRC32C is not set | ||
871 | # CONFIG_CRYPTO_TEST is not set | ||
872 | |||
873 | # | ||
874 | # Hardware crypto devices | ||
875 | # | ||
876 | |||
877 | # | ||
878 | # Library routines | ||
879 | # | ||
880 | # CONFIG_CRC_CCITT is not set | ||
881 | # CONFIG_CRC16 is not set | ||
882 | CONFIG_CRC32=y | ||
883 | # CONFIG_LIBCRC32C is not set | ||
884 | CONFIG_ZLIB_INFLATE=y | ||
diff --git a/arch/arm/configs/kb9202_defconfig b/arch/arm/configs/kb9202_defconfig new file mode 100644 index 000000000000..fee4f566452e --- /dev/null +++ b/arch/arm/configs/kb9202_defconfig | |||
@@ -0,0 +1,780 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.13-rc2 | ||
4 | # Sun Aug 14 19:26:59 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | |||
12 | # | ||
13 | # Code maturity level options | ||
14 | # | ||
15 | # CONFIG_EXPERIMENTAL is not set | ||
16 | CONFIG_CLEAN_COMPILE=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
19 | |||
20 | # | ||
21 | # General setup | ||
22 | # | ||
23 | CONFIG_LOCALVERSION="" | ||
24 | # CONFIG_SWAP is not set | ||
25 | # CONFIG_SYSVIPC is not set | ||
26 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
27 | CONFIG_SYSCTL=y | ||
28 | # CONFIG_AUDIT is not set | ||
29 | CONFIG_HOTPLUG=y | ||
30 | # CONFIG_KOBJECT_UEVENT is not set | ||
31 | # CONFIG_IKCONFIG is not set | ||
32 | # CONFIG_EMBEDDED is not set | ||
33 | CONFIG_KALLSYMS=y | ||
34 | # CONFIG_KALLSYMS_ALL is not set | ||
35 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
36 | CONFIG_PRINTK=y | ||
37 | CONFIG_BUG=y | ||
38 | CONFIG_BASE_FULL=y | ||
39 | CONFIG_FUTEX=y | ||
40 | CONFIG_EPOLL=y | ||
41 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
42 | CONFIG_SHMEM=y | ||
43 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
44 | CONFIG_CC_ALIGN_LABELS=0 | ||
45 | CONFIG_CC_ALIGN_LOOPS=0 | ||
46 | CONFIG_CC_ALIGN_JUMPS=0 | ||
47 | # CONFIG_TINY_SHMEM is not set | ||
48 | CONFIG_BASE_SMALL=0 | ||
49 | |||
50 | # | ||
51 | # Loadable module support | ||
52 | # | ||
53 | CONFIG_MODULES=y | ||
54 | CONFIG_MODULE_UNLOAD=y | ||
55 | CONFIG_OBSOLETE_MODPARM=y | ||
56 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
57 | CONFIG_KMOD=y | ||
58 | |||
59 | # | ||
60 | # System Type | ||
61 | # | ||
62 | # CONFIG_ARCH_CLPS7500 is not set | ||
63 | # CONFIG_ARCH_CLPS711X is not set | ||
64 | # CONFIG_ARCH_CO285 is not set | ||
65 | # CONFIG_ARCH_EBSA110 is not set | ||
66 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
67 | # CONFIG_ARCH_INTEGRATOR is not set | ||
68 | # CONFIG_ARCH_IOP3XX is not set | ||
69 | # CONFIG_ARCH_IXP4XX is not set | ||
70 | # CONFIG_ARCH_IXP2000 is not set | ||
71 | # CONFIG_ARCH_L7200 is not set | ||
72 | # CONFIG_ARCH_PXA is not set | ||
73 | # CONFIG_ARCH_RPC is not set | ||
74 | # CONFIG_ARCH_SA1100 is not set | ||
75 | # CONFIG_ARCH_S3C2410 is not set | ||
76 | # CONFIG_ARCH_SHARK is not set | ||
77 | # CONFIG_ARCH_LH7A40X is not set | ||
78 | # CONFIG_ARCH_OMAP is not set | ||
79 | # CONFIG_ARCH_VERSATILE is not set | ||
80 | # CONFIG_ARCH_IMX is not set | ||
81 | # CONFIG_ARCH_H720X is not set | ||
82 | # CONFIG_ARCH_AAEC2000 is not set | ||
83 | CONFIG_ARCH_AT91RM9200=y | ||
84 | |||
85 | # | ||
86 | # AT91RM9200 Implementations | ||
87 | # | ||
88 | # CONFIG_ARCH_AT91RM9200DK is not set | ||
89 | # CONFIG_MACH_AT91RM9200EK is not set | ||
90 | # CONFIG_MACH_CSB337 is not set | ||
91 | # CONFIG_MACH_CSB637 is not set | ||
92 | # CONFIG_MACH_CARMEVA is not set | ||
93 | CONFIG_MACH_KB9200=y | ||
94 | |||
95 | # | ||
96 | # Processor Type | ||
97 | # | ||
98 | CONFIG_CPU_32=y | ||
99 | CONFIG_CPU_ARM920T=y | ||
100 | CONFIG_CPU_32v4=y | ||
101 | CONFIG_CPU_ABRT_EV4T=y | ||
102 | CONFIG_CPU_CACHE_V4WT=y | ||
103 | CONFIG_CPU_CACHE_VIVT=y | ||
104 | CONFIG_CPU_COPY_V4WB=y | ||
105 | CONFIG_CPU_TLB_V4WBI=y | ||
106 | |||
107 | # | ||
108 | # Processor Features | ||
109 | # | ||
110 | CONFIG_ARM_THUMB=y | ||
111 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
112 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
113 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
114 | |||
115 | # | ||
116 | # Bus support | ||
117 | # | ||
118 | CONFIG_ISA_DMA_API=y | ||
119 | |||
120 | # | ||
121 | # PCCARD (PCMCIA/CardBus) support | ||
122 | # | ||
123 | # CONFIG_PCCARD is not set | ||
124 | |||
125 | # | ||
126 | # Kernel Features | ||
127 | # | ||
128 | # CONFIG_NO_IDLE_HZ is not set | ||
129 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
130 | CONFIG_FLATMEM=y | ||
131 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
132 | # CONFIG_LEDS is not set | ||
133 | CONFIG_ALIGNMENT_TRAP=y | ||
134 | |||
135 | # | ||
136 | # Boot options | ||
137 | # | ||
138 | CONFIG_ZBOOT_ROM_TEXT=0x10000000 | ||
139 | CONFIG_ZBOOT_ROM_BSS=0x20040000 | ||
140 | CONFIG_ZBOOT_ROM=y | ||
141 | CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/ram rw initrd=0x20210000,654933" | ||
142 | |||
143 | # | ||
144 | # Floating point emulation | ||
145 | # | ||
146 | |||
147 | # | ||
148 | # At least one emulation must be selected | ||
149 | # | ||
150 | CONFIG_FPE_NWFPE=y | ||
151 | # CONFIG_FPE_NWFPE_XP is not set | ||
152 | |||
153 | # | ||
154 | # Userspace binary formats | ||
155 | # | ||
156 | CONFIG_BINFMT_ELF=y | ||
157 | CONFIG_BINFMT_AOUT=y | ||
158 | CONFIG_BINFMT_MISC=y | ||
159 | # CONFIG_ARTHUR is not set | ||
160 | |||
161 | # | ||
162 | # Power management options | ||
163 | # | ||
164 | # CONFIG_PM is not set | ||
165 | |||
166 | # | ||
167 | # Device Drivers | ||
168 | # | ||
169 | |||
170 | # | ||
171 | # Generic Driver Options | ||
172 | # | ||
173 | CONFIG_STANDALONE=y | ||
174 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
175 | # CONFIG_FW_LOADER is not set | ||
176 | CONFIG_DEBUG_DRIVER=y | ||
177 | |||
178 | # | ||
179 | # Memory Technology Devices (MTD) | ||
180 | # | ||
181 | # CONFIG_MTD is not set | ||
182 | |||
183 | # | ||
184 | # Parallel port support | ||
185 | # | ||
186 | # CONFIG_PARPORT is not set | ||
187 | |||
188 | # | ||
189 | # Plug and Play support | ||
190 | # | ||
191 | |||
192 | # | ||
193 | # Block devices | ||
194 | # | ||
195 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
196 | CONFIG_BLK_DEV_LOOP=y | ||
197 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
198 | CONFIG_BLK_DEV_NBD=y | ||
199 | # CONFIG_BLK_DEV_UB is not set | ||
200 | CONFIG_BLK_DEV_RAM=y | ||
201 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
202 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
203 | CONFIG_BLK_DEV_INITRD=y | ||
204 | CONFIG_INITRAMFS_SOURCE="" | ||
205 | # CONFIG_CDROM_PKTCDVD is not set | ||
206 | |||
207 | # | ||
208 | # IO Schedulers | ||
209 | # | ||
210 | CONFIG_IOSCHED_NOOP=y | ||
211 | CONFIG_IOSCHED_AS=y | ||
212 | CONFIG_IOSCHED_DEADLINE=y | ||
213 | CONFIG_IOSCHED_CFQ=y | ||
214 | # CONFIG_ATA_OVER_ETH is not set | ||
215 | |||
216 | # | ||
217 | # SCSI device support | ||
218 | # | ||
219 | CONFIG_SCSI=y | ||
220 | CONFIG_SCSI_PROC_FS=y | ||
221 | |||
222 | # | ||
223 | # SCSI support type (disk, tape, CD-ROM) | ||
224 | # | ||
225 | CONFIG_BLK_DEV_SD=y | ||
226 | # CONFIG_CHR_DEV_ST is not set | ||
227 | # CONFIG_CHR_DEV_OSST is not set | ||
228 | # CONFIG_BLK_DEV_SR is not set | ||
229 | CONFIG_CHR_DEV_SG=y | ||
230 | # CONFIG_CHR_DEV_SCH is not set | ||
231 | |||
232 | # | ||
233 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
234 | # | ||
235 | # CONFIG_SCSI_MULTI_LUN is not set | ||
236 | # CONFIG_SCSI_CONSTANTS is not set | ||
237 | # CONFIG_SCSI_LOGGING is not set | ||
238 | |||
239 | # | ||
240 | # SCSI Transport Attributes | ||
241 | # | ||
242 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
243 | # CONFIG_SCSI_FC_ATTRS is not set | ||
244 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
245 | |||
246 | # | ||
247 | # SCSI low-level drivers | ||
248 | # | ||
249 | # CONFIG_SCSI_SATA is not set | ||
250 | # CONFIG_SCSI_DEBUG is not set | ||
251 | |||
252 | # | ||
253 | # Multi-device support (RAID and LVM) | ||
254 | # | ||
255 | # CONFIG_MD is not set | ||
256 | |||
257 | # | ||
258 | # Fusion MPT device support | ||
259 | # | ||
260 | # CONFIG_FUSION is not set | ||
261 | |||
262 | # | ||
263 | # IEEE 1394 (FireWire) support | ||
264 | # | ||
265 | |||
266 | # | ||
267 | # I2O device support | ||
268 | # | ||
269 | |||
270 | # | ||
271 | # Networking support | ||
272 | # | ||
273 | CONFIG_NET=y | ||
274 | |||
275 | # | ||
276 | # Networking options | ||
277 | # | ||
278 | CONFIG_PACKET=y | ||
279 | # CONFIG_PACKET_MMAP is not set | ||
280 | CONFIG_UNIX=y | ||
281 | # CONFIG_NET_KEY is not set | ||
282 | CONFIG_INET=y | ||
283 | CONFIG_IP_MULTICAST=y | ||
284 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
285 | CONFIG_IP_FIB_HASH=y | ||
286 | CONFIG_IP_PNP=y | ||
287 | CONFIG_IP_PNP_DHCP=y | ||
288 | # CONFIG_IP_PNP_BOOTP is not set | ||
289 | # CONFIG_IP_PNP_RARP is not set | ||
290 | # CONFIG_NET_IPIP is not set | ||
291 | # CONFIG_NET_IPGRE is not set | ||
292 | # CONFIG_IP_MROUTE is not set | ||
293 | # CONFIG_SYN_COOKIES is not set | ||
294 | # CONFIG_INET_AH is not set | ||
295 | # CONFIG_INET_ESP is not set | ||
296 | # CONFIG_INET_IPCOMP is not set | ||
297 | # CONFIG_INET_TUNNEL is not set | ||
298 | # CONFIG_IP_TCPDIAG is not set | ||
299 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
300 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
301 | CONFIG_TCP_CONG_BIC=y | ||
302 | # CONFIG_IPV6 is not set | ||
303 | # CONFIG_NETFILTER is not set | ||
304 | # CONFIG_BRIDGE is not set | ||
305 | # CONFIG_VLAN_8021Q is not set | ||
306 | # CONFIG_DECNET is not set | ||
307 | # CONFIG_LLC2 is not set | ||
308 | # CONFIG_IPX is not set | ||
309 | # CONFIG_ATALK is not set | ||
310 | |||
311 | # | ||
312 | # QoS and/or fair queueing | ||
313 | # | ||
314 | # CONFIG_NET_SCHED is not set | ||
315 | # CONFIG_NET_CLS_ROUTE is not set | ||
316 | |||
317 | # | ||
318 | # Network testing | ||
319 | # | ||
320 | # CONFIG_NET_PKTGEN is not set | ||
321 | # CONFIG_NETPOLL is not set | ||
322 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
323 | # CONFIG_HAMRADIO is not set | ||
324 | # CONFIG_IRDA is not set | ||
325 | # CONFIG_BT is not set | ||
326 | CONFIG_NETDEVICES=y | ||
327 | # CONFIG_DUMMY is not set | ||
328 | # CONFIG_BONDING is not set | ||
329 | # CONFIG_EQUALIZER is not set | ||
330 | # CONFIG_TUN is not set | ||
331 | |||
332 | # | ||
333 | # Ethernet (10 or 100Mbit) | ||
334 | # | ||
335 | CONFIG_NET_ETHERNET=y | ||
336 | CONFIG_MII=y | ||
337 | CONFIG_ARM_AT91_ETHER=y | ||
338 | # CONFIG_SMC91X is not set | ||
339 | # CONFIG_DM9000 is not set | ||
340 | |||
341 | # | ||
342 | # Ethernet (1000 Mbit) | ||
343 | # | ||
344 | |||
345 | # | ||
346 | # Ethernet (10000 Mbit) | ||
347 | # | ||
348 | |||
349 | # | ||
350 | # Token Ring devices | ||
351 | # | ||
352 | |||
353 | # | ||
354 | # Wireless LAN (non-hamradio) | ||
355 | # | ||
356 | # CONFIG_NET_RADIO is not set | ||
357 | |||
358 | # | ||
359 | # Wan interfaces | ||
360 | # | ||
361 | # CONFIG_WAN is not set | ||
362 | # CONFIG_PPP is not set | ||
363 | # CONFIG_SLIP is not set | ||
364 | |||
365 | # | ||
366 | # ISDN subsystem | ||
367 | # | ||
368 | # CONFIG_ISDN is not set | ||
369 | |||
370 | # | ||
371 | # Input device support | ||
372 | # | ||
373 | CONFIG_INPUT=y | ||
374 | |||
375 | # | ||
376 | # Userland interfaces | ||
377 | # | ||
378 | CONFIG_INPUT_MOUSEDEV=y | ||
379 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
380 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
381 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
382 | # CONFIG_INPUT_JOYDEV is not set | ||
383 | # CONFIG_INPUT_TSDEV is not set | ||
384 | # CONFIG_INPUT_EVDEV is not set | ||
385 | # CONFIG_INPUT_EVBUG is not set | ||
386 | |||
387 | # | ||
388 | # Input Device Drivers | ||
389 | # | ||
390 | # CONFIG_INPUT_KEYBOARD is not set | ||
391 | # CONFIG_INPUT_MOUSE is not set | ||
392 | # CONFIG_INPUT_JOYSTICK is not set | ||
393 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
394 | # CONFIG_INPUT_MISC is not set | ||
395 | |||
396 | # | ||
397 | # Hardware I/O ports | ||
398 | # | ||
399 | CONFIG_SERIO=y | ||
400 | # CONFIG_SERIO_SERPORT is not set | ||
401 | # CONFIG_SERIO_RAW is not set | ||
402 | # CONFIG_GAMEPORT is not set | ||
403 | |||
404 | # | ||
405 | # Character devices | ||
406 | # | ||
407 | CONFIG_VT=y | ||
408 | CONFIG_VT_CONSOLE=y | ||
409 | CONFIG_HW_CONSOLE=y | ||
410 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
411 | |||
412 | # | ||
413 | # Serial drivers | ||
414 | # | ||
415 | # CONFIG_SERIAL_8250 is not set | ||
416 | |||
417 | # | ||
418 | # Non-8250 serial port support | ||
419 | # | ||
420 | CONFIG_SERIAL_AT91=y | ||
421 | CONFIG_SERIAL_AT91_CONSOLE=y | ||
422 | CONFIG_SERIAL_CORE=y | ||
423 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
424 | CONFIG_UNIX98_PTYS=y | ||
425 | CONFIG_LEGACY_PTYS=y | ||
426 | CONFIG_LEGACY_PTY_COUNT=256 | ||
427 | |||
428 | # | ||
429 | # IPMI | ||
430 | # | ||
431 | # CONFIG_IPMI_HANDLER is not set | ||
432 | |||
433 | # | ||
434 | # Watchdog Cards | ||
435 | # | ||
436 | # CONFIG_WATCHDOG is not set | ||
437 | # CONFIG_NVRAM is not set | ||
438 | # CONFIG_RTC is not set | ||
439 | # CONFIG_AT91_RTC is not set | ||
440 | # CONFIG_DTLK is not set | ||
441 | # CONFIG_R3964 is not set | ||
442 | |||
443 | # | ||
444 | # Ftape, the floppy tape device driver | ||
445 | # | ||
446 | # CONFIG_RAW_DRIVER is not set | ||
447 | |||
448 | # | ||
449 | # TPM devices | ||
450 | # | ||
451 | # CONFIG_AT91_SPI is not set | ||
452 | |||
453 | # | ||
454 | # I2C support | ||
455 | # | ||
456 | # CONFIG_I2C is not set | ||
457 | |||
458 | # | ||
459 | # Misc devices | ||
460 | # | ||
461 | |||
462 | # | ||
463 | # Multimedia devices | ||
464 | # | ||
465 | # CONFIG_VIDEO_DEV is not set | ||
466 | |||
467 | # | ||
468 | # Digital Video Broadcasting Devices | ||
469 | # | ||
470 | # CONFIG_DVB is not set | ||
471 | |||
472 | # | ||
473 | # Graphics support | ||
474 | # | ||
475 | # CONFIG_FB is not set | ||
476 | |||
477 | # | ||
478 | # Console display driver support | ||
479 | # | ||
480 | # CONFIG_VGA_CONSOLE is not set | ||
481 | CONFIG_DUMMY_CONSOLE=y | ||
482 | |||
483 | # | ||
484 | # Sound | ||
485 | # | ||
486 | # CONFIG_SOUND is not set | ||
487 | |||
488 | # | ||
489 | # USB support | ||
490 | # | ||
491 | CONFIG_USB_ARCH_HAS_HCD=y | ||
492 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
493 | CONFIG_USB=y | ||
494 | CONFIG_USB_DEBUG=y | ||
495 | |||
496 | # | ||
497 | # Miscellaneous USB options | ||
498 | # | ||
499 | CONFIG_USB_DEVICEFS=y | ||
500 | |||
501 | # | ||
502 | # USB Host Controller Drivers | ||
503 | # | ||
504 | # CONFIG_USB_ISP116X_HCD is not set | ||
505 | CONFIG_USB_OHCI_HCD=y | ||
506 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
507 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
508 | # CONFIG_USB_SL811_HCD is not set | ||
509 | |||
510 | # | ||
511 | # USB Device Class drivers | ||
512 | # | ||
513 | # CONFIG_USB_BLUETOOTH_TTY is not set | ||
514 | # CONFIG_USB_ACM is not set | ||
515 | # CONFIG_USB_PRINTER is not set | ||
516 | |||
517 | # | ||
518 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information | ||
519 | # | ||
520 | CONFIG_USB_STORAGE=y | ||
521 | CONFIG_USB_STORAGE_DEBUG=y | ||
522 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
523 | # CONFIG_USB_STORAGE_DPCM is not set | ||
524 | |||
525 | # | ||
526 | # USB Input Devices | ||
527 | # | ||
528 | # CONFIG_USB_HID is not set | ||
529 | |||
530 | # | ||
531 | # USB HID Boot Protocol drivers | ||
532 | # | ||
533 | # CONFIG_USB_KBD is not set | ||
534 | # CONFIG_USB_MOUSE is not set | ||
535 | # CONFIG_USB_AIPTEK is not set | ||
536 | # CONFIG_USB_WACOM is not set | ||
537 | # CONFIG_USB_ACECAD is not set | ||
538 | # CONFIG_USB_KBTAB is not set | ||
539 | # CONFIG_USB_POWERMATE is not set | ||
540 | # CONFIG_USB_MTOUCH is not set | ||
541 | # CONFIG_USB_ITMTOUCH is not set | ||
542 | # CONFIG_USB_EGALAX is not set | ||
543 | # CONFIG_USB_XPAD is not set | ||
544 | # CONFIG_USB_ATI_REMOTE is not set | ||
545 | |||
546 | # | ||
547 | # USB Imaging devices | ||
548 | # | ||
549 | # CONFIG_USB_MICROTEK is not set | ||
550 | |||
551 | # | ||
552 | # USB Multimedia devices | ||
553 | # | ||
554 | # CONFIG_USB_DABUSB is not set | ||
555 | |||
556 | # | ||
557 | # Video4Linux support is needed for USB Multimedia device support | ||
558 | # | ||
559 | |||
560 | # | ||
561 | # USB Network Adapters | ||
562 | # | ||
563 | # CONFIG_USB_KAWETH is not set | ||
564 | # CONFIG_USB_PEGASUS is not set | ||
565 | # CONFIG_USB_USBNET is not set | ||
566 | # CONFIG_USB_MON is not set | ||
567 | |||
568 | # | ||
569 | # USB port drivers | ||
570 | # | ||
571 | |||
572 | # | ||
573 | # USB Serial Converter support | ||
574 | # | ||
575 | # CONFIG_USB_SERIAL is not set | ||
576 | |||
577 | # | ||
578 | # USB Miscellaneous drivers | ||
579 | # | ||
580 | # CONFIG_USB_EMI62 is not set | ||
581 | # CONFIG_USB_EMI26 is not set | ||
582 | # CONFIG_USB_LCD is not set | ||
583 | # CONFIG_USB_LED is not set | ||
584 | # CONFIG_USB_CYTHERM is not set | ||
585 | # CONFIG_USB_PHIDGETKIT is not set | ||
586 | # CONFIG_USB_PHIDGETSERVO is not set | ||
587 | # CONFIG_USB_IDMOUSE is not set | ||
588 | |||
589 | # | ||
590 | # USB DSL modem support | ||
591 | # | ||
592 | |||
593 | # | ||
594 | # USB Gadget Support | ||
595 | # | ||
596 | # CONFIG_USB_GADGET is not set | ||
597 | |||
598 | # | ||
599 | # MMC/SD Card support | ||
600 | # | ||
601 | # CONFIG_MMC is not set | ||
602 | |||
603 | # | ||
604 | # File systems | ||
605 | # | ||
606 | CONFIG_EXT2_FS=y | ||
607 | CONFIG_EXT2_FS_XATTR=y | ||
608 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
609 | # CONFIG_EXT2_FS_SECURITY is not set | ||
610 | # CONFIG_EXT2_FS_XIP is not set | ||
611 | CONFIG_EXT3_FS=y | ||
612 | CONFIG_EXT3_FS_XATTR=y | ||
613 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
614 | # CONFIG_EXT3_FS_SECURITY is not set | ||
615 | CONFIG_JBD=y | ||
616 | # CONFIG_JBD_DEBUG is not set | ||
617 | CONFIG_FS_MBCACHE=y | ||
618 | # CONFIG_REISERFS_FS is not set | ||
619 | # CONFIG_JFS_FS is not set | ||
620 | |||
621 | # | ||
622 | # XFS support | ||
623 | # | ||
624 | # CONFIG_XFS_FS is not set | ||
625 | # CONFIG_MINIX_FS is not set | ||
626 | # CONFIG_ROMFS_FS is not set | ||
627 | # CONFIG_QUOTA is not set | ||
628 | CONFIG_DNOTIFY=y | ||
629 | CONFIG_AUTOFS_FS=y | ||
630 | CONFIG_AUTOFS4_FS=y | ||
631 | |||
632 | # | ||
633 | # CD-ROM/DVD Filesystems | ||
634 | # | ||
635 | # CONFIG_ISO9660_FS is not set | ||
636 | # CONFIG_UDF_FS is not set | ||
637 | |||
638 | # | ||
639 | # DOS/FAT/NT Filesystems | ||
640 | # | ||
641 | CONFIG_FAT_FS=y | ||
642 | CONFIG_MSDOS_FS=y | ||
643 | CONFIG_VFAT_FS=y | ||
644 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
645 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
646 | # CONFIG_NTFS_FS is not set | ||
647 | |||
648 | # | ||
649 | # Pseudo filesystems | ||
650 | # | ||
651 | CONFIG_PROC_FS=y | ||
652 | CONFIG_SYSFS=y | ||
653 | CONFIG_DEVPTS_FS_XATTR=y | ||
654 | # CONFIG_DEVPTS_FS_SECURITY is not set | ||
655 | CONFIG_TMPFS=y | ||
656 | # CONFIG_TMPFS_XATTR is not set | ||
657 | # CONFIG_HUGETLB_PAGE is not set | ||
658 | CONFIG_RAMFS=y | ||
659 | |||
660 | # | ||
661 | # Miscellaneous filesystems | ||
662 | # | ||
663 | # CONFIG_HFSPLUS_FS is not set | ||
664 | # CONFIG_CRAMFS is not set | ||
665 | # CONFIG_VXFS_FS is not set | ||
666 | # CONFIG_HPFS_FS is not set | ||
667 | # CONFIG_QNX4FS_FS is not set | ||
668 | # CONFIG_SYSV_FS is not set | ||
669 | # CONFIG_UFS_FS is not set | ||
670 | |||
671 | # | ||
672 | # Network File Systems | ||
673 | # | ||
674 | CONFIG_NFS_FS=y | ||
675 | CONFIG_NFS_V3=y | ||
676 | # CONFIG_NFS_V3_ACL is not set | ||
677 | # CONFIG_NFSD is not set | ||
678 | CONFIG_ROOT_NFS=y | ||
679 | CONFIG_LOCKD=y | ||
680 | CONFIG_LOCKD_V4=y | ||
681 | CONFIG_NFS_COMMON=y | ||
682 | CONFIG_SUNRPC=y | ||
683 | # CONFIG_SMB_FS is not set | ||
684 | # CONFIG_CIFS is not set | ||
685 | # CONFIG_NCP_FS is not set | ||
686 | # CONFIG_CODA_FS is not set | ||
687 | |||
688 | # | ||
689 | # Partition Types | ||
690 | # | ||
691 | # CONFIG_PARTITION_ADVANCED is not set | ||
692 | CONFIG_MSDOS_PARTITION=y | ||
693 | |||
694 | # | ||
695 | # Native Language Support | ||
696 | # | ||
697 | CONFIG_NLS=y | ||
698 | CONFIG_NLS_DEFAULT="utf8" | ||
699 | CONFIG_NLS_CODEPAGE_437=y | ||
700 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
701 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
702 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
703 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
704 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
705 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
706 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
707 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
708 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
709 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
710 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
711 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
712 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
713 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
714 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
715 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
716 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
717 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
718 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
719 | # CONFIG_NLS_ISO8859_8 is not set | ||
720 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
721 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
722 | CONFIG_NLS_ASCII=y | ||
723 | # CONFIG_NLS_ISO8859_1 is not set | ||
724 | # CONFIG_NLS_ISO8859_2 is not set | ||
725 | # CONFIG_NLS_ISO8859_3 is not set | ||
726 | # CONFIG_NLS_ISO8859_4 is not set | ||
727 | # CONFIG_NLS_ISO8859_5 is not set | ||
728 | # CONFIG_NLS_ISO8859_6 is not set | ||
729 | # CONFIG_NLS_ISO8859_7 is not set | ||
730 | # CONFIG_NLS_ISO8859_9 is not set | ||
731 | # CONFIG_NLS_ISO8859_13 is not set | ||
732 | # CONFIG_NLS_ISO8859_14 is not set | ||
733 | # CONFIG_NLS_ISO8859_15 is not set | ||
734 | # CONFIG_NLS_KOI8_R is not set | ||
735 | # CONFIG_NLS_KOI8_U is not set | ||
736 | # CONFIG_NLS_UTF8 is not set | ||
737 | |||
738 | # | ||
739 | # Kernel hacking | ||
740 | # | ||
741 | # CONFIG_PRINTK_TIME is not set | ||
742 | CONFIG_DEBUG_KERNEL=y | ||
743 | # CONFIG_MAGIC_SYSRQ is not set | ||
744 | CONFIG_LOG_BUF_SHIFT=14 | ||
745 | # CONFIG_SCHEDSTATS is not set | ||
746 | # CONFIG_DEBUG_SLAB is not set | ||
747 | # CONFIG_DEBUG_SPINLOCK is not set | ||
748 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
749 | # CONFIG_DEBUG_KOBJECT is not set | ||
750 | CONFIG_DEBUG_BUGVERBOSE=y | ||
751 | # CONFIG_DEBUG_INFO is not set | ||
752 | # CONFIG_DEBUG_FS is not set | ||
753 | CONFIG_FRAME_POINTER=y | ||
754 | CONFIG_DEBUG_USER=y | ||
755 | # CONFIG_DEBUG_WAITQ is not set | ||
756 | CONFIG_DEBUG_ERRORS=y | ||
757 | CONFIG_DEBUG_LL=y | ||
758 | # CONFIG_DEBUG_ICEDCC is not set | ||
759 | |||
760 | # | ||
761 | # Security options | ||
762 | # | ||
763 | # CONFIG_KEYS is not set | ||
764 | # CONFIG_SECURITY is not set | ||
765 | |||
766 | # | ||
767 | # Cryptographic options | ||
768 | # | ||
769 | # CONFIG_CRYPTO is not set | ||
770 | |||
771 | # | ||
772 | # Hardware crypto devices | ||
773 | # | ||
774 | |||
775 | # | ||
776 | # Library routines | ||
777 | # | ||
778 | # CONFIG_CRC_CCITT is not set | ||
779 | CONFIG_CRC32=y | ||
780 | # CONFIG_LIBCRC32C is not set | ||
diff --git a/arch/arm/configs/lpd270_defconfig b/arch/arm/configs/lpd270_defconfig new file mode 100644 index 000000000000..d08bbe59483a --- /dev/null +++ b/arch/arm/configs/lpd270_defconfig | |||
@@ -0,0 +1,963 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-git2 | ||
4 | # Wed Jun 21 22:20:18 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_ARCH_MTD_XIP=y | ||
12 | CONFIG_VECTORS_BASE=0xffff0000 | ||
13 | |||
14 | # | ||
15 | # Code maturity level options | ||
16 | # | ||
17 | CONFIG_EXPERIMENTAL=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | # CONFIG_POSIX_MQUEUE is not set | ||
29 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
30 | CONFIG_SYSCTL=y | ||
31 | # CONFIG_AUDIT is not set | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | # CONFIG_RELAY is not set | ||
34 | CONFIG_INITRAMFS_SOURCE="" | ||
35 | CONFIG_UID16=y | ||
36 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
37 | # CONFIG_EMBEDDED is not set | ||
38 | CONFIG_KALLSYMS=y | ||
39 | # CONFIG_KALLSYMS_ALL is not set | ||
40 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
41 | CONFIG_HOTPLUG=y | ||
42 | CONFIG_PRINTK=y | ||
43 | CONFIG_BUG=y | ||
44 | CONFIG_ELF_CORE=y | ||
45 | CONFIG_BASE_FULL=y | ||
46 | CONFIG_FUTEX=y | ||
47 | CONFIG_EPOLL=y | ||
48 | CONFIG_SHMEM=y | ||
49 | CONFIG_SLAB=y | ||
50 | # CONFIG_TINY_SHMEM is not set | ||
51 | CONFIG_BASE_SMALL=0 | ||
52 | # CONFIG_SLOB is not set | ||
53 | |||
54 | # | ||
55 | # Loadable module support | ||
56 | # | ||
57 | CONFIG_MODULES=y | ||
58 | # CONFIG_MODULE_UNLOAD is not set | ||
59 | # CONFIG_MODVERSIONS is not set | ||
60 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
61 | # CONFIG_KMOD is not set | ||
62 | |||
63 | # | ||
64 | # Block layer | ||
65 | # | ||
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
67 | |||
68 | # | ||
69 | # IO Schedulers | ||
70 | # | ||
71 | CONFIG_IOSCHED_NOOP=y | ||
72 | CONFIG_IOSCHED_AS=y | ||
73 | CONFIG_IOSCHED_DEADLINE=y | ||
74 | CONFIG_IOSCHED_CFQ=y | ||
75 | CONFIG_DEFAULT_AS=y | ||
76 | # CONFIG_DEFAULT_DEADLINE is not set | ||
77 | # CONFIG_DEFAULT_CFQ is not set | ||
78 | # CONFIG_DEFAULT_NOOP is not set | ||
79 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
80 | |||
81 | # | ||
82 | # System Type | ||
83 | # | ||
84 | # CONFIG_ARCH_AAEC2000 is not set | ||
85 | # CONFIG_ARCH_INTEGRATOR is not set | ||
86 | # CONFIG_ARCH_REALVIEW is not set | ||
87 | # CONFIG_ARCH_VERSATILE is not set | ||
88 | # CONFIG_ARCH_AT91RM9200 is not set | ||
89 | # CONFIG_ARCH_CLPS7500 is not set | ||
90 | # CONFIG_ARCH_CLPS711X is not set | ||
91 | # CONFIG_ARCH_CO285 is not set | ||
92 | # CONFIG_ARCH_EBSA110 is not set | ||
93 | # CONFIG_ARCH_EP93XX is not set | ||
94 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
95 | # CONFIG_ARCH_NETX is not set | ||
96 | # CONFIG_ARCH_H720X is not set | ||
97 | # CONFIG_ARCH_IMX is not set | ||
98 | # CONFIG_ARCH_IOP3XX is not set | ||
99 | # CONFIG_ARCH_IXP4XX is not set | ||
100 | # CONFIG_ARCH_IXP2000 is not set | ||
101 | # CONFIG_ARCH_IXP23XX is not set | ||
102 | # CONFIG_ARCH_L7200 is not set | ||
103 | # CONFIG_ARCH_PNX4008 is not set | ||
104 | CONFIG_ARCH_PXA=y | ||
105 | # CONFIG_ARCH_RPC is not set | ||
106 | # CONFIG_ARCH_SA1100 is not set | ||
107 | # CONFIG_ARCH_S3C2410 is not set | ||
108 | # CONFIG_ARCH_SHARK is not set | ||
109 | # CONFIG_ARCH_LH7A40X is not set | ||
110 | # CONFIG_ARCH_OMAP is not set | ||
111 | |||
112 | # | ||
113 | # Intel PXA2xx Implementations | ||
114 | # | ||
115 | # CONFIG_ARCH_LUBBOCK is not set | ||
116 | CONFIG_MACH_LOGICPD_PXA270=y | ||
117 | # CONFIG_MACH_MAINSTONE is not set | ||
118 | # CONFIG_ARCH_PXA_IDP is not set | ||
119 | # CONFIG_PXA_SHARPSL is not set | ||
120 | CONFIG_PXA27x=y | ||
121 | CONFIG_IWMMXT=y | ||
122 | |||
123 | # | ||
124 | # Processor Type | ||
125 | # | ||
126 | CONFIG_CPU_32=y | ||
127 | CONFIG_CPU_XSCALE=y | ||
128 | CONFIG_CPU_32v5=y | ||
129 | CONFIG_CPU_ABRT_EV5T=y | ||
130 | CONFIG_CPU_CACHE_VIVT=y | ||
131 | CONFIG_CPU_TLB_V4WBI=y | ||
132 | |||
133 | # | ||
134 | # Processor Features | ||
135 | # | ||
136 | # CONFIG_ARM_THUMB is not set | ||
137 | CONFIG_XSCALE_PMU=y | ||
138 | |||
139 | # | ||
140 | # Bus support | ||
141 | # | ||
142 | |||
143 | # | ||
144 | # PCCARD (PCMCIA/CardBus) support | ||
145 | # | ||
146 | # CONFIG_PCCARD is not set | ||
147 | |||
148 | # | ||
149 | # Kernel Features | ||
150 | # | ||
151 | # CONFIG_PREEMPT is not set | ||
152 | # CONFIG_NO_IDLE_HZ is not set | ||
153 | CONFIG_HZ=100 | ||
154 | # CONFIG_AEABI is not set | ||
155 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
156 | CONFIG_SELECT_MEMORY_MODEL=y | ||
157 | CONFIG_FLATMEM_MANUAL=y | ||
158 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
159 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
160 | CONFIG_FLATMEM=y | ||
161 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
162 | # CONFIG_SPARSEMEM_STATIC is not set | ||
163 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
164 | CONFIG_ALIGNMENT_TRAP=y | ||
165 | |||
166 | # | ||
167 | # Boot options | ||
168 | # | ||
169 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
170 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
171 | CONFIG_CMDLINE="root=/dev/nfs ip=bootp console=ttyS0,115200 mem=64M" | ||
172 | # CONFIG_XIP_KERNEL is not set | ||
173 | |||
174 | # | ||
175 | # Floating point emulation | ||
176 | # | ||
177 | |||
178 | # | ||
179 | # At least one emulation must be selected | ||
180 | # | ||
181 | CONFIG_FPE_NWFPE=y | ||
182 | # CONFIG_FPE_NWFPE_XP is not set | ||
183 | # CONFIG_FPE_FASTFPE is not set | ||
184 | |||
185 | # | ||
186 | # Userspace binary formats | ||
187 | # | ||
188 | CONFIG_BINFMT_ELF=y | ||
189 | # CONFIG_BINFMT_AOUT is not set | ||
190 | # CONFIG_BINFMT_MISC is not set | ||
191 | # CONFIG_ARTHUR is not set | ||
192 | |||
193 | # | ||
194 | # Power management options | ||
195 | # | ||
196 | # CONFIG_PM is not set | ||
197 | # CONFIG_PM_LEGACY is not set | ||
198 | # CONFIG_PM_DEBUG is not set | ||
199 | # CONFIG_APM is not set | ||
200 | |||
201 | # | ||
202 | # Networking | ||
203 | # | ||
204 | CONFIG_NET=y | ||
205 | |||
206 | # | ||
207 | # Networking options | ||
208 | # | ||
209 | # CONFIG_NETDEBUG is not set | ||
210 | # CONFIG_PACKET is not set | ||
211 | CONFIG_UNIX=y | ||
212 | CONFIG_XFRM=y | ||
213 | # CONFIG_XFRM_USER is not set | ||
214 | # CONFIG_NET_KEY is not set | ||
215 | CONFIG_INET=y | ||
216 | # CONFIG_IP_MULTICAST is not set | ||
217 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
218 | CONFIG_IP_FIB_HASH=y | ||
219 | CONFIG_IP_PNP=y | ||
220 | # CONFIG_IP_PNP_DHCP is not set | ||
221 | CONFIG_IP_PNP_BOOTP=y | ||
222 | # CONFIG_IP_PNP_RARP is not set | ||
223 | # CONFIG_NET_IPIP is not set | ||
224 | # CONFIG_NET_IPGRE is not set | ||
225 | # CONFIG_ARPD is not set | ||
226 | # CONFIG_SYN_COOKIES is not set | ||
227 | # CONFIG_INET_AH is not set | ||
228 | # CONFIG_INET_ESP is not set | ||
229 | # CONFIG_INET_IPCOMP is not set | ||
230 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
231 | # CONFIG_INET_TUNNEL is not set | ||
232 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
233 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
234 | CONFIG_INET_DIAG=y | ||
235 | CONFIG_INET_TCP_DIAG=y | ||
236 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
237 | CONFIG_TCP_CONG_BIC=y | ||
238 | # CONFIG_IPV6 is not set | ||
239 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
240 | # CONFIG_INET6_TUNNEL is not set | ||
241 | # CONFIG_NETWORK_SECMARK is not set | ||
242 | # CONFIG_NETFILTER is not set | ||
243 | |||
244 | # | ||
245 | # DCCP Configuration (EXPERIMENTAL) | ||
246 | # | ||
247 | # CONFIG_IP_DCCP is not set | ||
248 | |||
249 | # | ||
250 | # SCTP Configuration (EXPERIMENTAL) | ||
251 | # | ||
252 | # CONFIG_IP_SCTP is not set | ||
253 | |||
254 | # | ||
255 | # TIPC Configuration (EXPERIMENTAL) | ||
256 | # | ||
257 | # CONFIG_TIPC is not set | ||
258 | # CONFIG_ATM is not set | ||
259 | # CONFIG_BRIDGE is not set | ||
260 | # CONFIG_VLAN_8021Q is not set | ||
261 | # CONFIG_DECNET is not set | ||
262 | # CONFIG_LLC2 is not set | ||
263 | # CONFIG_IPX is not set | ||
264 | # CONFIG_ATALK is not set | ||
265 | # CONFIG_X25 is not set | ||
266 | # CONFIG_LAPB is not set | ||
267 | # CONFIG_NET_DIVERT is not set | ||
268 | # CONFIG_ECONET is not set | ||
269 | # CONFIG_WAN_ROUTER is not set | ||
270 | |||
271 | # | ||
272 | # QoS and/or fair queueing | ||
273 | # | ||
274 | # CONFIG_NET_SCHED is not set | ||
275 | |||
276 | # | ||
277 | # Network testing | ||
278 | # | ||
279 | # CONFIG_NET_PKTGEN is not set | ||
280 | # CONFIG_HAMRADIO is not set | ||
281 | # CONFIG_IRDA is not set | ||
282 | # CONFIG_BT is not set | ||
283 | # CONFIG_IEEE80211 is not set | ||
284 | |||
285 | # | ||
286 | # Device Drivers | ||
287 | # | ||
288 | |||
289 | # | ||
290 | # Generic Driver Options | ||
291 | # | ||
292 | CONFIG_STANDALONE=y | ||
293 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
294 | # CONFIG_FW_LOADER is not set | ||
295 | # CONFIG_DEBUG_DRIVER is not set | ||
296 | |||
297 | # | ||
298 | # Connector - unified userspace <-> kernelspace linker | ||
299 | # | ||
300 | # CONFIG_CONNECTOR is not set | ||
301 | |||
302 | # | ||
303 | # Memory Technology Devices (MTD) | ||
304 | # | ||
305 | CONFIG_MTD=y | ||
306 | # CONFIG_MTD_DEBUG is not set | ||
307 | # CONFIG_MTD_CONCAT is not set | ||
308 | CONFIG_MTD_PARTITIONS=y | ||
309 | CONFIG_MTD_REDBOOT_PARTS=y | ||
310 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | ||
311 | # CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set | ||
312 | # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set | ||
313 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
314 | # CONFIG_MTD_AFS_PARTS is not set | ||
315 | |||
316 | # | ||
317 | # User Modules And Translation Layers | ||
318 | # | ||
319 | CONFIG_MTD_CHAR=y | ||
320 | CONFIG_MTD_BLOCK=y | ||
321 | # CONFIG_FTL is not set | ||
322 | # CONFIG_NFTL is not set | ||
323 | # CONFIG_INFTL is not set | ||
324 | # CONFIG_RFD_FTL is not set | ||
325 | |||
326 | # | ||
327 | # RAM/ROM/Flash chip drivers | ||
328 | # | ||
329 | CONFIG_MTD_CFI=y | ||
330 | # CONFIG_MTD_JEDECPROBE is not set | ||
331 | CONFIG_MTD_GEN_PROBE=y | ||
332 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
333 | CONFIG_MTD_CFI_NOSWAP=y | ||
334 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
335 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
336 | CONFIG_MTD_CFI_GEOMETRY=y | ||
337 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
338 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
339 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
340 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
341 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
342 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
343 | # CONFIG_MTD_CFI_I1 is not set | ||
344 | CONFIG_MTD_CFI_I2=y | ||
345 | # CONFIG_MTD_CFI_I4 is not set | ||
346 | # CONFIG_MTD_CFI_I8 is not set | ||
347 | # CONFIG_MTD_OTP is not set | ||
348 | CONFIG_MTD_CFI_INTELEXT=y | ||
349 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
350 | # CONFIG_MTD_CFI_STAA is not set | ||
351 | CONFIG_MTD_CFI_UTIL=y | ||
352 | # CONFIG_MTD_RAM is not set | ||
353 | # CONFIG_MTD_ROM is not set | ||
354 | # CONFIG_MTD_ABSENT is not set | ||
355 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
356 | # CONFIG_MTD_XIP is not set | ||
357 | |||
358 | # | ||
359 | # Mapping drivers for chip access | ||
360 | # | ||
361 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
362 | # CONFIG_MTD_PHYSMAP is not set | ||
363 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
364 | # CONFIG_MTD_SHARP_SL is not set | ||
365 | # CONFIG_MTD_PLATRAM is not set | ||
366 | |||
367 | # | ||
368 | # Self-contained MTD device drivers | ||
369 | # | ||
370 | # CONFIG_MTD_SLRAM is not set | ||
371 | # CONFIG_MTD_PHRAM is not set | ||
372 | # CONFIG_MTD_MTDRAM is not set | ||
373 | # CONFIG_MTD_BLOCK2MTD is not set | ||
374 | |||
375 | # | ||
376 | # Disk-On-Chip Device Drivers | ||
377 | # | ||
378 | # CONFIG_MTD_DOC2000 is not set | ||
379 | # CONFIG_MTD_DOC2001 is not set | ||
380 | # CONFIG_MTD_DOC2001PLUS is not set | ||
381 | |||
382 | # | ||
383 | # NAND Flash Device Drivers | ||
384 | # | ||
385 | # CONFIG_MTD_NAND is not set | ||
386 | |||
387 | # | ||
388 | # OneNAND Flash Device Drivers | ||
389 | # | ||
390 | # CONFIG_MTD_ONENAND is not set | ||
391 | |||
392 | # | ||
393 | # Parallel port support | ||
394 | # | ||
395 | # CONFIG_PARPORT is not set | ||
396 | |||
397 | # | ||
398 | # Plug and Play support | ||
399 | # | ||
400 | |||
401 | # | ||
402 | # Block devices | ||
403 | # | ||
404 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
405 | # CONFIG_BLK_DEV_LOOP is not set | ||
406 | # CONFIG_BLK_DEV_NBD is not set | ||
407 | # CONFIG_BLK_DEV_RAM is not set | ||
408 | # CONFIG_BLK_DEV_INITRD is not set | ||
409 | # CONFIG_CDROM_PKTCDVD is not set | ||
410 | # CONFIG_ATA_OVER_ETH is not set | ||
411 | |||
412 | # | ||
413 | # ATA/ATAPI/MFM/RLL support | ||
414 | # | ||
415 | CONFIG_IDE=y | ||
416 | CONFIG_BLK_DEV_IDE=y | ||
417 | |||
418 | # | ||
419 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
420 | # | ||
421 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
422 | CONFIG_BLK_DEV_IDEDISK=y | ||
423 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
424 | # CONFIG_BLK_DEV_IDECD is not set | ||
425 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
426 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
427 | # CONFIG_IDE_TASK_IOCTL is not set | ||
428 | |||
429 | # | ||
430 | # IDE chipset support/bugfixes | ||
431 | # | ||
432 | # CONFIG_IDE_GENERIC is not set | ||
433 | # CONFIG_IDE_ARM is not set | ||
434 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
435 | # CONFIG_IDEDMA_AUTO is not set | ||
436 | # CONFIG_BLK_DEV_HD is not set | ||
437 | |||
438 | # | ||
439 | # SCSI device support | ||
440 | # | ||
441 | # CONFIG_RAID_ATTRS is not set | ||
442 | # CONFIG_SCSI is not set | ||
443 | |||
444 | # | ||
445 | # Multi-device support (RAID and LVM) | ||
446 | # | ||
447 | # CONFIG_MD is not set | ||
448 | |||
449 | # | ||
450 | # Fusion MPT device support | ||
451 | # | ||
452 | # CONFIG_FUSION is not set | ||
453 | |||
454 | # | ||
455 | # IEEE 1394 (FireWire) support | ||
456 | # | ||
457 | |||
458 | # | ||
459 | # I2O device support | ||
460 | # | ||
461 | |||
462 | # | ||
463 | # Network device support | ||
464 | # | ||
465 | CONFIG_NETDEVICES=y | ||
466 | # CONFIG_DUMMY is not set | ||
467 | # CONFIG_BONDING is not set | ||
468 | # CONFIG_EQUALIZER is not set | ||
469 | # CONFIG_TUN is not set | ||
470 | |||
471 | # | ||
472 | # PHY device support | ||
473 | # | ||
474 | # CONFIG_PHYLIB is not set | ||
475 | |||
476 | # | ||
477 | # Ethernet (10 or 100Mbit) | ||
478 | # | ||
479 | CONFIG_NET_ETHERNET=y | ||
480 | CONFIG_MII=y | ||
481 | CONFIG_SMC91X=y | ||
482 | # CONFIG_DM9000 is not set | ||
483 | # CONFIG_SMC911X is not set | ||
484 | |||
485 | # | ||
486 | # Ethernet (1000 Mbit) | ||
487 | # | ||
488 | |||
489 | # | ||
490 | # Ethernet (10000 Mbit) | ||
491 | # | ||
492 | |||
493 | # | ||
494 | # Token Ring devices | ||
495 | # | ||
496 | |||
497 | # | ||
498 | # Wireless LAN (non-hamradio) | ||
499 | # | ||
500 | # CONFIG_NET_RADIO is not set | ||
501 | |||
502 | # | ||
503 | # Wan interfaces | ||
504 | # | ||
505 | # CONFIG_WAN is not set | ||
506 | # CONFIG_PPP is not set | ||
507 | # CONFIG_SLIP is not set | ||
508 | # CONFIG_SHAPER is not set | ||
509 | # CONFIG_NETCONSOLE is not set | ||
510 | # CONFIG_NETPOLL is not set | ||
511 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
512 | |||
513 | # | ||
514 | # ISDN subsystem | ||
515 | # | ||
516 | # CONFIG_ISDN is not set | ||
517 | |||
518 | # | ||
519 | # Input device support | ||
520 | # | ||
521 | CONFIG_INPUT=y | ||
522 | |||
523 | # | ||
524 | # Userland interfaces | ||
525 | # | ||
526 | CONFIG_INPUT_MOUSEDEV=y | ||
527 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
528 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
529 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
530 | # CONFIG_INPUT_JOYDEV is not set | ||
531 | # CONFIG_INPUT_TSDEV is not set | ||
532 | CONFIG_INPUT_EVDEV=y | ||
533 | # CONFIG_INPUT_EVBUG is not set | ||
534 | |||
535 | # | ||
536 | # Input Device Drivers | ||
537 | # | ||
538 | CONFIG_INPUT_KEYBOARD=y | ||
539 | CONFIG_KEYBOARD_ATKBD=y | ||
540 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
541 | # CONFIG_KEYBOARD_LKKBD is not set | ||
542 | # CONFIG_KEYBOARD_XTKBD is not set | ||
543 | # CONFIG_KEYBOARD_NEWTON is not set | ||
544 | # CONFIG_INPUT_MOUSE is not set | ||
545 | # CONFIG_INPUT_JOYSTICK is not set | ||
546 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
547 | # CONFIG_INPUT_MISC is not set | ||
548 | |||
549 | # | ||
550 | # Hardware I/O ports | ||
551 | # | ||
552 | CONFIG_SERIO=y | ||
553 | # CONFIG_SERIO_SERPORT is not set | ||
554 | CONFIG_SERIO_LIBPS2=y | ||
555 | # CONFIG_SERIO_RAW is not set | ||
556 | # CONFIG_GAMEPORT is not set | ||
557 | |||
558 | # | ||
559 | # Character devices | ||
560 | # | ||
561 | CONFIG_VT=y | ||
562 | CONFIG_VT_CONSOLE=y | ||
563 | CONFIG_HW_CONSOLE=y | ||
564 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
565 | |||
566 | # | ||
567 | # Serial drivers | ||
568 | # | ||
569 | # CONFIG_SERIAL_8250 is not set | ||
570 | |||
571 | # | ||
572 | # Non-8250 serial port support | ||
573 | # | ||
574 | CONFIG_SERIAL_PXA=y | ||
575 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
576 | CONFIG_SERIAL_CORE=y | ||
577 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
578 | CONFIG_UNIX98_PTYS=y | ||
579 | CONFIG_LEGACY_PTYS=y | ||
580 | CONFIG_LEGACY_PTY_COUNT=256 | ||
581 | |||
582 | # | ||
583 | # IPMI | ||
584 | # | ||
585 | # CONFIG_IPMI_HANDLER is not set | ||
586 | |||
587 | # | ||
588 | # Watchdog Cards | ||
589 | # | ||
590 | # CONFIG_WATCHDOG is not set | ||
591 | # CONFIG_NVRAM is not set | ||
592 | # CONFIG_DTLK is not set | ||
593 | # CONFIG_R3964 is not set | ||
594 | |||
595 | # | ||
596 | # Ftape, the floppy tape device driver | ||
597 | # | ||
598 | # CONFIG_RAW_DRIVER is not set | ||
599 | |||
600 | # | ||
601 | # TPM devices | ||
602 | # | ||
603 | # CONFIG_TCG_TPM is not set | ||
604 | # CONFIG_TELCLOCK is not set | ||
605 | |||
606 | # | ||
607 | # I2C support | ||
608 | # | ||
609 | # CONFIG_I2C is not set | ||
610 | |||
611 | # | ||
612 | # SPI support | ||
613 | # | ||
614 | # CONFIG_SPI is not set | ||
615 | # CONFIG_SPI_MASTER is not set | ||
616 | |||
617 | # | ||
618 | # Dallas's 1-wire bus | ||
619 | # | ||
620 | # CONFIG_W1 is not set | ||
621 | |||
622 | # | ||
623 | # Hardware Monitoring support | ||
624 | # | ||
625 | CONFIG_HWMON=y | ||
626 | # CONFIG_HWMON_VID is not set | ||
627 | # CONFIG_SENSORS_F71805F is not set | ||
628 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
629 | |||
630 | # | ||
631 | # Misc devices | ||
632 | # | ||
633 | |||
634 | # | ||
635 | # LED devices | ||
636 | # | ||
637 | # CONFIG_NEW_LEDS is not set | ||
638 | |||
639 | # | ||
640 | # LED drivers | ||
641 | # | ||
642 | |||
643 | # | ||
644 | # LED Triggers | ||
645 | # | ||
646 | |||
647 | # | ||
648 | # Multimedia devices | ||
649 | # | ||
650 | # CONFIG_VIDEO_DEV is not set | ||
651 | CONFIG_VIDEO_V4L2=y | ||
652 | |||
653 | # | ||
654 | # Digital Video Broadcasting Devices | ||
655 | # | ||
656 | # CONFIG_DVB is not set | ||
657 | |||
658 | # | ||
659 | # Graphics support | ||
660 | # | ||
661 | CONFIG_FB=y | ||
662 | CONFIG_FB_CFB_FILLRECT=y | ||
663 | CONFIG_FB_CFB_COPYAREA=y | ||
664 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
665 | # CONFIG_FB_MACMODES is not set | ||
666 | CONFIG_FB_FIRMWARE_EDID=y | ||
667 | # CONFIG_FB_MODE_HELPERS is not set | ||
668 | # CONFIG_FB_TILEBLITTING is not set | ||
669 | # CONFIG_FB_S1D13XXX is not set | ||
670 | CONFIG_FB_PXA=y | ||
671 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
672 | # CONFIG_FB_VIRTUAL is not set | ||
673 | |||
674 | # | ||
675 | # Console display driver support | ||
676 | # | ||
677 | # CONFIG_VGA_CONSOLE is not set | ||
678 | CONFIG_DUMMY_CONSOLE=y | ||
679 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
680 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
681 | # CONFIG_FONTS is not set | ||
682 | CONFIG_FONT_8x8=y | ||
683 | CONFIG_FONT_8x16=y | ||
684 | |||
685 | # | ||
686 | # Logo configuration | ||
687 | # | ||
688 | CONFIG_LOGO=y | ||
689 | CONFIG_LOGO_LINUX_MONO=y | ||
690 | CONFIG_LOGO_LINUX_VGA16=y | ||
691 | CONFIG_LOGO_LINUX_CLUT224=y | ||
692 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
693 | |||
694 | # | ||
695 | # Sound | ||
696 | # | ||
697 | CONFIG_SOUND=y | ||
698 | |||
699 | # | ||
700 | # Advanced Linux Sound Architecture | ||
701 | # | ||
702 | CONFIG_SND=y | ||
703 | CONFIG_SND_TIMER=y | ||
704 | CONFIG_SND_PCM=y | ||
705 | # CONFIG_SND_SEQUENCER is not set | ||
706 | # CONFIG_SND_MIXER_OSS is not set | ||
707 | # CONFIG_SND_PCM_OSS is not set | ||
708 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
709 | # CONFIG_SND_SUPPORT_OLD_API is not set | ||
710 | CONFIG_SND_VERBOSE_PROCFS=y | ||
711 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
712 | # CONFIG_SND_DEBUG is not set | ||
713 | |||
714 | # | ||
715 | # Generic devices | ||
716 | # | ||
717 | CONFIG_SND_AC97_CODEC=y | ||
718 | CONFIG_SND_AC97_BUS=y | ||
719 | # CONFIG_SND_DUMMY is not set | ||
720 | # CONFIG_SND_MTPAV is not set | ||
721 | # CONFIG_SND_SERIAL_U16550 is not set | ||
722 | # CONFIG_SND_MPU401 is not set | ||
723 | |||
724 | # | ||
725 | # ALSA ARM devices | ||
726 | # | ||
727 | CONFIG_SND_PXA2XX_PCM=y | ||
728 | CONFIG_SND_PXA2XX_AC97=y | ||
729 | |||
730 | # | ||
731 | # Open Sound System | ||
732 | # | ||
733 | # CONFIG_SOUND_PRIME is not set | ||
734 | |||
735 | # | ||
736 | # USB support | ||
737 | # | ||
738 | CONFIG_USB_ARCH_HAS_HCD=y | ||
739 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
740 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
741 | # CONFIG_USB is not set | ||
742 | |||
743 | # | ||
744 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
745 | # | ||
746 | |||
747 | # | ||
748 | # USB Gadget Support | ||
749 | # | ||
750 | # CONFIG_USB_GADGET is not set | ||
751 | |||
752 | # | ||
753 | # MMC/SD Card support | ||
754 | # | ||
755 | # CONFIG_MMC is not set | ||
756 | |||
757 | # | ||
758 | # Real Time Clock | ||
759 | # | ||
760 | CONFIG_RTC_LIB=y | ||
761 | # CONFIG_RTC_CLASS is not set | ||
762 | |||
763 | # | ||
764 | # File systems | ||
765 | # | ||
766 | CONFIG_EXT2_FS=y | ||
767 | # CONFIG_EXT2_FS_XATTR is not set | ||
768 | # CONFIG_EXT2_FS_XIP is not set | ||
769 | # CONFIG_EXT3_FS is not set | ||
770 | # CONFIG_REISERFS_FS is not set | ||
771 | # CONFIG_JFS_FS is not set | ||
772 | # CONFIG_FS_POSIX_ACL is not set | ||
773 | # CONFIG_XFS_FS is not set | ||
774 | # CONFIG_OCFS2_FS is not set | ||
775 | # CONFIG_MINIX_FS is not set | ||
776 | # CONFIG_ROMFS_FS is not set | ||
777 | CONFIG_INOTIFY=y | ||
778 | CONFIG_INOTIFY_USER=y | ||
779 | # CONFIG_QUOTA is not set | ||
780 | CONFIG_DNOTIFY=y | ||
781 | # CONFIG_AUTOFS_FS is not set | ||
782 | # CONFIG_AUTOFS4_FS is not set | ||
783 | # CONFIG_FUSE_FS is not set | ||
784 | |||
785 | # | ||
786 | # CD-ROM/DVD Filesystems | ||
787 | # | ||
788 | # CONFIG_ISO9660_FS is not set | ||
789 | # CONFIG_UDF_FS is not set | ||
790 | |||
791 | # | ||
792 | # DOS/FAT/NT Filesystems | ||
793 | # | ||
794 | CONFIG_FAT_FS=y | ||
795 | CONFIG_MSDOS_FS=y | ||
796 | # CONFIG_VFAT_FS is not set | ||
797 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
798 | # CONFIG_NTFS_FS is not set | ||
799 | |||
800 | # | ||
801 | # Pseudo filesystems | ||
802 | # | ||
803 | CONFIG_PROC_FS=y | ||
804 | CONFIG_SYSFS=y | ||
805 | # CONFIG_TMPFS is not set | ||
806 | # CONFIG_HUGETLB_PAGE is not set | ||
807 | CONFIG_RAMFS=y | ||
808 | # CONFIG_CONFIGFS_FS is not set | ||
809 | |||
810 | # | ||
811 | # Miscellaneous filesystems | ||
812 | # | ||
813 | # CONFIG_ADFS_FS is not set | ||
814 | # CONFIG_AFFS_FS is not set | ||
815 | # CONFIG_HFS_FS is not set | ||
816 | # CONFIG_HFSPLUS_FS is not set | ||
817 | # CONFIG_BEFS_FS is not set | ||
818 | # CONFIG_BFS_FS is not set | ||
819 | # CONFIG_EFS_FS is not set | ||
820 | # CONFIG_JFFS_FS is not set | ||
821 | CONFIG_JFFS2_FS=y | ||
822 | CONFIG_JFFS2_FS_DEBUG=0 | ||
823 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
824 | # CONFIG_JFFS2_SUMMARY is not set | ||
825 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
826 | CONFIG_JFFS2_ZLIB=y | ||
827 | CONFIG_JFFS2_RTIME=y | ||
828 | # CONFIG_JFFS2_RUBIN is not set | ||
829 | # CONFIG_CRAMFS is not set | ||
830 | # CONFIG_VXFS_FS is not set | ||
831 | # CONFIG_HPFS_FS is not set | ||
832 | # CONFIG_QNX4FS_FS is not set | ||
833 | # CONFIG_SYSV_FS is not set | ||
834 | # CONFIG_UFS_FS is not set | ||
835 | |||
836 | # | ||
837 | # Network File Systems | ||
838 | # | ||
839 | CONFIG_NFS_FS=y | ||
840 | # CONFIG_NFS_V3 is not set | ||
841 | # CONFIG_NFS_V4 is not set | ||
842 | # CONFIG_NFS_DIRECTIO is not set | ||
843 | # CONFIG_NFSD is not set | ||
844 | CONFIG_ROOT_NFS=y | ||
845 | CONFIG_LOCKD=y | ||
846 | CONFIG_NFS_COMMON=y | ||
847 | CONFIG_SUNRPC=y | ||
848 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
849 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
850 | # CONFIG_SMB_FS is not set | ||
851 | # CONFIG_CIFS is not set | ||
852 | # CONFIG_NCP_FS is not set | ||
853 | # CONFIG_CODA_FS is not set | ||
854 | # CONFIG_AFS_FS is not set | ||
855 | # CONFIG_9P_FS is not set | ||
856 | |||
857 | # | ||
858 | # Partition Types | ||
859 | # | ||
860 | # CONFIG_PARTITION_ADVANCED is not set | ||
861 | CONFIG_MSDOS_PARTITION=y | ||
862 | |||
863 | # | ||
864 | # Native Language Support | ||
865 | # | ||
866 | CONFIG_NLS=y | ||
867 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
868 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
869 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
870 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
871 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
872 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
873 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
874 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
875 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
876 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
877 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
878 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
879 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
880 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
881 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
882 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
883 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
884 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
885 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
886 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
887 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
888 | # CONFIG_NLS_ISO8859_8 is not set | ||
889 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
890 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
891 | # CONFIG_NLS_ASCII is not set | ||
892 | CONFIG_NLS_ISO8859_1=y | ||
893 | # CONFIG_NLS_ISO8859_2 is not set | ||
894 | # CONFIG_NLS_ISO8859_3 is not set | ||
895 | # CONFIG_NLS_ISO8859_4 is not set | ||
896 | # CONFIG_NLS_ISO8859_5 is not set | ||
897 | # CONFIG_NLS_ISO8859_6 is not set | ||
898 | # CONFIG_NLS_ISO8859_7 is not set | ||
899 | # CONFIG_NLS_ISO8859_9 is not set | ||
900 | # CONFIG_NLS_ISO8859_13 is not set | ||
901 | # CONFIG_NLS_ISO8859_14 is not set | ||
902 | # CONFIG_NLS_ISO8859_15 is not set | ||
903 | # CONFIG_NLS_KOI8_R is not set | ||
904 | # CONFIG_NLS_KOI8_U is not set | ||
905 | # CONFIG_NLS_UTF8 is not set | ||
906 | |||
907 | # | ||
908 | # Profiling support | ||
909 | # | ||
910 | # CONFIG_PROFILING is not set | ||
911 | |||
912 | # | ||
913 | # Kernel hacking | ||
914 | # | ||
915 | # CONFIG_PRINTK_TIME is not set | ||
916 | CONFIG_MAGIC_SYSRQ=y | ||
917 | CONFIG_DEBUG_KERNEL=y | ||
918 | CONFIG_LOG_BUF_SHIFT=14 | ||
919 | CONFIG_DETECT_SOFTLOCKUP=y | ||
920 | # CONFIG_SCHEDSTATS is not set | ||
921 | # CONFIG_DEBUG_SLAB is not set | ||
922 | # CONFIG_DEBUG_MUTEXES is not set | ||
923 | # CONFIG_DEBUG_SPINLOCK is not set | ||
924 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
925 | # CONFIG_DEBUG_KOBJECT is not set | ||
926 | CONFIG_DEBUG_BUGVERBOSE=y | ||
927 | CONFIG_DEBUG_INFO=y | ||
928 | # CONFIG_DEBUG_FS is not set | ||
929 | # CONFIG_DEBUG_VM is not set | ||
930 | CONFIG_FRAME_POINTER=y | ||
931 | # CONFIG_UNWIND_INFO is not set | ||
932 | CONFIG_FORCED_INLINING=y | ||
933 | # CONFIG_RCU_TORTURE_TEST is not set | ||
934 | CONFIG_DEBUG_USER=y | ||
935 | # CONFIG_DEBUG_WAITQ is not set | ||
936 | CONFIG_DEBUG_ERRORS=y | ||
937 | CONFIG_DEBUG_LL=y | ||
938 | # CONFIG_DEBUG_ICEDCC is not set | ||
939 | |||
940 | # | ||
941 | # Security options | ||
942 | # | ||
943 | # CONFIG_KEYS is not set | ||
944 | # CONFIG_SECURITY is not set | ||
945 | |||
946 | # | ||
947 | # Cryptographic options | ||
948 | # | ||
949 | # CONFIG_CRYPTO is not set | ||
950 | |||
951 | # | ||
952 | # Hardware crypto devices | ||
953 | # | ||
954 | |||
955 | # | ||
956 | # Library routines | ||
957 | # | ||
958 | # CONFIG_CRC_CCITT is not set | ||
959 | # CONFIG_CRC16 is not set | ||
960 | CONFIG_CRC32=y | ||
961 | # CONFIG_LIBCRC32C is not set | ||
962 | CONFIG_ZLIB_INFLATE=y | ||
963 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/lpd7a400_defconfig b/arch/arm/configs/lpd7a400_defconfig index 67eaa26c2647..bf9cf9c6d2df 100644 --- a/arch/arm/configs/lpd7a400_defconfig +++ b/arch/arm/configs/lpd7a400_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.12-rc1-bk2 | 3 | # Linux kernel version: 2.6.12 |
4 | # Mon Mar 28 00:06:33 2005 | 4 | # Thu Nov 3 14:15:32 2005 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
@@ -17,6 +17,7 @@ CONFIG_EXPERIMENTAL=y | |||
17 | CONFIG_CLEAN_COMPILE=y | 17 | CONFIG_CLEAN_COMPILE=y |
18 | CONFIG_BROKEN_ON_SMP=y | 18 | CONFIG_BROKEN_ON_SMP=y |
19 | CONFIG_LOCK_KERNEL=y | 19 | CONFIG_LOCK_KERNEL=y |
20 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | 21 | ||
21 | # | 22 | # |
22 | # General setup | 23 | # General setup |
@@ -36,6 +37,8 @@ CONFIG_EMBEDDED=y | |||
36 | CONFIG_KALLSYMS=y | 37 | CONFIG_KALLSYMS=y |
37 | # CONFIG_KALLSYMS_ALL is not set | 38 | # CONFIG_KALLSYMS_ALL is not set |
38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 39 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
40 | CONFIG_PRINTK=y | ||
41 | CONFIG_BUG=y | ||
39 | CONFIG_BASE_FULL=y | 42 | CONFIG_BASE_FULL=y |
40 | CONFIG_FUTEX=y | 43 | CONFIG_FUTEX=y |
41 | # CONFIG_EPOLL is not set | 44 | # CONFIG_EPOLL is not set |
@@ -71,6 +74,7 @@ CONFIG_BASE_SMALL=0 | |||
71 | # CONFIG_ARCH_SA1100 is not set | 74 | # CONFIG_ARCH_SA1100 is not set |
72 | # CONFIG_ARCH_S3C2410 is not set | 75 | # CONFIG_ARCH_S3C2410 is not set |
73 | # CONFIG_ARCH_SHARK is not set | 76 | # CONFIG_ARCH_SHARK is not set |
77 | # CONFIG_ARCH_LH7952X is not set | ||
74 | CONFIG_ARCH_LH7A40X=y | 78 | CONFIG_ARCH_LH7A40X=y |
75 | # CONFIG_ARCH_OMAP is not set | 79 | # CONFIG_ARCH_OMAP is not set |
76 | # CONFIG_ARCH_VERSATILE is not set | 80 | # CONFIG_ARCH_VERSATILE is not set |
@@ -84,6 +88,7 @@ CONFIG_ARCH_LH7A40X=y | |||
84 | CONFIG_MACH_LPD7A400=y | 88 | CONFIG_MACH_LPD7A400=y |
85 | # CONFIG_MACH_LPD7A404 is not set | 89 | # CONFIG_MACH_LPD7A404 is not set |
86 | CONFIG_ARCH_LH7A400=y | 90 | CONFIG_ARCH_LH7A400=y |
91 | CONFIG_LPD7A40X_CPLD_SSP=y | ||
87 | # CONFIG_LH7A40X_CONTIGMEM is not set | 92 | # CONFIG_LH7A40X_CONTIGMEM is not set |
88 | # CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set | 93 | # CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set |
89 | 94 | ||
@@ -110,6 +115,8 @@ CONFIG_ARM_THUMB=y | |||
110 | # | 115 | # |
111 | # Bus support | 116 | # Bus support |
112 | # | 117 | # |
118 | CONFIG_ARM_AMBA=y | ||
119 | CONFIG_ISA_DMA_API=y | ||
113 | 120 | ||
114 | # | 121 | # |
115 | # PCCARD (PCMCIA/CardBus) support | 122 | # PCCARD (PCMCIA/CardBus) support |
@@ -119,6 +126,7 @@ CONFIG_ARM_THUMB=y | |||
119 | # | 126 | # |
120 | # Kernel Features | 127 | # Kernel Features |
121 | # | 128 | # |
129 | # CONFIG_SMP is not set | ||
122 | CONFIG_PREEMPT=y | 130 | CONFIG_PREEMPT=y |
123 | CONFIG_DISCONTIGMEM=y | 131 | CONFIG_DISCONTIGMEM=y |
124 | CONFIG_ALIGNMENT_TRAP=y | 132 | CONFIG_ALIGNMENT_TRAP=y |
@@ -175,7 +183,7 @@ CONFIG_MTD=y | |||
175 | # CONFIG_MTD_CONCAT is not set | 183 | # CONFIG_MTD_CONCAT is not set |
176 | CONFIG_MTD_PARTITIONS=y | 184 | CONFIG_MTD_PARTITIONS=y |
177 | # CONFIG_MTD_REDBOOT_PARTS is not set | 185 | # CONFIG_MTD_REDBOOT_PARTS is not set |
178 | # CONFIG_MTD_CMDLINE_PARTS is not set | 186 | CONFIG_MTD_CMDLINE_PARTS=y |
179 | # CONFIG_MTD_AFS_PARTS is not set | 187 | # CONFIG_MTD_AFS_PARTS is not set |
180 | 188 | ||
181 | # | 189 | # |
@@ -217,7 +225,10 @@ CONFIG_MTD_CFI_UTIL=y | |||
217 | # Mapping drivers for chip access | 225 | # Mapping drivers for chip access |
218 | # | 226 | # |
219 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 227 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
220 | # CONFIG_MTD_PHYSMAP is not set | 228 | CONFIG_MTD_PHYSMAP=y |
229 | CONFIG_MTD_PHYSMAP_START=0x00000000 | ||
230 | CONFIG_MTD_PHYSMAP_LEN=0x04000000 | ||
231 | CONFIG_MTD_PHYSMAP_BANKWIDTH=4 | ||
221 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 232 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
222 | # CONFIG_MTD_EDB7312 is not set | 233 | # CONFIG_MTD_EDB7312 is not set |
223 | 234 | ||
@@ -254,7 +265,6 @@ CONFIG_MTD_CFI_UTIL=y | |||
254 | # | 265 | # |
255 | # Block devices | 266 | # Block devices |
256 | # | 267 | # |
257 | # CONFIG_BLK_DEV_FD is not set | ||
258 | # CONFIG_BLK_DEV_COW_COMMON is not set | 268 | # CONFIG_BLK_DEV_COW_COMMON is not set |
259 | CONFIG_BLK_DEV_LOOP=y | 269 | CONFIG_BLK_DEV_LOOP=y |
260 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 270 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
@@ -288,13 +298,15 @@ CONFIG_BLK_DEV_IDEDISK=y | |||
288 | # CONFIG_BLK_DEV_IDECD is not set | 298 | # CONFIG_BLK_DEV_IDECD is not set |
289 | # CONFIG_BLK_DEV_IDETAPE is not set | 299 | # CONFIG_BLK_DEV_IDETAPE is not set |
290 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | 300 | # CONFIG_BLK_DEV_IDEFLOPPY is not set |
301 | # CONFIG_BLK_DEV_IDESCSI is not set | ||
291 | # CONFIG_IDE_TASK_IOCTL is not set | 302 | # CONFIG_IDE_TASK_IOCTL is not set |
303 | CONFIG_IDE_POLL=y | ||
292 | 304 | ||
293 | # | 305 | # |
294 | # IDE chipset support/bugfixes | 306 | # IDE chipset support/bugfixes |
295 | # | 307 | # |
296 | CONFIG_IDE_GENERIC=y | 308 | CONFIG_IDE_GENERIC=y |
297 | # CONFIG_IDE_ARM is not set | 309 | CONFIG_IDE_ARM=y |
298 | # CONFIG_BLK_DEV_IDEDMA is not set | 310 | # CONFIG_BLK_DEV_IDEDMA is not set |
299 | # CONFIG_IDEDMA_AUTO is not set | 311 | # CONFIG_IDEDMA_AUTO is not set |
300 | # CONFIG_BLK_DEV_HD is not set | 312 | # CONFIG_BLK_DEV_HD is not set |
@@ -302,7 +314,37 @@ CONFIG_IDE_GENERIC=y | |||
302 | # | 314 | # |
303 | # SCSI device support | 315 | # SCSI device support |
304 | # | 316 | # |
305 | # CONFIG_SCSI is not set | 317 | CONFIG_SCSI=y |
318 | # CONFIG_SCSI_PROC_FS is not set | ||
319 | |||
320 | # | ||
321 | # SCSI support type (disk, tape, CD-ROM) | ||
322 | # | ||
323 | # CONFIG_BLK_DEV_SD is not set | ||
324 | # CONFIG_CHR_DEV_ST is not set | ||
325 | # CONFIG_CHR_DEV_OSST is not set | ||
326 | # CONFIG_BLK_DEV_SR is not set | ||
327 | # CONFIG_CHR_DEV_SG is not set | ||
328 | |||
329 | # | ||
330 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
331 | # | ||
332 | # CONFIG_SCSI_MULTI_LUN is not set | ||
333 | # CONFIG_SCSI_CONSTANTS is not set | ||
334 | # CONFIG_SCSI_LOGGING is not set | ||
335 | |||
336 | # | ||
337 | # SCSI Transport Attributes | ||
338 | # | ||
339 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
340 | # CONFIG_SCSI_FC_ATTRS is not set | ||
341 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
342 | |||
343 | # | ||
344 | # SCSI low-level drivers | ||
345 | # | ||
346 | # CONFIG_SCSI_SATA is not set | ||
347 | # CONFIG_SCSI_DEBUG is not set | ||
306 | 348 | ||
307 | # | 349 | # |
308 | # Multi-device support (RAID and LVM) | 350 | # Multi-device support (RAID and LVM) |
@@ -331,7 +373,6 @@ CONFIG_NET=y | |||
331 | # | 373 | # |
332 | CONFIG_PACKET=y | 374 | CONFIG_PACKET=y |
333 | # CONFIG_PACKET_MMAP is not set | 375 | # CONFIG_PACKET_MMAP is not set |
334 | # CONFIG_NETLINK_DEV is not set | ||
335 | CONFIG_UNIX=y | 376 | CONFIG_UNIX=y |
336 | # CONFIG_NET_KEY is not set | 377 | # CONFIG_NET_KEY is not set |
337 | CONFIG_INET=y | 378 | CONFIG_INET=y |
@@ -438,13 +479,10 @@ CONFIG_INPUT=y | |||
438 | # | 479 | # |
439 | # Userland interfaces | 480 | # Userland interfaces |
440 | # | 481 | # |
441 | CONFIG_INPUT_MOUSEDEV=y | 482 | # CONFIG_INPUT_MOUSEDEV is not set |
442 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
443 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
444 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
445 | # CONFIG_INPUT_JOYDEV is not set | 483 | # CONFIG_INPUT_JOYDEV is not set |
446 | # CONFIG_INPUT_TSDEV is not set | 484 | # CONFIG_INPUT_TSDEV is not set |
447 | # CONFIG_INPUT_EVDEV is not set | 485 | CONFIG_INPUT_EVDEV=y |
448 | # CONFIG_INPUT_EVBUG is not set | 486 | # CONFIG_INPUT_EVBUG is not set |
449 | 487 | ||
450 | # | 488 | # |
@@ -453,7 +491,13 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | |||
453 | # CONFIG_INPUT_KEYBOARD is not set | 491 | # CONFIG_INPUT_KEYBOARD is not set |
454 | # CONFIG_INPUT_MOUSE is not set | 492 | # CONFIG_INPUT_MOUSE is not set |
455 | # CONFIG_INPUT_JOYSTICK is not set | 493 | # CONFIG_INPUT_JOYSTICK is not set |
456 | # CONFIG_INPUT_TOUCHSCREEN is not set | 494 | CONFIG_INPUT_TOUCHSCREEN=y |
495 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
496 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
497 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
498 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
499 | CONFIG_TOUCHSCREEN_ADS7843_LH7=y | ||
500 | CONFIG_HAS_TOUCHSCREEN_ADS7843_LH7=y | ||
457 | # CONFIG_INPUT_MISC is not set | 501 | # CONFIG_INPUT_MISC is not set |
458 | 502 | ||
459 | # | 503 | # |
@@ -461,7 +505,6 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | |||
461 | # | 505 | # |
462 | # CONFIG_SERIO is not set | 506 | # CONFIG_SERIO is not set |
463 | # CONFIG_GAMEPORT is not set | 507 | # CONFIG_GAMEPORT is not set |
464 | CONFIG_SOUND_GAMEPORT=y | ||
465 | 508 | ||
466 | # | 509 | # |
467 | # Character devices | 510 | # Character devices |
@@ -479,6 +522,8 @@ CONFIG_HW_CONSOLE=y | |||
479 | # | 522 | # |
480 | # Non-8250 serial port support | 523 | # Non-8250 serial port support |
481 | # | 524 | # |
525 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
526 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
482 | CONFIG_SERIAL_CORE=y | 527 | CONFIG_SERIAL_CORE=y |
483 | CONFIG_SERIAL_CORE_CONSOLE=y | 528 | CONFIG_SERIAL_CORE_CONSOLE=y |
484 | CONFIG_SERIAL_LH7A40X=y | 529 | CONFIG_SERIAL_LH7A40X=y |
@@ -510,7 +555,6 @@ CONFIG_RTC=y | |||
510 | # | 555 | # |
511 | # TPM devices | 556 | # TPM devices |
512 | # | 557 | # |
513 | # CONFIG_TCG_TPM is not set | ||
514 | 558 | ||
515 | # | 559 | # |
516 | # I2C support | 560 | # I2C support |
@@ -534,18 +578,73 @@ CONFIG_RTC=y | |||
534 | # | 578 | # |
535 | # Graphics support | 579 | # Graphics support |
536 | # | 580 | # |
537 | # CONFIG_FB is not set | 581 | CONFIG_FB=y |
582 | CONFIG_FB_CFB_FILLRECT=y | ||
583 | CONFIG_FB_CFB_COPYAREA=y | ||
584 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
585 | CONFIG_FB_SOFT_CURSOR=y | ||
586 | # CONFIG_FB_MACMODES is not set | ||
587 | # CONFIG_FB_MODE_HELPERS is not set | ||
588 | # CONFIG_FB_TILEBLITTING is not set | ||
589 | CONFIG_FB_ARMCLCD=y | ||
590 | CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y | ||
591 | # CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set | ||
592 | # CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set | ||
593 | # CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set | ||
594 | # CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set | ||
595 | # CONFIG_FB_S1D13XXX is not set | ||
596 | # CONFIG_FB_VIRTUAL is not set | ||
538 | 597 | ||
539 | # | 598 | # |
540 | # Console display driver support | 599 | # Console display driver support |
541 | # | 600 | # |
542 | # CONFIG_VGA_CONSOLE is not set | 601 | # CONFIG_VGA_CONSOLE is not set |
543 | CONFIG_DUMMY_CONSOLE=y | 602 | CONFIG_DUMMY_CONSOLE=y |
603 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
604 | |||
605 | # | ||
606 | # Logo configuration | ||
607 | # | ||
608 | # CONFIG_LOGO is not set | ||
609 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
544 | 610 | ||
545 | # | 611 | # |
546 | # Sound | 612 | # Sound |
547 | # | 613 | # |
548 | # CONFIG_SOUND is not set | 614 | CONFIG_SOUND=y |
615 | |||
616 | # | ||
617 | # Advanced Linux Sound Architecture | ||
618 | # | ||
619 | CONFIG_SND=y | ||
620 | CONFIG_SND_TIMER=y | ||
621 | CONFIG_SND_PCM=y | ||
622 | # CONFIG_SND_SEQUENCER is not set | ||
623 | CONFIG_SND_OSSEMUL=y | ||
624 | CONFIG_SND_MIXER_OSS=y | ||
625 | CONFIG_SND_PCM_OSS=y | ||
626 | # CONFIG_SND_RTCTIMER is not set | ||
627 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
628 | # CONFIG_SND_DEBUG is not set | ||
629 | |||
630 | # | ||
631 | # Generic devices | ||
632 | # | ||
633 | # CONFIG_SND_DUMMY is not set | ||
634 | # CONFIG_SND_MTPAV is not set | ||
635 | # CONFIG_SND_SERIAL_U16550 is not set | ||
636 | # CONFIG_SND_MPU401 is not set | ||
637 | CONFIG_SND_AC97_CODEC=y | ||
638 | |||
639 | # | ||
640 | # ALSA ARM devices | ||
641 | # | ||
642 | CONFIG_SND_LH7A40X_AC97=y | ||
643 | |||
644 | # | ||
645 | # Open Sound System | ||
646 | # | ||
647 | # CONFIG_SOUND_PRIME is not set | ||
549 | 648 | ||
550 | # | 649 | # |
551 | # USB support | 650 | # USB support |
diff --git a/arch/arm/configs/lpd7a404_defconfig b/arch/arm/configs/lpd7a404_defconfig index 208d591ebfce..3a57be32e849 100644 --- a/arch/arm/configs/lpd7a404_defconfig +++ b/arch/arm/configs/lpd7a404_defconfig | |||
@@ -1,52 +1,58 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.12-rc1-bk2 | 3 | # Linux kernel version: 2.6.16 |
4 | # Mon Mar 28 00:14:08 2005 | 4 | # Thu Mar 23 17:50:31 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 9 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | 10 | ||
13 | # | 11 | # |
14 | # Code maturity level options | 12 | # Code maturity level options |
15 | # | 13 | # |
16 | CONFIG_EXPERIMENTAL=y | 14 | CONFIG_EXPERIMENTAL=y |
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | 15 | CONFIG_BROKEN_ON_SMP=y |
19 | CONFIG_LOCK_KERNEL=y | 16 | CONFIG_LOCK_KERNEL=y |
17 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | 18 | ||
21 | # | 19 | # |
22 | # General setup | 20 | # General setup |
23 | # | 21 | # |
24 | CONFIG_LOCALVERSION="" | 22 | CONFIG_LOCALVERSION="" |
23 | CONFIG_LOCALVERSION_AUTO=y | ||
25 | # CONFIG_SWAP is not set | 24 | # CONFIG_SWAP is not set |
26 | CONFIG_SYSVIPC=y | 25 | CONFIG_SYSVIPC=y |
27 | # CONFIG_POSIX_MQUEUE is not set | 26 | # CONFIG_POSIX_MQUEUE is not set |
28 | # CONFIG_BSD_PROCESS_ACCT is not set | 27 | # CONFIG_BSD_PROCESS_ACCT is not set |
29 | CONFIG_SYSCTL=y | 28 | CONFIG_SYSCTL=y |
30 | # CONFIG_AUDIT is not set | 29 | # CONFIG_AUDIT is not set |
31 | # CONFIG_HOTPLUG is not set | ||
32 | CONFIG_KOBJECT_UEVENT=y | ||
33 | CONFIG_IKCONFIG=y | 30 | CONFIG_IKCONFIG=y |
34 | # CONFIG_IKCONFIG_PROC is not set | 31 | # CONFIG_IKCONFIG_PROC is not set |
32 | CONFIG_INITRAMFS_SOURCE="" | ||
33 | CONFIG_UID16=y | ||
34 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
35 | CONFIG_EMBEDDED=y | 35 | CONFIG_EMBEDDED=y |
36 | CONFIG_KALLSYMS=y | 36 | CONFIG_KALLSYMS=y |
37 | # CONFIG_KALLSYMS_ALL is not set | 37 | # CONFIG_KALLSYMS_ALL is not set |
38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 38 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
39 | # CONFIG_HOTPLUG is not set | ||
40 | CONFIG_PRINTK=y | ||
41 | CONFIG_BUG=y | ||
42 | CONFIG_ELF_CORE=y | ||
39 | CONFIG_BASE_FULL=y | 43 | CONFIG_BASE_FULL=y |
40 | CONFIG_FUTEX=y | 44 | CONFIG_FUTEX=y |
41 | # CONFIG_EPOLL is not set | 45 | # CONFIG_EPOLL is not set |
42 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
43 | CONFIG_SHMEM=y | 46 | CONFIG_SHMEM=y |
44 | CONFIG_CC_ALIGN_FUNCTIONS=0 | 47 | CONFIG_CC_ALIGN_FUNCTIONS=0 |
45 | CONFIG_CC_ALIGN_LABELS=0 | 48 | CONFIG_CC_ALIGN_LABELS=0 |
46 | CONFIG_CC_ALIGN_LOOPS=0 | 49 | CONFIG_CC_ALIGN_LOOPS=0 |
47 | CONFIG_CC_ALIGN_JUMPS=0 | 50 | CONFIG_CC_ALIGN_JUMPS=0 |
51 | CONFIG_SLAB=y | ||
48 | # CONFIG_TINY_SHMEM is not set | 52 | # CONFIG_TINY_SHMEM is not set |
49 | CONFIG_BASE_SMALL=0 | 53 | CONFIG_BASE_SMALL=0 |
54 | # CONFIG_SLOB is not set | ||
55 | CONFIG_OBSOLETE_INTERMODULE=y | ||
50 | 56 | ||
51 | # | 57 | # |
52 | # Loadable module support | 58 | # Loadable module support |
@@ -54,6 +60,23 @@ CONFIG_BASE_SMALL=0 | |||
54 | # CONFIG_MODULES is not set | 60 | # CONFIG_MODULES is not set |
55 | 61 | ||
56 | # | 62 | # |
63 | # Block layer | ||
64 | # | ||
65 | |||
66 | # | ||
67 | # IO Schedulers | ||
68 | # | ||
69 | CONFIG_IOSCHED_NOOP=y | ||
70 | # CONFIG_IOSCHED_AS is not set | ||
71 | # CONFIG_IOSCHED_DEADLINE is not set | ||
72 | CONFIG_IOSCHED_CFQ=y | ||
73 | # CONFIG_DEFAULT_AS is not set | ||
74 | # CONFIG_DEFAULT_DEADLINE is not set | ||
75 | CONFIG_DEFAULT_CFQ=y | ||
76 | # CONFIG_DEFAULT_NOOP is not set | ||
77 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
78 | |||
79 | # | ||
57 | # System Type | 80 | # System Type |
58 | # | 81 | # |
59 | # CONFIG_ARCH_CLPS7500 is not set | 82 | # CONFIG_ARCH_CLPS7500 is not set |
@@ -71,11 +94,15 @@ CONFIG_BASE_SMALL=0 | |||
71 | # CONFIG_ARCH_SA1100 is not set | 94 | # CONFIG_ARCH_SA1100 is not set |
72 | # CONFIG_ARCH_S3C2410 is not set | 95 | # CONFIG_ARCH_S3C2410 is not set |
73 | # CONFIG_ARCH_SHARK is not set | 96 | # CONFIG_ARCH_SHARK is not set |
97 | # CONFIG_ARCH_LH7952X is not set | ||
74 | CONFIG_ARCH_LH7A40X=y | 98 | CONFIG_ARCH_LH7A40X=y |
75 | # CONFIG_ARCH_OMAP is not set | 99 | # CONFIG_ARCH_OMAP is not set |
76 | # CONFIG_ARCH_VERSATILE is not set | 100 | # CONFIG_ARCH_VERSATILE is not set |
101 | # CONFIG_ARCH_REALVIEW is not set | ||
77 | # CONFIG_ARCH_IMX is not set | 102 | # CONFIG_ARCH_IMX is not set |
78 | # CONFIG_ARCH_H720X is not set | 103 | # CONFIG_ARCH_H720X is not set |
104 | # CONFIG_ARCH_AAEC2000 is not set | ||
105 | # CONFIG_ARCH_AT91RM9200 is not set | ||
79 | 106 | ||
80 | # | 107 | # |
81 | # LH7A40X Implementations | 108 | # LH7A40X Implementations |
@@ -110,6 +137,7 @@ CONFIG_ARM_THUMB=y | |||
110 | # | 137 | # |
111 | # Bus support | 138 | # Bus support |
112 | # | 139 | # |
140 | CONFIG_ARM_AMBA=y | ||
113 | 141 | ||
114 | # | 142 | # |
115 | # PCCARD (PCMCIA/CardBus) support | 143 | # PCCARD (PCMCIA/CardBus) support |
@@ -120,7 +148,18 @@ CONFIG_ARM_THUMB=y | |||
120 | # Kernel Features | 148 | # Kernel Features |
121 | # | 149 | # |
122 | CONFIG_PREEMPT=y | 150 | CONFIG_PREEMPT=y |
151 | # CONFIG_NO_IDLE_HZ is not set | ||
152 | # CONFIG_AEABI is not set | ||
153 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y | ||
154 | CONFIG_SELECT_MEMORY_MODEL=y | ||
155 | # CONFIG_FLATMEM_MANUAL is not set | ||
156 | CONFIG_DISCONTIGMEM_MANUAL=y | ||
157 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
123 | CONFIG_DISCONTIGMEM=y | 158 | CONFIG_DISCONTIGMEM=y |
159 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
160 | CONFIG_NEED_MULTIPLE_NODES=y | ||
161 | # CONFIG_SPARSEMEM_STATIC is not set | ||
162 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
124 | CONFIG_ALIGNMENT_TRAP=y | 163 | CONFIG_ALIGNMENT_TRAP=y |
125 | 164 | ||
126 | # | 165 | # |
@@ -154,6 +193,84 @@ CONFIG_BINFMT_ELF=y | |||
154 | # Power management options | 193 | # Power management options |
155 | # | 194 | # |
156 | # CONFIG_PM is not set | 195 | # CONFIG_PM is not set |
196 | # CONFIG_APM is not set | ||
197 | |||
198 | # | ||
199 | # Networking | ||
200 | # | ||
201 | CONFIG_NET=y | ||
202 | |||
203 | # | ||
204 | # Networking options | ||
205 | # | ||
206 | # CONFIG_NETDEBUG is not set | ||
207 | CONFIG_PACKET=y | ||
208 | # CONFIG_PACKET_MMAP is not set | ||
209 | CONFIG_UNIX=y | ||
210 | # CONFIG_NET_KEY is not set | ||
211 | CONFIG_INET=y | ||
212 | # CONFIG_IP_MULTICAST is not set | ||
213 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
214 | CONFIG_IP_FIB_HASH=y | ||
215 | CONFIG_IP_PNP=y | ||
216 | CONFIG_IP_PNP_DHCP=y | ||
217 | CONFIG_IP_PNP_BOOTP=y | ||
218 | CONFIG_IP_PNP_RARP=y | ||
219 | # CONFIG_NET_IPIP is not set | ||
220 | # CONFIG_NET_IPGRE is not set | ||
221 | # CONFIG_ARPD is not set | ||
222 | # CONFIG_SYN_COOKIES is not set | ||
223 | # CONFIG_INET_AH is not set | ||
224 | # CONFIG_INET_ESP is not set | ||
225 | # CONFIG_INET_IPCOMP is not set | ||
226 | # CONFIG_INET_TUNNEL is not set | ||
227 | CONFIG_INET_DIAG=y | ||
228 | CONFIG_INET_TCP_DIAG=y | ||
229 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
230 | CONFIG_TCP_CONG_BIC=y | ||
231 | # CONFIG_IPV6 is not set | ||
232 | # CONFIG_NETFILTER is not set | ||
233 | |||
234 | # | ||
235 | # DCCP Configuration (EXPERIMENTAL) | ||
236 | # | ||
237 | # CONFIG_IP_DCCP is not set | ||
238 | |||
239 | # | ||
240 | # SCTP Configuration (EXPERIMENTAL) | ||
241 | # | ||
242 | # CONFIG_IP_SCTP is not set | ||
243 | |||
244 | # | ||
245 | # TIPC Configuration (EXPERIMENTAL) | ||
246 | # | ||
247 | # CONFIG_TIPC is not set | ||
248 | # CONFIG_ATM is not set | ||
249 | # CONFIG_BRIDGE is not set | ||
250 | # CONFIG_VLAN_8021Q is not set | ||
251 | # CONFIG_DECNET is not set | ||
252 | # CONFIG_LLC2 is not set | ||
253 | # CONFIG_IPX is not set | ||
254 | # CONFIG_ATALK is not set | ||
255 | # CONFIG_X25 is not set | ||
256 | # CONFIG_LAPB is not set | ||
257 | # CONFIG_NET_DIVERT is not set | ||
258 | # CONFIG_ECONET is not set | ||
259 | # CONFIG_WAN_ROUTER is not set | ||
260 | |||
261 | # | ||
262 | # QoS and/or fair queueing | ||
263 | # | ||
264 | # CONFIG_NET_SCHED is not set | ||
265 | |||
266 | # | ||
267 | # Network testing | ||
268 | # | ||
269 | # CONFIG_NET_PKTGEN is not set | ||
270 | # CONFIG_HAMRADIO is not set | ||
271 | # CONFIG_IRDA is not set | ||
272 | # CONFIG_BT is not set | ||
273 | # CONFIG_IEEE80211 is not set | ||
157 | 274 | ||
158 | # | 275 | # |
159 | # Device Drivers | 276 | # Device Drivers |
@@ -168,6 +285,11 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y | |||
168 | # CONFIG_DEBUG_DRIVER is not set | 285 | # CONFIG_DEBUG_DRIVER is not set |
169 | 286 | ||
170 | # | 287 | # |
288 | # Connector - unified userspace <-> kernelspace linker | ||
289 | # | ||
290 | # CONFIG_CONNECTOR is not set | ||
291 | |||
292 | # | ||
171 | # Memory Technology Devices (MTD) | 293 | # Memory Technology Devices (MTD) |
172 | # | 294 | # |
173 | CONFIG_MTD=y | 295 | CONFIG_MTD=y |
@@ -175,7 +297,7 @@ CONFIG_MTD=y | |||
175 | # CONFIG_MTD_CONCAT is not set | 297 | # CONFIG_MTD_CONCAT is not set |
176 | CONFIG_MTD_PARTITIONS=y | 298 | CONFIG_MTD_PARTITIONS=y |
177 | # CONFIG_MTD_REDBOOT_PARTS is not set | 299 | # CONFIG_MTD_REDBOOT_PARTS is not set |
178 | # CONFIG_MTD_CMDLINE_PARTS is not set | 300 | CONFIG_MTD_CMDLINE_PARTS=y |
179 | # CONFIG_MTD_AFS_PARTS is not set | 301 | # CONFIG_MTD_AFS_PARTS is not set |
180 | 302 | ||
181 | # | 303 | # |
@@ -186,6 +308,7 @@ CONFIG_MTD_BLOCK=y | |||
186 | # CONFIG_FTL is not set | 308 | # CONFIG_FTL is not set |
187 | # CONFIG_NFTL is not set | 309 | # CONFIG_NFTL is not set |
188 | # CONFIG_INFTL is not set | 310 | # CONFIG_INFTL is not set |
311 | # CONFIG_RFD_FTL is not set | ||
189 | 312 | ||
190 | # | 313 | # |
191 | # RAM/ROM/Flash chip drivers | 314 | # RAM/ROM/Flash chip drivers |
@@ -211,15 +334,18 @@ CONFIG_MTD_CFI_UTIL=y | |||
211 | # CONFIG_MTD_RAM is not set | 334 | # CONFIG_MTD_RAM is not set |
212 | # CONFIG_MTD_ROM is not set | 335 | # CONFIG_MTD_ROM is not set |
213 | # CONFIG_MTD_ABSENT is not set | 336 | # CONFIG_MTD_ABSENT is not set |
214 | # CONFIG_MTD_XIP is not set | 337 | # CONFIG_MTD_OBSOLETE_CHIPS is not set |
215 | 338 | ||
216 | # | 339 | # |
217 | # Mapping drivers for chip access | 340 | # Mapping drivers for chip access |
218 | # | 341 | # |
219 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 342 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
220 | # CONFIG_MTD_PHYSMAP is not set | 343 | CONFIG_MTD_PHYSMAP=y |
344 | CONFIG_MTD_PHYSMAP_START=0x00000000 | ||
345 | CONFIG_MTD_PHYSMAP_LEN=0x04000000 | ||
346 | CONFIG_MTD_PHYSMAP_BANKWIDTH=4 | ||
221 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 347 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
222 | # CONFIG_MTD_EDB7312 is not set | 348 | # CONFIG_MTD_PLATRAM is not set |
223 | 349 | ||
224 | # | 350 | # |
225 | # Self-contained MTD device drivers | 351 | # Self-contained MTD device drivers |
@@ -243,6 +369,11 @@ CONFIG_MTD_CFI_UTIL=y | |||
243 | # CONFIG_MTD_NAND is not set | 369 | # CONFIG_MTD_NAND is not set |
244 | 370 | ||
245 | # | 371 | # |
372 | # OneNAND Flash Device Drivers | ||
373 | # | ||
374 | # CONFIG_MTD_ONENAND is not set | ||
375 | |||
376 | # | ||
246 | # Parallel port support | 377 | # Parallel port support |
247 | # | 378 | # |
248 | # CONFIG_PARPORT is not set | 379 | # CONFIG_PARPORT is not set |
@@ -254,7 +385,6 @@ CONFIG_MTD_CFI_UTIL=y | |||
254 | # | 385 | # |
255 | # Block devices | 386 | # Block devices |
256 | # | 387 | # |
257 | # CONFIG_BLK_DEV_FD is not set | ||
258 | # CONFIG_BLK_DEV_COW_COMMON is not set | 388 | # CONFIG_BLK_DEV_COW_COMMON is not set |
259 | CONFIG_BLK_DEV_LOOP=y | 389 | CONFIG_BLK_DEV_LOOP=y |
260 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 390 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
@@ -262,16 +392,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
262 | # CONFIG_BLK_DEV_UB is not set | 392 | # CONFIG_BLK_DEV_UB is not set |
263 | # CONFIG_BLK_DEV_RAM is not set | 393 | # CONFIG_BLK_DEV_RAM is not set |
264 | CONFIG_BLK_DEV_RAM_COUNT=16 | 394 | CONFIG_BLK_DEV_RAM_COUNT=16 |
265 | CONFIG_INITRAMFS_SOURCE="" | ||
266 | # CONFIG_CDROM_PKTCDVD is not set | 395 | # CONFIG_CDROM_PKTCDVD is not set |
267 | |||
268 | # | ||
269 | # IO Schedulers | ||
270 | # | ||
271 | CONFIG_IOSCHED_NOOP=y | ||
272 | # CONFIG_IOSCHED_AS is not set | ||
273 | # CONFIG_IOSCHED_DEADLINE is not set | ||
274 | CONFIG_IOSCHED_CFQ=y | ||
275 | # CONFIG_ATA_OVER_ETH is not set | 396 | # CONFIG_ATA_OVER_ETH is not set |
276 | 397 | ||
277 | # | 398 | # |
@@ -291,12 +412,13 @@ CONFIG_BLK_DEV_IDEDISK=y | |||
291 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | 412 | # CONFIG_BLK_DEV_IDEFLOPPY is not set |
292 | # CONFIG_BLK_DEV_IDESCSI is not set | 413 | # CONFIG_BLK_DEV_IDESCSI is not set |
293 | # CONFIG_IDE_TASK_IOCTL is not set | 414 | # CONFIG_IDE_TASK_IOCTL is not set |
415 | CONFIG_IDE_POLL=y | ||
294 | 416 | ||
295 | # | 417 | # |
296 | # IDE chipset support/bugfixes | 418 | # IDE chipset support/bugfixes |
297 | # | 419 | # |
298 | CONFIG_IDE_GENERIC=y | 420 | CONFIG_IDE_GENERIC=y |
299 | # CONFIG_IDE_ARM is not set | 421 | CONFIG_IDE_ARM=y |
300 | # CONFIG_BLK_DEV_IDEDMA is not set | 422 | # CONFIG_BLK_DEV_IDEDMA is not set |
301 | # CONFIG_IDEDMA_AUTO is not set | 423 | # CONFIG_IDEDMA_AUTO is not set |
302 | # CONFIG_BLK_DEV_HD is not set | 424 | # CONFIG_BLK_DEV_HD is not set |
@@ -304,6 +426,7 @@ CONFIG_IDE_GENERIC=y | |||
304 | # | 426 | # |
305 | # SCSI device support | 427 | # SCSI device support |
306 | # | 428 | # |
429 | # CONFIG_RAID_ATTRS is not set | ||
307 | CONFIG_SCSI=y | 430 | CONFIG_SCSI=y |
308 | # CONFIG_SCSI_PROC_FS is not set | 431 | # CONFIG_SCSI_PROC_FS is not set |
309 | 432 | ||
@@ -315,6 +438,7 @@ CONFIG_SCSI=y | |||
315 | # CONFIG_CHR_DEV_OSST is not set | 438 | # CONFIG_CHR_DEV_OSST is not set |
316 | # CONFIG_BLK_DEV_SR is not set | 439 | # CONFIG_BLK_DEV_SR is not set |
317 | # CONFIG_CHR_DEV_SG is not set | 440 | # CONFIG_CHR_DEV_SG is not set |
441 | # CONFIG_CHR_DEV_SCH is not set | ||
318 | 442 | ||
319 | # | 443 | # |
320 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | 444 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs |
@@ -329,10 +453,12 @@ CONFIG_SCSI=y | |||
329 | # CONFIG_SCSI_SPI_ATTRS is not set | 453 | # CONFIG_SCSI_SPI_ATTRS is not set |
330 | # CONFIG_SCSI_FC_ATTRS is not set | 454 | # CONFIG_SCSI_FC_ATTRS is not set |
331 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 455 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
456 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
332 | 457 | ||
333 | # | 458 | # |
334 | # SCSI low-level drivers | 459 | # SCSI low-level drivers |
335 | # | 460 | # |
461 | # CONFIG_ISCSI_TCP is not set | ||
336 | # CONFIG_SCSI_SATA is not set | 462 | # CONFIG_SCSI_SATA is not set |
337 | # CONFIG_SCSI_DEBUG is not set | 463 | # CONFIG_SCSI_DEBUG is not set |
338 | 464 | ||
@@ -344,6 +470,7 @@ CONFIG_SCSI=y | |||
344 | # | 470 | # |
345 | # Fusion MPT device support | 471 | # Fusion MPT device support |
346 | # | 472 | # |
473 | # CONFIG_FUSION is not set | ||
347 | 474 | ||
348 | # | 475 | # |
349 | # IEEE 1394 (FireWire) support | 476 | # IEEE 1394 (FireWire) support |
@@ -354,70 +481,8 @@ CONFIG_SCSI=y | |||
354 | # | 481 | # |
355 | 482 | ||
356 | # | 483 | # |
357 | # Networking support | 484 | # Network device support |
358 | # | 485 | # |
359 | CONFIG_NET=y | ||
360 | |||
361 | # | ||
362 | # Networking options | ||
363 | # | ||
364 | CONFIG_PACKET=y | ||
365 | # CONFIG_PACKET_MMAP is not set | ||
366 | # CONFIG_NETLINK_DEV is not set | ||
367 | CONFIG_UNIX=y | ||
368 | # CONFIG_NET_KEY is not set | ||
369 | CONFIG_INET=y | ||
370 | # CONFIG_IP_MULTICAST is not set | ||
371 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
372 | CONFIG_IP_PNP=y | ||
373 | CONFIG_IP_PNP_DHCP=y | ||
374 | CONFIG_IP_PNP_BOOTP=y | ||
375 | CONFIG_IP_PNP_RARP=y | ||
376 | # CONFIG_NET_IPIP is not set | ||
377 | # CONFIG_NET_IPGRE is not set | ||
378 | # CONFIG_ARPD is not set | ||
379 | # CONFIG_SYN_COOKIES is not set | ||
380 | # CONFIG_INET_AH is not set | ||
381 | # CONFIG_INET_ESP is not set | ||
382 | # CONFIG_INET_IPCOMP is not set | ||
383 | # CONFIG_INET_TUNNEL is not set | ||
384 | # CONFIG_IP_TCPDIAG is not set | ||
385 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
386 | # CONFIG_IPV6 is not set | ||
387 | # CONFIG_NETFILTER is not set | ||
388 | |||
389 | # | ||
390 | # SCTP Configuration (EXPERIMENTAL) | ||
391 | # | ||
392 | # CONFIG_IP_SCTP is not set | ||
393 | # CONFIG_ATM is not set | ||
394 | # CONFIG_BRIDGE is not set | ||
395 | # CONFIG_VLAN_8021Q is not set | ||
396 | # CONFIG_DECNET is not set | ||
397 | # CONFIG_LLC2 is not set | ||
398 | # CONFIG_IPX is not set | ||
399 | # CONFIG_ATALK is not set | ||
400 | # CONFIG_X25 is not set | ||
401 | # CONFIG_LAPB is not set | ||
402 | # CONFIG_NET_DIVERT is not set | ||
403 | # CONFIG_ECONET is not set | ||
404 | # CONFIG_WAN_ROUTER is not set | ||
405 | |||
406 | # | ||
407 | # QoS and/or fair queueing | ||
408 | # | ||
409 | # CONFIG_NET_SCHED is not set | ||
410 | # CONFIG_NET_CLS_ROUTE is not set | ||
411 | |||
412 | # | ||
413 | # Network testing | ||
414 | # | ||
415 | # CONFIG_NET_PKTGEN is not set | ||
416 | # CONFIG_NETPOLL is not set | ||
417 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
418 | # CONFIG_HAMRADIO is not set | ||
419 | # CONFIG_IRDA is not set | ||
420 | # CONFIG_BT is not set | ||
421 | CONFIG_NETDEVICES=y | 486 | CONFIG_NETDEVICES=y |
422 | # CONFIG_DUMMY is not set | 487 | # CONFIG_DUMMY is not set |
423 | # CONFIG_BONDING is not set | 488 | # CONFIG_BONDING is not set |
@@ -425,11 +490,17 @@ CONFIG_NETDEVICES=y | |||
425 | # CONFIG_TUN is not set | 490 | # CONFIG_TUN is not set |
426 | 491 | ||
427 | # | 492 | # |
493 | # PHY device support | ||
494 | # | ||
495 | # CONFIG_PHYLIB is not set | ||
496 | |||
497 | # | ||
428 | # Ethernet (10 or 100Mbit) | 498 | # Ethernet (10 or 100Mbit) |
429 | # | 499 | # |
430 | CONFIG_NET_ETHERNET=y | 500 | CONFIG_NET_ETHERNET=y |
431 | CONFIG_MII=y | 501 | CONFIG_MII=y |
432 | CONFIG_SMC91X=y | 502 | CONFIG_SMC91X=y |
503 | # CONFIG_DM9000 is not set | ||
433 | 504 | ||
434 | # | 505 | # |
435 | # Ethernet (1000 Mbit) | 506 | # Ethernet (1000 Mbit) |
@@ -456,6 +527,8 @@ CONFIG_SMC91X=y | |||
456 | # CONFIG_SLIP is not set | 527 | # CONFIG_SLIP is not set |
457 | # CONFIG_SHAPER is not set | 528 | # CONFIG_SHAPER is not set |
458 | # CONFIG_NETCONSOLE is not set | 529 | # CONFIG_NETCONSOLE is not set |
530 | # CONFIG_NETPOLL is not set | ||
531 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
459 | 532 | ||
460 | # | 533 | # |
461 | # ISDN subsystem | 534 | # ISDN subsystem |
@@ -470,10 +543,13 @@ CONFIG_INPUT=y | |||
470 | # | 543 | # |
471 | # Userland interfaces | 544 | # Userland interfaces |
472 | # | 545 | # |
473 | # CONFIG_INPUT_MOUSEDEV is not set | 546 | CONFIG_INPUT_MOUSEDEV=y |
547 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
548 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
549 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
474 | # CONFIG_INPUT_JOYDEV is not set | 550 | # CONFIG_INPUT_JOYDEV is not set |
475 | # CONFIG_INPUT_TSDEV is not set | 551 | # CONFIG_INPUT_TSDEV is not set |
476 | # CONFIG_INPUT_EVDEV is not set | 552 | CONFIG_INPUT_EVDEV=y |
477 | # CONFIG_INPUT_EVBUG is not set | 553 | # CONFIG_INPUT_EVBUG is not set |
478 | 554 | ||
479 | # | 555 | # |
@@ -482,7 +558,13 @@ CONFIG_INPUT=y | |||
482 | # CONFIG_INPUT_KEYBOARD is not set | 558 | # CONFIG_INPUT_KEYBOARD is not set |
483 | # CONFIG_INPUT_MOUSE is not set | 559 | # CONFIG_INPUT_MOUSE is not set |
484 | # CONFIG_INPUT_JOYSTICK is not set | 560 | # CONFIG_INPUT_JOYSTICK is not set |
485 | # CONFIG_INPUT_TOUCHSCREEN is not set | 561 | CONFIG_INPUT_TOUCHSCREEN=y |
562 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
563 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
564 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
565 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
566 | CONFIG_TOUCHSCREEN_ADC_LH7=y | ||
567 | CONFIG_HAS_TOUCHSCREEN_ADC_LH7=y | ||
486 | # CONFIG_INPUT_MISC is not set | 568 | # CONFIG_INPUT_MISC is not set |
487 | 569 | ||
488 | # | 570 | # |
@@ -490,7 +572,6 @@ CONFIG_INPUT=y | |||
490 | # | 572 | # |
491 | # CONFIG_SERIO is not set | 573 | # CONFIG_SERIO is not set |
492 | # CONFIG_GAMEPORT is not set | 574 | # CONFIG_GAMEPORT is not set |
493 | CONFIG_SOUND_GAMEPORT=y | ||
494 | 575 | ||
495 | # | 576 | # |
496 | # Character devices | 577 | # Character devices |
@@ -508,6 +589,8 @@ CONFIG_HW_CONSOLE=y | |||
508 | # | 589 | # |
509 | # Non-8250 serial port support | 590 | # Non-8250 serial port support |
510 | # | 591 | # |
592 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
593 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
511 | CONFIG_SERIAL_CORE=y | 594 | CONFIG_SERIAL_CORE=y |
512 | CONFIG_SERIAL_CORE_CONSOLE=y | 595 | CONFIG_SERIAL_CORE_CONSOLE=y |
513 | CONFIG_SERIAL_LH7A40X=y | 596 | CONFIG_SERIAL_LH7A40X=y |
@@ -533,13 +616,13 @@ CONFIG_RTC=y | |||
533 | # | 616 | # |
534 | # Ftape, the floppy tape device driver | 617 | # Ftape, the floppy tape device driver |
535 | # | 618 | # |
536 | # CONFIG_DRM is not set | ||
537 | # CONFIG_RAW_DRIVER is not set | 619 | # CONFIG_RAW_DRIVER is not set |
538 | 620 | ||
539 | # | 621 | # |
540 | # TPM devices | 622 | # TPM devices |
541 | # | 623 | # |
542 | # CONFIG_TCG_TPM is not set | 624 | # CONFIG_TCG_TPM is not set |
625 | # CONFIG_TELCLOCK is not set | ||
543 | 626 | ||
544 | # | 627 | # |
545 | # I2C support | 628 | # I2C support |
@@ -547,10 +630,33 @@ CONFIG_RTC=y | |||
547 | # CONFIG_I2C is not set | 630 | # CONFIG_I2C is not set |
548 | 631 | ||
549 | # | 632 | # |
633 | # SPI support | ||
634 | # | ||
635 | # CONFIG_SPI is not set | ||
636 | # CONFIG_SPI_MASTER is not set | ||
637 | |||
638 | # | ||
639 | # Dallas's 1-wire bus | ||
640 | # | ||
641 | # CONFIG_W1 is not set | ||
642 | |||
643 | # | ||
644 | # Hardware Monitoring support | ||
645 | # | ||
646 | CONFIG_HWMON=y | ||
647 | # CONFIG_HWMON_VID is not set | ||
648 | # CONFIG_SENSORS_F71805F is not set | ||
649 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
650 | |||
651 | # | ||
550 | # Misc devices | 652 | # Misc devices |
551 | # | 653 | # |
552 | 654 | ||
553 | # | 655 | # |
656 | # Multimedia Capabilities Port drivers | ||
657 | # | ||
658 | |||
659 | # | ||
554 | # Multimedia devices | 660 | # Multimedia devices |
555 | # | 661 | # |
556 | # CONFIG_VIDEO_DEV is not set | 662 | # CONFIG_VIDEO_DEV is not set |
@@ -563,18 +669,83 @@ CONFIG_RTC=y | |||
563 | # | 669 | # |
564 | # Graphics support | 670 | # Graphics support |
565 | # | 671 | # |
566 | # CONFIG_FB is not set | 672 | CONFIG_FB=y |
673 | CONFIG_FB_CFB_FILLRECT=y | ||
674 | CONFIG_FB_CFB_COPYAREA=y | ||
675 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
676 | # CONFIG_FB_MACMODES is not set | ||
677 | # CONFIG_FB_MODE_HELPERS is not set | ||
678 | # CONFIG_FB_TILEBLITTING is not set | ||
679 | CONFIG_FB_ARMCLCD=y | ||
680 | CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y | ||
681 | # CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set | ||
682 | # CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set | ||
683 | # CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set | ||
684 | # CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set | ||
685 | # CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE is not set | ||
686 | # CONFIG_FB_ARMCLCD_HITACHI is not set | ||
687 | # CONFIG_FB_S1D13XXX is not set | ||
688 | # CONFIG_FB_VIRTUAL is not set | ||
567 | 689 | ||
568 | # | 690 | # |
569 | # Console display driver support | 691 | # Console display driver support |
570 | # | 692 | # |
571 | # CONFIG_VGA_CONSOLE is not set | 693 | # CONFIG_VGA_CONSOLE is not set |
572 | CONFIG_DUMMY_CONSOLE=y | 694 | CONFIG_DUMMY_CONSOLE=y |
695 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
696 | |||
697 | # | ||
698 | # Logo configuration | ||
699 | # | ||
700 | # CONFIG_LOGO is not set | ||
701 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
573 | 702 | ||
574 | # | 703 | # |
575 | # Sound | 704 | # Sound |
576 | # | 705 | # |
577 | # CONFIG_SOUND is not set | 706 | CONFIG_SOUND=y |
707 | |||
708 | # | ||
709 | # Advanced Linux Sound Architecture | ||
710 | # | ||
711 | CONFIG_SND=y | ||
712 | CONFIG_SND_TIMER=y | ||
713 | CONFIG_SND_PCM=y | ||
714 | # CONFIG_SND_SEQUENCER is not set | ||
715 | CONFIG_SND_OSSEMUL=y | ||
716 | CONFIG_SND_MIXER_OSS=y | ||
717 | CONFIG_SND_PCM_OSS=y | ||
718 | # CONFIG_SND_RTCTIMER is not set | ||
719 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
720 | CONFIG_SND_SUPPORT_OLD_API=y | ||
721 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
722 | # CONFIG_SND_DEBUG is not set | ||
723 | |||
724 | # | ||
725 | # Generic devices | ||
726 | # | ||
727 | CONFIG_SND_AC97_CODEC=y | ||
728 | CONFIG_SND_AC97_BUS=y | ||
729 | # CONFIG_SND_DUMMY is not set | ||
730 | # CONFIG_SND_MTPAV is not set | ||
731 | # CONFIG_SND_SERIAL_U16550 is not set | ||
732 | # CONFIG_SND_MPU401 is not set | ||
733 | |||
734 | # | ||
735 | # ALSA ARM devices | ||
736 | # | ||
737 | # CONFIG_SND_ARMAACI is not set | ||
738 | CONFIG_SND_LH7A40X_AC97=y | ||
739 | |||
740 | # | ||
741 | # USB devices | ||
742 | # | ||
743 | # CONFIG_SND_USB_AUDIO is not set | ||
744 | |||
745 | # | ||
746 | # Open Sound System | ||
747 | # | ||
748 | # CONFIG_SOUND_PRIME is not set | ||
578 | 749 | ||
579 | # | 750 | # |
580 | # USB support | 751 | # USB support |
@@ -595,6 +766,7 @@ CONFIG_USB_DEVICEFS=y | |||
595 | # | 766 | # |
596 | # USB Host Controller Drivers | 767 | # USB Host Controller Drivers |
597 | # | 768 | # |
769 | # CONFIG_USB_ISP116X_HCD is not set | ||
598 | CONFIG_USB_OHCI_HCD=y | 770 | CONFIG_USB_OHCI_HCD=y |
599 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | 771 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set |
600 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | 772 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y |
@@ -603,16 +775,19 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
603 | # | 775 | # |
604 | # USB Device Class drivers | 776 | # USB Device Class drivers |
605 | # | 777 | # |
606 | # CONFIG_USB_BLUETOOTH_TTY is not set | 778 | # CONFIG_OBSOLETE_OSS_USB_DRIVER is not set |
607 | # CONFIG_USB_ACM is not set | 779 | # CONFIG_USB_ACM is not set |
608 | # CONFIG_USB_PRINTER is not set | 780 | # CONFIG_USB_PRINTER is not set |
609 | 781 | ||
610 | # | 782 | # |
611 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information | 783 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' |
784 | # | ||
785 | |||
786 | # | ||
787 | # may also be needed; see USB_STORAGE Help for more information | ||
612 | # | 788 | # |
613 | CONFIG_USB_STORAGE=y | 789 | CONFIG_USB_STORAGE=y |
614 | CONFIG_USB_STORAGE_DEBUG=y | 790 | CONFIG_USB_STORAGE_DEBUG=y |
615 | # CONFIG_USB_STORAGE_RW_DETECT is not set | ||
616 | CONFIG_USB_STORAGE_DATAFAB=y | 791 | CONFIG_USB_STORAGE_DATAFAB=y |
617 | # CONFIG_USB_STORAGE_FREECOM is not set | 792 | # CONFIG_USB_STORAGE_FREECOM is not set |
618 | # CONFIG_USB_STORAGE_ISD200 is not set | 793 | # CONFIG_USB_STORAGE_ISD200 is not set |
@@ -621,22 +796,32 @@ CONFIG_USB_STORAGE_DATAFAB=y | |||
621 | # CONFIG_USB_STORAGE_SDDR09 is not set | 796 | # CONFIG_USB_STORAGE_SDDR09 is not set |
622 | # CONFIG_USB_STORAGE_SDDR55 is not set | 797 | # CONFIG_USB_STORAGE_SDDR55 is not set |
623 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 798 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
799 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
800 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
801 | # CONFIG_USB_LIBUSUAL is not set | ||
624 | 802 | ||
625 | # | 803 | # |
626 | # USB Input Devices | 804 | # USB Input Devices |
627 | # | 805 | # |
628 | CONFIG_USB_HID=y | 806 | CONFIG_USB_HID=y |
629 | CONFIG_USB_HIDINPUT=y | 807 | CONFIG_USB_HIDINPUT=y |
808 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
630 | # CONFIG_HID_FF is not set | 809 | # CONFIG_HID_FF is not set |
631 | # CONFIG_USB_HIDDEV is not set | 810 | # CONFIG_USB_HIDDEV is not set |
632 | # CONFIG_USB_AIPTEK is not set | 811 | # CONFIG_USB_AIPTEK is not set |
633 | # CONFIG_USB_WACOM is not set | 812 | # CONFIG_USB_WACOM is not set |
813 | # CONFIG_USB_ACECAD is not set | ||
634 | # CONFIG_USB_KBTAB is not set | 814 | # CONFIG_USB_KBTAB is not set |
635 | # CONFIG_USB_POWERMATE is not set | 815 | # CONFIG_USB_POWERMATE is not set |
636 | # CONFIG_USB_MTOUCH is not set | 816 | # CONFIG_USB_MTOUCH is not set |
817 | # CONFIG_USB_ITMTOUCH is not set | ||
637 | # CONFIG_USB_EGALAX is not set | 818 | # CONFIG_USB_EGALAX is not set |
819 | # CONFIG_USB_YEALINK is not set | ||
638 | # CONFIG_USB_XPAD is not set | 820 | # CONFIG_USB_XPAD is not set |
639 | # CONFIG_USB_ATI_REMOTE is not set | 821 | # CONFIG_USB_ATI_REMOTE is not set |
822 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
823 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
824 | # CONFIG_USB_APPLETOUCH is not set | ||
640 | 825 | ||
641 | # | 826 | # |
642 | # USB Imaging devices | 827 | # USB Imaging devices |
@@ -686,16 +871,33 @@ CONFIG_USB_MON=y | |||
686 | # CONFIG_USB_PHIDGETKIT is not set | 871 | # CONFIG_USB_PHIDGETKIT is not set |
687 | # CONFIG_USB_PHIDGETSERVO is not set | 872 | # CONFIG_USB_PHIDGETSERVO is not set |
688 | # CONFIG_USB_IDMOUSE is not set | 873 | # CONFIG_USB_IDMOUSE is not set |
874 | # CONFIG_USB_LD is not set | ||
689 | # CONFIG_USB_TEST is not set | 875 | # CONFIG_USB_TEST is not set |
690 | 876 | ||
691 | # | 877 | # |
692 | # USB ATM/DSL drivers | 878 | # USB DSL modem support |
693 | # | 879 | # |
694 | 880 | ||
695 | # | 881 | # |
696 | # USB Gadget Support | 882 | # USB Gadget Support |
697 | # | 883 | # |
698 | # CONFIG_USB_GADGET is not set | 884 | CONFIG_USB_GADGET=y |
885 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
886 | CONFIG_USB_GADGET_SELECTED=y | ||
887 | # CONFIG_USB_GADGET_NET2280 is not set | ||
888 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
889 | # CONFIG_USB_GADGET_GOKU is not set | ||
890 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
891 | CONFIG_USB_GADGET_LH7=y | ||
892 | CONFIG_USB_LH7=y | ||
893 | # CONFIG_USB_GADGET_OMAP is not set | ||
894 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
895 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
896 | CONFIG_USB_ZERO=y | ||
897 | # CONFIG_USB_ETH is not set | ||
898 | # CONFIG_USB_GADGETFS is not set | ||
899 | # CONFIG_USB_FILE_STORAGE is not set | ||
900 | # CONFIG_USB_G_SERIAL is not set | ||
699 | 901 | ||
700 | # | 902 | # |
701 | # MMC/SD Card support | 903 | # MMC/SD Card support |
@@ -707,6 +909,7 @@ CONFIG_USB_MON=y | |||
707 | # | 909 | # |
708 | CONFIG_EXT2_FS=y | 910 | CONFIG_EXT2_FS=y |
709 | # CONFIG_EXT2_FS_XATTR is not set | 911 | # CONFIG_EXT2_FS_XATTR is not set |
912 | # CONFIG_EXT2_FS_XIP is not set | ||
710 | CONFIG_EXT3_FS=y | 913 | CONFIG_EXT3_FS=y |
711 | CONFIG_EXT3_FS_XATTR=y | 914 | CONFIG_EXT3_FS_XATTR=y |
712 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 915 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
@@ -716,17 +919,17 @@ CONFIG_JBD=y | |||
716 | CONFIG_FS_MBCACHE=y | 919 | CONFIG_FS_MBCACHE=y |
717 | # CONFIG_REISERFS_FS is not set | 920 | # CONFIG_REISERFS_FS is not set |
718 | # CONFIG_JFS_FS is not set | 921 | # CONFIG_JFS_FS is not set |
719 | 922 | # CONFIG_FS_POSIX_ACL is not set | |
720 | # | ||
721 | # XFS support | ||
722 | # | ||
723 | # CONFIG_XFS_FS is not set | 923 | # CONFIG_XFS_FS is not set |
924 | # CONFIG_OCFS2_FS is not set | ||
724 | # CONFIG_MINIX_FS is not set | 925 | # CONFIG_MINIX_FS is not set |
725 | # CONFIG_ROMFS_FS is not set | 926 | # CONFIG_ROMFS_FS is not set |
927 | CONFIG_INOTIFY=y | ||
726 | # CONFIG_QUOTA is not set | 928 | # CONFIG_QUOTA is not set |
727 | CONFIG_DNOTIFY=y | 929 | CONFIG_DNOTIFY=y |
728 | # CONFIG_AUTOFS_FS is not set | 930 | # CONFIG_AUTOFS_FS is not set |
729 | # CONFIG_AUTOFS4_FS is not set | 931 | # CONFIG_AUTOFS4_FS is not set |
932 | # CONFIG_FUSE_FS is not set | ||
730 | 933 | ||
731 | # | 934 | # |
732 | # CD-ROM/DVD Filesystems | 935 | # CD-ROM/DVD Filesystems |
@@ -749,12 +952,11 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | |||
749 | # | 952 | # |
750 | CONFIG_PROC_FS=y | 953 | CONFIG_PROC_FS=y |
751 | CONFIG_SYSFS=y | 954 | CONFIG_SYSFS=y |
752 | # CONFIG_DEVFS_FS is not set | ||
753 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
754 | CONFIG_TMPFS=y | 955 | CONFIG_TMPFS=y |
755 | # CONFIG_TMPFS_XATTR is not set | ||
756 | # CONFIG_HUGETLB_PAGE is not set | 956 | # CONFIG_HUGETLB_PAGE is not set |
757 | CONFIG_RAMFS=y | 957 | CONFIG_RAMFS=y |
958 | # CONFIG_RELAYFS_FS is not set | ||
959 | # CONFIG_CONFIGFS_FS is not set | ||
758 | 960 | ||
759 | # | 961 | # |
760 | # Miscellaneous filesystems | 962 | # Miscellaneous filesystems |
@@ -769,8 +971,8 @@ CONFIG_RAMFS=y | |||
769 | # CONFIG_JFFS_FS is not set | 971 | # CONFIG_JFFS_FS is not set |
770 | CONFIG_JFFS2_FS=y | 972 | CONFIG_JFFS2_FS=y |
771 | CONFIG_JFFS2_FS_DEBUG=0 | 973 | CONFIG_JFFS2_FS_DEBUG=0 |
772 | # CONFIG_JFFS2_FS_NAND is not set | 974 | CONFIG_JFFS2_FS_WRITEBUFFER=y |
773 | # CONFIG_JFFS2_FS_NOR_ECC is not set | 975 | # CONFIG_JFFS2_SUMMARY is not set |
774 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | 976 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set |
775 | CONFIG_JFFS2_ZLIB=y | 977 | CONFIG_JFFS2_ZLIB=y |
776 | CONFIG_JFFS2_RTIME=y | 978 | CONFIG_JFFS2_RTIME=y |
@@ -787,12 +989,14 @@ CONFIG_CRAMFS=y | |||
787 | # | 989 | # |
788 | CONFIG_NFS_FS=y | 990 | CONFIG_NFS_FS=y |
789 | CONFIG_NFS_V3=y | 991 | CONFIG_NFS_V3=y |
992 | # CONFIG_NFS_V3_ACL is not set | ||
790 | # CONFIG_NFS_V4 is not set | 993 | # CONFIG_NFS_V4 is not set |
791 | # CONFIG_NFS_DIRECTIO is not set | 994 | # CONFIG_NFS_DIRECTIO is not set |
792 | # CONFIG_NFSD is not set | 995 | # CONFIG_NFSD is not set |
793 | CONFIG_ROOT_NFS=y | 996 | CONFIG_ROOT_NFS=y |
794 | CONFIG_LOCKD=y | 997 | CONFIG_LOCKD=y |
795 | CONFIG_LOCKD_V4=y | 998 | CONFIG_LOCKD_V4=y |
999 | CONFIG_NFS_COMMON=y | ||
796 | CONFIG_SUNRPC=y | 1000 | CONFIG_SUNRPC=y |
797 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 1001 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
798 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1002 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
@@ -801,6 +1005,7 @@ CONFIG_SUNRPC=y | |||
801 | # CONFIG_NCP_FS is not set | 1005 | # CONFIG_NCP_FS is not set |
802 | # CONFIG_CODA_FS is not set | 1006 | # CONFIG_CODA_FS is not set |
803 | # CONFIG_AFS_FS is not set | 1007 | # CONFIG_AFS_FS is not set |
1008 | # CONFIG_9P_FS is not set | ||
804 | 1009 | ||
805 | # | 1010 | # |
806 | # Partition Types | 1011 | # Partition Types |
@@ -820,6 +1025,7 @@ CONFIG_MSDOS_PARTITION=y | |||
820 | # CONFIG_SGI_PARTITION is not set | 1025 | # CONFIG_SGI_PARTITION is not set |
821 | # CONFIG_ULTRIX_PARTITION is not set | 1026 | # CONFIG_ULTRIX_PARTITION is not set |
822 | # CONFIG_SUN_PARTITION is not set | 1027 | # CONFIG_SUN_PARTITION is not set |
1028 | # CONFIG_KARMA_PARTITION is not set | ||
823 | # CONFIG_EFI_PARTITION is not set | 1029 | # CONFIG_EFI_PARTITION is not set |
824 | 1030 | ||
825 | # | 1031 | # |
@@ -875,19 +1081,24 @@ CONFIG_NLS_DEFAULT="iso8859-1" | |||
875 | # Kernel hacking | 1081 | # Kernel hacking |
876 | # | 1082 | # |
877 | # CONFIG_PRINTK_TIME is not set | 1083 | # CONFIG_PRINTK_TIME is not set |
878 | CONFIG_DEBUG_KERNEL=y | ||
879 | CONFIG_MAGIC_SYSRQ=y | 1084 | CONFIG_MAGIC_SYSRQ=y |
880 | CONFIG_LOG_BUF_SHIFT=14 | 1085 | CONFIG_DEBUG_KERNEL=y |
1086 | CONFIG_LOG_BUF_SHIFT=16 | ||
1087 | CONFIG_DETECT_SOFTLOCKUP=y | ||
881 | # CONFIG_SCHEDSTATS is not set | 1088 | # CONFIG_SCHEDSTATS is not set |
882 | # CONFIG_DEBUG_SLAB is not set | 1089 | # CONFIG_DEBUG_SLAB is not set |
883 | CONFIG_DEBUG_PREEMPT=y | 1090 | CONFIG_DEBUG_PREEMPT=y |
1091 | CONFIG_DEBUG_MUTEXES=y | ||
884 | # CONFIG_DEBUG_SPINLOCK is not set | 1092 | # CONFIG_DEBUG_SPINLOCK is not set |
885 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 1093 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
886 | # CONFIG_DEBUG_KOBJECT is not set | 1094 | # CONFIG_DEBUG_KOBJECT is not set |
887 | CONFIG_DEBUG_BUGVERBOSE=y | 1095 | CONFIG_DEBUG_BUGVERBOSE=y |
888 | CONFIG_DEBUG_INFO=y | 1096 | CONFIG_DEBUG_INFO=y |
889 | # CONFIG_DEBUG_FS is not set | 1097 | # CONFIG_DEBUG_FS is not set |
1098 | # CONFIG_DEBUG_VM is not set | ||
890 | CONFIG_FRAME_POINTER=y | 1099 | CONFIG_FRAME_POINTER=y |
1100 | CONFIG_FORCED_INLINING=y | ||
1101 | # CONFIG_RCU_TORTURE_TEST is not set | ||
891 | CONFIG_DEBUG_USER=y | 1102 | CONFIG_DEBUG_USER=y |
892 | # CONFIG_DEBUG_WAITQ is not set | 1103 | # CONFIG_DEBUG_WAITQ is not set |
893 | CONFIG_DEBUG_ERRORS=y | 1104 | CONFIG_DEBUG_ERRORS=y |
@@ -912,6 +1123,7 @@ CONFIG_DEBUG_ERRORS=y | |||
912 | # Library routines | 1123 | # Library routines |
913 | # | 1124 | # |
914 | # CONFIG_CRC_CCITT is not set | 1125 | # CONFIG_CRC_CCITT is not set |
1126 | # CONFIG_CRC16 is not set | ||
915 | CONFIG_CRC32=y | 1127 | CONFIG_CRC32=y |
916 | # CONFIG_LIBCRC32C is not set | 1128 | # CONFIG_LIBCRC32C is not set |
917 | CONFIG_ZLIB_INFLATE=y | 1129 | CONFIG_ZLIB_INFLATE=y |
diff --git a/arch/arm/configs/netx_defconfig b/arch/arm/configs/netx_defconfig new file mode 100644 index 000000000000..61115a773382 --- /dev/null +++ b/arch/arm/configs/netx_defconfig | |||
@@ -0,0 +1,926 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc6 | ||
4 | # Tue Jun 6 15:26:53 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | CONFIG_POSIX_MQUEUE=y | ||
29 | CONFIG_BSD_PROCESS_ACCT=y | ||
30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
31 | CONFIG_SYSCTL=y | ||
32 | # CONFIG_AUDIT is not set | ||
33 | CONFIG_IKCONFIG=y | ||
34 | CONFIG_IKCONFIG_PROC=y | ||
35 | # CONFIG_RELAY is not set | ||
36 | CONFIG_INITRAMFS_SOURCE="" | ||
37 | CONFIG_UID16=y | ||
38 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
39 | # CONFIG_EMBEDDED is not set | ||
40 | CONFIG_KALLSYMS=y | ||
41 | # CONFIG_KALLSYMS_ALL is not set | ||
42 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
43 | CONFIG_HOTPLUG=y | ||
44 | CONFIG_PRINTK=y | ||
45 | CONFIG_BUG=y | ||
46 | CONFIG_ELF_CORE=y | ||
47 | CONFIG_BASE_FULL=y | ||
48 | CONFIG_FUTEX=y | ||
49 | CONFIG_EPOLL=y | ||
50 | CONFIG_SHMEM=y | ||
51 | CONFIG_SLAB=y | ||
52 | # CONFIG_TINY_SHMEM is not set | ||
53 | CONFIG_BASE_SMALL=0 | ||
54 | # CONFIG_SLOB is not set | ||
55 | CONFIG_OBSOLETE_INTERMODULE=y | ||
56 | |||
57 | # | ||
58 | # Loadable module support | ||
59 | # | ||
60 | CONFIG_MODULES=y | ||
61 | CONFIG_MODULE_UNLOAD=y | ||
62 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
63 | # CONFIG_MODVERSIONS is not set | ||
64 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
65 | CONFIG_KMOD=y | ||
66 | |||
67 | # | ||
68 | # Block layer | ||
69 | # | ||
70 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
71 | |||
72 | # | ||
73 | # IO Schedulers | ||
74 | # | ||
75 | CONFIG_IOSCHED_NOOP=y | ||
76 | CONFIG_IOSCHED_AS=y | ||
77 | CONFIG_IOSCHED_DEADLINE=y | ||
78 | CONFIG_IOSCHED_CFQ=y | ||
79 | CONFIG_DEFAULT_AS=y | ||
80 | # CONFIG_DEFAULT_DEADLINE is not set | ||
81 | # CONFIG_DEFAULT_CFQ is not set | ||
82 | # CONFIG_DEFAULT_NOOP is not set | ||
83 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
84 | |||
85 | # | ||
86 | # System Type | ||
87 | # | ||
88 | # CONFIG_ARCH_CLPS7500 is not set | ||
89 | # CONFIG_ARCH_CLPS711X is not set | ||
90 | # CONFIG_ARCH_CO285 is not set | ||
91 | # CONFIG_ARCH_EBSA110 is not set | ||
92 | # CONFIG_ARCH_EP93XX is not set | ||
93 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
94 | # CONFIG_ARCH_INTEGRATOR is not set | ||
95 | # CONFIG_ARCH_IOP3XX is not set | ||
96 | # CONFIG_ARCH_IXP4XX is not set | ||
97 | # CONFIG_ARCH_IXP2000 is not set | ||
98 | # CONFIG_ARCH_IXP23XX is not set | ||
99 | # CONFIG_ARCH_L7200 is not set | ||
100 | # CONFIG_ARCH_PXA is not set | ||
101 | # CONFIG_ARCH_RPC is not set | ||
102 | # CONFIG_ARCH_SA1100 is not set | ||
103 | # CONFIG_ARCH_S3C2410 is not set | ||
104 | # CONFIG_ARCH_SHARK is not set | ||
105 | # CONFIG_ARCH_LH7A40X is not set | ||
106 | # CONFIG_ARCH_OMAP is not set | ||
107 | # CONFIG_ARCH_VERSATILE is not set | ||
108 | # CONFIG_ARCH_REALVIEW is not set | ||
109 | # CONFIG_ARCH_IMX is not set | ||
110 | # CONFIG_ARCH_H720X is not set | ||
111 | # CONFIG_ARCH_AAEC2000 is not set | ||
112 | # CONFIG_ARCH_AT91RM9200 is not set | ||
113 | CONFIG_ARCH_NETX=y | ||
114 | |||
115 | # | ||
116 | # NetX Implementations | ||
117 | # | ||
118 | CONFIG_MACH_NXDKN=y | ||
119 | CONFIG_MACH_NXDB500=y | ||
120 | CONFIG_MACH_NXEB500HMI=y | ||
121 | |||
122 | # | ||
123 | # Processor Type | ||
124 | # | ||
125 | CONFIG_CPU_32=y | ||
126 | CONFIG_CPU_ARM926T=y | ||
127 | CONFIG_CPU_32v5=y | ||
128 | CONFIG_CPU_ABRT_EV5TJ=y | ||
129 | CONFIG_CPU_CACHE_VIVT=y | ||
130 | CONFIG_CPU_COPY_V4WB=y | ||
131 | CONFIG_CPU_TLB_V4WBI=y | ||
132 | |||
133 | # | ||
134 | # Processor Features | ||
135 | # | ||
136 | CONFIG_ARM_THUMB=y | ||
137 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
138 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
139 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
140 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
141 | CONFIG_ARM_VIC=y | ||
142 | |||
143 | # | ||
144 | # Bus support | ||
145 | # | ||
146 | CONFIG_ARM_AMBA=y | ||
147 | |||
148 | # | ||
149 | # PCCARD (PCMCIA/CardBus) support | ||
150 | # | ||
151 | # CONFIG_PCCARD is not set | ||
152 | |||
153 | # | ||
154 | # Kernel Features | ||
155 | # | ||
156 | CONFIG_PREEMPT=y | ||
157 | # CONFIG_NO_IDLE_HZ is not set | ||
158 | CONFIG_HZ=100 | ||
159 | # CONFIG_AEABI is not set | ||
160 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
161 | CONFIG_SELECT_MEMORY_MODEL=y | ||
162 | CONFIG_FLATMEM_MANUAL=y | ||
163 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
164 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
165 | CONFIG_FLATMEM=y | ||
166 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
167 | # CONFIG_SPARSEMEM_STATIC is not set | ||
168 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
169 | CONFIG_ALIGNMENT_TRAP=y | ||
170 | |||
171 | # | ||
172 | # Boot options | ||
173 | # | ||
174 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
175 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
176 | CONFIG_CMDLINE="console=ttySMX0,115200" | ||
177 | # CONFIG_XIP_KERNEL is not set | ||
178 | |||
179 | # | ||
180 | # Floating point emulation | ||
181 | # | ||
182 | |||
183 | # | ||
184 | # At least one emulation must be selected | ||
185 | # | ||
186 | # CONFIG_FPE_NWFPE is not set | ||
187 | # CONFIG_FPE_FASTFPE is not set | ||
188 | # CONFIG_VFP is not set | ||
189 | |||
190 | # | ||
191 | # Userspace binary formats | ||
192 | # | ||
193 | CONFIG_BINFMT_ELF=y | ||
194 | # CONFIG_BINFMT_AOUT is not set | ||
195 | # CONFIG_BINFMT_MISC is not set | ||
196 | # CONFIG_ARTHUR is not set | ||
197 | |||
198 | # | ||
199 | # Power management options | ||
200 | # | ||
201 | # CONFIG_PM is not set | ||
202 | # CONFIG_APM is not set | ||
203 | |||
204 | # | ||
205 | # Networking | ||
206 | # | ||
207 | CONFIG_NET=y | ||
208 | |||
209 | # | ||
210 | # Networking options | ||
211 | # | ||
212 | # CONFIG_NETDEBUG is not set | ||
213 | CONFIG_PACKET=y | ||
214 | CONFIG_PACKET_MMAP=y | ||
215 | CONFIG_UNIX=y | ||
216 | CONFIG_XFRM=y | ||
217 | CONFIG_XFRM_USER=m | ||
218 | CONFIG_NET_KEY=y | ||
219 | CONFIG_INET=y | ||
220 | CONFIG_IP_MULTICAST=y | ||
221 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
222 | CONFIG_IP_FIB_HASH=y | ||
223 | CONFIG_IP_PNP=y | ||
224 | CONFIG_IP_PNP_DHCP=y | ||
225 | # CONFIG_IP_PNP_BOOTP is not set | ||
226 | # CONFIG_IP_PNP_RARP is not set | ||
227 | # CONFIG_NET_IPIP is not set | ||
228 | CONFIG_NET_IPGRE=m | ||
229 | # CONFIG_NET_IPGRE_BROADCAST is not set | ||
230 | # CONFIG_IP_MROUTE is not set | ||
231 | # CONFIG_ARPD is not set | ||
232 | CONFIG_SYN_COOKIES=y | ||
233 | CONFIG_INET_AH=y | ||
234 | CONFIG_INET_ESP=y | ||
235 | CONFIG_INET_IPCOMP=y | ||
236 | CONFIG_INET_XFRM_TUNNEL=y | ||
237 | CONFIG_INET_TUNNEL=y | ||
238 | CONFIG_INET_DIAG=y | ||
239 | CONFIG_INET_TCP_DIAG=y | ||
240 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
241 | CONFIG_TCP_CONG_BIC=y | ||
242 | |||
243 | # | ||
244 | # IP: Virtual Server Configuration | ||
245 | # | ||
246 | # CONFIG_IP_VS is not set | ||
247 | CONFIG_IPV6=m | ||
248 | # CONFIG_IPV6_PRIVACY is not set | ||
249 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
250 | CONFIG_INET6_AH=m | ||
251 | CONFIG_INET6_ESP=m | ||
252 | CONFIG_INET6_IPCOMP=m | ||
253 | CONFIG_INET6_XFRM_TUNNEL=m | ||
254 | CONFIG_INET6_TUNNEL=m | ||
255 | # CONFIG_IPV6_TUNNEL is not set | ||
256 | CONFIG_NETFILTER=y | ||
257 | # CONFIG_NETFILTER_DEBUG is not set | ||
258 | |||
259 | # | ||
260 | # Core Netfilter Configuration | ||
261 | # | ||
262 | # CONFIG_NETFILTER_NETLINK is not set | ||
263 | # CONFIG_NETFILTER_XTABLES is not set | ||
264 | |||
265 | # | ||
266 | # IP: Netfilter Configuration | ||
267 | # | ||
268 | CONFIG_IP_NF_CONNTRACK=m | ||
269 | # CONFIG_IP_NF_CT_ACCT is not set | ||
270 | # CONFIG_IP_NF_CONNTRACK_MARK is not set | ||
271 | # CONFIG_IP_NF_CONNTRACK_EVENTS is not set | ||
272 | # CONFIG_IP_NF_CT_PROTO_SCTP is not set | ||
273 | CONFIG_IP_NF_FTP=m | ||
274 | CONFIG_IP_NF_IRC=m | ||
275 | # CONFIG_IP_NF_NETBIOS_NS is not set | ||
276 | CONFIG_IP_NF_TFTP=m | ||
277 | CONFIG_IP_NF_AMANDA=m | ||
278 | # CONFIG_IP_NF_PPTP is not set | ||
279 | # CONFIG_IP_NF_H323 is not set | ||
280 | CONFIG_IP_NF_QUEUE=m | ||
281 | |||
282 | # | ||
283 | # IPv6: Netfilter Configuration (EXPERIMENTAL) | ||
284 | # | ||
285 | # CONFIG_IP6_NF_QUEUE is not set | ||
286 | |||
287 | # | ||
288 | # DCCP Configuration (EXPERIMENTAL) | ||
289 | # | ||
290 | # CONFIG_IP_DCCP is not set | ||
291 | |||
292 | # | ||
293 | # SCTP Configuration (EXPERIMENTAL) | ||
294 | # | ||
295 | # CONFIG_IP_SCTP is not set | ||
296 | |||
297 | # | ||
298 | # TIPC Configuration (EXPERIMENTAL) | ||
299 | # | ||
300 | # CONFIG_TIPC is not set | ||
301 | # CONFIG_ATM is not set | ||
302 | # CONFIG_BRIDGE is not set | ||
303 | # CONFIG_VLAN_8021Q is not set | ||
304 | # CONFIG_DECNET is not set | ||
305 | # CONFIG_LLC2 is not set | ||
306 | # CONFIG_IPX is not set | ||
307 | # CONFIG_ATALK is not set | ||
308 | # CONFIG_X25 is not set | ||
309 | # CONFIG_LAPB is not set | ||
310 | # CONFIG_NET_DIVERT is not set | ||
311 | # CONFIG_ECONET is not set | ||
312 | # CONFIG_WAN_ROUTER is not set | ||
313 | |||
314 | # | ||
315 | # QoS and/or fair queueing | ||
316 | # | ||
317 | # CONFIG_NET_SCHED is not set | ||
318 | |||
319 | # | ||
320 | # Network testing | ||
321 | # | ||
322 | CONFIG_NET_PKTGEN=m | ||
323 | # CONFIG_HAMRADIO is not set | ||
324 | # CONFIG_IRDA is not set | ||
325 | # CONFIG_BT is not set | ||
326 | # CONFIG_IEEE80211 is not set | ||
327 | |||
328 | # | ||
329 | # Device Drivers | ||
330 | # | ||
331 | |||
332 | # | ||
333 | # Generic Driver Options | ||
334 | # | ||
335 | CONFIG_STANDALONE=y | ||
336 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
337 | CONFIG_FW_LOADER=y | ||
338 | # CONFIG_DEBUG_DRIVER is not set | ||
339 | |||
340 | # | ||
341 | # Connector - unified userspace <-> kernelspace linker | ||
342 | # | ||
343 | # CONFIG_CONNECTOR is not set | ||
344 | |||
345 | # | ||
346 | # Memory Technology Devices (MTD) | ||
347 | # | ||
348 | CONFIG_MTD=y | ||
349 | # CONFIG_MTD_DEBUG is not set | ||
350 | # CONFIG_MTD_CONCAT is not set | ||
351 | CONFIG_MTD_PARTITIONS=y | ||
352 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
353 | CONFIG_MTD_CMDLINE_PARTS=y | ||
354 | # CONFIG_MTD_AFS_PARTS is not set | ||
355 | |||
356 | # | ||
357 | # User Modules And Translation Layers | ||
358 | # | ||
359 | CONFIG_MTD_CHAR=y | ||
360 | CONFIG_MTD_BLOCK=y | ||
361 | # CONFIG_FTL is not set | ||
362 | # CONFIG_NFTL is not set | ||
363 | # CONFIG_INFTL is not set | ||
364 | # CONFIG_RFD_FTL is not set | ||
365 | |||
366 | # | ||
367 | # RAM/ROM/Flash chip drivers | ||
368 | # | ||
369 | CONFIG_MTD_CFI=y | ||
370 | # CONFIG_MTD_JEDECPROBE is not set | ||
371 | CONFIG_MTD_GEN_PROBE=y | ||
372 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
373 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
374 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
375 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
376 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
377 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
378 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
379 | CONFIG_MTD_CFI_I1=y | ||
380 | CONFIG_MTD_CFI_I2=y | ||
381 | # CONFIG_MTD_CFI_I4 is not set | ||
382 | # CONFIG_MTD_CFI_I8 is not set | ||
383 | CONFIG_MTD_CFI_INTELEXT=y | ||
384 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
385 | # CONFIG_MTD_CFI_STAA is not set | ||
386 | CONFIG_MTD_CFI_UTIL=y | ||
387 | CONFIG_MTD_RAM=y | ||
388 | # CONFIG_MTD_ROM is not set | ||
389 | # CONFIG_MTD_ABSENT is not set | ||
390 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
391 | |||
392 | # | ||
393 | # Mapping drivers for chip access | ||
394 | # | ||
395 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
396 | # CONFIG_MTD_PHYSMAP is not set | ||
397 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
398 | CONFIG_MTD_PLATRAM=y | ||
399 | |||
400 | # | ||
401 | # Self-contained MTD device drivers | ||
402 | # | ||
403 | # CONFIG_MTD_SLRAM is not set | ||
404 | # CONFIG_MTD_PHRAM is not set | ||
405 | # CONFIG_MTD_MTDRAM is not set | ||
406 | # CONFIG_MTD_BLOCK2MTD is not set | ||
407 | |||
408 | # | ||
409 | # Disk-On-Chip Device Drivers | ||
410 | # | ||
411 | # CONFIG_MTD_DOC2000 is not set | ||
412 | # CONFIG_MTD_DOC2001 is not set | ||
413 | # CONFIG_MTD_DOC2001PLUS is not set | ||
414 | |||
415 | # | ||
416 | # NAND Flash Device Drivers | ||
417 | # | ||
418 | # CONFIG_MTD_NAND is not set | ||
419 | |||
420 | # | ||
421 | # OneNAND Flash Device Drivers | ||
422 | # | ||
423 | # CONFIG_MTD_ONENAND is not set | ||
424 | |||
425 | # | ||
426 | # Parallel port support | ||
427 | # | ||
428 | # CONFIG_PARPORT is not set | ||
429 | |||
430 | # | ||
431 | # Plug and Play support | ||
432 | # | ||
433 | |||
434 | # | ||
435 | # Block devices | ||
436 | # | ||
437 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
438 | CONFIG_BLK_DEV_LOOP=m | ||
439 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
440 | # CONFIG_BLK_DEV_NBD is not set | ||
441 | # CONFIG_BLK_DEV_RAM is not set | ||
442 | # CONFIG_BLK_DEV_INITRD is not set | ||
443 | # CONFIG_CDROM_PKTCDVD is not set | ||
444 | # CONFIG_ATA_OVER_ETH is not set | ||
445 | |||
446 | # | ||
447 | # SCSI device support | ||
448 | # | ||
449 | # CONFIG_RAID_ATTRS is not set | ||
450 | # CONFIG_SCSI is not set | ||
451 | |||
452 | # | ||
453 | # Multi-device support (RAID and LVM) | ||
454 | # | ||
455 | # CONFIG_MD is not set | ||
456 | |||
457 | # | ||
458 | # Fusion MPT device support | ||
459 | # | ||
460 | # CONFIG_FUSION is not set | ||
461 | |||
462 | # | ||
463 | # IEEE 1394 (FireWire) support | ||
464 | # | ||
465 | |||
466 | # | ||
467 | # I2O device support | ||
468 | # | ||
469 | |||
470 | # | ||
471 | # Network device support | ||
472 | # | ||
473 | CONFIG_NETDEVICES=y | ||
474 | # CONFIG_DUMMY is not set | ||
475 | # CONFIG_BONDING is not set | ||
476 | # CONFIG_EQUALIZER is not set | ||
477 | # CONFIG_TUN is not set | ||
478 | |||
479 | # | ||
480 | # PHY device support | ||
481 | # | ||
482 | # CONFIG_PHYLIB is not set | ||
483 | |||
484 | # | ||
485 | # Ethernet (10 or 100Mbit) | ||
486 | # | ||
487 | CONFIG_NET_ETHERNET=y | ||
488 | CONFIG_MII=y | ||
489 | # CONFIG_SMC91X is not set | ||
490 | CONFIG_NET_NETX=y | ||
491 | # CONFIG_DM9000 is not set | ||
492 | |||
493 | # | ||
494 | # Ethernet (1000 Mbit) | ||
495 | # | ||
496 | |||
497 | # | ||
498 | # Ethernet (10000 Mbit) | ||
499 | # | ||
500 | |||
501 | # | ||
502 | # Token Ring devices | ||
503 | # | ||
504 | |||
505 | # | ||
506 | # Wireless LAN (non-hamradio) | ||
507 | # | ||
508 | # CONFIG_NET_RADIO is not set | ||
509 | |||
510 | # | ||
511 | # Wan interfaces | ||
512 | # | ||
513 | # CONFIG_WAN is not set | ||
514 | # CONFIG_PPP is not set | ||
515 | # CONFIG_SLIP is not set | ||
516 | # CONFIG_SHAPER is not set | ||
517 | # CONFIG_NETCONSOLE is not set | ||
518 | # CONFIG_NETPOLL is not set | ||
519 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
520 | |||
521 | # | ||
522 | # ISDN subsystem | ||
523 | # | ||
524 | # CONFIG_ISDN is not set | ||
525 | |||
526 | # | ||
527 | # Input device support | ||
528 | # | ||
529 | CONFIG_INPUT=y | ||
530 | |||
531 | # | ||
532 | # Userland interfaces | ||
533 | # | ||
534 | CONFIG_INPUT_MOUSEDEV=y | ||
535 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
536 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
537 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
538 | # CONFIG_INPUT_JOYDEV is not set | ||
539 | # CONFIG_INPUT_TSDEV is not set | ||
540 | # CONFIG_INPUT_EVDEV is not set | ||
541 | # CONFIG_INPUT_EVBUG is not set | ||
542 | |||
543 | # | ||
544 | # Input Device Drivers | ||
545 | # | ||
546 | # CONFIG_INPUT_KEYBOARD is not set | ||
547 | # CONFIG_INPUT_MOUSE is not set | ||
548 | # CONFIG_INPUT_JOYSTICK is not set | ||
549 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
550 | # CONFIG_INPUT_MISC is not set | ||
551 | |||
552 | # | ||
553 | # Hardware I/O ports | ||
554 | # | ||
555 | CONFIG_SERIO=y | ||
556 | CONFIG_SERIO_SERPORT=y | ||
557 | # CONFIG_SERIO_AMBAKMI is not set | ||
558 | # CONFIG_SERIO_RAW is not set | ||
559 | # CONFIG_GAMEPORT is not set | ||
560 | |||
561 | # | ||
562 | # Character devices | ||
563 | # | ||
564 | CONFIG_VT=y | ||
565 | CONFIG_VT_CONSOLE=y | ||
566 | CONFIG_HW_CONSOLE=y | ||
567 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
568 | |||
569 | # | ||
570 | # Serial drivers | ||
571 | # | ||
572 | # CONFIG_SERIAL_8250 is not set | ||
573 | |||
574 | # | ||
575 | # Non-8250 serial port support | ||
576 | # | ||
577 | # CONFIG_SERIAL_AMBA_PL010 is not set | ||
578 | # CONFIG_SERIAL_AMBA_PL011 is not set | ||
579 | CONFIG_SERIAL_CORE=y | ||
580 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
581 | CONFIG_SERIAL_NETX=y | ||
582 | CONFIG_SERIAL_NETX_CONSOLE=y | ||
583 | CONFIG_UNIX98_PTYS=y | ||
584 | CONFIG_LEGACY_PTYS=y | ||
585 | CONFIG_LEGACY_PTY_COUNT=256 | ||
586 | |||
587 | # | ||
588 | # IPMI | ||
589 | # | ||
590 | # CONFIG_IPMI_HANDLER is not set | ||
591 | |||
592 | # | ||
593 | # Watchdog Cards | ||
594 | # | ||
595 | # CONFIG_WATCHDOG is not set | ||
596 | CONFIG_NVRAM=m | ||
597 | # CONFIG_DTLK is not set | ||
598 | # CONFIG_R3964 is not set | ||
599 | |||
600 | # | ||
601 | # Ftape, the floppy tape device driver | ||
602 | # | ||
603 | # CONFIG_RAW_DRIVER is not set | ||
604 | |||
605 | # | ||
606 | # TPM devices | ||
607 | # | ||
608 | # CONFIG_TCG_TPM is not set | ||
609 | # CONFIG_TELCLOCK is not set | ||
610 | |||
611 | # | ||
612 | # I2C support | ||
613 | # | ||
614 | # CONFIG_I2C is not set | ||
615 | |||
616 | # | ||
617 | # SPI support | ||
618 | # | ||
619 | # CONFIG_SPI is not set | ||
620 | # CONFIG_SPI_MASTER is not set | ||
621 | |||
622 | # | ||
623 | # Dallas's 1-wire bus | ||
624 | # | ||
625 | # CONFIG_W1 is not set | ||
626 | |||
627 | # | ||
628 | # Hardware Monitoring support | ||
629 | # | ||
630 | # CONFIG_HWMON is not set | ||
631 | # CONFIG_HWMON_VID is not set | ||
632 | |||
633 | # | ||
634 | # Misc devices | ||
635 | # | ||
636 | |||
637 | # | ||
638 | # LED devices | ||
639 | # | ||
640 | # CONFIG_NEW_LEDS is not set | ||
641 | |||
642 | # | ||
643 | # LED drivers | ||
644 | # | ||
645 | |||
646 | # | ||
647 | # LED Triggers | ||
648 | # | ||
649 | |||
650 | # | ||
651 | # Multimedia devices | ||
652 | # | ||
653 | # CONFIG_VIDEO_DEV is not set | ||
654 | CONFIG_VIDEO_V4L2=y | ||
655 | |||
656 | # | ||
657 | # Digital Video Broadcasting Devices | ||
658 | # | ||
659 | # CONFIG_DVB is not set | ||
660 | |||
661 | # | ||
662 | # Graphics support | ||
663 | # | ||
664 | CONFIG_FB=y | ||
665 | CONFIG_FB_CFB_FILLRECT=y | ||
666 | CONFIG_FB_CFB_COPYAREA=y | ||
667 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
668 | # CONFIG_FB_MACMODES is not set | ||
669 | CONFIG_FB_FIRMWARE_EDID=y | ||
670 | # CONFIG_FB_MODE_HELPERS is not set | ||
671 | # CONFIG_FB_TILEBLITTING is not set | ||
672 | CONFIG_FB_ARMCLCD=y | ||
673 | # CONFIG_FB_S1D13XXX is not set | ||
674 | # CONFIG_FB_VIRTUAL is not set | ||
675 | |||
676 | # | ||
677 | # Console display driver support | ||
678 | # | ||
679 | # CONFIG_VGA_CONSOLE is not set | ||
680 | CONFIG_DUMMY_CONSOLE=y | ||
681 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
682 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
683 | # CONFIG_FONTS is not set | ||
684 | CONFIG_FONT_8x8=y | ||
685 | CONFIG_FONT_8x16=y | ||
686 | |||
687 | # | ||
688 | # Logo configuration | ||
689 | # | ||
690 | CONFIG_LOGO=y | ||
691 | CONFIG_LOGO_LINUX_MONO=y | ||
692 | CONFIG_LOGO_LINUX_VGA16=y | ||
693 | CONFIG_LOGO_LINUX_CLUT224=y | ||
694 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
695 | |||
696 | # | ||
697 | # Sound | ||
698 | # | ||
699 | # CONFIG_SOUND is not set | ||
700 | |||
701 | # | ||
702 | # USB support | ||
703 | # | ||
704 | CONFIG_USB_ARCH_HAS_HCD=y | ||
705 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
706 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
707 | # CONFIG_USB is not set | ||
708 | |||
709 | # | ||
710 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
711 | # | ||
712 | |||
713 | # | ||
714 | # USB Gadget Support | ||
715 | # | ||
716 | # CONFIG_USB_GADGET is not set | ||
717 | |||
718 | # | ||
719 | # MMC/SD Card support | ||
720 | # | ||
721 | # CONFIG_MMC is not set | ||
722 | |||
723 | # | ||
724 | # Real Time Clock | ||
725 | # | ||
726 | CONFIG_RTC_LIB=y | ||
727 | CONFIG_RTC_CLASS=m | ||
728 | |||
729 | # | ||
730 | # RTC interfaces | ||
731 | # | ||
732 | CONFIG_RTC_INTF_SYSFS=m | ||
733 | CONFIG_RTC_INTF_PROC=m | ||
734 | CONFIG_RTC_INTF_DEV=m | ||
735 | |||
736 | # | ||
737 | # RTC drivers | ||
738 | # | ||
739 | # CONFIG_RTC_DRV_M48T86 is not set | ||
740 | CONFIG_RTC_DRV_NETX=m | ||
741 | # CONFIG_RTC_DRV_TEST is not set | ||
742 | |||
743 | # | ||
744 | # File systems | ||
745 | # | ||
746 | # CONFIG_EXT2_FS is not set | ||
747 | # CONFIG_EXT3_FS is not set | ||
748 | # CONFIG_REISERFS_FS is not set | ||
749 | # CONFIG_JFS_FS is not set | ||
750 | # CONFIG_FS_POSIX_ACL is not set | ||
751 | # CONFIG_XFS_FS is not set | ||
752 | # CONFIG_OCFS2_FS is not set | ||
753 | # CONFIG_MINIX_FS is not set | ||
754 | # CONFIG_ROMFS_FS is not set | ||
755 | CONFIG_INOTIFY=y | ||
756 | # CONFIG_QUOTA is not set | ||
757 | CONFIG_DNOTIFY=y | ||
758 | # CONFIG_AUTOFS_FS is not set | ||
759 | # CONFIG_AUTOFS4_FS is not set | ||
760 | # CONFIG_FUSE_FS is not set | ||
761 | |||
762 | # | ||
763 | # CD-ROM/DVD Filesystems | ||
764 | # | ||
765 | # CONFIG_ISO9660_FS is not set | ||
766 | # CONFIG_UDF_FS is not set | ||
767 | |||
768 | # | ||
769 | # DOS/FAT/NT Filesystems | ||
770 | # | ||
771 | # CONFIG_MSDOS_FS is not set | ||
772 | # CONFIG_VFAT_FS is not set | ||
773 | # CONFIG_NTFS_FS is not set | ||
774 | |||
775 | # | ||
776 | # Pseudo filesystems | ||
777 | # | ||
778 | CONFIG_PROC_FS=y | ||
779 | CONFIG_SYSFS=y | ||
780 | CONFIG_TMPFS=y | ||
781 | # CONFIG_HUGETLB_PAGE is not set | ||
782 | CONFIG_RAMFS=y | ||
783 | # CONFIG_CONFIGFS_FS is not set | ||
784 | |||
785 | # | ||
786 | # Miscellaneous filesystems | ||
787 | # | ||
788 | # CONFIG_ADFS_FS is not set | ||
789 | # CONFIG_AFFS_FS is not set | ||
790 | # CONFIG_HFS_FS is not set | ||
791 | # CONFIG_HFSPLUS_FS is not set | ||
792 | # CONFIG_BEFS_FS is not set | ||
793 | # CONFIG_BFS_FS is not set | ||
794 | # CONFIG_EFS_FS is not set | ||
795 | # CONFIG_JFFS_FS is not set | ||
796 | CONFIG_JFFS2_FS=y | ||
797 | CONFIG_JFFS2_FS_DEBUG=0 | ||
798 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
799 | # CONFIG_JFFS2_SUMMARY is not set | ||
800 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
801 | CONFIG_JFFS2_ZLIB=y | ||
802 | CONFIG_JFFS2_RTIME=y | ||
803 | # CONFIG_JFFS2_RUBIN is not set | ||
804 | # CONFIG_CRAMFS is not set | ||
805 | # CONFIG_VXFS_FS is not set | ||
806 | # CONFIG_HPFS_FS is not set | ||
807 | # CONFIG_QNX4FS_FS is not set | ||
808 | # CONFIG_SYSV_FS is not set | ||
809 | # CONFIG_UFS_FS is not set | ||
810 | |||
811 | # | ||
812 | # Network File Systems | ||
813 | # | ||
814 | CONFIG_NFS_FS=y | ||
815 | CONFIG_NFS_V3=y | ||
816 | # CONFIG_NFS_V3_ACL is not set | ||
817 | CONFIG_NFS_V4=y | ||
818 | CONFIG_NFS_DIRECTIO=y | ||
819 | # CONFIG_NFSD is not set | ||
820 | CONFIG_ROOT_NFS=y | ||
821 | CONFIG_LOCKD=y | ||
822 | CONFIG_LOCKD_V4=y | ||
823 | CONFIG_NFS_COMMON=y | ||
824 | CONFIG_SUNRPC=y | ||
825 | CONFIG_SUNRPC_GSS=y | ||
826 | CONFIG_RPCSEC_GSS_KRB5=y | ||
827 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
828 | # CONFIG_SMB_FS is not set | ||
829 | # CONFIG_CIFS is not set | ||
830 | # CONFIG_NCP_FS is not set | ||
831 | # CONFIG_CODA_FS is not set | ||
832 | # CONFIG_AFS_FS is not set | ||
833 | # CONFIG_9P_FS is not set | ||
834 | |||
835 | # | ||
836 | # Partition Types | ||
837 | # | ||
838 | # CONFIG_PARTITION_ADVANCED is not set | ||
839 | CONFIG_MSDOS_PARTITION=y | ||
840 | |||
841 | # | ||
842 | # Native Language Support | ||
843 | # | ||
844 | # CONFIG_NLS is not set | ||
845 | |||
846 | # | ||
847 | # Profiling support | ||
848 | # | ||
849 | # CONFIG_PROFILING is not set | ||
850 | |||
851 | # | ||
852 | # Kernel hacking | ||
853 | # | ||
854 | # CONFIG_PRINTK_TIME is not set | ||
855 | CONFIG_MAGIC_SYSRQ=y | ||
856 | CONFIG_DEBUG_KERNEL=y | ||
857 | CONFIG_LOG_BUF_SHIFT=17 | ||
858 | CONFIG_DETECT_SOFTLOCKUP=y | ||
859 | # CONFIG_SCHEDSTATS is not set | ||
860 | # CONFIG_DEBUG_SLAB is not set | ||
861 | CONFIG_DEBUG_PREEMPT=y | ||
862 | # CONFIG_DEBUG_MUTEXES is not set | ||
863 | # CONFIG_DEBUG_SPINLOCK is not set | ||
864 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
865 | # CONFIG_DEBUG_KOBJECT is not set | ||
866 | CONFIG_DEBUG_BUGVERBOSE=y | ||
867 | # CONFIG_DEBUG_INFO is not set | ||
868 | # CONFIG_DEBUG_FS is not set | ||
869 | # CONFIG_DEBUG_VM is not set | ||
870 | CONFIG_FRAME_POINTER=y | ||
871 | # CONFIG_UNWIND_INFO is not set | ||
872 | CONFIG_FORCED_INLINING=y | ||
873 | # CONFIG_RCU_TORTURE_TEST is not set | ||
874 | # CONFIG_DEBUG_USER is not set | ||
875 | # CONFIG_DEBUG_WAITQ is not set | ||
876 | CONFIG_DEBUG_ERRORS=y | ||
877 | # CONFIG_DEBUG_LL is not set | ||
878 | |||
879 | # | ||
880 | # Security options | ||
881 | # | ||
882 | # CONFIG_KEYS is not set | ||
883 | # CONFIG_SECURITY is not set | ||
884 | |||
885 | # | ||
886 | # Cryptographic options | ||
887 | # | ||
888 | CONFIG_CRYPTO=y | ||
889 | CONFIG_CRYPTO_HMAC=y | ||
890 | CONFIG_CRYPTO_NULL=m | ||
891 | CONFIG_CRYPTO_MD4=m | ||
892 | CONFIG_CRYPTO_MD5=y | ||
893 | CONFIG_CRYPTO_SHA1=y | ||
894 | CONFIG_CRYPTO_SHA256=m | ||
895 | CONFIG_CRYPTO_SHA512=m | ||
896 | # CONFIG_CRYPTO_WP512 is not set | ||
897 | # CONFIG_CRYPTO_TGR192 is not set | ||
898 | CONFIG_CRYPTO_DES=y | ||
899 | CONFIG_CRYPTO_BLOWFISH=m | ||
900 | CONFIG_CRYPTO_TWOFISH=m | ||
901 | CONFIG_CRYPTO_SERPENT=m | ||
902 | CONFIG_CRYPTO_AES=m | ||
903 | CONFIG_CRYPTO_CAST5=m | ||
904 | CONFIG_CRYPTO_CAST6=m | ||
905 | # CONFIG_CRYPTO_TEA is not set | ||
906 | CONFIG_CRYPTO_ARC4=m | ||
907 | # CONFIG_CRYPTO_KHAZAD is not set | ||
908 | # CONFIG_CRYPTO_ANUBIS is not set | ||
909 | CONFIG_CRYPTO_DEFLATE=y | ||
910 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
911 | CONFIG_CRYPTO_CRC32C=m | ||
912 | # CONFIG_CRYPTO_TEST is not set | ||
913 | |||
914 | # | ||
915 | # Hardware crypto devices | ||
916 | # | ||
917 | |||
918 | # | ||
919 | # Library routines | ||
920 | # | ||
921 | CONFIG_CRC_CCITT=m | ||
922 | # CONFIG_CRC16 is not set | ||
923 | CONFIG_CRC32=y | ||
924 | CONFIG_LIBCRC32C=m | ||
925 | CONFIG_ZLIB_INFLATE=y | ||
926 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/pnx4008_defconfig b/arch/arm/configs/pnx4008_defconfig new file mode 100644 index 000000000000..8a078d479d57 --- /dev/null +++ b/arch/arm/configs/pnx4008_defconfig | |||
@@ -0,0 +1,2072 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.17-rc1 | ||
4 | # Thu Apr 6 17:05:58 2006 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | CONFIG_GENERIC_HWEIGHT=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | CONFIG_LOCK_KERNEL=y | ||
19 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_LOCALVERSION_AUTO=y | ||
26 | CONFIG_SWAP=y | ||
27 | CONFIG_SYSVIPC=y | ||
28 | CONFIG_POSIX_MQUEUE=y | ||
29 | CONFIG_BSD_PROCESS_ACCT=y | ||
30 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
31 | CONFIG_SYSCTL=y | ||
32 | CONFIG_AUDIT=y | ||
33 | # CONFIG_IKCONFIG is not set | ||
34 | # CONFIG_RELAY is not set | ||
35 | CONFIG_INITRAMFS_SOURCE="" | ||
36 | CONFIG_UID16=y | ||
37 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
38 | CONFIG_EMBEDDED=y | ||
39 | CONFIG_KALLSYMS=y | ||
40 | # CONFIG_KALLSYMS_ALL is not set | ||
41 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
42 | CONFIG_HOTPLUG=y | ||
43 | CONFIG_PRINTK=y | ||
44 | CONFIG_BUG=y | ||
45 | CONFIG_ELF_CORE=y | ||
46 | CONFIG_BASE_FULL=y | ||
47 | CONFIG_FUTEX=y | ||
48 | CONFIG_EPOLL=y | ||
49 | CONFIG_SHMEM=y | ||
50 | CONFIG_SLAB=y | ||
51 | # CONFIG_TINY_SHMEM is not set | ||
52 | CONFIG_BASE_SMALL=0 | ||
53 | # CONFIG_SLOB is not set | ||
54 | CONFIG_OBSOLETE_INTERMODULE=m | ||
55 | |||
56 | # | ||
57 | # Loadable module support | ||
58 | # | ||
59 | CONFIG_MODULES=y | ||
60 | CONFIG_MODULE_UNLOAD=y | ||
61 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
62 | CONFIG_MODVERSIONS=y | ||
63 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
64 | CONFIG_KMOD=y | ||
65 | |||
66 | # | ||
67 | # Block layer | ||
68 | # | ||
69 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
70 | |||
71 | # | ||
72 | # IO Schedulers | ||
73 | # | ||
74 | CONFIG_IOSCHED_NOOP=y | ||
75 | CONFIG_IOSCHED_AS=y | ||
76 | CONFIG_IOSCHED_DEADLINE=y | ||
77 | CONFIG_IOSCHED_CFQ=y | ||
78 | CONFIG_DEFAULT_AS=y | ||
79 | # CONFIG_DEFAULT_DEADLINE is not set | ||
80 | # CONFIG_DEFAULT_CFQ is not set | ||
81 | # CONFIG_DEFAULT_NOOP is not set | ||
82 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
83 | |||
84 | # | ||
85 | # System Type | ||
86 | # | ||
87 | # CONFIG_ARCH_CLPS7500 is not set | ||
88 | # CONFIG_ARCH_CLPS711X is not set | ||
89 | # CONFIG_ARCH_CO285 is not set | ||
90 | # CONFIG_ARCH_EBSA110 is not set | ||
91 | # CONFIG_ARCH_EP93XX is not set | ||
92 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
93 | # CONFIG_ARCH_INTEGRATOR is not set | ||
94 | # CONFIG_ARCH_IOP3XX is not set | ||
95 | # CONFIG_ARCH_IXP4XX is not set | ||
96 | # CONFIG_ARCH_IXP2000 is not set | ||
97 | # CONFIG_ARCH_IXP23XX is not set | ||
98 | # CONFIG_ARCH_L7200 is not set | ||
99 | # CONFIG_ARCH_PXA is not set | ||
100 | # CONFIG_ARCH_RPC is not set | ||
101 | # CONFIG_ARCH_SA1100 is not set | ||
102 | # CONFIG_ARCH_S3C2410 is not set | ||
103 | # CONFIG_ARCH_SHARK is not set | ||
104 | # CONFIG_ARCH_LH7A40X is not set | ||
105 | # CONFIG_ARCH_OMAP is not set | ||
106 | # CONFIG_ARCH_VERSATILE is not set | ||
107 | # CONFIG_ARCH_REALVIEW is not set | ||
108 | # CONFIG_ARCH_IMX is not set | ||
109 | # CONFIG_ARCH_H720X is not set | ||
110 | # CONFIG_ARCH_AAEC2000 is not set | ||
111 | # CONFIG_ARCH_AT91RM9200 is not set | ||
112 | CONFIG_ARCH_PNX4008=y | ||
113 | |||
114 | # | ||
115 | # Processor Type | ||
116 | # | ||
117 | CONFIG_CPU_32=y | ||
118 | CONFIG_CPU_ARM926T=y | ||
119 | CONFIG_CPU_32v5=y | ||
120 | CONFIG_CPU_ABRT_EV5TJ=y | ||
121 | CONFIG_CPU_CACHE_VIVT=y | ||
122 | CONFIG_CPU_COPY_V4WB=y | ||
123 | CONFIG_CPU_TLB_V4WBI=y | ||
124 | |||
125 | # | ||
126 | # Processor Features | ||
127 | # | ||
128 | CONFIG_ARM_THUMB=y | ||
129 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
130 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
131 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
132 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
133 | |||
134 | # | ||
135 | # Bus support | ||
136 | # | ||
137 | |||
138 | # | ||
139 | # PCCARD (PCMCIA/CardBus) support | ||
140 | # | ||
141 | CONFIG_PCCARD=m | ||
142 | # CONFIG_PCMCIA_DEBUG is not set | ||
143 | CONFIG_PCMCIA=m | ||
144 | CONFIG_PCMCIA_LOAD_CIS=y | ||
145 | CONFIG_PCMCIA_IOCTL=y | ||
146 | |||
147 | # | ||
148 | # PC-card bridges | ||
149 | # | ||
150 | |||
151 | # | ||
152 | # Kernel Features | ||
153 | # | ||
154 | CONFIG_PREEMPT=y | ||
155 | # CONFIG_NO_IDLE_HZ is not set | ||
156 | CONFIG_HZ=100 | ||
157 | # CONFIG_AEABI is not set | ||
158 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
159 | CONFIG_SELECT_MEMORY_MODEL=y | ||
160 | CONFIG_FLATMEM_MANUAL=y | ||
161 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
162 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
163 | CONFIG_FLATMEM=y | ||
164 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
165 | # CONFIG_SPARSEMEM_STATIC is not set | ||
166 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
167 | CONFIG_ALIGNMENT_TRAP=y | ||
168 | |||
169 | # | ||
170 | # Boot options | ||
171 | # | ||
172 | CONFIG_ZBOOT_ROM_TEXT=0 | ||
173 | CONFIG_ZBOOT_ROM_BSS=0 | ||
174 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200" | ||
175 | # CONFIG_XIP_KERNEL is not set | ||
176 | |||
177 | # | ||
178 | # Floating point emulation | ||
179 | # | ||
180 | |||
181 | # | ||
182 | # At least one emulation must be selected | ||
183 | # | ||
184 | # CONFIG_FPE_NWFPE is not set | ||
185 | # CONFIG_FPE_FASTFPE is not set | ||
186 | # CONFIG_VFP is not set | ||
187 | |||
188 | # | ||
189 | # Userspace binary formats | ||
190 | # | ||
191 | CONFIG_BINFMT_ELF=y | ||
192 | CONFIG_BINFMT_AOUT=m | ||
193 | CONFIG_BINFMT_MISC=m | ||
194 | # CONFIG_ARTHUR is not set | ||
195 | |||
196 | # | ||
197 | # Power management options | ||
198 | # | ||
199 | CONFIG_PM=y | ||
200 | CONFIG_PM_LEGACY=y | ||
201 | # CONFIG_PM_DEBUG is not set | ||
202 | CONFIG_APM=m | ||
203 | |||
204 | # | ||
205 | # Networking | ||
206 | # | ||
207 | CONFIG_NET=y | ||
208 | |||
209 | # | ||
210 | # Networking options | ||
211 | # | ||
212 | # CONFIG_NETDEBUG is not set | ||
213 | CONFIG_PACKET=m | ||
214 | CONFIG_PACKET_MMAP=y | ||
215 | CONFIG_UNIX=m | ||
216 | CONFIG_XFRM=y | ||
217 | CONFIG_XFRM_USER=m | ||
218 | CONFIG_NET_KEY=m | ||
219 | CONFIG_INET=y | ||
220 | CONFIG_IP_MULTICAST=y | ||
221 | CONFIG_IP_ADVANCED_ROUTER=y | ||
222 | CONFIG_ASK_IP_FIB_HASH=y | ||
223 | # CONFIG_IP_FIB_TRIE is not set | ||
224 | CONFIG_IP_FIB_HASH=y | ||
225 | CONFIG_IP_MULTIPLE_TABLES=y | ||
226 | CONFIG_IP_ROUTE_FWMARK=y | ||
227 | CONFIG_IP_ROUTE_MULTIPATH=y | ||
228 | # CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set | ||
229 | CONFIG_IP_ROUTE_VERBOSE=y | ||
230 | # CONFIG_IP_PNP is not set | ||
231 | CONFIG_NET_IPIP=m | ||
232 | CONFIG_NET_IPGRE=m | ||
233 | CONFIG_NET_IPGRE_BROADCAST=y | ||
234 | CONFIG_IP_MROUTE=y | ||
235 | CONFIG_IP_PIMSM_V1=y | ||
236 | CONFIG_IP_PIMSM_V2=y | ||
237 | # CONFIG_ARPD is not set | ||
238 | CONFIG_SYN_COOKIES=y | ||
239 | CONFIG_INET_AH=m | ||
240 | CONFIG_INET_ESP=m | ||
241 | CONFIG_INET_IPCOMP=m | ||
242 | CONFIG_INET_XFRM_TUNNEL=m | ||
243 | CONFIG_INET_TUNNEL=m | ||
244 | CONFIG_INET_DIAG=y | ||
245 | CONFIG_INET_TCP_DIAG=y | ||
246 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
247 | CONFIG_TCP_CONG_BIC=y | ||
248 | |||
249 | # | ||
250 | # IP: Virtual Server Configuration | ||
251 | # | ||
252 | CONFIG_IP_VS=m | ||
253 | # CONFIG_IP_VS_DEBUG is not set | ||
254 | CONFIG_IP_VS_TAB_BITS=12 | ||
255 | |||
256 | # | ||
257 | # IPVS transport protocol load balancing support | ||
258 | # | ||
259 | CONFIG_IP_VS_PROTO_TCP=y | ||
260 | CONFIG_IP_VS_PROTO_UDP=y | ||
261 | CONFIG_IP_VS_PROTO_ESP=y | ||
262 | CONFIG_IP_VS_PROTO_AH=y | ||
263 | |||
264 | # | ||
265 | # IPVS scheduler | ||
266 | # | ||
267 | CONFIG_IP_VS_RR=m | ||
268 | CONFIG_IP_VS_WRR=m | ||
269 | CONFIG_IP_VS_LC=m | ||
270 | CONFIG_IP_VS_WLC=m | ||
271 | CONFIG_IP_VS_LBLC=m | ||
272 | CONFIG_IP_VS_LBLCR=m | ||
273 | CONFIG_IP_VS_DH=m | ||
274 | CONFIG_IP_VS_SH=m | ||
275 | CONFIG_IP_VS_SED=m | ||
276 | CONFIG_IP_VS_NQ=m | ||
277 | |||
278 | # | ||
279 | # IPVS application helper | ||
280 | # | ||
281 | CONFIG_IP_VS_FTP=m | ||
282 | CONFIG_IPV6=m | ||
283 | CONFIG_IPV6_PRIVACY=y | ||
284 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
285 | CONFIG_INET6_AH=m | ||
286 | CONFIG_INET6_ESP=m | ||
287 | CONFIG_INET6_IPCOMP=m | ||
288 | CONFIG_INET6_XFRM_TUNNEL=m | ||
289 | CONFIG_INET6_TUNNEL=m | ||
290 | CONFIG_IPV6_TUNNEL=m | ||
291 | CONFIG_NETFILTER=y | ||
292 | # CONFIG_NETFILTER_DEBUG is not set | ||
293 | CONFIG_BRIDGE_NETFILTER=y | ||
294 | |||
295 | # | ||
296 | # Core Netfilter Configuration | ||
297 | # | ||
298 | # CONFIG_NETFILTER_NETLINK is not set | ||
299 | # CONFIG_NETFILTER_XTABLES is not set | ||
300 | |||
301 | # | ||
302 | # IP: Netfilter Configuration | ||
303 | # | ||
304 | CONFIG_IP_NF_CONNTRACK=m | ||
305 | CONFIG_IP_NF_CT_ACCT=y | ||
306 | CONFIG_IP_NF_CONNTRACK_MARK=y | ||
307 | # CONFIG_IP_NF_CONNTRACK_EVENTS is not set | ||
308 | CONFIG_IP_NF_CT_PROTO_SCTP=m | ||
309 | CONFIG_IP_NF_FTP=m | ||
310 | CONFIG_IP_NF_IRC=m | ||
311 | # CONFIG_IP_NF_NETBIOS_NS is not set | ||
312 | CONFIG_IP_NF_TFTP=m | ||
313 | CONFIG_IP_NF_AMANDA=m | ||
314 | # CONFIG_IP_NF_PPTP is not set | ||
315 | # CONFIG_IP_NF_H323 is not set | ||
316 | CONFIG_IP_NF_QUEUE=m | ||
317 | |||
318 | # | ||
319 | # IPv6: Netfilter Configuration (EXPERIMENTAL) | ||
320 | # | ||
321 | CONFIG_IP6_NF_QUEUE=m | ||
322 | |||
323 | # | ||
324 | # DECnet: Netfilter Configuration | ||
325 | # | ||
326 | CONFIG_DECNET_NF_GRABULATOR=m | ||
327 | |||
328 | # | ||
329 | # Bridge: Netfilter Configuration | ||
330 | # | ||
331 | CONFIG_BRIDGE_NF_EBTABLES=m | ||
332 | CONFIG_BRIDGE_EBT_BROUTE=m | ||
333 | CONFIG_BRIDGE_EBT_T_FILTER=m | ||
334 | CONFIG_BRIDGE_EBT_T_NAT=m | ||
335 | CONFIG_BRIDGE_EBT_802_3=m | ||
336 | CONFIG_BRIDGE_EBT_AMONG=m | ||
337 | CONFIG_BRIDGE_EBT_ARP=m | ||
338 | CONFIG_BRIDGE_EBT_IP=m | ||
339 | CONFIG_BRIDGE_EBT_LIMIT=m | ||
340 | CONFIG_BRIDGE_EBT_MARK=m | ||
341 | CONFIG_BRIDGE_EBT_PKTTYPE=m | ||
342 | CONFIG_BRIDGE_EBT_STP=m | ||
343 | CONFIG_BRIDGE_EBT_VLAN=m | ||
344 | CONFIG_BRIDGE_EBT_ARPREPLY=m | ||
345 | CONFIG_BRIDGE_EBT_DNAT=m | ||
346 | CONFIG_BRIDGE_EBT_MARK_T=m | ||
347 | CONFIG_BRIDGE_EBT_REDIRECT=m | ||
348 | CONFIG_BRIDGE_EBT_SNAT=m | ||
349 | CONFIG_BRIDGE_EBT_LOG=m | ||
350 | # CONFIG_BRIDGE_EBT_ULOG is not set | ||
351 | |||
352 | # | ||
353 | # DCCP Configuration (EXPERIMENTAL) | ||
354 | # | ||
355 | # CONFIG_IP_DCCP is not set | ||
356 | |||
357 | # | ||
358 | # SCTP Configuration (EXPERIMENTAL) | ||
359 | # | ||
360 | CONFIG_IP_SCTP=m | ||
361 | # CONFIG_SCTP_DBG_MSG is not set | ||
362 | # CONFIG_SCTP_DBG_OBJCNT is not set | ||
363 | # CONFIG_SCTP_HMAC_NONE is not set | ||
364 | # CONFIG_SCTP_HMAC_SHA1 is not set | ||
365 | CONFIG_SCTP_HMAC_MD5=y | ||
366 | |||
367 | # | ||
368 | # TIPC Configuration (EXPERIMENTAL) | ||
369 | # | ||
370 | # CONFIG_TIPC is not set | ||
371 | CONFIG_ATM=y | ||
372 | CONFIG_ATM_CLIP=y | ||
373 | # CONFIG_ATM_CLIP_NO_ICMP is not set | ||
374 | CONFIG_ATM_LANE=m | ||
375 | CONFIG_ATM_MPOA=m | ||
376 | CONFIG_ATM_BR2684=m | ||
377 | # CONFIG_ATM_BR2684_IPFILTER is not set | ||
378 | CONFIG_BRIDGE=m | ||
379 | CONFIG_VLAN_8021Q=m | ||
380 | CONFIG_DECNET=m | ||
381 | # CONFIG_DECNET_ROUTER is not set | ||
382 | CONFIG_LLC=m | ||
383 | CONFIG_LLC2=m | ||
384 | CONFIG_IPX=m | ||
385 | # CONFIG_IPX_INTERN is not set | ||
386 | CONFIG_ATALK=m | ||
387 | CONFIG_DEV_APPLETALK=y | ||
388 | CONFIG_IPDDP=m | ||
389 | CONFIG_IPDDP_ENCAP=y | ||
390 | CONFIG_IPDDP_DECAP=y | ||
391 | CONFIG_X25=m | ||
392 | CONFIG_LAPB=m | ||
393 | # CONFIG_NET_DIVERT is not set | ||
394 | CONFIG_ECONET=m | ||
395 | CONFIG_ECONET_AUNUDP=y | ||
396 | CONFIG_ECONET_NATIVE=y | ||
397 | CONFIG_WAN_ROUTER=m | ||
398 | |||
399 | # | ||
400 | # QoS and/or fair queueing | ||
401 | # | ||
402 | CONFIG_NET_SCHED=y | ||
403 | CONFIG_NET_SCH_CLK_JIFFIES=y | ||
404 | # CONFIG_NET_SCH_CLK_GETTIMEOFDAY is not set | ||
405 | # CONFIG_NET_SCH_CLK_CPU is not set | ||
406 | |||
407 | # | ||
408 | # Queueing/Scheduling | ||
409 | # | ||
410 | CONFIG_NET_SCH_CBQ=m | ||
411 | CONFIG_NET_SCH_HTB=m | ||
412 | CONFIG_NET_SCH_HFSC=m | ||
413 | CONFIG_NET_SCH_ATM=m | ||
414 | CONFIG_NET_SCH_PRIO=m | ||
415 | CONFIG_NET_SCH_RED=m | ||
416 | CONFIG_NET_SCH_SFQ=m | ||
417 | CONFIG_NET_SCH_TEQL=m | ||
418 | CONFIG_NET_SCH_TBF=m | ||
419 | CONFIG_NET_SCH_GRED=m | ||
420 | CONFIG_NET_SCH_DSMARK=m | ||
421 | CONFIG_NET_SCH_NETEM=m | ||
422 | CONFIG_NET_SCH_INGRESS=m | ||
423 | |||
424 | # | ||
425 | # Classification | ||
426 | # | ||
427 | CONFIG_NET_CLS=y | ||
428 | # CONFIG_NET_CLS_BASIC is not set | ||
429 | CONFIG_NET_CLS_TCINDEX=m | ||
430 | CONFIG_NET_CLS_ROUTE4=m | ||
431 | CONFIG_NET_CLS_ROUTE=y | ||
432 | CONFIG_NET_CLS_FW=m | ||
433 | CONFIG_NET_CLS_U32=m | ||
434 | # CONFIG_CLS_U32_PERF is not set | ||
435 | # CONFIG_CLS_U32_MARK is not set | ||
436 | CONFIG_NET_CLS_RSVP=m | ||
437 | CONFIG_NET_CLS_RSVP6=m | ||
438 | # CONFIG_NET_EMATCH is not set | ||
439 | # CONFIG_NET_CLS_ACT is not set | ||
440 | CONFIG_NET_CLS_POLICE=y | ||
441 | # CONFIG_NET_CLS_IND is not set | ||
442 | CONFIG_NET_ESTIMATOR=y | ||
443 | |||
444 | # | ||
445 | # Network testing | ||
446 | # | ||
447 | CONFIG_NET_PKTGEN=m | ||
448 | CONFIG_HAMRADIO=y | ||
449 | |||
450 | # | ||
451 | # Packet Radio protocols | ||
452 | # | ||
453 | CONFIG_AX25=m | ||
454 | # CONFIG_AX25_DAMA_SLAVE is not set | ||
455 | CONFIG_NETROM=m | ||
456 | CONFIG_ROSE=m | ||
457 | |||
458 | # | ||
459 | # AX.25 network device drivers | ||
460 | # | ||
461 | CONFIG_MKISS=m | ||
462 | CONFIG_6PACK=m | ||
463 | CONFIG_BPQETHER=m | ||
464 | CONFIG_BAYCOM_SER_FDX=m | ||
465 | CONFIG_BAYCOM_SER_HDX=m | ||
466 | CONFIG_BAYCOM_PAR=m | ||
467 | CONFIG_BAYCOM_EPP=m | ||
468 | CONFIG_YAM=m | ||
469 | CONFIG_IRDA=m | ||
470 | |||
471 | # | ||
472 | # IrDA protocols | ||
473 | # | ||
474 | CONFIG_IRLAN=m | ||
475 | CONFIG_IRNET=m | ||
476 | CONFIG_IRCOMM=m | ||
477 | # CONFIG_IRDA_ULTRA is not set | ||
478 | |||
479 | # | ||
480 | # IrDA options | ||
481 | # | ||
482 | CONFIG_IRDA_CACHE_LAST_LSAP=y | ||
483 | CONFIG_IRDA_FAST_RR=y | ||
484 | CONFIG_IRDA_DEBUG=y | ||
485 | |||
486 | # | ||
487 | # Infrared-port device drivers | ||
488 | # | ||
489 | |||
490 | # | ||
491 | # SIR device drivers | ||
492 | # | ||
493 | CONFIG_IRTTY_SIR=m | ||
494 | |||
495 | # | ||
496 | # Dongle support | ||
497 | # | ||
498 | CONFIG_DONGLE=y | ||
499 | CONFIG_ESI_DONGLE=m | ||
500 | CONFIG_ACTISYS_DONGLE=m | ||
501 | CONFIG_TEKRAM_DONGLE=m | ||
502 | # CONFIG_TOIM3232_DONGLE is not set | ||
503 | CONFIG_LITELINK_DONGLE=m | ||
504 | CONFIG_MA600_DONGLE=m | ||
505 | CONFIG_GIRBIL_DONGLE=m | ||
506 | CONFIG_MCP2120_DONGLE=m | ||
507 | CONFIG_OLD_BELKIN_DONGLE=m | ||
508 | CONFIG_ACT200L_DONGLE=m | ||
509 | |||
510 | # | ||
511 | # Old SIR device drivers | ||
512 | # | ||
513 | CONFIG_IRPORT_SIR=m | ||
514 | |||
515 | # | ||
516 | # Old Serial dongle support | ||
517 | # | ||
518 | # CONFIG_DONGLE_OLD is not set | ||
519 | |||
520 | # | ||
521 | # FIR device drivers | ||
522 | # | ||
523 | CONFIG_USB_IRDA=m | ||
524 | CONFIG_SIGMATEL_FIR=m | ||
525 | CONFIG_BT=m | ||
526 | CONFIG_BT_L2CAP=m | ||
527 | CONFIG_BT_SCO=m | ||
528 | CONFIG_BT_RFCOMM=m | ||
529 | CONFIG_BT_RFCOMM_TTY=y | ||
530 | CONFIG_BT_BNEP=m | ||
531 | CONFIG_BT_BNEP_MC_FILTER=y | ||
532 | CONFIG_BT_BNEP_PROTO_FILTER=y | ||
533 | CONFIG_BT_CMTP=m | ||
534 | CONFIG_BT_HIDP=m | ||
535 | |||
536 | # | ||
537 | # Bluetooth device drivers | ||
538 | # | ||
539 | CONFIG_BT_HCIUSB=m | ||
540 | CONFIG_BT_HCIUSB_SCO=y | ||
541 | CONFIG_BT_HCIUART=m | ||
542 | CONFIG_BT_HCIUART_H4=y | ||
543 | CONFIG_BT_HCIUART_BCSP=y | ||
544 | CONFIG_BT_HCIBCM203X=m | ||
545 | # CONFIG_BT_HCIBPA10X is not set | ||
546 | CONFIG_BT_HCIBFUSB=m | ||
547 | CONFIG_BT_HCIDTL1=m | ||
548 | CONFIG_BT_HCIBT3C=m | ||
549 | CONFIG_BT_HCIBLUECARD=m | ||
550 | CONFIG_BT_HCIBTUART=m | ||
551 | CONFIG_BT_HCIVHCI=m | ||
552 | CONFIG_IEEE80211=m | ||
553 | # CONFIG_IEEE80211_DEBUG is not set | ||
554 | # CONFIG_IEEE80211_CRYPT_WEP is not set | ||
555 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
556 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
557 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
558 | CONFIG_WIRELESS_EXT=y | ||
559 | |||
560 | # | ||
561 | # Device Drivers | ||
562 | # | ||
563 | |||
564 | # | ||
565 | # Generic Driver Options | ||
566 | # | ||
567 | CONFIG_STANDALONE=y | ||
568 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
569 | CONFIG_FW_LOADER=m | ||
570 | # CONFIG_DEBUG_DRIVER is not set | ||
571 | |||
572 | # | ||
573 | # Connector - unified userspace <-> kernelspace linker | ||
574 | # | ||
575 | # CONFIG_CONNECTOR is not set | ||
576 | |||
577 | # | ||
578 | # Memory Technology Devices (MTD) | ||
579 | # | ||
580 | CONFIG_MTD=m | ||
581 | # CONFIG_MTD_DEBUG is not set | ||
582 | CONFIG_MTD_CONCAT=m | ||
583 | CONFIG_MTD_PARTITIONS=y | ||
584 | CONFIG_MTD_REDBOOT_PARTS=m | ||
585 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | ||
586 | # CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set | ||
587 | # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set | ||
588 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
589 | # CONFIG_MTD_AFS_PARTS is not set | ||
590 | |||
591 | # | ||
592 | # User Modules And Translation Layers | ||
593 | # | ||
594 | CONFIG_MTD_CHAR=m | ||
595 | CONFIG_MTD_BLOCK=m | ||
596 | CONFIG_MTD_BLOCK_RO=m | ||
597 | CONFIG_FTL=m | ||
598 | CONFIG_NFTL=m | ||
599 | CONFIG_NFTL_RW=y | ||
600 | CONFIG_INFTL=m | ||
601 | # CONFIG_RFD_FTL is not set | ||
602 | |||
603 | # | ||
604 | # RAM/ROM/Flash chip drivers | ||
605 | # | ||
606 | CONFIG_MTD_CFI=m | ||
607 | CONFIG_MTD_JEDECPROBE=m | ||
608 | CONFIG_MTD_GEN_PROBE=m | ||
609 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
610 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
611 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
612 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
613 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
614 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
615 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
616 | CONFIG_MTD_CFI_I1=y | ||
617 | CONFIG_MTD_CFI_I2=y | ||
618 | # CONFIG_MTD_CFI_I4 is not set | ||
619 | # CONFIG_MTD_CFI_I8 is not set | ||
620 | CONFIG_MTD_CFI_INTELEXT=m | ||
621 | CONFIG_MTD_CFI_AMDSTD=m | ||
622 | CONFIG_MTD_CFI_STAA=m | ||
623 | CONFIG_MTD_CFI_UTIL=m | ||
624 | CONFIG_MTD_RAM=m | ||
625 | CONFIG_MTD_ROM=m | ||
626 | CONFIG_MTD_ABSENT=m | ||
627 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
628 | |||
629 | # | ||
630 | # Mapping drivers for chip access | ||
631 | # | ||
632 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
633 | CONFIG_MTD_PHYSMAP=m | ||
634 | CONFIG_MTD_PHYSMAP_START=0x8000000 | ||
635 | CONFIG_MTD_PHYSMAP_LEN=0x4000000 | ||
636 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
637 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
638 | # CONFIG_MTD_IMPA7 is not set | ||
639 | # CONFIG_MTD_PLATRAM is not set | ||
640 | |||
641 | # | ||
642 | # Self-contained MTD device drivers | ||
643 | # | ||
644 | CONFIG_MTD_SLRAM=m | ||
645 | CONFIG_MTD_PHRAM=m | ||
646 | CONFIG_MTD_MTDRAM=m | ||
647 | CONFIG_MTDRAM_TOTAL_SIZE=4096 | ||
648 | CONFIG_MTDRAM_ERASE_SIZE=128 | ||
649 | CONFIG_MTD_BLKMTD=m | ||
650 | # CONFIG_MTD_BLOCK2MTD is not set | ||
651 | |||
652 | # | ||
653 | # Disk-On-Chip Device Drivers | ||
654 | # | ||
655 | CONFIG_MTD_DOC2000=m | ||
656 | CONFIG_MTD_DOC2001=m | ||
657 | CONFIG_MTD_DOC2001PLUS=m | ||
658 | CONFIG_MTD_DOCPROBE=m | ||
659 | CONFIG_MTD_DOCECC=m | ||
660 | # CONFIG_MTD_DOCPROBE_ADVANCED is not set | ||
661 | CONFIG_MTD_DOCPROBE_ADDRESS=0 | ||
662 | |||
663 | # | ||
664 | # NAND Flash Device Drivers | ||
665 | # | ||
666 | CONFIG_MTD_NAND=m | ||
667 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
668 | CONFIG_MTD_NAND_IDS=m | ||
669 | CONFIG_MTD_NAND_DISKONCHIP=m | ||
670 | # CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED is not set | ||
671 | CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0 | ||
672 | # CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE is not set | ||
673 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
674 | |||
675 | # | ||
676 | # OneNAND Flash Device Drivers | ||
677 | # | ||
678 | # CONFIG_MTD_ONENAND is not set | ||
679 | |||
680 | # | ||
681 | # Parallel port support | ||
682 | # | ||
683 | CONFIG_PARPORT=m | ||
684 | CONFIG_PARPORT_PC=m | ||
685 | CONFIG_PARPORT_PC_FIFO=y | ||
686 | # CONFIG_PARPORT_PC_SUPERIO is not set | ||
687 | CONFIG_PARPORT_PC_PCMCIA=m | ||
688 | CONFIG_PARPORT_NOT_PC=y | ||
689 | # CONFIG_PARPORT_ARC is not set | ||
690 | # CONFIG_PARPORT_GSC is not set | ||
691 | CONFIG_PARPORT_1284=y | ||
692 | |||
693 | # | ||
694 | # Plug and Play support | ||
695 | # | ||
696 | |||
697 | # | ||
698 | # Block devices | ||
699 | # | ||
700 | CONFIG_PARIDE=m | ||
701 | CONFIG_PARIDE_PARPORT=m | ||
702 | |||
703 | # | ||
704 | # Parallel IDE high-level drivers | ||
705 | # | ||
706 | CONFIG_PARIDE_PD=m | ||
707 | CONFIG_PARIDE_PCD=m | ||
708 | CONFIG_PARIDE_PF=m | ||
709 | CONFIG_PARIDE_PT=m | ||
710 | CONFIG_PARIDE_PG=m | ||
711 | |||
712 | # | ||
713 | # Parallel IDE protocol modules | ||
714 | # | ||
715 | CONFIG_PARIDE_ATEN=m | ||
716 | CONFIG_PARIDE_BPCK=m | ||
717 | CONFIG_PARIDE_BPCK6=m | ||
718 | CONFIG_PARIDE_COMM=m | ||
719 | CONFIG_PARIDE_DSTR=m | ||
720 | CONFIG_PARIDE_FIT2=m | ||
721 | CONFIG_PARIDE_FIT3=m | ||
722 | CONFIG_PARIDE_EPAT=m | ||
723 | # CONFIG_PARIDE_EPATC8 is not set | ||
724 | CONFIG_PARIDE_EPIA=m | ||
725 | CONFIG_PARIDE_FRIQ=m | ||
726 | CONFIG_PARIDE_FRPW=m | ||
727 | CONFIG_PARIDE_KBIC=m | ||
728 | CONFIG_PARIDE_KTTI=m | ||
729 | CONFIG_PARIDE_ON20=m | ||
730 | CONFIG_PARIDE_ON26=m | ||
731 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
732 | CONFIG_BLK_DEV_LOOP=m | ||
733 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
734 | CONFIG_BLK_DEV_NBD=m | ||
735 | # CONFIG_BLK_DEV_UB is not set | ||
736 | CONFIG_BLK_DEV_RAM=y | ||
737 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
738 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
739 | CONFIG_BLK_DEV_INITRD=y | ||
740 | CONFIG_CDROM_PKTCDVD=m | ||
741 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 | ||
742 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set | ||
743 | # CONFIG_ATA_OVER_ETH is not set | ||
744 | |||
745 | # | ||
746 | # ATA/ATAPI/MFM/RLL support | ||
747 | # | ||
748 | CONFIG_IDE=m | ||
749 | CONFIG_BLK_DEV_IDE=m | ||
750 | |||
751 | # | ||
752 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
753 | # | ||
754 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
755 | CONFIG_BLK_DEV_IDEDISK=m | ||
756 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
757 | CONFIG_BLK_DEV_IDECS=m | ||
758 | CONFIG_BLK_DEV_IDECD=m | ||
759 | CONFIG_BLK_DEV_IDETAPE=m | ||
760 | CONFIG_BLK_DEV_IDEFLOPPY=m | ||
761 | CONFIG_BLK_DEV_IDESCSI=m | ||
762 | # CONFIG_IDE_TASK_IOCTL is not set | ||
763 | |||
764 | # | ||
765 | # IDE chipset support/bugfixes | ||
766 | # | ||
767 | CONFIG_IDE_GENERIC=m | ||
768 | # CONFIG_IDE_ARM is not set | ||
769 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
770 | # CONFIG_IDEDMA_AUTO is not set | ||
771 | # CONFIG_BLK_DEV_HD is not set | ||
772 | |||
773 | # | ||
774 | # SCSI device support | ||
775 | # | ||
776 | # CONFIG_RAID_ATTRS is not set | ||
777 | CONFIG_SCSI=m | ||
778 | CONFIG_SCSI_PROC_FS=y | ||
779 | |||
780 | # | ||
781 | # SCSI support type (disk, tape, CD-ROM) | ||
782 | # | ||
783 | CONFIG_BLK_DEV_SD=m | ||
784 | CONFIG_CHR_DEV_ST=m | ||
785 | CONFIG_CHR_DEV_OSST=m | ||
786 | CONFIG_BLK_DEV_SR=m | ||
787 | # CONFIG_BLK_DEV_SR_VENDOR is not set | ||
788 | CONFIG_CHR_DEV_SG=m | ||
789 | CONFIG_CHR_DEV_SCH=m | ||
790 | |||
791 | # | ||
792 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
793 | # | ||
794 | CONFIG_SCSI_MULTI_LUN=y | ||
795 | CONFIG_SCSI_CONSTANTS=y | ||
796 | CONFIG_SCSI_LOGGING=y | ||
797 | |||
798 | # | ||
799 | # SCSI Transport Attributes | ||
800 | # | ||
801 | CONFIG_SCSI_SPI_ATTRS=m | ||
802 | CONFIG_SCSI_FC_ATTRS=m | ||
803 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
804 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
805 | |||
806 | # | ||
807 | # SCSI low-level drivers | ||
808 | # | ||
809 | # CONFIG_ISCSI_TCP is not set | ||
810 | CONFIG_SCSI_SATA=m | ||
811 | CONFIG_SCSI_PPA=m | ||
812 | CONFIG_SCSI_IMM=m | ||
813 | # CONFIG_SCSI_IZIP_EPP16 is not set | ||
814 | # CONFIG_SCSI_IZIP_SLOW_CTR is not set | ||
815 | CONFIG_SCSI_DEBUG=m | ||
816 | |||
817 | # | ||
818 | # PCMCIA SCSI adapter support | ||
819 | # | ||
820 | CONFIG_PCMCIA_AHA152X=m | ||
821 | CONFIG_PCMCIA_FDOMAIN=m | ||
822 | CONFIG_PCMCIA_NINJA_SCSI=m | ||
823 | CONFIG_PCMCIA_QLOGIC=m | ||
824 | CONFIG_PCMCIA_SYM53C500=m | ||
825 | |||
826 | # | ||
827 | # Multi-device support (RAID and LVM) | ||
828 | # | ||
829 | CONFIG_MD=y | ||
830 | CONFIG_BLK_DEV_MD=m | ||
831 | CONFIG_MD_LINEAR=m | ||
832 | CONFIG_MD_RAID0=m | ||
833 | CONFIG_MD_RAID1=m | ||
834 | CONFIG_MD_RAID10=m | ||
835 | CONFIG_MD_RAID5=m | ||
836 | # CONFIG_MD_RAID5_RESHAPE is not set | ||
837 | CONFIG_MD_RAID6=m | ||
838 | CONFIG_MD_MULTIPATH=m | ||
839 | CONFIG_MD_FAULTY=m | ||
840 | CONFIG_BLK_DEV_DM=m | ||
841 | CONFIG_DM_CRYPT=m | ||
842 | CONFIG_DM_SNAPSHOT=m | ||
843 | CONFIG_DM_MIRROR=m | ||
844 | CONFIG_DM_ZERO=m | ||
845 | # CONFIG_DM_MULTIPATH is not set | ||
846 | |||
847 | # | ||
848 | # Fusion MPT device support | ||
849 | # | ||
850 | # CONFIG_FUSION is not set | ||
851 | |||
852 | # | ||
853 | # IEEE 1394 (FireWire) support | ||
854 | # | ||
855 | |||
856 | # | ||
857 | # I2O device support | ||
858 | # | ||
859 | |||
860 | # | ||
861 | # Network device support | ||
862 | # | ||
863 | CONFIG_NETDEVICES=y | ||
864 | CONFIG_DUMMY=m | ||
865 | CONFIG_BONDING=m | ||
866 | CONFIG_EQUALIZER=m | ||
867 | CONFIG_TUN=m | ||
868 | |||
869 | # | ||
870 | # PHY device support | ||
871 | # | ||
872 | # CONFIG_PHYLIB is not set | ||
873 | |||
874 | # | ||
875 | # Ethernet (10 or 100Mbit) | ||
876 | # | ||
877 | CONFIG_NET_ETHERNET=y | ||
878 | CONFIG_MII=m | ||
879 | # CONFIG_SMC91X is not set | ||
880 | # CONFIG_DM9000 is not set | ||
881 | CONFIG_NET_POCKET=y | ||
882 | CONFIG_DE600=m | ||
883 | CONFIG_DE620=m | ||
884 | |||
885 | # | ||
886 | # Ethernet (1000 Mbit) | ||
887 | # | ||
888 | |||
889 | # | ||
890 | # Ethernet (10000 Mbit) | ||
891 | # | ||
892 | |||
893 | # | ||
894 | # Token Ring devices | ||
895 | # | ||
896 | |||
897 | # | ||
898 | # Wireless LAN (non-hamradio) | ||
899 | # | ||
900 | CONFIG_NET_RADIO=y | ||
901 | # CONFIG_NET_WIRELESS_RTNETLINK is not set | ||
902 | |||
903 | # | ||
904 | # Obsolete Wireless cards support (pre-802.11) | ||
905 | # | ||
906 | CONFIG_STRIP=m | ||
907 | CONFIG_PCMCIA_WAVELAN=m | ||
908 | CONFIG_PCMCIA_NETWAVE=m | ||
909 | |||
910 | # | ||
911 | # Wireless 802.11 Frequency Hopping cards support | ||
912 | # | ||
913 | CONFIG_PCMCIA_RAYCS=m | ||
914 | |||
915 | # | ||
916 | # Wireless 802.11b ISA/PCI cards support | ||
917 | # | ||
918 | CONFIG_HERMES=m | ||
919 | CONFIG_ATMEL=m | ||
920 | |||
921 | # | ||
922 | # Wireless 802.11b Pcmcia/Cardbus cards support | ||
923 | # | ||
924 | CONFIG_PCMCIA_HERMES=m | ||
925 | # CONFIG_PCMCIA_SPECTRUM is not set | ||
926 | CONFIG_AIRO_CS=m | ||
927 | CONFIG_PCMCIA_ATMEL=m | ||
928 | CONFIG_PCMCIA_WL3501=m | ||
929 | # CONFIG_HOSTAP is not set | ||
930 | CONFIG_NET_WIRELESS=y | ||
931 | |||
932 | # | ||
933 | # PCMCIA network device support | ||
934 | # | ||
935 | CONFIG_NET_PCMCIA=y | ||
936 | CONFIG_PCMCIA_3C589=m | ||
937 | CONFIG_PCMCIA_3C574=m | ||
938 | CONFIG_PCMCIA_FMVJ18X=m | ||
939 | CONFIG_PCMCIA_PCNET=m | ||
940 | CONFIG_PCMCIA_NMCLAN=m | ||
941 | CONFIG_PCMCIA_SMC91C92=m | ||
942 | CONFIG_PCMCIA_XIRC2PS=m | ||
943 | CONFIG_PCMCIA_AXNET=m | ||
944 | |||
945 | # | ||
946 | # Wan interfaces | ||
947 | # | ||
948 | CONFIG_WAN=y | ||
949 | CONFIG_SYNCLINK_SYNCPPP=m | ||
950 | CONFIG_HDLC=m | ||
951 | CONFIG_HDLC_RAW=y | ||
952 | CONFIG_HDLC_RAW_ETH=y | ||
953 | CONFIG_HDLC_CISCO=y | ||
954 | CONFIG_HDLC_FR=y | ||
955 | CONFIG_HDLC_PPP=y | ||
956 | CONFIG_HDLC_X25=y | ||
957 | CONFIG_DLCI=m | ||
958 | CONFIG_DLCI_COUNT=24 | ||
959 | CONFIG_DLCI_MAX=8 | ||
960 | CONFIG_WAN_ROUTER_DRIVERS=y | ||
961 | CONFIG_LAPBETHER=m | ||
962 | CONFIG_X25_ASY=m | ||
963 | |||
964 | # | ||
965 | # ATM drivers | ||
966 | # | ||
967 | # CONFIG_ATM_DUMMY is not set | ||
968 | CONFIG_ATM_TCP=m | ||
969 | CONFIG_PLIP=m | ||
970 | CONFIG_PPP=m | ||
971 | CONFIG_PPP_MULTILINK=y | ||
972 | CONFIG_PPP_FILTER=y | ||
973 | CONFIG_PPP_ASYNC=m | ||
974 | CONFIG_PPP_SYNC_TTY=m | ||
975 | CONFIG_PPP_DEFLATE=m | ||
976 | CONFIG_PPP_BSDCOMP=m | ||
977 | CONFIG_PPP_MPPE=m | ||
978 | CONFIG_PPPOE=m | ||
979 | CONFIG_PPPOATM=m | ||
980 | CONFIG_SLIP=m | ||
981 | CONFIG_SLIP_COMPRESSED=y | ||
982 | CONFIG_SLIP_SMART=y | ||
983 | CONFIG_SLIP_MODE_SLIP6=y | ||
984 | CONFIG_SHAPER=m | ||
985 | CONFIG_NETCONSOLE=m | ||
986 | CONFIG_NETPOLL=y | ||
987 | # CONFIG_NETPOLL_RX is not set | ||
988 | # CONFIG_NETPOLL_TRAP is not set | ||
989 | CONFIG_NET_POLL_CONTROLLER=y | ||
990 | |||
991 | # | ||
992 | # ISDN subsystem | ||
993 | # | ||
994 | CONFIG_ISDN=m | ||
995 | |||
996 | # | ||
997 | # Old ISDN4Linux | ||
998 | # | ||
999 | CONFIG_ISDN_I4L=m | ||
1000 | CONFIG_ISDN_PPP=y | ||
1001 | CONFIG_ISDN_PPP_VJ=y | ||
1002 | CONFIG_ISDN_MPP=y | ||
1003 | CONFIG_IPPP_FILTER=y | ||
1004 | CONFIG_ISDN_PPP_BSDCOMP=m | ||
1005 | CONFIG_ISDN_AUDIO=y | ||
1006 | CONFIG_ISDN_TTY_FAX=y | ||
1007 | CONFIG_ISDN_X25=y | ||
1008 | |||
1009 | # | ||
1010 | # ISDN feature submodules | ||
1011 | # | ||
1012 | CONFIG_ISDN_DRV_LOOP=m | ||
1013 | CONFIG_ISDN_DIVERSION=m | ||
1014 | |||
1015 | # | ||
1016 | # ISDN4Linux hardware drivers | ||
1017 | # | ||
1018 | |||
1019 | # | ||
1020 | # Passive cards | ||
1021 | # | ||
1022 | CONFIG_ISDN_DRV_HISAX=m | ||
1023 | |||
1024 | # | ||
1025 | # D-channel protocol features | ||
1026 | # | ||
1027 | CONFIG_HISAX_EURO=y | ||
1028 | CONFIG_DE_AOC=y | ||
1029 | # CONFIG_HISAX_NO_SENDCOMPLETE is not set | ||
1030 | # CONFIG_HISAX_NO_LLC is not set | ||
1031 | # CONFIG_HISAX_NO_KEYPAD is not set | ||
1032 | CONFIG_HISAX_1TR6=y | ||
1033 | CONFIG_HISAX_NI1=y | ||
1034 | CONFIG_HISAX_MAX_CARDS=8 | ||
1035 | |||
1036 | # | ||
1037 | # HiSax supported cards | ||
1038 | # | ||
1039 | CONFIG_HISAX_16_3=y | ||
1040 | CONFIG_HISAX_S0BOX=y | ||
1041 | CONFIG_HISAX_FRITZPCI=y | ||
1042 | CONFIG_HISAX_AVM_A1_PCMCIA=y | ||
1043 | CONFIG_HISAX_ELSA=y | ||
1044 | CONFIG_HISAX_DIEHLDIVA=y | ||
1045 | CONFIG_HISAX_SEDLBAUER=y | ||
1046 | CONFIG_HISAX_NICCY=y | ||
1047 | CONFIG_HISAX_GAZEL=y | ||
1048 | CONFIG_HISAX_HFC_SX=y | ||
1049 | # CONFIG_HISAX_DEBUG is not set | ||
1050 | |||
1051 | # | ||
1052 | # HiSax PCMCIA card service modules | ||
1053 | # | ||
1054 | CONFIG_HISAX_SEDLBAUER_CS=m | ||
1055 | CONFIG_HISAX_ELSA_CS=m | ||
1056 | CONFIG_HISAX_AVM_A1_CS=m | ||
1057 | CONFIG_HISAX_TELES_CS=m | ||
1058 | |||
1059 | # | ||
1060 | # HiSax sub driver modules | ||
1061 | # | ||
1062 | CONFIG_HISAX_ST5481=m | ||
1063 | CONFIG_HISAX_HFCUSB=m | ||
1064 | # CONFIG_HISAX_HFC4S8S is not set | ||
1065 | CONFIG_HISAX_HDLC=y | ||
1066 | |||
1067 | # | ||
1068 | # Active cards | ||
1069 | # | ||
1070 | |||
1071 | # | ||
1072 | # Siemens Gigaset | ||
1073 | # | ||
1074 | # CONFIG_ISDN_DRV_GIGASET is not set | ||
1075 | |||
1076 | # | ||
1077 | # CAPI subsystem | ||
1078 | # | ||
1079 | CONFIG_ISDN_CAPI=m | ||
1080 | CONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON=y | ||
1081 | CONFIG_ISDN_CAPI_MIDDLEWARE=y | ||
1082 | CONFIG_ISDN_CAPI_CAPI20=m | ||
1083 | CONFIG_ISDN_CAPI_CAPIFS_BOOL=y | ||
1084 | CONFIG_ISDN_CAPI_CAPIFS=m | ||
1085 | CONFIG_ISDN_CAPI_CAPIDRV=m | ||
1086 | |||
1087 | # | ||
1088 | # CAPI hardware drivers | ||
1089 | # | ||
1090 | |||
1091 | # | ||
1092 | # Active AVM cards | ||
1093 | # | ||
1094 | CONFIG_CAPI_AVM=y | ||
1095 | CONFIG_ISDN_DRV_AVMB1_B1PCMCIA=m | ||
1096 | CONFIG_ISDN_DRV_AVMB1_AVM_CS=m | ||
1097 | |||
1098 | # | ||
1099 | # Active Eicon DIVA Server cards | ||
1100 | # | ||
1101 | CONFIG_CAPI_EICON=y | ||
1102 | |||
1103 | # | ||
1104 | # Input device support | ||
1105 | # | ||
1106 | CONFIG_INPUT=y | ||
1107 | |||
1108 | # | ||
1109 | # Userland interfaces | ||
1110 | # | ||
1111 | CONFIG_INPUT_MOUSEDEV=m | ||
1112 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
1113 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
1114 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
1115 | CONFIG_INPUT_JOYDEV=m | ||
1116 | CONFIG_INPUT_TSDEV=m | ||
1117 | CONFIG_INPUT_TSDEV_SCREEN_X=240 | ||
1118 | CONFIG_INPUT_TSDEV_SCREEN_Y=320 | ||
1119 | CONFIG_INPUT_EVDEV=m | ||
1120 | CONFIG_INPUT_EVBUG=m | ||
1121 | |||
1122 | # | ||
1123 | # Input Device Drivers | ||
1124 | # | ||
1125 | CONFIG_INPUT_KEYBOARD=y | ||
1126 | CONFIG_KEYBOARD_ATKBD=y | ||
1127 | CONFIG_KEYBOARD_SUNKBD=m | ||
1128 | CONFIG_KEYBOARD_LKKBD=m | ||
1129 | CONFIG_KEYBOARD_XTKBD=m | ||
1130 | CONFIG_KEYBOARD_NEWTON=m | ||
1131 | CONFIG_INPUT_MOUSE=y | ||
1132 | CONFIG_MOUSE_PS2=m | ||
1133 | CONFIG_MOUSE_SERIAL=m | ||
1134 | CONFIG_MOUSE_VSXXXAA=m | ||
1135 | CONFIG_INPUT_JOYSTICK=y | ||
1136 | CONFIG_JOYSTICK_ANALOG=m | ||
1137 | CONFIG_JOYSTICK_A3D=m | ||
1138 | CONFIG_JOYSTICK_ADI=m | ||
1139 | CONFIG_JOYSTICK_COBRA=m | ||
1140 | CONFIG_JOYSTICK_GF2K=m | ||
1141 | CONFIG_JOYSTICK_GRIP=m | ||
1142 | CONFIG_JOYSTICK_GRIP_MP=m | ||
1143 | CONFIG_JOYSTICK_GUILLEMOT=m | ||
1144 | CONFIG_JOYSTICK_INTERACT=m | ||
1145 | CONFIG_JOYSTICK_SIDEWINDER=m | ||
1146 | CONFIG_JOYSTICK_TMDC=m | ||
1147 | CONFIG_JOYSTICK_IFORCE=m | ||
1148 | CONFIG_JOYSTICK_IFORCE_USB=y | ||
1149 | CONFIG_JOYSTICK_IFORCE_232=y | ||
1150 | CONFIG_JOYSTICK_WARRIOR=m | ||
1151 | CONFIG_JOYSTICK_MAGELLAN=m | ||
1152 | CONFIG_JOYSTICK_SPACEORB=m | ||
1153 | CONFIG_JOYSTICK_SPACEBALL=m | ||
1154 | CONFIG_JOYSTICK_STINGER=m | ||
1155 | # CONFIG_JOYSTICK_TWIDJOY is not set | ||
1156 | CONFIG_JOYSTICK_DB9=m | ||
1157 | CONFIG_JOYSTICK_GAMECON=m | ||
1158 | CONFIG_JOYSTICK_TURBOGRAFX=m | ||
1159 | CONFIG_JOYSTICK_JOYDUMP=m | ||
1160 | CONFIG_INPUT_TOUCHSCREEN=y | ||
1161 | CONFIG_TOUCHSCREEN_GUNZE=m | ||
1162 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
1163 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
1164 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
1165 | CONFIG_INPUT_MISC=y | ||
1166 | CONFIG_INPUT_UINPUT=m | ||
1167 | |||
1168 | # | ||
1169 | # Hardware I/O ports | ||
1170 | # | ||
1171 | CONFIG_SERIO=y | ||
1172 | CONFIG_SERIO_SERPORT=m | ||
1173 | CONFIG_SERIO_PARKBD=m | ||
1174 | CONFIG_SERIO_LIBPS2=y | ||
1175 | CONFIG_SERIO_RAW=m | ||
1176 | CONFIG_GAMEPORT=m | ||
1177 | CONFIG_GAMEPORT_NS558=m | ||
1178 | CONFIG_GAMEPORT_L4=m | ||
1179 | |||
1180 | # | ||
1181 | # Character devices | ||
1182 | # | ||
1183 | CONFIG_VT=y | ||
1184 | CONFIG_VT_CONSOLE=y | ||
1185 | CONFIG_HW_CONSOLE=y | ||
1186 | CONFIG_SERIAL_NONSTANDARD=y | ||
1187 | CONFIG_COMPUTONE=m | ||
1188 | CONFIG_ROCKETPORT=m | ||
1189 | CONFIG_CYCLADES=m | ||
1190 | # CONFIG_CYZ_INTR is not set | ||
1191 | CONFIG_DIGIEPCA=m | ||
1192 | CONFIG_MOXA_INTELLIO=m | ||
1193 | CONFIG_MOXA_SMARTIO=m | ||
1194 | # CONFIG_ISI is not set | ||
1195 | CONFIG_SYNCLINKMP=m | ||
1196 | CONFIG_N_HDLC=m | ||
1197 | # CONFIG_RISCOM8 is not set | ||
1198 | # CONFIG_SPECIALIX is not set | ||
1199 | CONFIG_SX=m | ||
1200 | CONFIG_RIO=m | ||
1201 | CONFIG_RIO_OLDPCI=y | ||
1202 | CONFIG_STALDRV=y | ||
1203 | CONFIG_STALLION=m | ||
1204 | CONFIG_ISTALLION=m | ||
1205 | |||
1206 | # | ||
1207 | # Serial drivers | ||
1208 | # | ||
1209 | CONFIG_SERIAL_8250=y | ||
1210 | CONFIG_SERIAL_8250_CONSOLE=y | ||
1211 | CONFIG_SERIAL_8250_CS=m | ||
1212 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
1213 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
1214 | CONFIG_SERIAL_8250_EXTENDED=y | ||
1215 | CONFIG_SERIAL_8250_MANY_PORTS=y | ||
1216 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
1217 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
1218 | CONFIG_SERIAL_8250_RSA=y | ||
1219 | |||
1220 | # | ||
1221 | # Non-8250 serial port support | ||
1222 | # | ||
1223 | CONFIG_SERIAL_CORE=y | ||
1224 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
1225 | CONFIG_UNIX98_PTYS=y | ||
1226 | CONFIG_LEGACY_PTYS=y | ||
1227 | CONFIG_LEGACY_PTY_COUNT=256 | ||
1228 | CONFIG_PRINTER=m | ||
1229 | # CONFIG_LP_CONSOLE is not set | ||
1230 | CONFIG_PPDEV=m | ||
1231 | CONFIG_TIPAR=m | ||
1232 | |||
1233 | # | ||
1234 | # IPMI | ||
1235 | # | ||
1236 | CONFIG_IPMI_HANDLER=m | ||
1237 | # CONFIG_IPMI_PANIC_EVENT is not set | ||
1238 | CONFIG_IPMI_DEVICE_INTERFACE=m | ||
1239 | CONFIG_IPMI_SI=m | ||
1240 | CONFIG_IPMI_WATCHDOG=m | ||
1241 | CONFIG_IPMI_POWEROFF=m | ||
1242 | |||
1243 | # | ||
1244 | # Watchdog Cards | ||
1245 | # | ||
1246 | CONFIG_WATCHDOG=y | ||
1247 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
1248 | |||
1249 | # | ||
1250 | # Watchdog Device Drivers | ||
1251 | # | ||
1252 | CONFIG_SOFT_WATCHDOG=m | ||
1253 | |||
1254 | # | ||
1255 | # USB-based Watchdog Cards | ||
1256 | # | ||
1257 | CONFIG_USBPCWATCHDOG=m | ||
1258 | CONFIG_NVRAM=m | ||
1259 | CONFIG_DTLK=m | ||
1260 | CONFIG_R3964=m | ||
1261 | |||
1262 | # | ||
1263 | # Ftape, the floppy tape device driver | ||
1264 | # | ||
1265 | |||
1266 | # | ||
1267 | # PCMCIA character devices | ||
1268 | # | ||
1269 | CONFIG_SYNCLINK_CS=m | ||
1270 | # CONFIG_CARDMAN_4000 is not set | ||
1271 | # CONFIG_CARDMAN_4040 is not set | ||
1272 | CONFIG_RAW_DRIVER=m | ||
1273 | CONFIG_MAX_RAW_DEVS=256 | ||
1274 | |||
1275 | # | ||
1276 | # TPM devices | ||
1277 | # | ||
1278 | # CONFIG_TCG_TPM is not set | ||
1279 | # CONFIG_TELCLOCK is not set | ||
1280 | |||
1281 | # | ||
1282 | # I2C support | ||
1283 | # | ||
1284 | CONFIG_I2C=m | ||
1285 | CONFIG_I2C_CHARDEV=m | ||
1286 | |||
1287 | # | ||
1288 | # I2C Algorithms | ||
1289 | # | ||
1290 | CONFIG_I2C_ALGOBIT=m | ||
1291 | CONFIG_I2C_ALGOPCF=m | ||
1292 | CONFIG_I2C_ALGOPCA=m | ||
1293 | |||
1294 | # | ||
1295 | # I2C Hardware Bus support | ||
1296 | # | ||
1297 | CONFIG_I2C_ISA=m | ||
1298 | CONFIG_I2C_PARPORT=m | ||
1299 | CONFIG_I2C_PARPORT_LIGHT=m | ||
1300 | CONFIG_I2C_STUB=m | ||
1301 | CONFIG_I2C_PCA_ISA=m | ||
1302 | |||
1303 | # | ||
1304 | # Miscellaneous I2C Chip support | ||
1305 | # | ||
1306 | # CONFIG_SENSORS_DS1337 is not set | ||
1307 | # CONFIG_SENSORS_DS1374 is not set | ||
1308 | CONFIG_SENSORS_EEPROM=m | ||
1309 | CONFIG_SENSORS_PCF8574=m | ||
1310 | # CONFIG_SENSORS_PCA9539 is not set | ||
1311 | CONFIG_SENSORS_PCF8591=m | ||
1312 | # CONFIG_SENSORS_MAX6875 is not set | ||
1313 | # CONFIG_I2C_DEBUG_CORE is not set | ||
1314 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
1315 | # CONFIG_I2C_DEBUG_BUS is not set | ||
1316 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
1317 | |||
1318 | # | ||
1319 | # SPI support | ||
1320 | # | ||
1321 | # CONFIG_SPI is not set | ||
1322 | # CONFIG_SPI_MASTER is not set | ||
1323 | |||
1324 | # | ||
1325 | # Dallas's 1-wire bus | ||
1326 | # | ||
1327 | CONFIG_W1=m | ||
1328 | |||
1329 | # | ||
1330 | # 1-wire Bus Masters | ||
1331 | # | ||
1332 | # CONFIG_W1_MASTER_DS9490 is not set | ||
1333 | # CONFIG_W1_MASTER_DS2482 is not set | ||
1334 | |||
1335 | # | ||
1336 | # 1-wire Slaves | ||
1337 | # | ||
1338 | # CONFIG_W1_SLAVE_THERM is not set | ||
1339 | # CONFIG_W1_SLAVE_SMEM is not set | ||
1340 | # CONFIG_W1_SLAVE_DS2433 is not set | ||
1341 | |||
1342 | # | ||
1343 | # Hardware Monitoring support | ||
1344 | # | ||
1345 | CONFIG_HWMON=y | ||
1346 | CONFIG_HWMON_VID=m | ||
1347 | CONFIG_SENSORS_ADM1021=m | ||
1348 | CONFIG_SENSORS_ADM1025=m | ||
1349 | CONFIG_SENSORS_ADM1026=m | ||
1350 | CONFIG_SENSORS_ADM1031=m | ||
1351 | # CONFIG_SENSORS_ADM9240 is not set | ||
1352 | CONFIG_SENSORS_ASB100=m | ||
1353 | # CONFIG_SENSORS_ATXP1 is not set | ||
1354 | CONFIG_SENSORS_DS1621=m | ||
1355 | # CONFIG_SENSORS_F71805F is not set | ||
1356 | CONFIG_SENSORS_FSCHER=m | ||
1357 | # CONFIG_SENSORS_FSCPOS is not set | ||
1358 | CONFIG_SENSORS_GL518SM=m | ||
1359 | # CONFIG_SENSORS_GL520SM is not set | ||
1360 | CONFIG_SENSORS_IT87=m | ||
1361 | CONFIG_SENSORS_LM63=m | ||
1362 | CONFIG_SENSORS_LM75=m | ||
1363 | CONFIG_SENSORS_LM77=m | ||
1364 | CONFIG_SENSORS_LM78=m | ||
1365 | CONFIG_SENSORS_LM80=m | ||
1366 | CONFIG_SENSORS_LM83=m | ||
1367 | CONFIG_SENSORS_LM85=m | ||
1368 | CONFIG_SENSORS_LM87=m | ||
1369 | CONFIG_SENSORS_LM90=m | ||
1370 | # CONFIG_SENSORS_LM92 is not set | ||
1371 | CONFIG_SENSORS_MAX1619=m | ||
1372 | CONFIG_SENSORS_PC87360=m | ||
1373 | CONFIG_SENSORS_SMSC47M1=m | ||
1374 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
1375 | CONFIG_SENSORS_W83781D=m | ||
1376 | # CONFIG_SENSORS_W83792D is not set | ||
1377 | CONFIG_SENSORS_W83L785TS=m | ||
1378 | CONFIG_SENSORS_W83627HF=m | ||
1379 | # CONFIG_SENSORS_W83627EHF is not set | ||
1380 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1381 | |||
1382 | # | ||
1383 | # Misc devices | ||
1384 | # | ||
1385 | |||
1386 | # | ||
1387 | # LED devices | ||
1388 | # | ||
1389 | # CONFIG_NEW_LEDS is not set | ||
1390 | |||
1391 | # | ||
1392 | # Multimedia devices | ||
1393 | # | ||
1394 | # CONFIG_VIDEO_DEV is not set | ||
1395 | |||
1396 | # | ||
1397 | # Digital Video Broadcasting Devices | ||
1398 | # | ||
1399 | CONFIG_DVB=y | ||
1400 | CONFIG_DVB_CORE=m | ||
1401 | |||
1402 | # | ||
1403 | # Supported USB Adapters | ||
1404 | # | ||
1405 | # CONFIG_DVB_USB is not set | ||
1406 | CONFIG_DVB_TTUSB_BUDGET=m | ||
1407 | CONFIG_DVB_TTUSB_DEC=m | ||
1408 | CONFIG_DVB_CINERGYT2=m | ||
1409 | CONFIG_DVB_CINERGYT2_TUNING=y | ||
1410 | CONFIG_DVB_CINERGYT2_STREAM_URB_COUNT=32 | ||
1411 | CONFIG_DVB_CINERGYT2_STREAM_BUF_SIZE=512 | ||
1412 | CONFIG_DVB_CINERGYT2_QUERY_INTERVAL=250 | ||
1413 | CONFIG_DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE=y | ||
1414 | CONFIG_DVB_CINERGYT2_RC_QUERY_INTERVAL=100 | ||
1415 | |||
1416 | # | ||
1417 | # Supported FlexCopII (B2C2) Adapters | ||
1418 | # | ||
1419 | # CONFIG_DVB_B2C2_FLEXCOP is not set | ||
1420 | |||
1421 | # | ||
1422 | # Supported DVB Frontends | ||
1423 | # | ||
1424 | |||
1425 | # | ||
1426 | # Customise DVB Frontends | ||
1427 | # | ||
1428 | |||
1429 | # | ||
1430 | # DVB-S (satellite) frontends | ||
1431 | # | ||
1432 | CONFIG_DVB_STV0299=m | ||
1433 | CONFIG_DVB_CX24110=m | ||
1434 | # CONFIG_DVB_CX24123 is not set | ||
1435 | CONFIG_DVB_TDA8083=m | ||
1436 | CONFIG_DVB_MT312=m | ||
1437 | CONFIG_DVB_VES1X93=m | ||
1438 | # CONFIG_DVB_S5H1420 is not set | ||
1439 | |||
1440 | # | ||
1441 | # DVB-T (terrestrial) frontends | ||
1442 | # | ||
1443 | CONFIG_DVB_SP8870=m | ||
1444 | CONFIG_DVB_SP887X=m | ||
1445 | CONFIG_DVB_CX22700=m | ||
1446 | CONFIG_DVB_CX22702=m | ||
1447 | CONFIG_DVB_L64781=m | ||
1448 | CONFIG_DVB_TDA1004X=m | ||
1449 | CONFIG_DVB_NXT6000=m | ||
1450 | CONFIG_DVB_MT352=m | ||
1451 | # CONFIG_DVB_ZL10353 is not set | ||
1452 | CONFIG_DVB_DIB3000MB=m | ||
1453 | CONFIG_DVB_DIB3000MC=m | ||
1454 | |||
1455 | # | ||
1456 | # DVB-C (cable) frontends | ||
1457 | # | ||
1458 | CONFIG_DVB_VES1820=m | ||
1459 | CONFIG_DVB_TDA10021=m | ||
1460 | CONFIG_DVB_STV0297=m | ||
1461 | |||
1462 | # | ||
1463 | # ATSC (North American/Korean Terresterial DTV) frontends | ||
1464 | # | ||
1465 | # CONFIG_DVB_NXT200X is not set | ||
1466 | # CONFIG_DVB_OR51211 is not set | ||
1467 | # CONFIG_DVB_OR51132 is not set | ||
1468 | # CONFIG_DVB_BCM3510 is not set | ||
1469 | # CONFIG_DVB_LGDT330X is not set | ||
1470 | # CONFIG_USB_DABUSB is not set | ||
1471 | |||
1472 | # | ||
1473 | # Graphics support | ||
1474 | # | ||
1475 | # CONFIG_FB is not set | ||
1476 | |||
1477 | # | ||
1478 | # Console display driver support | ||
1479 | # | ||
1480 | # CONFIG_VGA_CONSOLE is not set | ||
1481 | CONFIG_DUMMY_CONSOLE=y | ||
1482 | |||
1483 | # | ||
1484 | # Sound | ||
1485 | # | ||
1486 | CONFIG_SOUND=m | ||
1487 | |||
1488 | # | ||
1489 | # Advanced Linux Sound Architecture | ||
1490 | # | ||
1491 | CONFIG_SND=m | ||
1492 | CONFIG_SND_TIMER=m | ||
1493 | CONFIG_SND_PCM=m | ||
1494 | CONFIG_SND_HWDEP=m | ||
1495 | CONFIG_SND_RAWMIDI=m | ||
1496 | CONFIG_SND_SEQUENCER=m | ||
1497 | CONFIG_SND_SEQ_DUMMY=m | ||
1498 | CONFIG_SND_OSSEMUL=y | ||
1499 | CONFIG_SND_MIXER_OSS=m | ||
1500 | CONFIG_SND_PCM_OSS=m | ||
1501 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1502 | CONFIG_SND_SEQUENCER_OSS=y | ||
1503 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1504 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1505 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1506 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1507 | # CONFIG_SND_DEBUG is not set | ||
1508 | |||
1509 | # | ||
1510 | # Generic devices | ||
1511 | # | ||
1512 | CONFIG_SND_MPU401_UART=m | ||
1513 | CONFIG_SND_DUMMY=m | ||
1514 | CONFIG_SND_VIRMIDI=m | ||
1515 | CONFIG_SND_MTPAV=m | ||
1516 | CONFIG_SND_SERIAL_U16550=m | ||
1517 | CONFIG_SND_MPU401=m | ||
1518 | |||
1519 | # | ||
1520 | # ALSA ARM devices | ||
1521 | # | ||
1522 | |||
1523 | # | ||
1524 | # USB devices | ||
1525 | # | ||
1526 | CONFIG_SND_USB_AUDIO=m | ||
1527 | |||
1528 | # | ||
1529 | # PCMCIA devices | ||
1530 | # | ||
1531 | |||
1532 | # | ||
1533 | # Open Sound System | ||
1534 | # | ||
1535 | CONFIG_SOUND_PRIME=m | ||
1536 | # CONFIG_OBSOLETE_OSS_DRIVER is not set | ||
1537 | # CONFIG_SOUND_MSNDCLAS is not set | ||
1538 | # CONFIG_SOUND_MSNDPIN is not set | ||
1539 | CONFIG_SOUND_TVMIXER=m | ||
1540 | |||
1541 | # | ||
1542 | # USB support | ||
1543 | # | ||
1544 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1545 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
1546 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
1547 | CONFIG_USB=m | ||
1548 | # CONFIG_USB_DEBUG is not set | ||
1549 | |||
1550 | # | ||
1551 | # Miscellaneous USB options | ||
1552 | # | ||
1553 | CONFIG_USB_DEVICEFS=y | ||
1554 | CONFIG_USB_BANDWIDTH=y | ||
1555 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1556 | # CONFIG_USB_SUSPEND is not set | ||
1557 | # CONFIG_USB_OTG is not set | ||
1558 | |||
1559 | # | ||
1560 | # USB Host Controller Drivers | ||
1561 | # | ||
1562 | # CONFIG_USB_ISP116X_HCD is not set | ||
1563 | CONFIG_USB_SL811_HCD=m | ||
1564 | # CONFIG_USB_SL811_CS is not set | ||
1565 | |||
1566 | # | ||
1567 | # USB Device Class drivers | ||
1568 | # | ||
1569 | CONFIG_USB_ACM=m | ||
1570 | CONFIG_USB_PRINTER=m | ||
1571 | |||
1572 | # | ||
1573 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
1574 | # | ||
1575 | |||
1576 | # | ||
1577 | # may also be needed; see USB_STORAGE Help for more information | ||
1578 | # | ||
1579 | CONFIG_USB_STORAGE=m | ||
1580 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
1581 | CONFIG_USB_STORAGE_DATAFAB=y | ||
1582 | CONFIG_USB_STORAGE_FREECOM=y | ||
1583 | CONFIG_USB_STORAGE_ISD200=y | ||
1584 | CONFIG_USB_STORAGE_DPCM=y | ||
1585 | CONFIG_USB_STORAGE_USBAT=y | ||
1586 | CONFIG_USB_STORAGE_SDDR09=y | ||
1587 | CONFIG_USB_STORAGE_SDDR55=y | ||
1588 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
1589 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1590 | # CONFIG_USB_LIBUSUAL is not set | ||
1591 | |||
1592 | # | ||
1593 | # USB Input Devices | ||
1594 | # | ||
1595 | CONFIG_USB_HID=m | ||
1596 | CONFIG_USB_HIDINPUT=y | ||
1597 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
1598 | # CONFIG_HID_FF is not set | ||
1599 | CONFIG_USB_HIDDEV=y | ||
1600 | |||
1601 | # | ||
1602 | # USB HID Boot Protocol drivers | ||
1603 | # | ||
1604 | CONFIG_USB_KBD=m | ||
1605 | CONFIG_USB_MOUSE=m | ||
1606 | CONFIG_USB_AIPTEK=m | ||
1607 | CONFIG_USB_WACOM=m | ||
1608 | # CONFIG_USB_ACECAD is not set | ||
1609 | CONFIG_USB_KBTAB=m | ||
1610 | CONFIG_USB_POWERMATE=m | ||
1611 | CONFIG_USB_MTOUCH=m | ||
1612 | # CONFIG_USB_ITMTOUCH is not set | ||
1613 | CONFIG_USB_EGALAX=m | ||
1614 | # CONFIG_USB_YEALINK is not set | ||
1615 | CONFIG_USB_XPAD=m | ||
1616 | CONFIG_USB_ATI_REMOTE=m | ||
1617 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
1618 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
1619 | # CONFIG_USB_APPLETOUCH is not set | ||
1620 | |||
1621 | # | ||
1622 | # USB Imaging devices | ||
1623 | # | ||
1624 | CONFIG_USB_MDC800=m | ||
1625 | CONFIG_USB_MICROTEK=m | ||
1626 | |||
1627 | # | ||
1628 | # USB Network Adapters | ||
1629 | # | ||
1630 | CONFIG_USB_CATC=m | ||
1631 | CONFIG_USB_KAWETH=m | ||
1632 | CONFIG_USB_PEGASUS=m | ||
1633 | CONFIG_USB_RTL8150=m | ||
1634 | CONFIG_USB_USBNET=m | ||
1635 | CONFIG_USB_NET_AX8817X=m | ||
1636 | CONFIG_USB_NET_CDCETHER=m | ||
1637 | # CONFIG_USB_NET_GL620A is not set | ||
1638 | CONFIG_USB_NET_NET1080=m | ||
1639 | # CONFIG_USB_NET_PLUSB is not set | ||
1640 | # CONFIG_USB_NET_RNDIS_HOST is not set | ||
1641 | # CONFIG_USB_NET_CDC_SUBSET is not set | ||
1642 | CONFIG_USB_NET_ZAURUS=m | ||
1643 | # CONFIG_USB_ZD1201 is not set | ||
1644 | CONFIG_USB_MON=y | ||
1645 | |||
1646 | # | ||
1647 | # USB port drivers | ||
1648 | # | ||
1649 | CONFIG_USB_USS720=m | ||
1650 | |||
1651 | # | ||
1652 | # USB Serial Converter support | ||
1653 | # | ||
1654 | CONFIG_USB_SERIAL=m | ||
1655 | CONFIG_USB_SERIAL_GENERIC=y | ||
1656 | # CONFIG_USB_SERIAL_AIRPRIME is not set | ||
1657 | # CONFIG_USB_SERIAL_ANYDATA is not set | ||
1658 | CONFIG_USB_SERIAL_BELKIN=m | ||
1659 | CONFIG_USB_SERIAL_WHITEHEAT=m | ||
1660 | CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m | ||
1661 | # CONFIG_USB_SERIAL_CP2101 is not set | ||
1662 | CONFIG_USB_SERIAL_CYPRESS_M8=m | ||
1663 | CONFIG_USB_SERIAL_EMPEG=m | ||
1664 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
1665 | CONFIG_USB_SERIAL_VISOR=m | ||
1666 | CONFIG_USB_SERIAL_IPAQ=m | ||
1667 | CONFIG_USB_SERIAL_IR=m | ||
1668 | CONFIG_USB_SERIAL_EDGEPORT=m | ||
1669 | CONFIG_USB_SERIAL_EDGEPORT_TI=m | ||
1670 | # CONFIG_USB_SERIAL_GARMIN is not set | ||
1671 | CONFIG_USB_SERIAL_IPW=m | ||
1672 | CONFIG_USB_SERIAL_KEYSPAN_PDA=m | ||
1673 | CONFIG_USB_SERIAL_KEYSPAN=m | ||
1674 | # CONFIG_USB_SERIAL_KEYSPAN_MPR is not set | ||
1675 | # CONFIG_USB_SERIAL_KEYSPAN_USA28 is not set | ||
1676 | # CONFIG_USB_SERIAL_KEYSPAN_USA28X is not set | ||
1677 | # CONFIG_USB_SERIAL_KEYSPAN_USA28XA is not set | ||
1678 | # CONFIG_USB_SERIAL_KEYSPAN_USA28XB is not set | ||
1679 | # CONFIG_USB_SERIAL_KEYSPAN_USA19 is not set | ||
1680 | # CONFIG_USB_SERIAL_KEYSPAN_USA18X is not set | ||
1681 | # CONFIG_USB_SERIAL_KEYSPAN_USA19W is not set | ||
1682 | # CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set | ||
1683 | # CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set | ||
1684 | # CONFIG_USB_SERIAL_KEYSPAN_USA49W is not set | ||
1685 | # CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set | ||
1686 | CONFIG_USB_SERIAL_KLSI=m | ||
1687 | CONFIG_USB_SERIAL_KOBIL_SCT=m | ||
1688 | CONFIG_USB_SERIAL_MCT_U232=m | ||
1689 | # CONFIG_USB_SERIAL_NAVMAN is not set | ||
1690 | CONFIG_USB_SERIAL_PL2303=m | ||
1691 | # CONFIG_USB_SERIAL_HP4X is not set | ||
1692 | CONFIG_USB_SERIAL_SAFE=m | ||
1693 | # CONFIG_USB_SERIAL_SAFE_PADDED is not set | ||
1694 | # CONFIG_USB_SERIAL_TI is not set | ||
1695 | CONFIG_USB_SERIAL_CYBERJACK=m | ||
1696 | CONFIG_USB_SERIAL_XIRCOM=m | ||
1697 | CONFIG_USB_SERIAL_OMNINET=m | ||
1698 | CONFIG_USB_EZUSB=y | ||
1699 | |||
1700 | # | ||
1701 | # USB Miscellaneous drivers | ||
1702 | # | ||
1703 | # CONFIG_USB_EMI62 is not set | ||
1704 | # CONFIG_USB_EMI26 is not set | ||
1705 | CONFIG_USB_AUERSWALD=m | ||
1706 | CONFIG_USB_RIO500=m | ||
1707 | CONFIG_USB_LEGOTOWER=m | ||
1708 | CONFIG_USB_LCD=m | ||
1709 | CONFIG_USB_LED=m | ||
1710 | CONFIG_USB_CYTHERM=m | ||
1711 | CONFIG_USB_PHIDGETKIT=m | ||
1712 | CONFIG_USB_PHIDGETSERVO=m | ||
1713 | # CONFIG_USB_IDMOUSE is not set | ||
1714 | # CONFIG_USB_LD is not set | ||
1715 | CONFIG_USB_TEST=m | ||
1716 | |||
1717 | # | ||
1718 | # USB DSL modem support | ||
1719 | # | ||
1720 | CONFIG_USB_ATM=m | ||
1721 | CONFIG_USB_SPEEDTOUCH=m | ||
1722 | # CONFIG_USB_CXACRU is not set | ||
1723 | # CONFIG_USB_UEAGLEATM is not set | ||
1724 | # CONFIG_USB_XUSBATM is not set | ||
1725 | |||
1726 | # | ||
1727 | # USB Gadget Support | ||
1728 | # | ||
1729 | CONFIG_USB_GADGET=m | ||
1730 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1731 | CONFIG_USB_GADGET_SELECTED=y | ||
1732 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1733 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1734 | # CONFIG_USB_GADGET_GOKU is not set | ||
1735 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1736 | # CONFIG_USB_GADGET_OMAP is not set | ||
1737 | # CONFIG_USB_GADGET_AT91 is not set | ||
1738 | CONFIG_USB_GADGET_DUMMY_HCD=y | ||
1739 | CONFIG_USB_DUMMY_HCD=m | ||
1740 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1741 | CONFIG_USB_ZERO=m | ||
1742 | CONFIG_USB_ETH=m | ||
1743 | CONFIG_USB_ETH_RNDIS=y | ||
1744 | CONFIG_USB_GADGETFS=m | ||
1745 | CONFIG_USB_FILE_STORAGE=m | ||
1746 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1747 | CONFIG_USB_G_SERIAL=m | ||
1748 | |||
1749 | # | ||
1750 | # MMC/SD Card support | ||
1751 | # | ||
1752 | CONFIG_MMC=m | ||
1753 | # CONFIG_MMC_DEBUG is not set | ||
1754 | CONFIG_MMC_BLOCK=m | ||
1755 | |||
1756 | # | ||
1757 | # Real Time Clock | ||
1758 | # | ||
1759 | CONFIG_RTC_LIB=y | ||
1760 | # CONFIG_RTC_CLASS is not set | ||
1761 | |||
1762 | # | ||
1763 | # File systems | ||
1764 | # | ||
1765 | CONFIG_EXT2_FS=y | ||
1766 | CONFIG_EXT2_FS_XATTR=y | ||
1767 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
1768 | CONFIG_EXT2_FS_SECURITY=y | ||
1769 | # CONFIG_EXT2_FS_XIP is not set | ||
1770 | CONFIG_EXT3_FS=m | ||
1771 | CONFIG_EXT3_FS_XATTR=y | ||
1772 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
1773 | CONFIG_EXT3_FS_SECURITY=y | ||
1774 | CONFIG_JBD=m | ||
1775 | # CONFIG_JBD_DEBUG is not set | ||
1776 | CONFIG_FS_MBCACHE=y | ||
1777 | CONFIG_REISERFS_FS=m | ||
1778 | # CONFIG_REISERFS_CHECK is not set | ||
1779 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1780 | CONFIG_REISERFS_FS_XATTR=y | ||
1781 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
1782 | CONFIG_REISERFS_FS_SECURITY=y | ||
1783 | CONFIG_JFS_FS=m | ||
1784 | CONFIG_JFS_POSIX_ACL=y | ||
1785 | # CONFIG_JFS_SECURITY is not set | ||
1786 | # CONFIG_JFS_DEBUG is not set | ||
1787 | CONFIG_JFS_STATISTICS=y | ||
1788 | CONFIG_FS_POSIX_ACL=y | ||
1789 | CONFIG_XFS_FS=m | ||
1790 | CONFIG_XFS_EXPORT=y | ||
1791 | CONFIG_XFS_QUOTA=y | ||
1792 | CONFIG_XFS_SECURITY=y | ||
1793 | CONFIG_XFS_POSIX_ACL=y | ||
1794 | CONFIG_XFS_RT=y | ||
1795 | # CONFIG_OCFS2_FS is not set | ||
1796 | CONFIG_MINIX_FS=m | ||
1797 | CONFIG_ROMFS_FS=m | ||
1798 | CONFIG_INOTIFY=y | ||
1799 | CONFIG_QUOTA=y | ||
1800 | CONFIG_QFMT_V1=m | ||
1801 | CONFIG_QFMT_V2=m | ||
1802 | CONFIG_QUOTACTL=y | ||
1803 | CONFIG_DNOTIFY=y | ||
1804 | CONFIG_AUTOFS_FS=m | ||
1805 | CONFIG_AUTOFS4_FS=m | ||
1806 | # CONFIG_FUSE_FS is not set | ||
1807 | |||
1808 | # | ||
1809 | # CD-ROM/DVD Filesystems | ||
1810 | # | ||
1811 | CONFIG_ISO9660_FS=m | ||
1812 | CONFIG_JOLIET=y | ||
1813 | CONFIG_ZISOFS=y | ||
1814 | CONFIG_ZISOFS_FS=m | ||
1815 | CONFIG_UDF_FS=m | ||
1816 | CONFIG_UDF_NLS=y | ||
1817 | |||
1818 | # | ||
1819 | # DOS/FAT/NT Filesystems | ||
1820 | # | ||
1821 | CONFIG_FAT_FS=m | ||
1822 | CONFIG_MSDOS_FS=m | ||
1823 | CONFIG_VFAT_FS=m | ||
1824 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1825 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1826 | CONFIG_NTFS_FS=m | ||
1827 | # CONFIG_NTFS_DEBUG is not set | ||
1828 | # CONFIG_NTFS_RW is not set | ||
1829 | |||
1830 | # | ||
1831 | # Pseudo filesystems | ||
1832 | # | ||
1833 | CONFIG_PROC_FS=y | ||
1834 | CONFIG_SYSFS=y | ||
1835 | CONFIG_TMPFS=y | ||
1836 | # CONFIG_HUGETLB_PAGE is not set | ||
1837 | CONFIG_RAMFS=y | ||
1838 | # CONFIG_CONFIGFS_FS is not set | ||
1839 | |||
1840 | # | ||
1841 | # Miscellaneous filesystems | ||
1842 | # | ||
1843 | CONFIG_ADFS_FS=m | ||
1844 | # CONFIG_ADFS_FS_RW is not set | ||
1845 | CONFIG_AFFS_FS=m | ||
1846 | CONFIG_HFS_FS=m | ||
1847 | CONFIG_HFSPLUS_FS=m | ||
1848 | CONFIG_BEFS_FS=m | ||
1849 | # CONFIG_BEFS_DEBUG is not set | ||
1850 | CONFIG_BFS_FS=m | ||
1851 | CONFIG_EFS_FS=m | ||
1852 | CONFIG_JFFS_FS=m | ||
1853 | CONFIG_JFFS_FS_VERBOSE=0 | ||
1854 | CONFIG_JFFS_PROC_FS=y | ||
1855 | CONFIG_JFFS2_FS=m | ||
1856 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1857 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1858 | # CONFIG_JFFS2_SUMMARY is not set | ||
1859 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1860 | CONFIG_JFFS2_ZLIB=y | ||
1861 | CONFIG_JFFS2_RTIME=y | ||
1862 | # CONFIG_JFFS2_RUBIN is not set | ||
1863 | CONFIG_CRAMFS=y | ||
1864 | CONFIG_VXFS_FS=m | ||
1865 | CONFIG_HPFS_FS=m | ||
1866 | CONFIG_QNX4FS_FS=m | ||
1867 | CONFIG_SYSV_FS=m | ||
1868 | CONFIG_UFS_FS=m | ||
1869 | |||
1870 | # | ||
1871 | # Network File Systems | ||
1872 | # | ||
1873 | CONFIG_NFS_FS=m | ||
1874 | CONFIG_NFS_V3=y | ||
1875 | # CONFIG_NFS_V3_ACL is not set | ||
1876 | CONFIG_NFS_V4=y | ||
1877 | CONFIG_NFS_DIRECTIO=y | ||
1878 | CONFIG_NFSD=m | ||
1879 | CONFIG_NFSD_V3=y | ||
1880 | # CONFIG_NFSD_V3_ACL is not set | ||
1881 | CONFIG_NFSD_V4=y | ||
1882 | CONFIG_NFSD_TCP=y | ||
1883 | CONFIG_LOCKD=m | ||
1884 | CONFIG_LOCKD_V4=y | ||
1885 | CONFIG_EXPORTFS=m | ||
1886 | CONFIG_NFS_COMMON=y | ||
1887 | CONFIG_SUNRPC=m | ||
1888 | CONFIG_SUNRPC_GSS=m | ||
1889 | CONFIG_RPCSEC_GSS_KRB5=m | ||
1890 | CONFIG_RPCSEC_GSS_SPKM3=m | ||
1891 | CONFIG_SMB_FS=m | ||
1892 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1893 | CONFIG_CIFS=m | ||
1894 | # CONFIG_CIFS_STATS is not set | ||
1895 | # CONFIG_CIFS_XATTR is not set | ||
1896 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1897 | CONFIG_NCP_FS=m | ||
1898 | CONFIG_NCPFS_PACKET_SIGNING=y | ||
1899 | CONFIG_NCPFS_IOCTL_LOCKING=y | ||
1900 | CONFIG_NCPFS_STRONG=y | ||
1901 | CONFIG_NCPFS_NFS_NS=y | ||
1902 | CONFIG_NCPFS_OS2_NS=y | ||
1903 | # CONFIG_NCPFS_SMALLDOS is not set | ||
1904 | CONFIG_NCPFS_NLS=y | ||
1905 | CONFIG_NCPFS_EXTRAS=y | ||
1906 | CONFIG_CODA_FS=m | ||
1907 | # CONFIG_CODA_FS_OLD_API is not set | ||
1908 | CONFIG_AFS_FS=m | ||
1909 | CONFIG_RXRPC=m | ||
1910 | # CONFIG_9P_FS is not set | ||
1911 | |||
1912 | # | ||
1913 | # Partition Types | ||
1914 | # | ||
1915 | CONFIG_PARTITION_ADVANCED=y | ||
1916 | CONFIG_ACORN_PARTITION=y | ||
1917 | # CONFIG_ACORN_PARTITION_CUMANA is not set | ||
1918 | # CONFIG_ACORN_PARTITION_EESOX is not set | ||
1919 | CONFIG_ACORN_PARTITION_ICS=y | ||
1920 | # CONFIG_ACORN_PARTITION_ADFS is not set | ||
1921 | # CONFIG_ACORN_PARTITION_POWERTEC is not set | ||
1922 | CONFIG_ACORN_PARTITION_RISCIX=y | ||
1923 | CONFIG_OSF_PARTITION=y | ||
1924 | CONFIG_AMIGA_PARTITION=y | ||
1925 | CONFIG_ATARI_PARTITION=y | ||
1926 | CONFIG_MAC_PARTITION=y | ||
1927 | CONFIG_MSDOS_PARTITION=y | ||
1928 | CONFIG_BSD_DISKLABEL=y | ||
1929 | CONFIG_MINIX_SUBPARTITION=y | ||
1930 | CONFIG_SOLARIS_X86_PARTITION=y | ||
1931 | CONFIG_UNIXWARE_DISKLABEL=y | ||
1932 | CONFIG_LDM_PARTITION=y | ||
1933 | # CONFIG_LDM_DEBUG is not set | ||
1934 | CONFIG_SGI_PARTITION=y | ||
1935 | CONFIG_ULTRIX_PARTITION=y | ||
1936 | CONFIG_SUN_PARTITION=y | ||
1937 | # CONFIG_KARMA_PARTITION is not set | ||
1938 | # CONFIG_EFI_PARTITION is not set | ||
1939 | |||
1940 | # | ||
1941 | # Native Language Support | ||
1942 | # | ||
1943 | CONFIG_NLS=y | ||
1944 | CONFIG_NLS_DEFAULT="cp437" | ||
1945 | CONFIG_NLS_CODEPAGE_437=m | ||
1946 | CONFIG_NLS_CODEPAGE_737=m | ||
1947 | CONFIG_NLS_CODEPAGE_775=m | ||
1948 | CONFIG_NLS_CODEPAGE_850=m | ||
1949 | CONFIG_NLS_CODEPAGE_852=m | ||
1950 | CONFIG_NLS_CODEPAGE_855=m | ||
1951 | CONFIG_NLS_CODEPAGE_857=m | ||
1952 | CONFIG_NLS_CODEPAGE_860=m | ||
1953 | CONFIG_NLS_CODEPAGE_861=m | ||
1954 | CONFIG_NLS_CODEPAGE_862=m | ||
1955 | CONFIG_NLS_CODEPAGE_863=m | ||
1956 | CONFIG_NLS_CODEPAGE_864=m | ||
1957 | CONFIG_NLS_CODEPAGE_865=m | ||
1958 | CONFIG_NLS_CODEPAGE_866=m | ||
1959 | CONFIG_NLS_CODEPAGE_869=m | ||
1960 | CONFIG_NLS_CODEPAGE_936=m | ||
1961 | CONFIG_NLS_CODEPAGE_950=m | ||
1962 | CONFIG_NLS_CODEPAGE_932=m | ||
1963 | CONFIG_NLS_CODEPAGE_949=m | ||
1964 | CONFIG_NLS_CODEPAGE_874=m | ||
1965 | CONFIG_NLS_ISO8859_8=m | ||
1966 | CONFIG_NLS_CODEPAGE_1250=m | ||
1967 | CONFIG_NLS_CODEPAGE_1251=m | ||
1968 | CONFIG_NLS_ASCII=m | ||
1969 | CONFIG_NLS_ISO8859_1=m | ||
1970 | CONFIG_NLS_ISO8859_2=m | ||
1971 | CONFIG_NLS_ISO8859_3=m | ||
1972 | CONFIG_NLS_ISO8859_4=m | ||
1973 | CONFIG_NLS_ISO8859_5=m | ||
1974 | CONFIG_NLS_ISO8859_6=m | ||
1975 | CONFIG_NLS_ISO8859_7=m | ||
1976 | CONFIG_NLS_ISO8859_9=m | ||
1977 | CONFIG_NLS_ISO8859_13=m | ||
1978 | CONFIG_NLS_ISO8859_14=m | ||
1979 | CONFIG_NLS_ISO8859_15=m | ||
1980 | CONFIG_NLS_KOI8_R=m | ||
1981 | CONFIG_NLS_KOI8_U=m | ||
1982 | CONFIG_NLS_UTF8=m | ||
1983 | |||
1984 | # | ||
1985 | # Profiling support | ||
1986 | # | ||
1987 | CONFIG_PROFILING=y | ||
1988 | CONFIG_OPROFILE=m | ||
1989 | |||
1990 | # | ||
1991 | # Kernel hacking | ||
1992 | # | ||
1993 | # CONFIG_PRINTK_TIME is not set | ||
1994 | CONFIG_MAGIC_SYSRQ=y | ||
1995 | CONFIG_DEBUG_KERNEL=y | ||
1996 | CONFIG_LOG_BUF_SHIFT=14 | ||
1997 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1998 | # CONFIG_SCHEDSTATS is not set | ||
1999 | # CONFIG_DEBUG_SLAB is not set | ||
2000 | CONFIG_DEBUG_PREEMPT=y | ||
2001 | CONFIG_DEBUG_MUTEXES=y | ||
2002 | # CONFIG_DEBUG_SPINLOCK is not set | ||
2003 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
2004 | # CONFIG_DEBUG_KOBJECT is not set | ||
2005 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
2006 | CONFIG_DEBUG_INFO=y | ||
2007 | # CONFIG_DEBUG_FS is not set | ||
2008 | # CONFIG_DEBUG_VM is not set | ||
2009 | CONFIG_FRAME_POINTER=y | ||
2010 | # CONFIG_UNWIND_INFO is not set | ||
2011 | CONFIG_FORCED_INLINING=y | ||
2012 | # CONFIG_RCU_TORTURE_TEST is not set | ||
2013 | # CONFIG_DEBUG_USER is not set | ||
2014 | # CONFIG_DEBUG_WAITQ is not set | ||
2015 | # CONFIG_DEBUG_ERRORS is not set | ||
2016 | CONFIG_DEBUG_LL=y | ||
2017 | # CONFIG_DEBUG_ICEDCC is not set | ||
2018 | |||
2019 | # | ||
2020 | # Security options | ||
2021 | # | ||
2022 | # CONFIG_KEYS is not set | ||
2023 | CONFIG_SECURITY=y | ||
2024 | # CONFIG_SECURITY_NETWORK is not set | ||
2025 | CONFIG_SECURITY_CAPABILITIES=m | ||
2026 | CONFIG_SECURITY_ROOTPLUG=m | ||
2027 | CONFIG_SECURITY_SECLVL=m | ||
2028 | |||
2029 | # | ||
2030 | # Cryptographic options | ||
2031 | # | ||
2032 | CONFIG_CRYPTO=y | ||
2033 | CONFIG_CRYPTO_HMAC=y | ||
2034 | CONFIG_CRYPTO_NULL=m | ||
2035 | CONFIG_CRYPTO_MD4=m | ||
2036 | CONFIG_CRYPTO_MD5=y | ||
2037 | CONFIG_CRYPTO_SHA1=m | ||
2038 | CONFIG_CRYPTO_SHA256=m | ||
2039 | CONFIG_CRYPTO_SHA512=m | ||
2040 | CONFIG_CRYPTO_WP512=m | ||
2041 | # CONFIG_CRYPTO_TGR192 is not set | ||
2042 | CONFIG_CRYPTO_DES=m | ||
2043 | CONFIG_CRYPTO_BLOWFISH=m | ||
2044 | CONFIG_CRYPTO_TWOFISH=m | ||
2045 | CONFIG_CRYPTO_SERPENT=m | ||
2046 | CONFIG_CRYPTO_AES=m | ||
2047 | CONFIG_CRYPTO_CAST5=m | ||
2048 | CONFIG_CRYPTO_CAST6=m | ||
2049 | CONFIG_CRYPTO_TEA=m | ||
2050 | CONFIG_CRYPTO_ARC4=m | ||
2051 | CONFIG_CRYPTO_KHAZAD=m | ||
2052 | CONFIG_CRYPTO_ANUBIS=m | ||
2053 | CONFIG_CRYPTO_DEFLATE=m | ||
2054 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
2055 | CONFIG_CRYPTO_CRC32C=m | ||
2056 | CONFIG_CRYPTO_TEST=m | ||
2057 | |||
2058 | # | ||
2059 | # Hardware crypto devices | ||
2060 | # | ||
2061 | |||
2062 | # | ||
2063 | # Library routines | ||
2064 | # | ||
2065 | CONFIG_CRC_CCITT=m | ||
2066 | CONFIG_CRC16=m | ||
2067 | CONFIG_CRC32=y | ||
2068 | CONFIG_LIBCRC32C=m | ||
2069 | CONFIG_ZLIB_INFLATE=y | ||
2070 | CONFIG_ZLIB_DEFLATE=m | ||
2071 | CONFIG_REED_SOLOMON=m | ||
2072 | CONFIG_REED_SOLOMON_DEC16=y | ||
diff --git a/arch/arm/configs/s3c2410_defconfig b/arch/arm/configs/s3c2410_defconfig index 3cec29d56c8e..e17661380096 100644 --- a/arch/arm/configs/s3c2410_defconfig +++ b/arch/arm/configs/s3c2410_defconfig | |||
@@ -1,12 +1,14 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.16 | 3 | # Linux kernel version: 2.6.17 |
4 | # Mon Mar 20 20:36:02 2006 | 4 | # Tue Jun 20 18:57:01 2006 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_MMU=y | 7 | CONFIG_MMU=y |
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
9 | CONFIG_GENERIC_HWEIGHT=y | ||
9 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 10 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
11 | CONFIG_VECTORS_BASE=0xffff0000 | ||
10 | 12 | ||
11 | # | 13 | # |
12 | # Code maturity level options | 14 | # Code maturity level options |
@@ -27,6 +29,7 @@ CONFIG_SYSVIPC=y | |||
27 | CONFIG_SYSCTL=y | 29 | CONFIG_SYSCTL=y |
28 | # CONFIG_AUDIT is not set | 30 | # CONFIG_AUDIT is not set |
29 | # CONFIG_IKCONFIG is not set | 31 | # CONFIG_IKCONFIG is not set |
32 | # CONFIG_RELAY is not set | ||
30 | CONFIG_INITRAMFS_SOURCE="" | 33 | CONFIG_INITRAMFS_SOURCE="" |
31 | CONFIG_UID16=y | 34 | CONFIG_UID16=y |
32 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 35 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
@@ -42,10 +45,6 @@ CONFIG_BASE_FULL=y | |||
42 | CONFIG_FUTEX=y | 45 | CONFIG_FUTEX=y |
43 | CONFIG_EPOLL=y | 46 | CONFIG_EPOLL=y |
44 | CONFIG_SHMEM=y | 47 | CONFIG_SHMEM=y |
45 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
46 | CONFIG_CC_ALIGN_LABELS=0 | ||
47 | CONFIG_CC_ALIGN_LOOPS=0 | ||
48 | CONFIG_CC_ALIGN_JUMPS=0 | ||
49 | CONFIG_SLAB=y | 48 | CONFIG_SLAB=y |
50 | # CONFIG_TINY_SHMEM is not set | 49 | # CONFIG_TINY_SHMEM is not set |
51 | CONFIG_BASE_SMALL=0 | 50 | CONFIG_BASE_SMALL=0 |
@@ -57,7 +56,6 @@ CONFIG_OBSOLETE_INTERMODULE=y | |||
57 | # | 56 | # |
58 | CONFIG_MODULES=y | 57 | CONFIG_MODULES=y |
59 | # CONFIG_MODULE_UNLOAD is not set | 58 | # CONFIG_MODULE_UNLOAD is not set |
60 | CONFIG_OBSOLETE_MODPARM=y | ||
61 | # CONFIG_MODVERSIONS is not set | 59 | # CONFIG_MODVERSIONS is not set |
62 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 60 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
63 | CONFIG_KMOD=y | 61 | CONFIG_KMOD=y |
@@ -65,6 +63,7 @@ CONFIG_KMOD=y | |||
65 | # | 63 | # |
66 | # Block layer | 64 | # Block layer |
67 | # | 65 | # |
66 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
68 | 67 | ||
69 | # | 68 | # |
70 | # IO Schedulers | 69 | # IO Schedulers |
@@ -92,6 +91,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
92 | # CONFIG_ARCH_IOP3XX is not set | 91 | # CONFIG_ARCH_IOP3XX is not set |
93 | # CONFIG_ARCH_IXP4XX is not set | 92 | # CONFIG_ARCH_IXP4XX is not set |
94 | # CONFIG_ARCH_IXP2000 is not set | 93 | # CONFIG_ARCH_IXP2000 is not set |
94 | # CONFIG_ARCH_IXP23XX is not set | ||
95 | # CONFIG_ARCH_L7200 is not set | 95 | # CONFIG_ARCH_L7200 is not set |
96 | # CONFIG_ARCH_PXA is not set | 96 | # CONFIG_ARCH_PXA is not set |
97 | # CONFIG_ARCH_RPC is not set | 97 | # CONFIG_ARCH_RPC is not set |
@@ -106,6 +106,8 @@ CONFIG_ARCH_S3C2410=y | |||
106 | # CONFIG_ARCH_H720X is not set | 106 | # CONFIG_ARCH_H720X is not set |
107 | # CONFIG_ARCH_AAEC2000 is not set | 107 | # CONFIG_ARCH_AAEC2000 is not set |
108 | # CONFIG_ARCH_AT91RM9200 is not set | 108 | # CONFIG_ARCH_AT91RM9200 is not set |
109 | # CONFIG_ARCH_PNX4008 is not set | ||
110 | # CONFIG_ARCH_NETX is not set | ||
109 | 111 | ||
110 | # | 112 | # |
111 | # S3C24XX Implementations | 113 | # S3C24XX Implementations |
@@ -116,14 +118,19 @@ CONFIG_ARCH_BAST=y | |||
116 | CONFIG_BAST_PC104_IRQ=y | 118 | CONFIG_BAST_PC104_IRQ=y |
117 | CONFIG_ARCH_H1940=y | 119 | CONFIG_ARCH_H1940=y |
118 | CONFIG_MACH_N30=y | 120 | CONFIG_MACH_N30=y |
121 | CONFIG_MACH_SMDK=y | ||
119 | CONFIG_ARCH_SMDK2410=y | 122 | CONFIG_ARCH_SMDK2410=y |
120 | CONFIG_ARCH_S3C2440=y | 123 | CONFIG_ARCH_S3C2440=y |
124 | CONFIG_SMDK2440_CPU2440=y | ||
125 | CONFIG_SMDK2440_CPU2442=y | ||
121 | CONFIG_MACH_VR1000=y | 126 | CONFIG_MACH_VR1000=y |
122 | CONFIG_MACH_RX3715=y | 127 | CONFIG_MACH_RX3715=y |
123 | CONFIG_MACH_OTOM=y | 128 | CONFIG_MACH_OTOM=y |
124 | CONFIG_MACH_NEXCODER_2440=y | 129 | CONFIG_MACH_NEXCODER_2440=y |
125 | CONFIG_CPU_S3C2410=y | 130 | CONFIG_CPU_S3C2410=y |
131 | CONFIG_CPU_S3C244X=y | ||
126 | CONFIG_CPU_S3C2440=y | 132 | CONFIG_CPU_S3C2440=y |
133 | CONFIG_CPU_S3C2442=y | ||
127 | 134 | ||
128 | # | 135 | # |
129 | # S3C2410 Boot | 136 | # S3C2410 Boot |
@@ -251,12 +258,15 @@ CONFIG_IP_PNP_BOOTP=y | |||
251 | # CONFIG_INET_AH is not set | 258 | # CONFIG_INET_AH is not set |
252 | # CONFIG_INET_ESP is not set | 259 | # CONFIG_INET_ESP is not set |
253 | # CONFIG_INET_IPCOMP is not set | 260 | # CONFIG_INET_IPCOMP is not set |
261 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
254 | # CONFIG_INET_TUNNEL is not set | 262 | # CONFIG_INET_TUNNEL is not set |
255 | CONFIG_INET_DIAG=y | 263 | CONFIG_INET_DIAG=y |
256 | CONFIG_INET_TCP_DIAG=y | 264 | CONFIG_INET_TCP_DIAG=y |
257 | # CONFIG_TCP_CONG_ADVANCED is not set | 265 | # CONFIG_TCP_CONG_ADVANCED is not set |
258 | CONFIG_TCP_CONG_BIC=y | 266 | CONFIG_TCP_CONG_BIC=y |
259 | # CONFIG_IPV6 is not set | 267 | # CONFIG_IPV6 is not set |
268 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
269 | # CONFIG_INET6_TUNNEL is not set | ||
260 | # CONFIG_NETFILTER is not set | 270 | # CONFIG_NETFILTER is not set |
261 | 271 | ||
262 | # | 272 | # |
@@ -360,7 +370,6 @@ CONFIG_MTD_CFI_I2=y | |||
360 | # CONFIG_MTD_CFI_I8 is not set | 370 | # CONFIG_MTD_CFI_I8 is not set |
361 | CONFIG_MTD_CFI_INTELEXT=y | 371 | CONFIG_MTD_CFI_INTELEXT=y |
362 | CONFIG_MTD_CFI_AMDSTD=y | 372 | CONFIG_MTD_CFI_AMDSTD=y |
363 | CONFIG_MTD_CFI_AMDSTD_RETRY=0 | ||
364 | # CONFIG_MTD_CFI_STAA is not set | 373 | # CONFIG_MTD_CFI_STAA is not set |
365 | CONFIG_MTD_CFI_UTIL=y | 374 | CONFIG_MTD_CFI_UTIL=y |
366 | # CONFIG_MTD_RAM is not set | 375 | # CONFIG_MTD_RAM is not set |
@@ -385,7 +394,6 @@ CONFIG_MTD_BAST_MAXSIZE=4 | |||
385 | # CONFIG_MTD_SLRAM is not set | 394 | # CONFIG_MTD_SLRAM is not set |
386 | # CONFIG_MTD_PHRAM is not set | 395 | # CONFIG_MTD_PHRAM is not set |
387 | # CONFIG_MTD_MTDRAM is not set | 396 | # CONFIG_MTD_MTDRAM is not set |
388 | # CONFIG_MTD_BLKMTD is not set | ||
389 | # CONFIG_MTD_BLOCK2MTD is not set | 397 | # CONFIG_MTD_BLOCK2MTD is not set |
390 | 398 | ||
391 | # | 399 | # |
@@ -694,7 +702,6 @@ CONFIG_S3C2410_WATCHDOG=y | |||
694 | # | 702 | # |
695 | # CONFIG_USBPCWATCHDOG is not set | 703 | # CONFIG_USBPCWATCHDOG is not set |
696 | # CONFIG_NVRAM is not set | 704 | # CONFIG_NVRAM is not set |
697 | # CONFIG_RTC is not set | ||
698 | CONFIG_S3C2410_RTC=y | 705 | CONFIG_S3C2410_RTC=y |
699 | # CONFIG_DTLK is not set | 706 | # CONFIG_DTLK is not set |
700 | # CONFIG_R3964 is not set | 707 | # CONFIG_R3964 is not set |
@@ -743,9 +750,7 @@ CONFIG_SENSORS_EEPROM=m | |||
743 | # CONFIG_SENSORS_PCF8574 is not set | 750 | # CONFIG_SENSORS_PCF8574 is not set |
744 | # CONFIG_SENSORS_PCA9539 is not set | 751 | # CONFIG_SENSORS_PCA9539 is not set |
745 | # CONFIG_SENSORS_PCF8591 is not set | 752 | # CONFIG_SENSORS_PCF8591 is not set |
746 | # CONFIG_SENSORS_RTC8564 is not set | ||
747 | # CONFIG_SENSORS_MAX6875 is not set | 753 | # CONFIG_SENSORS_MAX6875 is not set |
748 | # CONFIG_RTC_X1205_I2C is not set | ||
749 | # CONFIG_I2C_DEBUG_CORE is not set | 754 | # CONFIG_I2C_DEBUG_CORE is not set |
750 | # CONFIG_I2C_DEBUG_ALGO is not set | 755 | # CONFIG_I2C_DEBUG_ALGO is not set |
751 | # CONFIG_I2C_DEBUG_BUS is not set | 756 | # CONFIG_I2C_DEBUG_BUS is not set |
@@ -807,18 +812,29 @@ CONFIG_SENSORS_LM85=m | |||
807 | # | 812 | # |
808 | 813 | ||
809 | # | 814 | # |
810 | # Multimedia Capabilities Port drivers | 815 | # LED devices |
816 | # | ||
817 | # CONFIG_NEW_LEDS is not set | ||
818 | |||
819 | # | ||
820 | # LED drivers | ||
821 | # | ||
822 | |||
823 | # | ||
824 | # LED Triggers | ||
811 | # | 825 | # |
812 | 826 | ||
813 | # | 827 | # |
814 | # Multimedia devices | 828 | # Multimedia devices |
815 | # | 829 | # |
816 | # CONFIG_VIDEO_DEV is not set | 830 | # CONFIG_VIDEO_DEV is not set |
831 | CONFIG_VIDEO_V4L2=y | ||
817 | 832 | ||
818 | # | 833 | # |
819 | # Digital Video Broadcasting Devices | 834 | # Digital Video Broadcasting Devices |
820 | # | 835 | # |
821 | # CONFIG_DVB is not set | 836 | # CONFIG_DVB is not set |
837 | # CONFIG_USB_DABUSB is not set | ||
822 | 838 | ||
823 | # | 839 | # |
824 | # Graphics support | 840 | # Graphics support |
@@ -828,6 +844,7 @@ CONFIG_FB_CFB_FILLRECT=y | |||
828 | CONFIG_FB_CFB_COPYAREA=y | 844 | CONFIG_FB_CFB_COPYAREA=y |
829 | CONFIG_FB_CFB_IMAGEBLIT=y | 845 | CONFIG_FB_CFB_IMAGEBLIT=y |
830 | # CONFIG_FB_MACMODES is not set | 846 | # CONFIG_FB_MACMODES is not set |
847 | CONFIG_FB_FIRMWARE_EDID=y | ||
831 | CONFIG_FB_MODE_HELPERS=y | 848 | CONFIG_FB_MODE_HELPERS=y |
832 | # CONFIG_FB_TILEBLITTING is not set | 849 | # CONFIG_FB_TILEBLITTING is not set |
833 | # CONFIG_FB_S1D13XXX is not set | 850 | # CONFIG_FB_S1D13XXX is not set |
@@ -863,6 +880,7 @@ CONFIG_FONT_8x16=y | |||
863 | # | 880 | # |
864 | CONFIG_USB_ARCH_HAS_HCD=y | 881 | CONFIG_USB_ARCH_HAS_HCD=y |
865 | CONFIG_USB_ARCH_HAS_OHCI=y | 882 | CONFIG_USB_ARCH_HAS_OHCI=y |
883 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
866 | CONFIG_USB=y | 884 | CONFIG_USB=y |
867 | # CONFIG_USB_DEBUG is not set | 885 | # CONFIG_USB_DEBUG is not set |
868 | 886 | ||
@@ -915,9 +933,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
915 | # CONFIG_USB_ACECAD is not set | 933 | # CONFIG_USB_ACECAD is not set |
916 | # CONFIG_USB_KBTAB is not set | 934 | # CONFIG_USB_KBTAB is not set |
917 | # CONFIG_USB_POWERMATE is not set | 935 | # CONFIG_USB_POWERMATE is not set |
918 | # CONFIG_USB_MTOUCH is not set | 936 | # CONFIG_USB_TOUCHSCREEN is not set |
919 | # CONFIG_USB_ITMTOUCH is not set | ||
920 | # CONFIG_USB_EGALAX is not set | ||
921 | # CONFIG_USB_YEALINK is not set | 937 | # CONFIG_USB_YEALINK is not set |
922 | # CONFIG_USB_XPAD is not set | 938 | # CONFIG_USB_XPAD is not set |
923 | # CONFIG_USB_ATI_REMOTE is not set | 939 | # CONFIG_USB_ATI_REMOTE is not set |
@@ -931,15 +947,6 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
931 | # CONFIG_USB_MDC800 is not set | 947 | # CONFIG_USB_MDC800 is not set |
932 | 948 | ||
933 | # | 949 | # |
934 | # USB Multimedia devices | ||
935 | # | ||
936 | # CONFIG_USB_DABUSB is not set | ||
937 | |||
938 | # | ||
939 | # Video4Linux support is needed for USB Multimedia device support | ||
940 | # | ||
941 | |||
942 | # | ||
943 | # USB Network Adapters | 950 | # USB Network Adapters |
944 | # | 951 | # |
945 | # CONFIG_USB_CATC is not set | 952 | # CONFIG_USB_CATC is not set |
@@ -984,17 +991,6 @@ CONFIG_USB_MON=y | |||
984 | # USB Gadget Support | 991 | # USB Gadget Support |
985 | # | 992 | # |
986 | # CONFIG_USB_GADGET is not set | 993 | # CONFIG_USB_GADGET is not set |
987 | # CONFIG_USB_GADGET_NET2280 is not set | ||
988 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
989 | # CONFIG_USB_GADGET_GOKU is not set | ||
990 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
991 | # CONFIG_USB_GADGET_OMAP is not set | ||
992 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
993 | # CONFIG_USB_ZERO is not set | ||
994 | # CONFIG_USB_ETH is not set | ||
995 | # CONFIG_USB_GADGETFS is not set | ||
996 | # CONFIG_USB_FILE_STORAGE is not set | ||
997 | # CONFIG_USB_G_SERIAL is not set | ||
998 | 994 | ||
999 | # | 995 | # |
1000 | # MMC/SD Card support | 996 | # MMC/SD Card support |
@@ -1002,6 +998,12 @@ CONFIG_USB_MON=y | |||
1002 | # CONFIG_MMC is not set | 998 | # CONFIG_MMC is not set |
1003 | 999 | ||
1004 | # | 1000 | # |
1001 | # Real Time Clock | ||
1002 | # | ||
1003 | CONFIG_RTC_LIB=y | ||
1004 | # CONFIG_RTC_CLASS is not set | ||
1005 | |||
1006 | # | ||
1005 | # File systems | 1007 | # File systems |
1006 | # | 1008 | # |
1007 | CONFIG_EXT2_FS=y | 1009 | CONFIG_EXT2_FS=y |
@@ -1052,7 +1054,6 @@ CONFIG_SYSFS=y | |||
1052 | # CONFIG_TMPFS is not set | 1054 | # CONFIG_TMPFS is not set |
1053 | # CONFIG_HUGETLB_PAGE is not set | 1055 | # CONFIG_HUGETLB_PAGE is not set |
1054 | CONFIG_RAMFS=y | 1056 | CONFIG_RAMFS=y |
1055 | # CONFIG_RELAYFS_FS is not set | ||
1056 | # CONFIG_CONFIGFS_FS is not set | 1057 | # CONFIG_CONFIGFS_FS is not set |
1057 | 1058 | ||
1058 | # | 1059 | # |
@@ -1193,6 +1194,7 @@ CONFIG_DEBUG_INFO=y | |||
1193 | # CONFIG_DEBUG_FS is not set | 1194 | # CONFIG_DEBUG_FS is not set |
1194 | # CONFIG_DEBUG_VM is not set | 1195 | # CONFIG_DEBUG_VM is not set |
1195 | CONFIG_FRAME_POINTER=y | 1196 | CONFIG_FRAME_POINTER=y |
1197 | # CONFIG_UNWIND_INFO is not set | ||
1196 | CONFIG_FORCED_INLINING=y | 1198 | CONFIG_FORCED_INLINING=y |
1197 | # CONFIG_RCU_TORTURE_TEST is not set | 1199 | # CONFIG_RCU_TORTURE_TEST is not set |
1198 | CONFIG_DEBUG_USER=y | 1200 | CONFIG_DEBUG_USER=y |
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index ab8e600c18c8..86c92523a346 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <asm/glue.h> | 20 | #include <asm/glue.h> |
21 | #include <asm/vfpmacros.h> | 21 | #include <asm/vfpmacros.h> |
22 | #include <asm/arch/entry-macro.S> | 22 | #include <asm/arch/entry-macro.S> |
23 | #include <asm/thread_notify.h> | ||
23 | 24 | ||
24 | #include "entry-header.S" | 25 | #include "entry-header.S" |
25 | 26 | ||
@@ -560,10 +561,8 @@ ENTRY(__switch_to) | |||
560 | add ip, r1, #TI_CPU_SAVE | 561 | add ip, r1, #TI_CPU_SAVE |
561 | ldr r3, [r2, #TI_TP_VALUE] | 562 | ldr r3, [r2, #TI_TP_VALUE] |
562 | stmia ip!, {r4 - sl, fp, sp, lr} @ Store most regs on stack | 563 | stmia ip!, {r4 - sl, fp, sp, lr} @ Store most regs on stack |
563 | #ifndef CONFIG_MMU | 564 | #ifdef CONFIG_MMU |
564 | add r2, r2, #TI_CPU_DOMAIN | 565 | ldr r6, [r2, #TI_CPU_DOMAIN] |
565 | #else | ||
566 | ldr r6, [r2, #TI_CPU_DOMAIN]! | ||
567 | #endif | 566 | #endif |
568 | #if __LINUX_ARM_ARCH__ >= 6 | 567 | #if __LINUX_ARM_ARCH__ >= 6 |
569 | #ifdef CONFIG_CPU_32v6K | 568 | #ifdef CONFIG_CPU_32v6K |
@@ -585,21 +584,20 @@ ENTRY(__switch_to) | |||
585 | #ifdef CONFIG_MMU | 584 | #ifdef CONFIG_MMU |
586 | mcr p15, 0, r6, c3, c0, 0 @ Set domain register | 585 | mcr p15, 0, r6, c3, c0, 0 @ Set domain register |
587 | #endif | 586 | #endif |
588 | #ifdef CONFIG_VFP | ||
589 | @ Always disable VFP so we can lazily save/restore the old | ||
590 | @ state. This occurs in the context of the previous thread. | ||
591 | VFPFMRX r4, FPEXC | ||
592 | bic r4, r4, #FPEXC_ENABLE | ||
593 | VFPFMXR FPEXC, r4 | ||
594 | #endif | ||
595 | #if defined(CONFIG_IWMMXT) | 587 | #if defined(CONFIG_IWMMXT) |
596 | bl iwmmxt_task_switch | 588 | bl iwmmxt_task_switch |
597 | #elif defined(CONFIG_CPU_XSCALE) | 589 | #elif defined(CONFIG_CPU_XSCALE) |
598 | add r4, r2, #40 @ cpu_context_save->extra | 590 | add r4, r2, #TI_CPU_DOMAIN + 40 @ cpu_context_save->extra |
599 | ldmib r4, {r4, r5} | 591 | ldmib r4, {r4, r5} |
600 | mar acc0, r4, r5 | 592 | mar acc0, r4, r5 |
601 | #endif | 593 | #endif |
602 | ldmib r2, {r4 - sl, fp, sp, pc} @ Load all regs saved previously | 594 | mov r5, r0 |
595 | add r4, r2, #TI_CPU_SAVE | ||
596 | ldr r0, =thread_notify_head | ||
597 | mov r1, #THREAD_NOTIFY_SWITCH | ||
598 | bl atomic_notifier_call_chain | ||
599 | mov r0, r5 | ||
600 | ldmia r4, {r4 - sl, fp, sp, pc} @ Load all regs saved previously | ||
603 | 601 | ||
604 | __INIT | 602 | __INIT |
605 | 603 | ||
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index dbcb11a31f78..b5bcebca1cd6 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -271,7 +271,7 @@ ENTRY(sys_call_table) | |||
271 | @ r8 = syscall table | 271 | @ r8 = syscall table |
272 | .type sys_syscall, #function | 272 | .type sys_syscall, #function |
273 | sys_syscall: | 273 | sys_syscall: |
274 | eor scno, r0, #__NR_OABI_SYSCALL_BASE | 274 | bic scno, r0, #__NR_OABI_SYSCALL_BASE |
275 | cmp scno, #__NR_syscall - __NR_SYSCALL_BASE | 275 | cmp scno, #__NR_syscall - __NR_SYSCALL_BASE |
276 | cmpne scno, #NR_syscalls @ check range | 276 | cmpne scno, #NR_syscalls @ check range |
277 | stmloia sp, {r5, r6} @ shuffle args | 277 | stmloia sp, {r5, r6} @ shuffle args |
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 2d5896b36181..ec20f8935e8b 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -52,7 +52,7 @@ | |||
52 | */ | 52 | */ |
53 | #define MAX_IRQ_CNT 100000 | 53 | #define MAX_IRQ_CNT 100000 |
54 | 54 | ||
55 | static int noirqdebug; | 55 | static int noirqdebug __read_mostly; |
56 | static volatile unsigned long irq_err_count; | 56 | static volatile unsigned long irq_err_count; |
57 | static DEFINE_SPINLOCK(irq_controller_lock); | 57 | static DEFINE_SPINLOCK(irq_controller_lock); |
58 | static LIST_HEAD(irq_pending); | 58 | static LIST_HEAD(irq_pending); |
@@ -81,7 +81,7 @@ irqreturn_t no_action(int irq, void *dev_id, struct pt_regs *regs) | |||
81 | 81 | ||
82 | void do_bad_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) | 82 | void do_bad_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) |
83 | { | 83 | { |
84 | irq_err_count += 1; | 84 | irq_err_count++; |
85 | printk(KERN_ERR "IRQ: spurious interrupt %d\n", irq); | 85 | printk(KERN_ERR "IRQ: spurious interrupt %d\n", irq); |
86 | } | 86 | } |
87 | 87 | ||
@@ -342,10 +342,10 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs) | |||
342 | 342 | ||
343 | #ifdef CONFIG_NO_IDLE_HZ | 343 | #ifdef CONFIG_NO_IDLE_HZ |
344 | if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) { | 344 | if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) { |
345 | write_seqlock(&xtime_lock); | 345 | spin_lock(&system_timer->dyn_tick->lock); |
346 | if (system_timer->dyn_tick->state & DYN_TICK_ENABLED) | 346 | if (system_timer->dyn_tick->state & DYN_TICK_ENABLED) |
347 | system_timer->dyn_tick->handler(irq, 0, regs); | 347 | system_timer->dyn_tick->handler(irq, 0, regs); |
348 | write_sequnlock(&xtime_lock); | 348 | spin_unlock(&system_timer->dyn_tick->lock); |
349 | } | 349 | } |
350 | #endif | 350 | #endif |
351 | 351 | ||
diff --git a/arch/arm/kernel/iwmmxt.S b/arch/arm/kernel/iwmmxt.S index 24c7b0477a09..a3bae95e536c 100644 --- a/arch/arm/kernel/iwmmxt.S +++ b/arch/arm/kernel/iwmmxt.S | |||
@@ -273,7 +273,7 @@ ENTRY(iwmmxt_task_restore) | |||
273 | * | 273 | * |
274 | * r0 = previous task_struct pointer (must be preserved) | 274 | * r0 = previous task_struct pointer (must be preserved) |
275 | * r1 = previous thread_info pointer | 275 | * r1 = previous thread_info pointer |
276 | * r2 = next thread_info.cpu_domain pointer (must be preserved) | 276 | * r2 = next thread_info pointer (must be preserved) |
277 | * | 277 | * |
278 | * Called only from __switch_to with task preemption disabled. | 278 | * Called only from __switch_to with task preemption disabled. |
279 | * No need to care about preserving r4 and above. | 279 | * No need to care about preserving r4 and above. |
@@ -285,7 +285,7 @@ ENTRY(iwmmxt_task_switch) | |||
285 | bne 1f @ yes: block them for next task | 285 | bne 1f @ yes: block them for next task |
286 | 286 | ||
287 | ldr r5, =concan_owner | 287 | ldr r5, =concan_owner |
288 | add r6, r2, #(TI_IWMMXT_STATE - TI_CPU_DOMAIN) @ get next task Concan save area | 288 | add r6, r2, #TI_IWMMXT_STATE @ get next task Concan save area |
289 | ldr r5, [r5] @ get current Concan owner | 289 | ldr r5, [r5] @ get current Concan owner |
290 | teq r5, r6 @ next task owns it? | 290 | teq r5, r6 @ next task owns it? |
291 | movne pc, lr @ no: leave Concan disabled | 291 | movne pc, lr @ no: leave Concan disabled |
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 7df6e1aaa323..e1c77ee885a7 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -28,10 +28,12 @@ | |||
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/cpu.h> | 29 | #include <linux/cpu.h> |
30 | #include <linux/elfcore.h> | 30 | #include <linux/elfcore.h> |
31 | #include <linux/pm.h> | ||
31 | 32 | ||
32 | #include <asm/leds.h> | 33 | #include <asm/leds.h> |
33 | #include <asm/processor.h> | 34 | #include <asm/processor.h> |
34 | #include <asm/system.h> | 35 | #include <asm/system.h> |
36 | #include <asm/thread_notify.h> | ||
35 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
36 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
37 | 39 | ||
@@ -71,8 +73,36 @@ static int __init hlt_setup(char *__unused) | |||
71 | __setup("nohlt", nohlt_setup); | 73 | __setup("nohlt", nohlt_setup); |
72 | __setup("hlt", hlt_setup); | 74 | __setup("hlt", hlt_setup); |
73 | 75 | ||
76 | void arm_machine_restart(char mode) | ||
77 | { | ||
78 | /* | ||
79 | * Clean and disable cache, and turn off interrupts | ||
80 | */ | ||
81 | cpu_proc_fin(); | ||
82 | |||
83 | /* | ||
84 | * Tell the mm system that we are going to reboot - | ||
85 | * we may need it to insert some 1:1 mappings so that | ||
86 | * soft boot works. | ||
87 | */ | ||
88 | setup_mm_for_reboot(mode); | ||
89 | |||
90 | /* | ||
91 | * Now call the architecture specific reboot code. | ||
92 | */ | ||
93 | arch_reset(mode); | ||
94 | |||
95 | /* | ||
96 | * Whoops - the architecture was unable to reboot. | ||
97 | * Tell the user! | ||
98 | */ | ||
99 | mdelay(1000); | ||
100 | printk("Reboot failed -- System halted\n"); | ||
101 | while (1); | ||
102 | } | ||
103 | |||
74 | /* | 104 | /* |
75 | * The following aren't currently used. | 105 | * Function pointers to optional machine specific functions |
76 | */ | 106 | */ |
77 | void (*pm_idle)(void); | 107 | void (*pm_idle)(void); |
78 | EXPORT_SYMBOL(pm_idle); | 108 | EXPORT_SYMBOL(pm_idle); |
@@ -80,6 +110,10 @@ EXPORT_SYMBOL(pm_idle); | |||
80 | void (*pm_power_off)(void); | 110 | void (*pm_power_off)(void); |
81 | EXPORT_SYMBOL(pm_power_off); | 111 | EXPORT_SYMBOL(pm_power_off); |
82 | 112 | ||
113 | void (*arm_pm_restart)(char str) = arm_machine_restart; | ||
114 | EXPORT_SYMBOL_GPL(arm_pm_restart); | ||
115 | |||
116 | |||
83 | /* | 117 | /* |
84 | * This is our default idle handler. We need to disable | 118 | * This is our default idle handler. We need to disable |
85 | * interrupts here to ensure we don't miss a wakeup call. | 119 | * interrupts here to ensure we don't miss a wakeup call. |
@@ -151,33 +185,9 @@ void machine_power_off(void) | |||
151 | pm_power_off(); | 185 | pm_power_off(); |
152 | } | 186 | } |
153 | 187 | ||
154 | |||
155 | void machine_restart(char * __unused) | 188 | void machine_restart(char * __unused) |
156 | { | 189 | { |
157 | /* | 190 | arm_pm_restart(reboot_mode); |
158 | * Clean and disable cache, and turn off interrupts | ||
159 | */ | ||
160 | cpu_proc_fin(); | ||
161 | |||
162 | /* | ||
163 | * Tell the mm system that we are going to reboot - | ||
164 | * we may need it to insert some 1:1 mappings so that | ||
165 | * soft boot works. | ||
166 | */ | ||
167 | setup_mm_for_reboot(reboot_mode); | ||
168 | |||
169 | /* | ||
170 | * Now call the architecture specific reboot code. | ||
171 | */ | ||
172 | arch_reset(reboot_mode); | ||
173 | |||
174 | /* | ||
175 | * Whoops - the architecture was unable to reboot. | ||
176 | * Tell the user! | ||
177 | */ | ||
178 | mdelay(1000); | ||
179 | printk("Reboot failed -- System halted\n"); | ||
180 | while (1); | ||
181 | } | 191 | } |
182 | 192 | ||
183 | void __show_regs(struct pt_regs *regs) | 193 | void __show_regs(struct pt_regs *regs) |
@@ -329,13 +339,9 @@ void exit_thread(void) | |||
329 | { | 339 | { |
330 | } | 340 | } |
331 | 341 | ||
332 | static void default_fp_init(union fp_state *fp) | 342 | ATOMIC_NOTIFIER_HEAD(thread_notify_head); |
333 | { | ||
334 | memset(fp, 0, sizeof(union fp_state)); | ||
335 | } | ||
336 | 343 | ||
337 | void (*fp_init)(union fp_state *) = default_fp_init; | 344 | EXPORT_SYMBOL_GPL(thread_notify_head); |
338 | EXPORT_SYMBOL(fp_init); | ||
339 | 345 | ||
340 | void flush_thread(void) | 346 | void flush_thread(void) |
341 | { | 347 | { |
@@ -344,22 +350,21 @@ void flush_thread(void) | |||
344 | 350 | ||
345 | memset(thread->used_cp, 0, sizeof(thread->used_cp)); | 351 | memset(thread->used_cp, 0, sizeof(thread->used_cp)); |
346 | memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); | 352 | memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); |
353 | memset(&thread->fpstate, 0, sizeof(union fp_state)); | ||
354 | |||
355 | thread_notify(THREAD_NOTIFY_FLUSH, thread); | ||
347 | #if defined(CONFIG_IWMMXT) | 356 | #if defined(CONFIG_IWMMXT) |
348 | iwmmxt_task_release(thread); | 357 | iwmmxt_task_release(thread); |
349 | #endif | 358 | #endif |
350 | fp_init(&thread->fpstate); | ||
351 | #if defined(CONFIG_VFP) | ||
352 | vfp_flush_thread(&thread->vfpstate); | ||
353 | #endif | ||
354 | } | 359 | } |
355 | 360 | ||
356 | void release_thread(struct task_struct *dead_task) | 361 | void release_thread(struct task_struct *dead_task) |
357 | { | 362 | { |
358 | #if defined(CONFIG_VFP) | 363 | struct thread_info *thread = task_thread_info(dead_task); |
359 | vfp_release_thread(&task_thread_info(dead_task)->vfpstate); | 364 | |
360 | #endif | 365 | thread_notify(THREAD_NOTIFY_RELEASE, thread); |
361 | #if defined(CONFIG_IWMMXT) | 366 | #if defined(CONFIG_IWMMXT) |
362 | iwmmxt_task_release(task_thread_info(dead_task)); | 367 | iwmmxt_task_release(thread); |
363 | #endif | 368 | #endif |
364 | } | 369 | } |
365 | 370 | ||
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index e5802bfda31d..1ce05ec086c6 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -622,17 +622,33 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall) | |||
622 | if (syscall) { | 622 | if (syscall) { |
623 | if (regs->ARM_r0 == -ERESTART_RESTARTBLOCK) { | 623 | if (regs->ARM_r0 == -ERESTART_RESTARTBLOCK) { |
624 | if (thumb_mode(regs)) { | 624 | if (thumb_mode(regs)) { |
625 | regs->ARM_r7 = __NR_restart_syscall; | 625 | regs->ARM_r7 = __NR_restart_syscall - __NR_SYSCALL_BASE; |
626 | regs->ARM_pc -= 2; | 626 | regs->ARM_pc -= 2; |
627 | } else { | 627 | } else { |
628 | #if defined(CONFIG_AEABI) && !defined(CONFIG_OABI_COMPAT) | ||
629 | regs->ARM_r7 = __NR_restart_syscall; | ||
630 | regs->ARM_pc -= 4; | ||
631 | #else | ||
628 | u32 __user *usp; | 632 | u32 __user *usp; |
633 | u32 swival = __NR_restart_syscall; | ||
629 | 634 | ||
630 | regs->ARM_sp -= 12; | 635 | regs->ARM_sp -= 12; |
631 | usp = (u32 __user *)regs->ARM_sp; | 636 | usp = (u32 __user *)regs->ARM_sp; |
632 | 637 | ||
638 | /* | ||
639 | * Either we supports OABI only, or we have | ||
640 | * EABI with the OABI compat layer enabled. | ||
641 | * In the later case we don't know if user | ||
642 | * space is EABI or not, and if not we must | ||
643 | * not clobber r7. Always using the OABI | ||
644 | * syscall solves that issue and works for | ||
645 | * all those cases. | ||
646 | */ | ||
647 | swival = swival - __NR_SYSCALL_BASE + __NR_OABI_SYSCALL_BASE; | ||
648 | |||
633 | put_user(regs->ARM_pc, &usp[0]); | 649 | put_user(regs->ARM_pc, &usp[0]); |
634 | /* swi __NR_restart_syscall */ | 650 | /* swi __NR_restart_syscall */ |
635 | put_user(0xef000000 | __NR_restart_syscall, &usp[1]); | 651 | put_user(0xef000000 | swival, &usp[1]); |
636 | /* ldr pc, [sp], #12 */ | 652 | /* ldr pc, [sp], #12 */ |
637 | put_user(0xe49df00c, &usp[2]); | 653 | put_user(0xe49df00c, &usp[2]); |
638 | 654 | ||
@@ -640,6 +656,7 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall) | |||
640 | (unsigned long)(usp + 3)); | 656 | (unsigned long)(usp + 3)); |
641 | 657 | ||
642 | regs->ARM_pc = regs->ARM_sp + 4; | 658 | regs->ARM_pc = regs->ARM_sp + 4; |
659 | #endif | ||
643 | } | 660 | } |
644 | } | 661 | } |
645 | if (regs->ARM_r0 == -ERESTARTNOHAND || | 662 | if (regs->ARM_r0 == -ERESTARTNOHAND || |
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index d6bd435a6857..9c12d4fefbd3 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -379,7 +379,7 @@ static int timer_dyn_tick_enable(void) | |||
379 | int ret = -ENODEV; | 379 | int ret = -ENODEV; |
380 | 380 | ||
381 | if (dyn_tick) { | 381 | if (dyn_tick) { |
382 | write_seqlock_irqsave(&xtime_lock, flags); | 382 | spin_lock_irqsave(&dyn_tick->lock, flags); |
383 | ret = 0; | 383 | ret = 0; |
384 | if (!(dyn_tick->state & DYN_TICK_ENABLED)) { | 384 | if (!(dyn_tick->state & DYN_TICK_ENABLED)) { |
385 | ret = dyn_tick->enable(); | 385 | ret = dyn_tick->enable(); |
@@ -387,7 +387,7 @@ static int timer_dyn_tick_enable(void) | |||
387 | if (ret == 0) | 387 | if (ret == 0) |
388 | dyn_tick->state |= DYN_TICK_ENABLED; | 388 | dyn_tick->state |= DYN_TICK_ENABLED; |
389 | } | 389 | } |
390 | write_sequnlock_irqrestore(&xtime_lock, flags); | 390 | spin_unlock_irqrestore(&dyn_tick->lock, flags); |
391 | } | 391 | } |
392 | 392 | ||
393 | return ret; | 393 | return ret; |
@@ -400,7 +400,7 @@ static int timer_dyn_tick_disable(void) | |||
400 | int ret = -ENODEV; | 400 | int ret = -ENODEV; |
401 | 401 | ||
402 | if (dyn_tick) { | 402 | if (dyn_tick) { |
403 | write_seqlock_irqsave(&xtime_lock, flags); | 403 | spin_lock_irqsave(&dyn_tick->lock, flags); |
404 | ret = 0; | 404 | ret = 0; |
405 | if (dyn_tick->state & DYN_TICK_ENABLED) { | 405 | if (dyn_tick->state & DYN_TICK_ENABLED) { |
406 | ret = dyn_tick->disable(); | 406 | ret = dyn_tick->disable(); |
@@ -408,7 +408,7 @@ static int timer_dyn_tick_disable(void) | |||
408 | if (ret == 0) | 408 | if (ret == 0) |
409 | dyn_tick->state &= ~DYN_TICK_ENABLED; | 409 | dyn_tick->state &= ~DYN_TICK_ENABLED; |
410 | } | 410 | } |
411 | write_sequnlock_irqrestore(&xtime_lock, flags); | 411 | spin_unlock_irqrestore(&dyn_tick->lock, flags); |
412 | } | 412 | } |
413 | 413 | ||
414 | return ret; | 414 | return ret; |
@@ -422,15 +422,20 @@ static int timer_dyn_tick_disable(void) | |||
422 | void timer_dyn_reprogram(void) | 422 | void timer_dyn_reprogram(void) |
423 | { | 423 | { |
424 | struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick; | 424 | struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick; |
425 | unsigned long next, seq; | 425 | unsigned long next, seq, flags; |
426 | 426 | ||
427 | if (dyn_tick && (dyn_tick->state & DYN_TICK_ENABLED)) { | 427 | if (!dyn_tick) |
428 | return; | ||
429 | |||
430 | spin_lock_irqsave(&dyn_tick->lock, flags); | ||
431 | if (dyn_tick->state & DYN_TICK_ENABLED) { | ||
428 | next = next_timer_interrupt(); | 432 | next = next_timer_interrupt(); |
429 | do { | 433 | do { |
430 | seq = read_seqbegin(&xtime_lock); | 434 | seq = read_seqbegin(&xtime_lock); |
431 | dyn_tick->reprogram(next_timer_interrupt() - jiffies); | 435 | dyn_tick->reprogram(next - jiffies); |
432 | } while (read_seqretry(&xtime_lock, seq)); | 436 | } while (read_seqretry(&xtime_lock, seq)); |
433 | } | 437 | } |
438 | spin_unlock_irqrestore(&dyn_tick->lock, flags); | ||
434 | } | 439 | } |
435 | 440 | ||
436 | static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf) | 441 | static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf) |
@@ -499,5 +504,10 @@ void __init time_init(void) | |||
499 | if (system_timer->offset == NULL) | 504 | if (system_timer->offset == NULL) |
500 | system_timer->offset = dummy_gettimeoffset; | 505 | system_timer->offset = dummy_gettimeoffset; |
501 | system_timer->init(); | 506 | system_timer->init(); |
507 | |||
508 | #ifdef CONFIG_NO_IDLE_HZ | ||
509 | if (system_timer->dyn_tick) | ||
510 | system_timer->dyn_tick->lock = SPIN_LOCK_UNLOCKED; | ||
511 | #endif | ||
502 | } | 512 | } |
503 | 513 | ||
diff --git a/arch/arm/mach-at91rm9200/Kconfig b/arch/arm/mach-at91rm9200/Kconfig index 4b7218fc3eb1..1ab5b7828318 100644 --- a/arch/arm/mach-at91rm9200/Kconfig +++ b/arch/arm/mach-at91rm9200/Kconfig | |||
@@ -40,6 +40,18 @@ config MACH_KB9200 | |||
40 | help | 40 | help |
41 | Select this if you are using KwikByte's KB920x board | 41 | Select this if you are using KwikByte's KB920x board |
42 | 42 | ||
43 | config MACH_ATEB9200 | ||
44 | bool "Embest's ATEB9200" | ||
45 | depends on ARCH_AT91RM9200 | ||
46 | help | ||
47 | Select this if you are using Embest's ATEB9200 board | ||
48 | |||
49 | config MACH_KAFA | ||
50 | bool "Sperry-Sun KAFA board" | ||
51 | depends on ARCH_AT91RM9200 | ||
52 | help | ||
53 | Select this if you are using Sperry-Sun's KAFA board | ||
54 | |||
43 | 55 | ||
44 | comment "AT91RM9200 Feature Selections" | 56 | comment "AT91RM9200 Feature Selections" |
45 | 57 | ||
diff --git a/arch/arm/mach-at91rm9200/Makefile b/arch/arm/mach-at91rm9200/Makefile index ef88c4128edc..81ebc6684ad2 100644 --- a/arch/arm/mach-at91rm9200/Makefile +++ b/arch/arm/mach-at91rm9200/Makefile | |||
@@ -7,22 +7,31 @@ obj-m := | |||
7 | obj-n := | 7 | obj-n := |
8 | obj- := | 8 | obj- := |
9 | 9 | ||
10 | obj-$(CONFIG_PM) += pm.o | ||
11 | |||
10 | # Board-specific support | 12 | # Board-specific support |
11 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o | 13 | obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o |
12 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o | 14 | obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o |
13 | obj-$(CONFIG_MACH_CSB337) += board-csb337.o | 15 | obj-$(CONFIG_MACH_CSB337) += board-csb337.o |
14 | obj-$(CONFIG_MACH_CSB637) += board-csb637.o | 16 | obj-$(CONFIG_MACH_CSB637) += board-csb637.o |
15 | #obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o | 17 | obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o |
16 | #obj-$(CONFIG_MACH_KB9200) += board-kb9202.o | 18 | obj-$(CONFIG_MACH_KB9200) += board-kb9202.o |
19 | obj-$(CONFIG_MACH_ATEB9200) += board-eb9200.o | ||
20 | obj-$(CONFIG_MACH_KAFA) += board-kafa.o | ||
17 | 21 | ||
18 | # LEDs support | 22 | # LEDs support |
19 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o | 23 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o |
20 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o | 24 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o |
21 | led-$(CONFIG_MACH_CSB337) += leds.o | 25 | led-$(CONFIG_MACH_CSB337) += leds.o |
22 | led-$(CONFIG_MACH_CSB637) += leds.o | 26 | led-$(CONFIG_MACH_CSB637) += leds.o |
23 | #led-$(CONFIG_MACH_KB9200) += leds.o | 27 | led-$(CONFIG_MACH_KB9200) += leds.o |
24 | #led-$(CONFIG_MACH_KAFA) += leds.o | 28 | led-$(CONFIG_MACH_KAFA) += leds.o |
25 | obj-$(CONFIG_LEDS) += $(led-y) | 29 | obj-$(CONFIG_LEDS) += $(led-y) |
26 | 30 | ||
27 | # VGA support | 31 | # VGA support |
28 | #obj-$(CONFIG_FB_S1D13XXX) += ics1523.o | 32 | #obj-$(CONFIG_FB_S1D13XXX) += ics1523.o |
33 | |||
34 | |||
35 | ifeq ($(CONFIG_PM_DEBUG),y) | ||
36 | CFLAGS_pm.o += -DDEBUG | ||
37 | endif | ||
diff --git a/arch/arm/mach-at91rm9200/board-carmeva.c b/arch/arm/mach-at91rm9200/board-carmeva.c new file mode 100644 index 000000000000..2c138b542ebe --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-carmeva.c | |||
@@ -0,0 +1,131 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-carmeva.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Peer Georgi | ||
5 | * Conitec Datasystems | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/platform_device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init carmeva_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(BGA_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata carmeva_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init carmeva_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 20.000 MHz crystal */ | ||
69 | at91_clock_init(20000000); | ||
70 | |||
71 | /* Setup the serial ports and console */ | ||
72 | at91_init_serial(&carmeva_uart_config); | ||
73 | } | ||
74 | |||
75 | static struct at91_eth_data __initdata carmeva_eth_data = { | ||
76 | .phy_irq_pin = AT91_PIN_PC4, | ||
77 | .is_rmii = 1, | ||
78 | }; | ||
79 | |||
80 | static struct at91_usbh_data __initdata carmeva_usbh_data = { | ||
81 | .ports = 2, | ||
82 | }; | ||
83 | |||
84 | static struct at91_udc_data __initdata carmeva_udc_data = { | ||
85 | .vbus_pin = AT91_PIN_PD12, | ||
86 | .pullup_pin = AT91_PIN_PD9, | ||
87 | }; | ||
88 | |||
89 | /* FIXME: user dependend */ | ||
90 | // static struct at91_cf_data __initdata carmeva_cf_data = { | ||
91 | // .det_pin = AT91_PIN_PB0, | ||
92 | // .rst_pin = AT91_PIN_PC5, | ||
93 | // .irq_pin = ... not connected | ||
94 | // .vcc_pin = ... always powered | ||
95 | // }; | ||
96 | |||
97 | static struct at91_mmc_data __initdata carmeva_mmc_data = { | ||
98 | .is_b = 0, | ||
99 | .wire4 = 1, | ||
100 | }; | ||
101 | |||
102 | static void __init carmeva_board_init(void) | ||
103 | { | ||
104 | /* Serial */ | ||
105 | at91_add_device_serial(); | ||
106 | /* Ethernet */ | ||
107 | at91_add_device_eth(&carmeva_eth_data); | ||
108 | /* USB Host */ | ||
109 | at91_add_device_usbh(&carmeva_usbh_data); | ||
110 | /* USB Device */ | ||
111 | at91_add_device_udc(&carmeva_udc_data); | ||
112 | /* I2C */ | ||
113 | at91_add_device_i2c(); | ||
114 | /* Compact Flash */ | ||
115 | // at91_add_device_cf(&carmeva_cf_data); | ||
116 | /* SPI */ | ||
117 | // at91_add_device_spi(NULL, 0); | ||
118 | /* MMC */ | ||
119 | at91_add_device_mmc(&carmeva_mmc_data); | ||
120 | } | ||
121 | |||
122 | MACHINE_START(CARMEVA, "Carmeva") | ||
123 | /* Maintainer: Conitec Datasystems */ | ||
124 | .phys_io = AT91_BASE_SYS, | ||
125 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
126 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
127 | .timer = &at91rm9200_timer, | ||
128 | .map_io = carmeva_map_io, | ||
129 | .init_irq = carmeva_init_irq, | ||
130 | .init_machine = carmeva_board_init, | ||
131 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-csb337.c b/arch/arm/mach-at91rm9200/board-csb337.c index f45104ceea8f..e94645d77f7a 100644 --- a/arch/arm/mach-at91rm9200/board-csb337.c +++ b/arch/arm/mach-at91rm9200/board-csb337.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/mm.h> | 24 | #include <linux/mm.h> |
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/spi/spi.h> | ||
27 | 28 | ||
28 | #include <asm/hardware.h> | 29 | #include <asm/hardware.h> |
29 | #include <asm/setup.h> | 30 | #include <asm/setup.h> |
@@ -34,9 +35,9 @@ | |||
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 36 | #include <asm/mach/irq.h> |
36 | 37 | ||
37 | #include <asm/arch/hardware.h> | 38 | #include <asm/hardware.h> |
38 | #include <asm/mach/serial_at91rm9200.h> | ||
39 | #include <asm/arch/board.h> | 39 | #include <asm/arch/board.h> |
40 | #include <asm/arch/gpio.h> | ||
40 | 41 | ||
41 | #include "generic.h" | 42 | #include "generic.h" |
42 | 43 | ||
@@ -54,32 +55,24 @@ static void __init csb337_init_irq(void) | |||
54 | * 0 .. 3 = USART0 .. USART3 | 55 | * 0 .. 3 = USART0 .. USART3 |
55 | * 4 = DBGU | 56 | * 4 = DBGU |
56 | */ | 57 | */ |
57 | #define CSB337_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 58 | static struct at91_uart_config __initdata csb337_uart_config = { |
58 | #define CSB337_SERIAL_CONSOLE 0 /* ttyS0 */ | 59 | .console_tty = 0, /* ttyS0 */ |
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
59 | 63 | ||
60 | static void __init csb337_map_io(void) | 64 | static void __init csb337_map_io(void) |
61 | { | 65 | { |
62 | int serial[AT91_NR_UART] = CSB337_UART_MAP; | ||
63 | int i; | ||
64 | |||
65 | at91rm9200_map_io(); | 66 | at91rm9200_map_io(); |
66 | 67 | ||
67 | /* Initialize clocks: 3.6864 MHz crystal */ | 68 | /* Initialize clocks: 3.6864 MHz crystal */ |
68 | at91_clock_init(3686400); | 69 | at91_clock_init(3686400); |
69 | 70 | ||
70 | /* Setup the LEDs */ | 71 | /* Setup the LEDs */ |
71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 72 | at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); |
72 | 73 | ||
73 | #ifdef CONFIG_SERIAL_AT91 | 74 | /* Setup the serial ports and console */ |
74 | at91_console_port = CSB337_SERIAL_CONSOLE; | 75 | at91_init_serial(&csb337_uart_config); |
75 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
76 | |||
77 | /* Register UARTs */ | ||
78 | for (i = 0; i < AT91_NR_UART; i++) { | ||
79 | if (serial[i] >= 0) | ||
80 | at91_register_uart(i, serial[i]); | ||
81 | } | ||
82 | #endif | ||
83 | } | 76 | } |
84 | 77 | ||
85 | static struct at91_eth_data __initdata csb337_eth_data = { | 78 | static struct at91_eth_data __initdata csb337_eth_data = { |
@@ -118,17 +111,31 @@ static struct at91_mmc_data __initdata csb337_mmc_data = { | |||
118 | .wp_pin = AT91_PIN_PD6, | 111 | .wp_pin = AT91_PIN_PD6, |
119 | }; | 112 | }; |
120 | 113 | ||
114 | static struct spi_board_info csb337_spi_devices[] = { | ||
115 | { /* CAN controller */ | ||
116 | .modalias = "sak82c900", | ||
117 | .chip_select = 0, | ||
118 | .max_speed_hz = 6 * 1000 * 1000, | ||
119 | }, | ||
120 | }; | ||
121 | |||
121 | static void __init csb337_board_init(void) | 122 | static void __init csb337_board_init(void) |
122 | { | 123 | { |
124 | /* Serial */ | ||
125 | at91_add_device_serial(); | ||
123 | /* Ethernet */ | 126 | /* Ethernet */ |
124 | at91_add_device_eth(&csb337_eth_data); | 127 | at91_add_device_eth(&csb337_eth_data); |
125 | /* USB Host */ | 128 | /* USB Host */ |
126 | at91_add_device_usbh(&csb337_usbh_data); | 129 | at91_add_device_usbh(&csb337_usbh_data); |
127 | /* USB Device */ | 130 | /* USB Device */ |
128 | at91_add_device_udc(&csb337_udc_data); | 131 | at91_add_device_udc(&csb337_udc_data); |
132 | /* I2C */ | ||
133 | at91_add_device_i2c(); | ||
129 | /* Compact Flash */ | 134 | /* Compact Flash */ |
130 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ | 135 | at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */ |
131 | at91_add_device_cf(&csb337_cf_data); | 136 | at91_add_device_cf(&csb337_cf_data); |
137 | /* SPI */ | ||
138 | at91_add_device_spi(csb337_spi_devices, ARRAY_SIZE(csb337_spi_devices)); | ||
132 | /* MMC */ | 139 | /* MMC */ |
133 | at91_add_device_mmc(&csb337_mmc_data); | 140 | at91_add_device_mmc(&csb337_mmc_data); |
134 | } | 141 | } |
diff --git a/arch/arm/mach-at91rm9200/board-csb637.c b/arch/arm/mach-at91rm9200/board-csb637.c index f2c2d6e79bc6..67d5f7786cdb 100644 --- a/arch/arm/mach-at91rm9200/board-csb637.c +++ b/arch/arm/mach-at91rm9200/board-csb637.c | |||
@@ -34,9 +34,9 @@ | |||
34 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 35 | #include <asm/mach/irq.h> |
36 | 36 | ||
37 | #include <asm/arch/hardware.h> | 37 | #include <asm/hardware.h> |
38 | #include <asm/mach/serial_at91rm9200.h> | ||
39 | #include <asm/arch/board.h> | 38 | #include <asm/arch/board.h> |
39 | #include <asm/arch/gpio.h> | ||
40 | 40 | ||
41 | #include "generic.h" | 41 | #include "generic.h" |
42 | 42 | ||
@@ -54,14 +54,14 @@ static void __init csb637_init_irq(void) | |||
54 | * 0 .. 3 = USART0 .. USART3 | 54 | * 0 .. 3 = USART0 .. USART3 |
55 | * 4 = DBGU | 55 | * 4 = DBGU |
56 | */ | 56 | */ |
57 | #define CSB637_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 57 | static struct at91_uart_config __initdata csb637_uart_config = { |
58 | #define CSB637_SERIAL_CONSOLE 0 /* ttyS0 */ | 58 | .console_tty = 0, /* ttyS0 */ |
59 | .nr_tty = 2, | ||
60 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
61 | }; | ||
59 | 62 | ||
60 | static void __init csb637_map_io(void) | 63 | static void __init csb637_map_io(void) |
61 | { | 64 | { |
62 | int serial[AT91_NR_UART] = CSB637_UART_MAP; | ||
63 | int i; | ||
64 | |||
65 | at91rm9200_map_io(); | 65 | at91rm9200_map_io(); |
66 | 66 | ||
67 | /* Initialize clocks: 3.6864 MHz crystal */ | 67 | /* Initialize clocks: 3.6864 MHz crystal */ |
@@ -70,16 +70,8 @@ static void __init csb637_map_io(void) | |||
70 | /* Setup the LEDs */ | 70 | /* Setup the LEDs */ |
71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 71 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); |
72 | 72 | ||
73 | #ifdef CONFIG_SERIAL_AT91 | 73 | /* Setup the serial ports and console */ |
74 | at91_console_port = CSB637_SERIAL_CONSOLE; | 74 | at91_init_serial(&csb637_uart_config); |
75 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
76 | |||
77 | /* Register UARTs */ | ||
78 | for (i = 0; i < AT91_NR_UART; i++) { | ||
79 | if (serial[i] >= 0) | ||
80 | at91_register_uart(i, serial[i]); | ||
81 | } | ||
82 | #endif | ||
83 | } | 75 | } |
84 | 76 | ||
85 | static struct at91_eth_data __initdata csb637_eth_data = { | 77 | static struct at91_eth_data __initdata csb637_eth_data = { |
@@ -98,12 +90,18 @@ static struct at91_udc_data __initdata csb637_udc_data = { | |||
98 | 90 | ||
99 | static void __init csb637_board_init(void) | 91 | static void __init csb637_board_init(void) |
100 | { | 92 | { |
93 | /* Serial */ | ||
94 | at91_add_device_serial(); | ||
101 | /* Ethernet */ | 95 | /* Ethernet */ |
102 | at91_add_device_eth(&csb637_eth_data); | 96 | at91_add_device_eth(&csb637_eth_data); |
103 | /* USB Host */ | 97 | /* USB Host */ |
104 | at91_add_device_usbh(&csb637_usbh_data); | 98 | at91_add_device_usbh(&csb637_usbh_data); |
105 | /* USB Device */ | 99 | /* USB Device */ |
106 | at91_add_device_udc(&csb637_udc_data); | 100 | at91_add_device_udc(&csb637_udc_data); |
101 | /* I2C */ | ||
102 | at91_add_device_i2c(); | ||
103 | /* SPI */ | ||
104 | at91_add_device_spi(NULL, 0); | ||
107 | } | 105 | } |
108 | 106 | ||
109 | MACHINE_START(CSB637, "Cogent CSB637") | 107 | MACHINE_START(CSB637, "Cogent CSB637") |
diff --git a/arch/arm/mach-at91rm9200/board-dk.c b/arch/arm/mach-at91rm9200/board-dk.c index 2d7200ed66ed..48d7390fa584 100644 --- a/arch/arm/mach-at91rm9200/board-dk.c +++ b/arch/arm/mach-at91rm9200/board-dk.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/spi/spi.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -37,9 +38,9 @@ | |||
37 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
39 | 40 | ||
40 | #include <asm/arch/hardware.h> | 41 | #include <asm/hardware.h> |
41 | #include <asm/mach/serial_at91rm9200.h> | ||
42 | #include <asm/arch/board.h> | 42 | #include <asm/arch/board.h> |
43 | #include <asm/arch/gpio.h> | ||
43 | 44 | ||
44 | #include "generic.h" | 45 | #include "generic.h" |
45 | 46 | ||
@@ -57,14 +58,14 @@ static void __init dk_init_irq(void) | |||
57 | * 0 .. 3 = USART0 .. USART3 | 58 | * 0 .. 3 = USART0 .. USART3 |
58 | * 4 = DBGU | 59 | * 4 = DBGU |
59 | */ | 60 | */ |
60 | #define DK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 61 | static struct at91_uart_config __initdata dk_uart_config = { |
61 | #define DK_SERIAL_CONSOLE 0 /* ttyS0 */ | 62 | .console_tty = 0, /* ttyS0 */ |
63 | .nr_tty = 2, | ||
64 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
65 | }; | ||
62 | 66 | ||
63 | static void __init dk_map_io(void) | 67 | static void __init dk_map_io(void) |
64 | { | 68 | { |
65 | int serial[AT91_NR_UART] = DK_UART_MAP; | ||
66 | int i; | ||
67 | |||
68 | at91rm9200_map_io(); | 69 | at91rm9200_map_io(); |
69 | 70 | ||
70 | /* Initialize clocks: 18.432 MHz crystal */ | 71 | /* Initialize clocks: 18.432 MHz crystal */ |
@@ -73,16 +74,8 @@ static void __init dk_map_io(void) | |||
73 | /* Setup the LEDs */ | 74 | /* Setup the LEDs */ |
74 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 75 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); |
75 | 76 | ||
76 | #ifdef CONFIG_SERIAL_AT91 | 77 | /* Setup the serial ports and console */ |
77 | at91_console_port = DK_SERIAL_CONSOLE; | 78 | at91_init_serial(&dk_uart_config); |
78 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
79 | |||
80 | /* Register UARTs */ | ||
81 | for (i = 0; i < AT91_NR_UART; i++) { | ||
82 | if (at91_serial_map[i] >= 0) | ||
83 | at91_register_uart(i, at91_serial_map[i]); | ||
84 | } | ||
85 | #endif | ||
86 | } | 79 | } |
87 | 80 | ||
88 | static struct at91_eth_data __initdata dk_eth_data = { | 81 | static struct at91_eth_data __initdata dk_eth_data = { |
@@ -111,16 +104,48 @@ static struct at91_mmc_data __initdata dk_mmc_data = { | |||
111 | .wire4 = 1, | 104 | .wire4 = 1, |
112 | }; | 105 | }; |
113 | 106 | ||
107 | static struct spi_board_info dk_spi_devices[] = { | ||
108 | { /* DataFlash chip */ | ||
109 | .modalias = "mtd_dataflash", | ||
110 | .chip_select = 0, | ||
111 | .max_speed_hz = 15 * 1000 * 1000, | ||
112 | }, | ||
113 | { /* UR6HCPS2-SP40 PS2-to-SPI adapter */ | ||
114 | .modalias = "ur6hcps2", | ||
115 | .chip_select = 1, | ||
116 | .max_speed_hz = 250 * 1000, | ||
117 | }, | ||
118 | { /* TLV1504 ADC, 4 channels, 10 bits; one is a temp sensor */ | ||
119 | .modalias = "tlv1504", | ||
120 | .chip_select = 2, | ||
121 | .max_speed_hz = 20 * 1000 * 1000, | ||
122 | }, | ||
123 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | ||
124 | { /* DataFlash card */ | ||
125 | .modalias = "mtd_dataflash", | ||
126 | .chip_select = 3, | ||
127 | .max_speed_hz = 15 * 1000 * 1000, | ||
128 | } | ||
129 | #endif | ||
130 | }; | ||
131 | |||
114 | static void __init dk_board_init(void) | 132 | static void __init dk_board_init(void) |
115 | { | 133 | { |
134 | /* Serial */ | ||
135 | at91_add_device_serial(); | ||
116 | /* Ethernet */ | 136 | /* Ethernet */ |
117 | at91_add_device_eth(&dk_eth_data); | 137 | at91_add_device_eth(&dk_eth_data); |
118 | /* USB Host */ | 138 | /* USB Host */ |
119 | at91_add_device_usbh(&dk_usbh_data); | 139 | at91_add_device_usbh(&dk_usbh_data); |
120 | /* USB Device */ | 140 | /* USB Device */ |
121 | at91_add_device_udc(&dk_udc_data); | 141 | at91_add_device_udc(&dk_udc_data); |
142 | at91_set_multi_drive(dk_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */ | ||
122 | /* Compact Flash */ | 143 | /* Compact Flash */ |
123 | at91_add_device_cf(&dk_cf_data); | 144 | at91_add_device_cf(&dk_cf_data); |
145 | /* I2C */ | ||
146 | at91_add_device_i2c(); | ||
147 | /* SPI */ | ||
148 | at91_add_device_spi(dk_spi_devices, ARRAY_SIZE(dk_spi_devices)); | ||
124 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | 149 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD |
125 | /* DataFlash card */ | 150 | /* DataFlash card */ |
126 | at91_set_gpio_output(AT91_PIN_PB7, 0); | 151 | at91_set_gpio_output(AT91_PIN_PB7, 0); |
diff --git a/arch/arm/mach-at91rm9200/board-eb9200.c b/arch/arm/mach-at91rm9200/board-eb9200.c new file mode 100644 index 000000000000..a3e2df968a66 --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-eb9200.c | |||
@@ -0,0 +1,130 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-eb9200.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People, adapted for ATEB9200 from Embest | ||
5 | * by Andrew Patrikalakis | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init eb9200_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(BGA_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata eb9200_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 2, | ||
61 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init eb9200_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 18.432 MHz crystal */ | ||
69 | at91_clock_init(18432000); | ||
70 | |||
71 | /* Setup the serial ports and console */ | ||
72 | at91_init_serial(&eb9200_uart_config); | ||
73 | } | ||
74 | |||
75 | static struct at91_eth_data __initdata eb9200_eth_data = { | ||
76 | .phy_irq_pin = AT91_PIN_PC4, | ||
77 | .is_rmii = 1, | ||
78 | }; | ||
79 | |||
80 | static struct at91_usbh_data __initdata eb9200_usbh_data = { | ||
81 | .ports = 2, | ||
82 | }; | ||
83 | |||
84 | static struct at91_udc_data __initdata eb9200_udc_data = { | ||
85 | .vbus_pin = AT91_PIN_PD4, | ||
86 | .pullup_pin = AT91_PIN_PD5, | ||
87 | }; | ||
88 | |||
89 | static struct at91_cf_data __initdata eb9200_cf_data = { | ||
90 | .det_pin = AT91_PIN_PB0, | ||
91 | .rst_pin = AT91_PIN_PC5, | ||
92 | // .irq_pin = ... not connected | ||
93 | // .vcc_pin = ... always powered | ||
94 | }; | ||
95 | |||
96 | static struct at91_mmc_data __initdata eb9200_mmc_data = { | ||
97 | .is_b = 0, | ||
98 | .wire4 = 1, | ||
99 | }; | ||
100 | |||
101 | static void __init eb9200_board_init(void) | ||
102 | { | ||
103 | /* Serial */ | ||
104 | at91_add_device_serial(); | ||
105 | /* Ethernet */ | ||
106 | at91_add_device_eth(&eb9200_eth_data); | ||
107 | /* USB Host */ | ||
108 | at91_add_device_usbh(&eb9200_usbh_data); | ||
109 | /* USB Device */ | ||
110 | at91_add_device_udc(&eb9200_udc_data); | ||
111 | /* I2C */ | ||
112 | at91_add_device_i2c(); | ||
113 | /* Compact Flash */ | ||
114 | at91_add_device_cf(&eb9200_cf_data); | ||
115 | /* SPI */ | ||
116 | at91_add_device_spi(NULL, 0); | ||
117 | /* MMC */ | ||
118 | /* only supports 1 or 4 bit interface, not wired through to SPI */ | ||
119 | at91_add_device_mmc(&eb9200_mmc_data); | ||
120 | } | ||
121 | |||
122 | MACHINE_START(ATEB9200, "Embest ATEB9200") | ||
123 | .phys_io = AT91_BASE_SYS, | ||
124 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
125 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
126 | .timer = &at91rm9200_timer, | ||
127 | .map_io = eb9200_map_io, | ||
128 | .init_irq = eb9200_init_irq, | ||
129 | .init_machine = eb9200_board_init, | ||
130 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-ek.c b/arch/arm/mach-at91rm9200/board-ek.c index 80d90f5135a1..72202ed830ad 100644 --- a/arch/arm/mach-at91rm9200/board-ek.c +++ b/arch/arm/mach-at91rm9200/board-ek.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/spi/spi.h> | ||
30 | 31 | ||
31 | #include <asm/hardware.h> | 32 | #include <asm/hardware.h> |
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
@@ -37,9 +38,9 @@ | |||
37 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
39 | 40 | ||
40 | #include <asm/arch/hardware.h> | 41 | #include <asm/hardware.h> |
41 | #include <asm/mach/serial_at91rm9200.h> | ||
42 | #include <asm/arch/board.h> | 42 | #include <asm/arch/board.h> |
43 | #include <asm/arch/gpio.h> | ||
43 | 44 | ||
44 | #include "generic.h" | 45 | #include "generic.h" |
45 | 46 | ||
@@ -57,14 +58,14 @@ static void __init ek_init_irq(void) | |||
57 | * 0 .. 3 = USART0 .. USART3 | 58 | * 0 .. 3 = USART0 .. USART3 |
58 | * 4 = DBGU | 59 | * 4 = DBGU |
59 | */ | 60 | */ |
60 | #define EK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | 61 | static struct at91_uart_config __initdata ek_uart_config = { |
61 | #define EK_SERIAL_CONSOLE 0 /* ttyS0 */ | 62 | .console_tty = 0, /* ttyS0 */ |
63 | .nr_tty = 2, | ||
64 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
65 | }; | ||
62 | 66 | ||
63 | static void __init ek_map_io(void) | 67 | static void __init ek_map_io(void) |
64 | { | 68 | { |
65 | int serial[AT91_NR_UART] = EK_UART_MAP; | ||
66 | int i; | ||
67 | |||
68 | at91rm9200_map_io(); | 69 | at91rm9200_map_io(); |
69 | 70 | ||
70 | /* Initialize clocks: 18.432 MHz crystal */ | 71 | /* Initialize clocks: 18.432 MHz crystal */ |
@@ -73,16 +74,8 @@ static void __init ek_map_io(void) | |||
73 | /* Setup the LEDs */ | 74 | /* Setup the LEDs */ |
74 | at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); | 75 | at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); |
75 | 76 | ||
76 | #ifdef CONFIG_SERIAL_AT91 | 77 | /* Setup the serial ports and console */ |
77 | at91_console_port = EK_SERIAL_CONSOLE; | 78 | at91_init_serial(&ek_uart_config); |
78 | memcpy(at91_serial_map, serial, sizeof(serial)); | ||
79 | |||
80 | /* Register UARTs */ | ||
81 | for (i = 0; i < AT91_NR_UART; i++) { | ||
82 | if (serial[i] >= 0) | ||
83 | at91_register_uart(i, serial[i]); | ||
84 | } | ||
85 | #endif | ||
86 | } | 79 | } |
87 | 80 | ||
88 | static struct at91_eth_data __initdata ek_eth_data = { | 81 | static struct at91_eth_data __initdata ek_eth_data = { |
@@ -106,14 +99,36 @@ static struct at91_mmc_data __initdata ek_mmc_data = { | |||
106 | .wp_pin = AT91_PIN_PA17, | 99 | .wp_pin = AT91_PIN_PA17, |
107 | }; | 100 | }; |
108 | 101 | ||
102 | static struct spi_board_info ek_spi_devices[] = { | ||
103 | { /* DataFlash chip */ | ||
104 | .modalias = "mtd_dataflash", | ||
105 | .chip_select = 0, | ||
106 | .max_speed_hz = 15 * 1000 * 1000, | ||
107 | }, | ||
108 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | ||
109 | { /* DataFlash card */ | ||
110 | .modalias = "mtd_dataflash", | ||
111 | .chip_select = 3, | ||
112 | .max_speed_hz = 15 * 1000 * 1000, | ||
113 | }, | ||
114 | #endif | ||
115 | }; | ||
116 | |||
109 | static void __init ek_board_init(void) | 117 | static void __init ek_board_init(void) |
110 | { | 118 | { |
119 | /* Serial */ | ||
120 | at91_add_device_serial(); | ||
111 | /* Ethernet */ | 121 | /* Ethernet */ |
112 | at91_add_device_eth(&ek_eth_data); | 122 | at91_add_device_eth(&ek_eth_data); |
113 | /* USB Host */ | 123 | /* USB Host */ |
114 | at91_add_device_usbh(&ek_usbh_data); | 124 | at91_add_device_usbh(&ek_usbh_data); |
115 | /* USB Device */ | 125 | /* USB Device */ |
116 | at91_add_device_udc(&ek_udc_data); | 126 | at91_add_device_udc(&ek_udc_data); |
127 | at91_set_multi_drive(ek_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */ | ||
128 | /* I2C */ | ||
129 | at91_add_device_i2c(); | ||
130 | /* SPI */ | ||
131 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | ||
117 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | 132 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD |
118 | /* DataFlash card */ | 133 | /* DataFlash card */ |
119 | at91_set_gpio_output(AT91_PIN_PB22, 0); | 134 | at91_set_gpio_output(AT91_PIN_PB22, 0); |
diff --git a/arch/arm/mach-at91rm9200/board-kafa.c b/arch/arm/mach-at91rm9200/board-kafa.c new file mode 100644 index 000000000000..bf760c5e0c46 --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-kafa.c | |||
@@ -0,0 +1,116 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-kafa.c | ||
3 | * | ||
4 | * Copyright (C) 2006 Sperry-Sun | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | |||
21 | #include <linux/config.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/mm.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/platform_device.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/setup.h> | ||
30 | #include <asm/mach-types.h> | ||
31 | #include <asm/irq.h> | ||
32 | |||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | #include <asm/mach/irq.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | #include <asm/arch/board.h> | ||
39 | #include <asm/arch/gpio.h> | ||
40 | |||
41 | #include "generic.h" | ||
42 | |||
43 | static void __init kafa_init_irq(void) | ||
44 | { | ||
45 | /* Initialize AIC controller */ | ||
46 | at91rm9200_init_irq(NULL); | ||
47 | |||
48 | /* Set up the GPIO interrupts */ | ||
49 | at91_gpio_irq_setup(PQFP_GPIO_BANKS); | ||
50 | } | ||
51 | |||
52 | /* | ||
53 | * Serial port configuration. | ||
54 | * 0 .. 3 = USART0 .. USART3 | ||
55 | * 4 = DBGU | ||
56 | */ | ||
57 | static struct at91_uart_config __initdata kafa_uart_config = { | ||
58 | .console_tty = 0, /* ttyS0 */ | ||
59 | .nr_tty = 2, | ||
60 | .tty_map = { 4, 0, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
61 | }; | ||
62 | |||
63 | static void __init kafa_map_io(void) | ||
64 | { | ||
65 | at91rm9200_map_io(); | ||
66 | |||
67 | /* Initialize clocks: 18.432 MHz crystal */ | ||
68 | at91_clock_init(18432000); | ||
69 | |||
70 | /* Set up the LEDs */ | ||
71 | at91_init_leds(AT91_PIN_PB4, AT91_PIN_PB4); | ||
72 | |||
73 | /* Setup the serial ports and console */ | ||
74 | at91_init_serial(&kafa_uart_config); | ||
75 | } | ||
76 | |||
77 | static struct at91_eth_data __initdata kafa_eth_data = { | ||
78 | .phy_irq_pin = AT91_PIN_PC4, | ||
79 | .is_rmii = 0, | ||
80 | }; | ||
81 | |||
82 | static struct at91_usbh_data __initdata kafa_usbh_data = { | ||
83 | .ports = 1, | ||
84 | }; | ||
85 | |||
86 | static struct at91_udc_data __initdata kafa_udc_data = { | ||
87 | .vbus_pin = AT91_PIN_PB6, | ||
88 | .pullup_pin = AT91_PIN_PB7, | ||
89 | }; | ||
90 | |||
91 | static void __init kafa_board_init(void) | ||
92 | { | ||
93 | /* Serial */ | ||
94 | at91_add_device_serial(); | ||
95 | /* Ethernet */ | ||
96 | at91_add_device_eth(&kafa_eth_data); | ||
97 | /* USB Host */ | ||
98 | at91_add_device_usbh(&kafa_usbh_data); | ||
99 | /* USB Device */ | ||
100 | at91_add_device_udc(&kafa_udc_data); | ||
101 | /* I2C */ | ||
102 | at91_add_device_i2c(); | ||
103 | /* SPI */ | ||
104 | at91_add_device_spi(NULL, 0); | ||
105 | } | ||
106 | |||
107 | MACHINE_START(KAFA, "Sperry-Sun KAFA") | ||
108 | /* Maintainer: Sergei Sharonov */ | ||
109 | .phys_io = AT91_BASE_SYS, | ||
110 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
111 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
112 | .timer = &at91rm9200_timer, | ||
113 | .map_io = kafa_map_io, | ||
114 | .init_irq = kafa_init_irq, | ||
115 | .init_machine = kafa_board_init, | ||
116 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/board-kb9202.c b/arch/arm/mach-at91rm9200/board-kb9202.c new file mode 100644 index 000000000000..f06d2b54cc9a --- /dev/null +++ b/arch/arm/mach-at91rm9200/board-kb9202.c | |||
@@ -0,0 +1,125 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91rm9200/board-kb9202.c | ||
3 | * | ||
4 | * Copyright (c) 2005 kb_admin | ||
5 | * KwikByte, Inc. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #include <linux/config.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/init.h> | ||
25 | #include <linux/mm.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/platform_device.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/setup.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/hardware.h> | ||
39 | #include <asm/arch/board.h> | ||
40 | #include <asm/arch/gpio.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | |||
44 | static void __init kb9202_init_irq(void) | ||
45 | { | ||
46 | /* Initialize AIC controller */ | ||
47 | at91rm9200_init_irq(NULL); | ||
48 | |||
49 | /* Set up the GPIO interrupts */ | ||
50 | at91_gpio_irq_setup(PQFP_GPIO_BANKS); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Serial port configuration. | ||
55 | * 0 .. 3 = USART0 .. USART3 | ||
56 | * 4 = DBGU | ||
57 | */ | ||
58 | static struct at91_uart_config __initdata kb9202_uart_config = { | ||
59 | .console_tty = 0, /* ttyS0 */ | ||
60 | .nr_tty = 3, | ||
61 | .tty_map = { 4, 0, 1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
62 | }; | ||
63 | |||
64 | static void __init kb9202_map_io(void) | ||
65 | { | ||
66 | at91rm9200_map_io(); | ||
67 | |||
68 | /* Initialize clocks: 10 MHz crystal */ | ||
69 | at91_clock_init(10000000); | ||
70 | |||
71 | /* Set up the LEDs */ | ||
72 | at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); | ||
73 | |||
74 | /* Setup the serial ports and console */ | ||
75 | at91_init_serial(&kb9202_uart_config); | ||
76 | } | ||
77 | |||
78 | static struct at91_eth_data __initdata kb9202_eth_data = { | ||
79 | .phy_irq_pin = AT91_PIN_PB29, | ||
80 | .is_rmii = 0, | ||
81 | }; | ||
82 | |||
83 | static struct at91_usbh_data __initdata kb9202_usbh_data = { | ||
84 | .ports = 1, | ||
85 | }; | ||
86 | |||
87 | static struct at91_udc_data __initdata kb9202_udc_data = { | ||
88 | .vbus_pin = AT91_PIN_PB24, | ||
89 | .pullup_pin = AT91_PIN_PB22, | ||
90 | }; | ||
91 | |||
92 | static struct at91_mmc_data __initdata kb9202_mmc_data = { | ||
93 | .det_pin = AT91_PIN_PB2, | ||
94 | .is_b = 0, | ||
95 | .wire4 = 1, | ||
96 | }; | ||
97 | |||
98 | static void __init kb9202_board_init(void) | ||
99 | { | ||
100 | /* Serial */ | ||
101 | at91_add_device_serial(); | ||
102 | /* Ethernet */ | ||
103 | at91_add_device_eth(&kb9202_eth_data); | ||
104 | /* USB Host */ | ||
105 | at91_add_device_usbh(&kb9202_usbh_data); | ||
106 | /* USB Device */ | ||
107 | at91_add_device_udc(&kb9202_udc_data); | ||
108 | /* MMC */ | ||
109 | at91_add_device_mmc(&kb9202_mmc_data); | ||
110 | /* I2C */ | ||
111 | at91_add_device_i2c(); | ||
112 | /* SPI */ | ||
113 | at91_add_device_spi(NULL, 0); | ||
114 | } | ||
115 | |||
116 | MACHINE_START(KB9200, "KB920x") | ||
117 | /* Maintainer: KwikByte, Inc. */ | ||
118 | .phys_io = AT91_BASE_SYS, | ||
119 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
120 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
121 | .timer = &at91rm9200_timer, | ||
122 | .map_io = kb9202_map_io, | ||
123 | .init_irq = kb9202_init_irq, | ||
124 | .init_machine = kb9202_board_init, | ||
125 | MACHINE_END | ||
diff --git a/arch/arm/mach-at91rm9200/clock.c b/arch/arm/mach-at91rm9200/clock.c index 8b95467c6d61..edc2cc837ae6 100644 --- a/arch/arm/mach-at91rm9200/clock.c +++ b/arch/arm/mach-at91rm9200/clock.c | |||
@@ -27,12 +27,10 @@ | |||
27 | #include <asm/io.h> | 27 | #include <asm/io.h> |
28 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
29 | 29 | ||
30 | #include <asm/arch/hardware.h> | 30 | #include <asm/hardware.h> |
31 | #include <asm/arch/board.h> /* for master clock global */ | ||
32 | 31 | ||
33 | #include "generic.h" | 32 | #include "generic.h" |
34 | 33 | ||
35 | #undef DEBUG | ||
36 | 34 | ||
37 | /* | 35 | /* |
38 | * There's a lot more which can be done with clocks, including cpufreq | 36 | * There's a lot more which can be done with clocks, including cpufreq |
@@ -41,7 +39,9 @@ | |||
41 | */ | 39 | */ |
42 | 40 | ||
43 | struct clk { | 41 | struct clk { |
44 | const char *name; | 42 | const char *name; /* unique clock name */ |
43 | const char *function; /* function of the clock */ | ||
44 | struct device *dev; /* device associated with function */ | ||
45 | unsigned long rate_hz; | 45 | unsigned long rate_hz; |
46 | struct clk *parent; | 46 | struct clk *parent; |
47 | u32 pmc_mask; | 47 | u32 pmc_mask; |
@@ -71,15 +71,14 @@ static struct clk clk32k = { | |||
71 | }; | 71 | }; |
72 | static struct clk main_clk = { | 72 | static struct clk main_clk = { |
73 | .name = "main", | 73 | .name = "main", |
74 | .pmc_mask = 1 << 0, /* in PMC_SR */ | 74 | .pmc_mask = AT91_PMC_MOSCS, /* in PMC_SR */ |
75 | .users = 1, | ||
76 | .id = 1, | 75 | .id = 1, |
77 | .primary = 1, | 76 | .primary = 1, |
78 | }; | 77 | }; |
79 | static struct clk plla = { | 78 | static struct clk plla = { |
80 | .name = "plla", | 79 | .name = "plla", |
81 | .parent = &main_clk, | 80 | .parent = &main_clk, |
82 | .pmc_mask = 1 << 1, /* in PMC_SR */ | 81 | .pmc_mask = AT91_PMC_LOCKA, /* in PMC_SR */ |
83 | .id = 2, | 82 | .id = 2, |
84 | .primary = 1, | 83 | .primary = 1, |
85 | .pll = 1, | 84 | .pll = 1, |
@@ -105,7 +104,7 @@ static void pllb_mode(struct clk *clk, int is_on) | |||
105 | static struct clk pllb = { | 104 | static struct clk pllb = { |
106 | .name = "pllb", | 105 | .name = "pllb", |
107 | .parent = &main_clk, | 106 | .parent = &main_clk, |
108 | .pmc_mask = 1 << 2, /* in PMC_SR */ | 107 | .pmc_mask = AT91_PMC_LOCKB, /* in PMC_SR */ |
109 | .mode = pllb_mode, | 108 | .mode = pllb_mode, |
110 | .id = 3, | 109 | .id = 3, |
111 | .primary = 1, | 110 | .primary = 1, |
@@ -177,8 +176,7 @@ static struct clk pck3 = { | |||
177 | */ | 176 | */ |
178 | static struct clk mck = { | 177 | static struct clk mck = { |
179 | .name = "mck", | 178 | .name = "mck", |
180 | .pmc_mask = 1 << 3, /* in PMC_SR */ | 179 | .pmc_mask = AT91_PMC_MCKRDY, /* in PMC_SR */ |
181 | .users = 1, /* (must be) always on */ | ||
182 | }; | 180 | }; |
183 | 181 | ||
184 | static void pmc_periph_mode(struct clk *clk, int is_on) | 182 | static void pmc_periph_mode(struct clk *clk, int is_on) |
@@ -249,6 +247,30 @@ static struct clk spi_clk = { | |||
249 | .pmc_mask = 1 << AT91_ID_SPI, | 247 | .pmc_mask = 1 << AT91_ID_SPI, |
250 | .mode = pmc_periph_mode, | 248 | .mode = pmc_periph_mode, |
251 | }; | 249 | }; |
250 | static struct clk pioA_clk = { | ||
251 | .name = "pioA_clk", | ||
252 | .parent = &mck, | ||
253 | .pmc_mask = 1 << AT91_ID_PIOA, | ||
254 | .mode = pmc_periph_mode, | ||
255 | }; | ||
256 | static struct clk pioB_clk = { | ||
257 | .name = "pioB_clk", | ||
258 | .parent = &mck, | ||
259 | .pmc_mask = 1 << AT91_ID_PIOB, | ||
260 | .mode = pmc_periph_mode, | ||
261 | }; | ||
262 | static struct clk pioC_clk = { | ||
263 | .name = "pioC_clk", | ||
264 | .parent = &mck, | ||
265 | .pmc_mask = 1 << AT91_ID_PIOC, | ||
266 | .mode = pmc_periph_mode, | ||
267 | }; | ||
268 | static struct clk pioD_clk = { | ||
269 | .name = "pioD_clk", | ||
270 | .parent = &mck, | ||
271 | .pmc_mask = 1 << AT91_ID_PIOD, | ||
272 | .mode = pmc_periph_mode, | ||
273 | }; | ||
252 | 274 | ||
253 | static struct clk *const clock_list[] = { | 275 | static struct clk *const clock_list[] = { |
254 | /* four primary clocks -- MUST BE FIRST! */ | 276 | /* four primary clocks -- MUST BE FIRST! */ |
@@ -279,21 +301,46 @@ static struct clk *const clock_list[] = { | |||
279 | &udc_clk, | 301 | &udc_clk, |
280 | &twi_clk, | 302 | &twi_clk, |
281 | &spi_clk, | 303 | &spi_clk, |
304 | &pioA_clk, | ||
305 | &pioB_clk, | ||
306 | &pioC_clk, | ||
307 | &pioD_clk, | ||
282 | // ssc0..ssc2 | 308 | // ssc0..ssc2 |
283 | // tc0..tc5 | 309 | // tc0..tc5 |
310 | // irq0..irq6 | ||
284 | &ohci_clk, | 311 | &ohci_clk, |
285 | ðer_clk, | 312 | ðer_clk, |
286 | }; | 313 | }; |
287 | 314 | ||
288 | 315 | ||
316 | /* | ||
317 | * Associate a particular clock with a function (eg, "uart") and device. | ||
318 | * The drivers can then request the same 'function' with several different | ||
319 | * devices and not care about which clock name to use. | ||
320 | */ | ||
321 | void __init at91_clock_associate(const char *id, struct device *dev, const char *func) | ||
322 | { | ||
323 | struct clk *clk = clk_get(NULL, id); | ||
324 | |||
325 | if (!dev || !clk || !IS_ERR(clk_get(dev, func))) | ||
326 | return; | ||
327 | |||
328 | clk->function = func; | ||
329 | clk->dev = dev; | ||
330 | } | ||
331 | |||
289 | /* clocks are all static for now; no refcounting necessary */ | 332 | /* clocks are all static for now; no refcounting necessary */ |
290 | struct clk *clk_get(struct device *dev, const char *id) | 333 | struct clk *clk_get(struct device *dev, const char *id) |
291 | { | 334 | { |
292 | int i; | 335 | int i; |
293 | 336 | ||
294 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { | 337 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { |
295 | if (strcmp(id, clock_list[i]->name) == 0) | 338 | struct clk *clk = clock_list[i]; |
296 | return clock_list[i]; | 339 | |
340 | if (strcmp(id, clk->name) == 0) | ||
341 | return clk; | ||
342 | if (clk->function && (dev == clk->dev) && strcmp(id, clk->function) == 0) | ||
343 | return clk; | ||
297 | } | 344 | } |
298 | 345 | ||
299 | return ERR_PTR(-ENOENT); | 346 | return ERR_PTR(-ENOENT); |
@@ -593,6 +640,30 @@ fail: | |||
593 | return 0; | 640 | return 0; |
594 | } | 641 | } |
595 | 642 | ||
643 | |||
644 | /* | ||
645 | * Several unused clocks may be active. Turn them off. | ||
646 | */ | ||
647 | static void at91_periphclk_reset(void) | ||
648 | { | ||
649 | unsigned long reg; | ||
650 | int i; | ||
651 | |||
652 | reg = at91_sys_read(AT91_PMC_PCSR); | ||
653 | |||
654 | for (i = 0; i < ARRAY_SIZE(clock_list); i++) { | ||
655 | struct clk *clk = clock_list[i]; | ||
656 | |||
657 | if (clk->mode != pmc_periph_mode) | ||
658 | continue; | ||
659 | |||
660 | if (clk->users > 0) | ||
661 | reg &= ~clk->pmc_mask; | ||
662 | } | ||
663 | |||
664 | at91_sys_write(AT91_PMC_PCDR, reg); | ||
665 | } | ||
666 | |||
596 | int __init at91_clock_init(unsigned long main_clock) | 667 | int __init at91_clock_init(unsigned long main_clock) |
597 | { | 668 | { |
598 | unsigned tmp, freq, mckr; | 669 | unsigned tmp, freq, mckr; |
@@ -626,7 +697,6 @@ int __init at91_clock_init(unsigned long main_clock) | |||
626 | */ | 697 | */ |
627 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; | 698 | at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; |
628 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); | 699 | pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); |
629 | at91_sys_write(AT91_PMC_PCDR, (1 << AT91_ID_UHP) | (1 << AT91_ID_UDP)); | ||
630 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP); | 700 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP); |
631 | at91_sys_write(AT91_CKGR_PLLBR, 0); | 701 | at91_sys_write(AT91_CKGR_PLLBR, 0); |
632 | at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP); | 702 | at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP); |
@@ -640,19 +710,18 @@ int __init at91_clock_init(unsigned long main_clock) | |||
640 | */ | 710 | */ |
641 | mckr = at91_sys_read(AT91_PMC_MCKR); | 711 | mckr = at91_sys_read(AT91_PMC_MCKR); |
642 | mck.parent = clock_list[mckr & AT91_PMC_CSS]; | 712 | mck.parent = clock_list[mckr & AT91_PMC_CSS]; |
643 | mck.parent->users++; | ||
644 | freq = mck.parent->rate_hz; | 713 | freq = mck.parent->rate_hz; |
645 | freq /= (1 << ((mckr >> 2) & 3)); /* prescale */ | 714 | freq /= (1 << ((mckr >> 2) & 3)); /* prescale */ |
646 | mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */ | 715 | mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */ |
647 | 716 | ||
717 | /* MCK and CPU clock are "always on" */ | ||
718 | clk_enable(&mck); | ||
719 | |||
648 | printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", | 720 | printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", |
649 | freq / 1000000, (unsigned) mck.rate_hz / 1000000, | 721 | freq / 1000000, (unsigned) mck.rate_hz / 1000000, |
650 | (unsigned) main_clock / 1000000, | 722 | (unsigned) main_clock / 1000000, |
651 | ((unsigned) main_clock % 1000000) / 1000); | 723 | ((unsigned) main_clock % 1000000) / 1000); |
652 | 724 | ||
653 | /* FIXME get rid of master_clock global */ | ||
654 | at91_master_clock = mck.rate_hz; | ||
655 | |||
656 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | 725 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS |
657 | /* establish PCK0..PCK3 parentage */ | 726 | /* establish PCK0..PCK3 parentage */ |
658 | for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) { | 727 | for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) { |
@@ -663,19 +732,28 @@ int __init at91_clock_init(unsigned long main_clock) | |||
663 | continue; | 732 | continue; |
664 | 733 | ||
665 | pckr = at91_sys_read(AT91_PMC_PCKR(clk->id)); | 734 | pckr = at91_sys_read(AT91_PMC_PCKR(clk->id)); |
666 | parent = clock_list[pckr & 3]; | 735 | parent = clock_list[pckr & AT91_PMC_CSS]; |
667 | clk->parent = parent; | 736 | clk->parent = parent; |
668 | clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3)); | 737 | clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3)); |
738 | |||
739 | if (clk->users == 0) { | ||
740 | /* not being used, so switch it off */ | ||
741 | at91_sys_write(AT91_PMC_SCDR, clk->pmc_mask); | ||
742 | } | ||
669 | } | 743 | } |
670 | #else | 744 | #else |
671 | /* disable unused clocks */ | 745 | /* disable all programmable clocks */ |
672 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3); | 746 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3); |
673 | #endif /* CONFIG_AT91_PROGRAMMABLE_CLOCKS */ | 747 | #endif |
674 | 748 | ||
675 | /* FIXME several unused clocks may still be active... provide | 749 | /* enable the PIO clocks */ |
676 | * a CONFIG option to turn off all unused clocks at some point | 750 | clk_enable(&pioA_clk); |
677 | * before driver init starts. | 751 | clk_enable(&pioB_clk); |
678 | */ | 752 | clk_enable(&pioC_clk); |
753 | clk_enable(&pioD_clk); | ||
754 | |||
755 | /* disable all other unused peripheral clocks */ | ||
756 | at91_periphclk_reset(); | ||
679 | 757 | ||
680 | return 0; | 758 | return 0; |
681 | } | 759 | } |
diff --git a/arch/arm/mach-at91rm9200/common.c b/arch/arm/mach-at91rm9200/common.c index 3848fd2d5596..e836f8537a1d 100644 --- a/arch/arm/mach-at91rm9200/common.c +++ b/arch/arm/mach-at91rm9200/common.c | |||
@@ -16,7 +16,8 @@ | |||
16 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
18 | 18 | ||
19 | #include <asm/arch/hardware.h> | 19 | #include <asm/hardware.h> |
20 | #include "generic.h" | ||
20 | 21 | ||
21 | static struct map_desc at91rm9200_io_desc[] __initdata = { | 22 | static struct map_desc at91rm9200_io_desc[] __initdata = { |
22 | { | 23 | { |
@@ -94,6 +95,11 @@ static struct map_desc at91rm9200_io_desc[] __initdata = { | |||
94 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), | 95 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), |
95 | .length = SZ_16K, | 96 | .length = SZ_16K, |
96 | .type = MT_DEVICE, | 97 | .type = MT_DEVICE, |
98 | }, { | ||
99 | .virtual = AT91_SRAM_VIRT_BASE, | ||
100 | .pfn = __phys_to_pfn(AT91_SRAM_BASE), | ||
101 | .length = AT91_SRAM_SIZE, | ||
102 | .type = MT_DEVICE, | ||
97 | }, | 103 | }, |
98 | }; | 104 | }; |
99 | 105 | ||
@@ -102,14 +108,3 @@ void __init at91rm9200_map_io(void) | |||
102 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); | 108 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); |
103 | } | 109 | } |
104 | 110 | ||
105 | |||
106 | unsigned long at91_master_clock; | ||
107 | |||
108 | EXPORT_SYMBOL(at91_master_clock); | ||
109 | |||
110 | |||
111 | int at91_serial_map[AT91_NR_UART]; | ||
112 | int at91_console_port; | ||
113 | |||
114 | EXPORT_SYMBOL(at91_serial_map); | ||
115 | EXPORT_SYMBOL(at91_console_port); | ||
diff --git a/arch/arm/mach-at91rm9200/devices.c b/arch/arm/mach-at91rm9200/devices.c index bfe47bd6e50c..1cf85d231baa 100644 --- a/arch/arm/mach-at91rm9200/devices.c +++ b/arch/arm/mach-at91rm9200/devices.c | |||
@@ -16,9 +16,15 @@ | |||
16 | #include <linux/config.h> | 16 | #include <linux/config.h> |
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | 18 | ||
19 | #include <asm/hardware.h> | ||
19 | #include <asm/arch/board.h> | 20 | #include <asm/arch/board.h> |
20 | #include <asm/arch/pio.h> | 21 | #include <asm/arch/gpio.h> |
21 | 22 | ||
23 | #include "generic.h" | ||
24 | |||
25 | #define SZ_512 0x00000200 | ||
26 | #define SZ_256 0x00000100 | ||
27 | #define SZ_16 0x00000010 | ||
22 | 28 | ||
23 | /* -------------------------------------------------------------------- | 29 | /* -------------------------------------------------------------------- |
24 | * USB Host | 30 | * USB Host |
@@ -28,7 +34,7 @@ | |||
28 | static u64 ohci_dmamask = 0xffffffffUL; | 34 | static u64 ohci_dmamask = 0xffffffffUL; |
29 | static struct at91_usbh_data usbh_data; | 35 | static struct at91_usbh_data usbh_data; |
30 | 36 | ||
31 | static struct resource at91_usbh_resource[] = { | 37 | static struct resource at91_usbh_resources[] = { |
32 | [0] = { | 38 | [0] = { |
33 | .start = AT91_UHP_BASE, | 39 | .start = AT91_UHP_BASE, |
34 | .end = AT91_UHP_BASE + SZ_1M - 1, | 40 | .end = AT91_UHP_BASE + SZ_1M - 1, |
@@ -42,15 +48,15 @@ static struct resource at91_usbh_resource[] = { | |||
42 | }; | 48 | }; |
43 | 49 | ||
44 | static struct platform_device at91rm9200_usbh_device = { | 50 | static struct platform_device at91rm9200_usbh_device = { |
45 | .name = "at91rm9200-ohci", | 51 | .name = "at91_ohci", |
46 | .id = -1, | 52 | .id = -1, |
47 | .dev = { | 53 | .dev = { |
48 | .dma_mask = &ohci_dmamask, | 54 | .dma_mask = &ohci_dmamask, |
49 | .coherent_dma_mask = 0xffffffff, | 55 | .coherent_dma_mask = 0xffffffff, |
50 | .platform_data = &usbh_data, | 56 | .platform_data = &usbh_data, |
51 | }, | 57 | }, |
52 | .resource = at91_usbh_resource, | 58 | .resource = at91_usbh_resources, |
53 | .num_resources = ARRAY_SIZE(at91_usbh_resource), | 59 | .num_resources = ARRAY_SIZE(at91_usbh_resources), |
54 | }; | 60 | }; |
55 | 61 | ||
56 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | 62 | void __init at91_add_device_usbh(struct at91_usbh_data *data) |
@@ -74,11 +80,16 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {} | |||
74 | static struct at91_udc_data udc_data; | 80 | static struct at91_udc_data udc_data; |
75 | 81 | ||
76 | static struct resource at91_udc_resources[] = { | 82 | static struct resource at91_udc_resources[] = { |
77 | { | 83 | [0] = { |
78 | .start = AT91_BASE_UDP, | 84 | .start = AT91_BASE_UDP, |
79 | .end = AT91_BASE_UDP + SZ_16K - 1, | 85 | .end = AT91_BASE_UDP + SZ_16K - 1, |
80 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
81 | } | 87 | }, |
88 | [1] = { | ||
89 | .start = AT91_ID_UDP, | ||
90 | .end = AT91_ID_UDP, | ||
91 | .flags = IORESOURCE_IRQ, | ||
92 | }, | ||
82 | }; | 93 | }; |
83 | 94 | ||
84 | static struct platform_device at91rm9200_udc_device = { | 95 | static struct platform_device at91rm9200_udc_device = { |
@@ -100,10 +111,8 @@ void __init at91_add_device_udc(struct at91_udc_data *data) | |||
100 | at91_set_gpio_input(data->vbus_pin, 0); | 111 | at91_set_gpio_input(data->vbus_pin, 0); |
101 | at91_set_deglitch(data->vbus_pin, 1); | 112 | at91_set_deglitch(data->vbus_pin, 1); |
102 | } | 113 | } |
103 | if (data->pullup_pin) { | 114 | if (data->pullup_pin) |
104 | at91_set_gpio_output(data->pullup_pin, 0); | 115 | at91_set_gpio_output(data->pullup_pin, 0); |
105 | at91_set_multi_drive(data->pullup_pin, 1); | ||
106 | } | ||
107 | 116 | ||
108 | udc_data = *data; | 117 | udc_data = *data; |
109 | platform_device_register(&at91rm9200_udc_device); | 118 | platform_device_register(&at91rm9200_udc_device); |
@@ -197,7 +206,7 @@ static struct at91_cf_data cf_data; | |||
197 | static struct resource at91_cf_resources[] = { | 206 | static struct resource at91_cf_resources[] = { |
198 | [0] = { | 207 | [0] = { |
199 | .start = AT91_CF_BASE, | 208 | .start = AT91_CF_BASE, |
200 | /* ties up CS4, CS5, and CS6 */ | 209 | /* ties up CS4, CS5 and CS6 */ |
201 | .end = AT91_CF_BASE + (0x30000000 - 1), | 210 | .end = AT91_CF_BASE + (0x30000000 - 1), |
202 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, | 211 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, |
203 | }, | 212 | }, |
@@ -231,6 +240,12 @@ void __init at91_add_device_cf(struct at91_cf_data *data) | |||
231 | at91_set_gpio_output(data->vcc_pin, 0); | 240 | at91_set_gpio_output(data->vcc_pin, 0); |
232 | at91_set_gpio_output(data->rst_pin, 0); | 241 | at91_set_gpio_output(data->rst_pin, 0); |
233 | 242 | ||
243 | /* force poweron defaults for these pins ... */ | ||
244 | at91_set_A_periph(AT91_PIN_PC9, 0); /* A25/CFRNW */ | ||
245 | at91_set_A_periph(AT91_PIN_PC10, 0); /* NCS4/CFCS */ | ||
246 | at91_set_A_periph(AT91_PIN_PC11, 0); /* NCS5/CFCE1 */ | ||
247 | at91_set_A_periph(AT91_PIN_PC12, 0); /* NCS6/CFCE2 */ | ||
248 | |||
234 | cf_data = *data; | 249 | cf_data = *data; |
235 | platform_device_register(&at91rm9200_cf_device); | 250 | platform_device_register(&at91rm9200_cf_device); |
236 | } | 251 | } |
@@ -319,6 +334,7 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data) | |||
319 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} | 334 | void __init at91_add_device_mmc(struct at91_mmc_data *data) {} |
320 | #endif | 335 | #endif |
321 | 336 | ||
337 | |||
322 | /* -------------------------------------------------------------------- | 338 | /* -------------------------------------------------------------------- |
323 | * NAND / SmartMedia | 339 | * NAND / SmartMedia |
324 | * -------------------------------------------------------------------- */ | 340 | * -------------------------------------------------------------------- */ |
@@ -400,22 +416,110 @@ void __init at91_add_device_i2c(void) {} | |||
400 | 416 | ||
401 | 417 | ||
402 | /* -------------------------------------------------------------------- | 418 | /* -------------------------------------------------------------------- |
419 | * SPI | ||
420 | * -------------------------------------------------------------------- */ | ||
421 | |||
422 | #if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE) | ||
423 | static u64 spi_dmamask = 0xffffffffUL; | ||
424 | |||
425 | static struct resource at91_spi_resources[] = { | ||
426 | [0] = { | ||
427 | .start = AT91_BASE_SPI, | ||
428 | .end = AT91_BASE_SPI + SZ_16K - 1, | ||
429 | .flags = IORESOURCE_MEM, | ||
430 | }, | ||
431 | [1] = { | ||
432 | .start = AT91_ID_SPI, | ||
433 | .end = AT91_ID_SPI, | ||
434 | .flags = IORESOURCE_IRQ, | ||
435 | }, | ||
436 | }; | ||
437 | |||
438 | static struct platform_device at91rm9200_spi_device = { | ||
439 | .name = "at91_spi", | ||
440 | .id = 0, | ||
441 | .dev = { | ||
442 | .dma_mask = &spi_dmamask, | ||
443 | .coherent_dma_mask = 0xffffffff, | ||
444 | }, | ||
445 | .resource = at91_spi_resources, | ||
446 | .num_resources = ARRAY_SIZE(at91_spi_resources), | ||
447 | }; | ||
448 | |||
449 | static const unsigned at91_spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 }; | ||
450 | |||
451 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | ||
452 | { | ||
453 | int i; | ||
454 | unsigned long cs_pin; | ||
455 | |||
456 | at91_set_A_periph(AT91_PIN_PA0, 0); /* MISO */ | ||
457 | at91_set_A_periph(AT91_PIN_PA1, 0); /* MOSI */ | ||
458 | at91_set_A_periph(AT91_PIN_PA2, 0); /* SPCK */ | ||
459 | |||
460 | /* Enable SPI chip-selects */ | ||
461 | for (i = 0; i < nr_devices; i++) { | ||
462 | if (devices[i].controller_data) | ||
463 | cs_pin = (unsigned long) devices[i].controller_data; | ||
464 | else | ||
465 | cs_pin = at91_spi_standard_cs[devices[i].chip_select]; | ||
466 | |||
467 | #ifdef CONFIG_SPI_AT91_MANUAL_CS | ||
468 | at91_set_gpio_output(cs_pin, 1); | ||
469 | #else | ||
470 | at91_set_A_periph(cs_pin, 0); | ||
471 | #endif | ||
472 | |||
473 | /* pass chip-select pin to driver */ | ||
474 | devices[i].controller_data = (void *) cs_pin; | ||
475 | } | ||
476 | |||
477 | spi_register_board_info(devices, nr_devices); | ||
478 | at91_clock_associate("spi0_clk", &at91rm9200_spi_device.dev, "spi"); | ||
479 | platform_device_register(&at91rm9200_spi_device); | ||
480 | } | ||
481 | #else | ||
482 | void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {} | ||
483 | #endif | ||
484 | |||
485 | |||
486 | /* -------------------------------------------------------------------- | ||
403 | * RTC | 487 | * RTC |
404 | * -------------------------------------------------------------------- */ | 488 | * -------------------------------------------------------------------- */ |
405 | 489 | ||
406 | #if defined(CONFIG_AT91_RTC) || defined(CONFIG_AT91_RTC_MODULE) | 490 | #if defined(CONFIG_RTC_DRV_AT91) || defined(CONFIG_RTC_DRV_AT91_MODULE) |
407 | static struct platform_device at91rm9200_rtc_device = { | 491 | static struct platform_device at91rm9200_rtc_device = { |
408 | .name = "at91_rtc", | 492 | .name = "at91_rtc", |
409 | .id = -1, | 493 | .id = -1, |
410 | .num_resources = 0, | 494 | .num_resources = 0, |
411 | }; | 495 | }; |
412 | 496 | ||
413 | void __init at91_add_device_rtc(void) | 497 | static void __init at91_add_device_rtc(void) |
414 | { | 498 | { |
415 | platform_device_register(&at91rm9200_rtc_device); | 499 | platform_device_register(&at91rm9200_rtc_device); |
416 | } | 500 | } |
417 | #else | 501 | #else |
418 | void __init at91_add_device_rtc(void) {} | 502 | static void __init at91_add_device_rtc(void) {} |
503 | #endif | ||
504 | |||
505 | |||
506 | /* -------------------------------------------------------------------- | ||
507 | * Watchdog | ||
508 | * -------------------------------------------------------------------- */ | ||
509 | |||
510 | #if defined(CONFIG_AT91_WATCHDOG) || defined(CONFIG_AT91_WATCHDOG_MODULE) | ||
511 | static struct platform_device at91rm9200_wdt_device = { | ||
512 | .name = "at91_wdt", | ||
513 | .id = -1, | ||
514 | .num_resources = 0, | ||
515 | }; | ||
516 | |||
517 | static void __init at91_add_device_watchdog(void) | ||
518 | { | ||
519 | platform_device_register(&at91rm9200_wdt_device); | ||
520 | } | ||
521 | #else | ||
522 | static void __init at91_add_device_watchdog(void) {} | ||
419 | #endif | 523 | #endif |
420 | 524 | ||
421 | 525 | ||
@@ -429,13 +533,281 @@ u8 at91_leds_timer; | |||
429 | 533 | ||
430 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) | 534 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) |
431 | { | 535 | { |
432 | at91_leds_cpu = cpu_led; | 536 | at91_leds_cpu = cpu_led; |
433 | at91_leds_timer = timer_led; | 537 | at91_leds_timer = timer_led; |
434 | } | 538 | } |
435 | |||
436 | #else | 539 | #else |
437 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} | 540 | void __init at91_init_leds(u8 cpu_led, u8 timer_led) {} |
438 | #endif | 541 | #endif |
439 | 542 | ||
440 | 543 | ||
544 | /* -------------------------------------------------------------------- | ||
545 | * UART | ||
546 | * -------------------------------------------------------------------- */ | ||
547 | |||
548 | #if defined(CONFIG_SERIAL_AT91) | ||
549 | static struct resource dbgu_resources[] = { | ||
550 | [0] = { | ||
551 | .start = AT91_VA_BASE_SYS + AT91_DBGU, | ||
552 | .end = AT91_VA_BASE_SYS + AT91_DBGU + SZ_512 - 1, | ||
553 | .flags = IORESOURCE_MEM, | ||
554 | }, | ||
555 | [1] = { | ||
556 | .start = AT91_ID_SYS, | ||
557 | .end = AT91_ID_SYS, | ||
558 | .flags = IORESOURCE_IRQ, | ||
559 | }, | ||
560 | }; | ||
561 | |||
562 | static struct at91_uart_data dbgu_data = { | ||
563 | .use_dma_tx = 0, | ||
564 | .use_dma_rx = 0, /* DBGU not capable of receive DMA */ | ||
565 | }; | ||
566 | |||
567 | static struct platform_device at91rm9200_dbgu_device = { | ||
568 | .name = "at91_usart", | ||
569 | .id = 0, | ||
570 | .dev = { | ||
571 | .platform_data = &dbgu_data, | ||
572 | .coherent_dma_mask = 0xffffffff, | ||
573 | }, | ||
574 | .resource = dbgu_resources, | ||
575 | .num_resources = ARRAY_SIZE(dbgu_resources), | ||
576 | }; | ||
577 | |||
578 | static inline void configure_dbgu_pins(void) | ||
579 | { | ||
580 | at91_set_A_periph(AT91_PIN_PA30, 0); /* DRXD */ | ||
581 | at91_set_A_periph(AT91_PIN_PA31, 1); /* DTXD */ | ||
582 | } | ||
583 | |||
584 | static struct resource uart0_resources[] = { | ||
585 | [0] = { | ||
586 | .start = AT91_BASE_US0, | ||
587 | .end = AT91_BASE_US0 + SZ_16K - 1, | ||
588 | .flags = IORESOURCE_MEM, | ||
589 | }, | ||
590 | [1] = { | ||
591 | .start = AT91_ID_US0, | ||
592 | .end = AT91_ID_US0, | ||
593 | .flags = IORESOURCE_IRQ, | ||
594 | }, | ||
595 | }; | ||
596 | |||
597 | static struct at91_uart_data uart0_data = { | ||
598 | .use_dma_tx = 1, | ||
599 | .use_dma_rx = 1, | ||
600 | }; | ||
601 | |||
602 | static struct platform_device at91rm9200_uart0_device = { | ||
603 | .name = "at91_usart", | ||
604 | .id = 1, | ||
605 | .dev = { | ||
606 | .platform_data = &uart0_data, | ||
607 | .coherent_dma_mask = 0xffffffff, | ||
608 | }, | ||
609 | .resource = uart0_resources, | ||
610 | .num_resources = ARRAY_SIZE(uart0_resources), | ||
611 | }; | ||
612 | |||
613 | static inline void configure_usart0_pins(void) | ||
614 | { | ||
615 | at91_set_A_periph(AT91_PIN_PA17, 1); /* TXD0 */ | ||
616 | at91_set_A_periph(AT91_PIN_PA18, 0); /* RXD0 */ | ||
617 | at91_set_A_periph(AT91_PIN_PA20, 0); /* CTS0 */ | ||
618 | |||
619 | /* | ||
620 | * AT91RM9200 Errata #39 - RTS0 is not internally connected to PA21. | ||
621 | * We need to drive the pin manually. Default is off (RTS is active low). | ||
622 | */ | ||
623 | at91_set_gpio_output(AT91_PIN_PA21, 1); | ||
624 | } | ||
625 | |||
626 | static struct resource uart1_resources[] = { | ||
627 | [0] = { | ||
628 | .start = AT91_BASE_US1, | ||
629 | .end = AT91_BASE_US1 + SZ_16K - 1, | ||
630 | .flags = IORESOURCE_MEM, | ||
631 | }, | ||
632 | [1] = { | ||
633 | .start = AT91_ID_US1, | ||
634 | .end = AT91_ID_US1, | ||
635 | .flags = IORESOURCE_IRQ, | ||
636 | }, | ||
637 | }; | ||
638 | |||
639 | static struct at91_uart_data uart1_data = { | ||
640 | .use_dma_tx = 1, | ||
641 | .use_dma_rx = 1, | ||
642 | }; | ||
643 | |||
644 | static struct platform_device at91rm9200_uart1_device = { | ||
645 | .name = "at91_usart", | ||
646 | .id = 2, | ||
647 | .dev = { | ||
648 | .platform_data = &uart1_data, | ||
649 | .coherent_dma_mask = 0xffffffff, | ||
650 | }, | ||
651 | .resource = uart1_resources, | ||
652 | .num_resources = ARRAY_SIZE(uart1_resources), | ||
653 | }; | ||
654 | |||
655 | static inline void configure_usart1_pins(void) | ||
656 | { | ||
657 | at91_set_A_periph(AT91_PIN_PB18, 0); /* RI1 */ | ||
658 | at91_set_A_periph(AT91_PIN_PB19, 0); /* DTR1 */ | ||
659 | at91_set_A_periph(AT91_PIN_PB20, 1); /* TXD1 */ | ||
660 | at91_set_A_periph(AT91_PIN_PB21, 0); /* RXD1 */ | ||
661 | at91_set_A_periph(AT91_PIN_PB23, 0); /* DCD1 */ | ||
662 | at91_set_A_periph(AT91_PIN_PB24, 0); /* CTS1 */ | ||
663 | at91_set_A_periph(AT91_PIN_PB25, 0); /* DSR1 */ | ||
664 | at91_set_A_periph(AT91_PIN_PB26, 0); /* RTS1 */ | ||
665 | } | ||
666 | |||
667 | static struct resource uart2_resources[] = { | ||
668 | [0] = { | ||
669 | .start = AT91_BASE_US2, | ||
670 | .end = AT91_BASE_US2 + SZ_16K - 1, | ||
671 | .flags = IORESOURCE_MEM, | ||
672 | }, | ||
673 | [1] = { | ||
674 | .start = AT91_ID_US2, | ||
675 | .end = AT91_ID_US2, | ||
676 | .flags = IORESOURCE_IRQ, | ||
677 | }, | ||
678 | }; | ||
679 | |||
680 | static struct at91_uart_data uart2_data = { | ||
681 | .use_dma_tx = 1, | ||
682 | .use_dma_rx = 1, | ||
683 | }; | ||
684 | |||
685 | static struct platform_device at91rm9200_uart2_device = { | ||
686 | .name = "at91_usart", | ||
687 | .id = 3, | ||
688 | .dev = { | ||
689 | .platform_data = &uart2_data, | ||
690 | .coherent_dma_mask = 0xffffffff, | ||
691 | }, | ||
692 | .resource = uart2_resources, | ||
693 | .num_resources = ARRAY_SIZE(uart2_resources), | ||
694 | }; | ||
695 | |||
696 | static inline void configure_usart2_pins(void) | ||
697 | { | ||
698 | at91_set_A_periph(AT91_PIN_PA22, 0); /* RXD2 */ | ||
699 | at91_set_A_periph(AT91_PIN_PA23, 1); /* TXD2 */ | ||
700 | } | ||
701 | |||
702 | static struct resource uart3_resources[] = { | ||
703 | [0] = { | ||
704 | .start = AT91_BASE_US3, | ||
705 | .end = AT91_BASE_US3 + SZ_16K - 1, | ||
706 | .flags = IORESOURCE_MEM, | ||
707 | }, | ||
708 | [1] = { | ||
709 | .start = AT91_ID_US3, | ||
710 | .end = AT91_ID_US3, | ||
711 | .flags = IORESOURCE_IRQ, | ||
712 | }, | ||
713 | }; | ||
714 | |||
715 | static struct at91_uart_data uart3_data = { | ||
716 | .use_dma_tx = 1, | ||
717 | .use_dma_rx = 1, | ||
718 | }; | ||
719 | |||
720 | static struct platform_device at91rm9200_uart3_device = { | ||
721 | .name = "at91_usart", | ||
722 | .id = 4, | ||
723 | .dev = { | ||
724 | .platform_data = &uart3_data, | ||
725 | .coherent_dma_mask = 0xffffffff, | ||
726 | }, | ||
727 | .resource = uart3_resources, | ||
728 | .num_resources = ARRAY_SIZE(uart3_resources), | ||
729 | }; | ||
730 | |||
731 | static inline void configure_usart3_pins(void) | ||
732 | { | ||
733 | at91_set_B_periph(AT91_PIN_PA5, 1); /* TXD3 */ | ||
734 | at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */ | ||
735 | } | ||
736 | |||
737 | struct platform_device *at91_uarts[AT91_NR_UART]; /* the UARTs to use */ | ||
738 | struct platform_device *at91_default_console_device; /* the serial console device */ | ||
739 | |||
740 | void __init at91_init_serial(struct at91_uart_config *config) | ||
741 | { | ||
742 | int i; | ||
743 | |||
744 | /* Fill in list of supported UARTs */ | ||
745 | for (i = 0; i < config->nr_tty; i++) { | ||
746 | switch (config->tty_map[i]) { | ||
747 | case 0: | ||
748 | configure_usart0_pins(); | ||
749 | at91_uarts[i] = &at91rm9200_uart0_device; | ||
750 | at91_clock_associate("usart0_clk", &at91rm9200_uart0_device.dev, "usart"); | ||
751 | break; | ||
752 | case 1: | ||
753 | configure_usart1_pins(); | ||
754 | at91_uarts[i] = &at91rm9200_uart1_device; | ||
755 | at91_clock_associate("usart1_clk", &at91rm9200_uart1_device.dev, "usart"); | ||
756 | break; | ||
757 | case 2: | ||
758 | configure_usart2_pins(); | ||
759 | at91_uarts[i] = &at91rm9200_uart2_device; | ||
760 | at91_clock_associate("usart2_clk", &at91rm9200_uart2_device.dev, "usart"); | ||
761 | break; | ||
762 | case 3: | ||
763 | configure_usart3_pins(); | ||
764 | at91_uarts[i] = &at91rm9200_uart3_device; | ||
765 | at91_clock_associate("usart3_clk", &at91rm9200_uart3_device.dev, "usart"); | ||
766 | break; | ||
767 | case 4: | ||
768 | configure_dbgu_pins(); | ||
769 | at91_uarts[i] = &at91rm9200_dbgu_device; | ||
770 | at91_clock_associate("mck", &at91rm9200_dbgu_device.dev, "usart"); | ||
771 | break; | ||
772 | default: | ||
773 | continue; | ||
774 | } | ||
775 | at91_uarts[i]->id = i; /* update ID number to mapped ID */ | ||
776 | } | ||
777 | |||
778 | /* Set serial console device */ | ||
779 | if (config->console_tty < AT91_NR_UART) | ||
780 | at91_default_console_device = at91_uarts[config->console_tty]; | ||
781 | if (!at91_default_console_device) | ||
782 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
783 | } | ||
784 | |||
785 | void __init at91_add_device_serial(void) | ||
786 | { | ||
787 | int i; | ||
788 | |||
789 | for (i = 0; i < AT91_NR_UART; i++) { | ||
790 | if (at91_uarts[i]) | ||
791 | platform_device_register(at91_uarts[i]); | ||
792 | } | ||
793 | } | ||
794 | #else | ||
795 | void __init at91_init_serial(struct at91_uart_config *config) {} | ||
796 | void __init at91_add_device_serial(void) {} | ||
797 | #endif | ||
798 | |||
799 | |||
441 | /* -------------------------------------------------------------------- */ | 800 | /* -------------------------------------------------------------------- */ |
801 | |||
802 | /* | ||
803 | * These devices are always present and don't need any board-specific | ||
804 | * setup. | ||
805 | */ | ||
806 | static int __init at91_add_standard_devices(void) | ||
807 | { | ||
808 | at91_add_device_rtc(); | ||
809 | at91_add_device_watchdog(); | ||
810 | return 0; | ||
811 | } | ||
812 | |||
813 | arch_initcall(at91_add_standard_devices); | ||
diff --git a/arch/arm/mach-at91rm9200/generic.h b/arch/arm/mach-at91rm9200/generic.h index 9bd541eba0a0..f0d969d7d874 100644 --- a/arch/arm/mach-at91rm9200/generic.h +++ b/arch/arm/mach-at91rm9200/generic.h | |||
@@ -16,3 +16,10 @@ extern struct sys_timer at91rm9200_timer; | |||
16 | extern void __init at91rm9200_map_io(void); | 16 | extern void __init at91rm9200_map_io(void); |
17 | 17 | ||
18 | extern int __init at91_clock_init(unsigned long main_clock); | 18 | extern int __init at91_clock_init(unsigned long main_clock); |
19 | struct device; | ||
20 | extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func); | ||
21 | |||
22 | /* Power Management */ | ||
23 | extern void at91_irq_suspend(void); | ||
24 | extern void at91_irq_resume(void); | ||
25 | |||
diff --git a/arch/arm/mach-at91rm9200/gpio.c b/arch/arm/mach-at91rm9200/gpio.c index 5ab46274e1a3..83c34747087b 100644 --- a/arch/arm/mach-at91rm9200/gpio.c +++ b/arch/arm/mach-at91rm9200/gpio.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/mach/irq.h> | 18 | #include <asm/mach/irq.h> |
19 | #include <asm/arch/hardware.h> | 19 | #include <asm/hardware.h> |
20 | #include <asm/arch/gpio.h> | 20 | #include <asm/arch/gpio.h> |
21 | 21 | ||
22 | static const u32 pio_controller_offset[4] = { | 22 | static const u32 pio_controller_offset[4] = { |
@@ -213,6 +213,84 @@ EXPORT_SYMBOL(at91_get_gpio_value); | |||
213 | 213 | ||
214 | /*--------------------------------------------------------------------------*/ | 214 | /*--------------------------------------------------------------------------*/ |
215 | 215 | ||
216 | #ifdef CONFIG_PM | ||
217 | |||
218 | static u32 wakeups[BGA_GPIO_BANKS]; | ||
219 | static u32 backups[BGA_GPIO_BANKS]; | ||
220 | |||
221 | static int gpio_irq_set_wake(unsigned pin, unsigned state) | ||
222 | { | ||
223 | unsigned mask = pin_to_mask(pin); | ||
224 | |||
225 | pin -= PIN_BASE; | ||
226 | pin /= 32; | ||
227 | |||
228 | if (unlikely(pin >= BGA_GPIO_BANKS)) | ||
229 | return -EINVAL; | ||
230 | |||
231 | if (state) | ||
232 | wakeups[pin] |= mask; | ||
233 | else | ||
234 | wakeups[pin] &= ~mask; | ||
235 | |||
236 | return 0; | ||
237 | } | ||
238 | |||
239 | void at91_gpio_suspend(void) | ||
240 | { | ||
241 | int i; | ||
242 | |||
243 | for (i = 0; i < BGA_GPIO_BANKS; i++) { | ||
244 | u32 pio = pio_controller_offset[i]; | ||
245 | |||
246 | /* | ||
247 | * Note: drivers should have disabled GPIO interrupts that | ||
248 | * aren't supposed to be wakeup sources. | ||
249 | * But that is not much good on ARM..... disable_irq() does | ||
250 | * not update the hardware immediately, so the hardware mask | ||
251 | * (IMR) has the wrong value (not current, too much is | ||
252 | * permitted). | ||
253 | * | ||
254 | * Our workaround is to disable all non-wakeup IRQs ... | ||
255 | * which is exactly what correct drivers asked for in the | ||
256 | * first place! | ||
257 | */ | ||
258 | backups[i] = at91_sys_read(pio + PIO_IMR); | ||
259 | at91_sys_write(pio_controller_offset[i] + PIO_IDR, backups[i]); | ||
260 | at91_sys_write(pio_controller_offset[i] + PIO_IER, wakeups[i]); | ||
261 | |||
262 | if (!wakeups[i]) { | ||
263 | disable_irq_wake(AT91_ID_PIOA + i); | ||
264 | at91_sys_write(AT91_PMC_PCDR, 1 << (AT91_ID_PIOA + i)); | ||
265 | } else { | ||
266 | enable_irq_wake(AT91_ID_PIOA + i); | ||
267 | #ifdef CONFIG_PM_DEBUG | ||
268 | printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", "ABCD"[i], wakeups[i]); | ||
269 | #endif | ||
270 | } | ||
271 | } | ||
272 | } | ||
273 | |||
274 | void at91_gpio_resume(void) | ||
275 | { | ||
276 | int i; | ||
277 | |||
278 | for (i = 0; i < BGA_GPIO_BANKS; i++) { | ||
279 | at91_sys_write(pio_controller_offset[i] + PIO_IDR, wakeups[i]); | ||
280 | at91_sys_write(pio_controller_offset[i] + PIO_IER, backups[i]); | ||
281 | } | ||
282 | |||
283 | at91_sys_write(AT91_PMC_PCER, | ||
284 | (1 << AT91_ID_PIOA) | ||
285 | | (1 << AT91_ID_PIOB) | ||
286 | | (1 << AT91_ID_PIOC) | ||
287 | | (1 << AT91_ID_PIOD)); | ||
288 | } | ||
289 | |||
290 | #else | ||
291 | #define gpio_irq_set_wake NULL | ||
292 | #endif | ||
293 | |||
216 | 294 | ||
217 | /* Several AIC controller irqs are dispatched through this GPIO handler. | 295 | /* Several AIC controller irqs are dispatched through this GPIO handler. |
218 | * To use any AT91_PIN_* as an externally triggered IRQ, first call | 296 | * To use any AT91_PIN_* as an externally triggered IRQ, first call |
@@ -252,6 +330,7 @@ static struct irqchip gpio_irqchip = { | |||
252 | .mask = gpio_irq_mask, | 330 | .mask = gpio_irq_mask, |
253 | .unmask = gpio_irq_unmask, | 331 | .unmask = gpio_irq_unmask, |
254 | .set_type = gpio_irq_type, | 332 | .set_type = gpio_irq_type, |
333 | .set_wake = gpio_irq_set_wake, | ||
255 | }; | 334 | }; |
256 | 335 | ||
257 | static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs) | 336 | static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs) |
@@ -266,6 +345,7 @@ static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs | |||
266 | /* temporarily mask (level sensitive) parent IRQ */ | 345 | /* temporarily mask (level sensitive) parent IRQ */ |
267 | desc->chip->ack(irq); | 346 | desc->chip->ack(irq); |
268 | for (;;) { | 347 | for (;;) { |
348 | /* reading ISR acks the pending (edge triggered) GPIO interrupt */ | ||
269 | isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR); | 349 | isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR); |
270 | if (!isr) | 350 | if (!isr) |
271 | break; | 351 | break; |
@@ -315,15 +395,16 @@ void __init at91_gpio_irq_setup(unsigned banks) | |||
315 | set_irq_chipdata(id, controller); | 395 | set_irq_chipdata(id, controller); |
316 | 396 | ||
317 | for (i = 0; i < 32; i++, pin++) { | 397 | for (i = 0; i < 32; i++, pin++) { |
398 | /* | ||
399 | * Can use the "simple" and not "edge" handler since it's | ||
400 | * shorter, and the AIC handles interupts sanely. | ||
401 | */ | ||
318 | set_irq_chip(pin, &gpio_irqchip); | 402 | set_irq_chip(pin, &gpio_irqchip); |
319 | set_irq_handler(pin, do_simple_IRQ); | 403 | set_irq_handler(pin, do_simple_IRQ); |
320 | set_irq_flags(pin, IRQF_VALID); | 404 | set_irq_flags(pin, IRQF_VALID); |
321 | } | 405 | } |
322 | 406 | ||
323 | set_irq_chained_handler(id, gpio_irq_handler); | 407 | set_irq_chained_handler(id, gpio_irq_handler); |
324 | |||
325 | /* enable the PIO peripheral clock */ | ||
326 | at91_sys_write(AT91_PMC_PCER, 1 << id); | ||
327 | } | 408 | } |
328 | pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks); | 409 | pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks); |
329 | } | 410 | } |
diff --git a/arch/arm/mach-at91rm9200/irq.c b/arch/arm/mach-at91rm9200/irq.c index cb62bc83a1dd..70f4d7ac1533 100644 --- a/arch/arm/mach-at91rm9200/irq.c +++ b/arch/arm/mach-at91rm9200/irq.c | |||
@@ -92,10 +92,6 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
92 | { | 92 | { |
93 | unsigned int smr, srctype; | 93 | unsigned int smr, srctype; |
94 | 94 | ||
95 | /* change triggering only for FIQ and external IRQ0..IRQ6 */ | ||
96 | if ((irq < AT91_ID_IRQ0) && (irq != AT91_ID_FIQ)) | ||
97 | return -EINVAL; | ||
98 | |||
99 | switch (type) { | 95 | switch (type) { |
100 | case IRQT_HIGH: | 96 | case IRQT_HIGH: |
101 | srctype = AT91_AIC_SRCTYPE_HIGH; | 97 | srctype = AT91_AIC_SRCTYPE_HIGH; |
@@ -104,9 +100,13 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
104 | srctype = AT91_AIC_SRCTYPE_RISING; | 100 | srctype = AT91_AIC_SRCTYPE_RISING; |
105 | break; | 101 | break; |
106 | case IRQT_LOW: | 102 | case IRQT_LOW: |
103 | if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */ | ||
104 | return -EINVAL; | ||
107 | srctype = AT91_AIC_SRCTYPE_LOW; | 105 | srctype = AT91_AIC_SRCTYPE_LOW; |
108 | break; | 106 | break; |
109 | case IRQT_FALLING: | 107 | case IRQT_FALLING: |
108 | if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */ | ||
109 | return -EINVAL; | ||
110 | srctype = AT91_AIC_SRCTYPE_FALLING; | 110 | srctype = AT91_AIC_SRCTYPE_FALLING; |
111 | break; | 111 | break; |
112 | default: | 112 | default: |
@@ -118,11 +118,47 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type) | |||
118 | return 0; | 118 | return 0; |
119 | } | 119 | } |
120 | 120 | ||
121 | #ifdef CONFIG_PM | ||
122 | |||
123 | static u32 wakeups; | ||
124 | static u32 backups; | ||
125 | |||
126 | static int at91rm9200_irq_set_wake(unsigned irq, unsigned value) | ||
127 | { | ||
128 | if (unlikely(irq >= 32)) | ||
129 | return -EINVAL; | ||
130 | |||
131 | if (value) | ||
132 | wakeups |= (1 << irq); | ||
133 | else | ||
134 | wakeups &= ~(1 << irq); | ||
135 | |||
136 | return 0; | ||
137 | } | ||
138 | |||
139 | void at91_irq_suspend(void) | ||
140 | { | ||
141 | backups = at91_sys_read(AT91_AIC_IMR); | ||
142 | at91_sys_write(AT91_AIC_IDCR, backups); | ||
143 | at91_sys_write(AT91_AIC_IECR, wakeups); | ||
144 | } | ||
145 | |||
146 | void at91_irq_resume(void) | ||
147 | { | ||
148 | at91_sys_write(AT91_AIC_IDCR, wakeups); | ||
149 | at91_sys_write(AT91_AIC_IECR, backups); | ||
150 | } | ||
151 | |||
152 | #else | ||
153 | #define at91rm9200_irq_set_wake NULL | ||
154 | #endif | ||
155 | |||
121 | static struct irqchip at91rm9200_irq_chip = { | 156 | static struct irqchip at91rm9200_irq_chip = { |
122 | .ack = at91rm9200_mask_irq, | 157 | .ack = at91rm9200_mask_irq, |
123 | .mask = at91rm9200_mask_irq, | 158 | .mask = at91rm9200_mask_irq, |
124 | .unmask = at91rm9200_unmask_irq, | 159 | .unmask = at91rm9200_unmask_irq, |
125 | .set_type = at91rm9200_irq_type, | 160 | .set_type = at91rm9200_irq_type, |
161 | .set_wake = at91rm9200_irq_set_wake, | ||
126 | }; | 162 | }; |
127 | 163 | ||
128 | /* | 164 | /* |
diff --git a/arch/arm/mach-at91rm9200/pm.c b/arch/arm/mach-at91rm9200/pm.c new file mode 100644 index 000000000000..47e5480feb7e --- /dev/null +++ b/arch/arm/mach-at91rm9200/pm.c | |||
@@ -0,0 +1,225 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91rm9200/pm.c | ||
3 | * AT91 Power Management | ||
4 | * | ||
5 | * Copyright (C) 2005 David Brownell | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/pm.h> | ||
14 | #include <linux/sched.h> | ||
15 | #include <linux/proc_fs.h> | ||
16 | #include <linux/pm.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/sysfs.h> | ||
19 | #include <linux/module.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | |||
22 | #include <asm/io.h> | ||
23 | #include <asm/irq.h> | ||
24 | #include <asm/atomic.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | #include <asm/mach/irq.h> | ||
27 | #include <asm/mach-types.h> | ||
28 | |||
29 | #include <asm/arch/gpio.h> | ||
30 | |||
31 | #include "generic.h" | ||
32 | |||
33 | |||
34 | static int at91_pm_valid_state(suspend_state_t state) | ||
35 | { | ||
36 | switch (state) { | ||
37 | case PM_SUSPEND_ON: | ||
38 | case PM_SUSPEND_STANDBY: | ||
39 | case PM_SUSPEND_MEM: | ||
40 | return 1; | ||
41 | |||
42 | default: | ||
43 | return 0; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | |||
48 | static suspend_state_t target_state; | ||
49 | |||
50 | /* | ||
51 | * Called after processes are frozen, but before we shutdown devices. | ||
52 | */ | ||
53 | static int at91_pm_prepare(suspend_state_t state) | ||
54 | { | ||
55 | target_state = state; | ||
56 | return 0; | ||
57 | } | ||
58 | |||
59 | /* | ||
60 | * Verify that all the clocks are correct before entering | ||
61 | * slow-clock mode. | ||
62 | */ | ||
63 | static int at91_pm_verify_clocks(void) | ||
64 | { | ||
65 | unsigned long scsr; | ||
66 | int i; | ||
67 | |||
68 | scsr = at91_sys_read(AT91_PMC_SCSR); | ||
69 | |||
70 | /* USB must not be using PLLB */ | ||
71 | if ((scsr & (AT91_PMC_UHP | AT91_PMC_UDP)) != 0) { | ||
72 | pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n"); | ||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS | ||
77 | /* PCK0..PCK3 must be disabled, or configured to use clk32k */ | ||
78 | for (i = 0; i < 4; i++) { | ||
79 | u32 css; | ||
80 | |||
81 | if ((scsr & (AT91_PMC_PCK0 << i)) == 0) | ||
82 | continue; | ||
83 | |||
84 | css = at91_sys_read(AT91_PMC_PCKR(i)) & AT91_PMC_CSS; | ||
85 | if (css != AT91_PMC_CSS_SLOW) { | ||
86 | pr_debug("AT91: PM - Suspend-to-RAM with PCK%d src %d\n", i, css); | ||
87 | return 0; | ||
88 | } | ||
89 | } | ||
90 | #endif | ||
91 | |||
92 | return 1; | ||
93 | } | ||
94 | |||
95 | /* | ||
96 | * Call this from platform driver suspend() to see how deeply to suspend. | ||
97 | * For example, some controllers (like OHCI) need one of the PLL clocks | ||
98 | * in order to act as a wakeup source, and those are not available when | ||
99 | * going into slow clock mode. | ||
100 | * | ||
101 | * REVISIT: generalize as clk_will_be_available(clk)? Other platforms have | ||
102 | * the very same problem (but not using at91 main_clk), and it'd be better | ||
103 | * to add one generic API rather than lots of platform-specific ones. | ||
104 | */ | ||
105 | int at91_suspend_entering_slow_clock(void) | ||
106 | { | ||
107 | return (target_state == PM_SUSPEND_MEM); | ||
108 | } | ||
109 | EXPORT_SYMBOL(at91_suspend_entering_slow_clock); | ||
110 | |||
111 | |||
112 | static void (*slow_clock)(void); | ||
113 | |||
114 | |||
115 | |||
116 | static int at91_pm_enter(suspend_state_t state) | ||
117 | { | ||
118 | at91_gpio_suspend(); | ||
119 | at91_irq_suspend(); | ||
120 | |||
121 | pr_debug("AT91: PM - wake mask %08x, pm state %d\n", | ||
122 | /* remember all the always-wake irqs */ | ||
123 | (at91_sys_read(AT91_PMC_PCSR) | ||
124 | | (1 << AT91_ID_FIQ) | ||
125 | | (1 << AT91_ID_SYS) | ||
126 | | (1 << AT91_ID_IRQ0) | ||
127 | | (1 << AT91_ID_IRQ1) | ||
128 | | (1 << AT91_ID_IRQ2) | ||
129 | | (1 << AT91_ID_IRQ3) | ||
130 | | (1 << AT91_ID_IRQ4) | ||
131 | | (1 << AT91_ID_IRQ5) | ||
132 | | (1 << AT91_ID_IRQ6)) | ||
133 | & at91_sys_read(AT91_AIC_IMR), | ||
134 | state); | ||
135 | |||
136 | switch (state) { | ||
137 | /* | ||
138 | * Suspend-to-RAM is like STANDBY plus slow clock mode, so | ||
139 | * drivers must suspend more deeply: only the master clock | ||
140 | * controller may be using the main oscillator. | ||
141 | */ | ||
142 | case PM_SUSPEND_MEM: | ||
143 | /* | ||
144 | * Ensure that clocks are in a valid state. | ||
145 | */ | ||
146 | if (!at91_pm_verify_clocks()) | ||
147 | goto error; | ||
148 | |||
149 | /* | ||
150 | * Enter slow clock mode by switching over to clk32k and | ||
151 | * turning off the main oscillator; reverse on wakeup. | ||
152 | */ | ||
153 | if (slow_clock) { | ||
154 | slow_clock(); | ||
155 | break; | ||
156 | } else { | ||
157 | /* DEVELOPMENT ONLY */ | ||
158 | pr_info("AT91: PM - no slow clock mode yet ...\n"); | ||
159 | /* FALLTHROUGH leaving master clock alone */ | ||
160 | } | ||
161 | |||
162 | /* | ||
163 | * STANDBY mode has *all* drivers suspended; ignores irqs not | ||
164 | * marked as 'wakeup' event sources; and reduces DRAM power. | ||
165 | * But otherwise it's identical to PM_SUSPEND_ON: cpu idle, and | ||
166 | * nothing fancy done with main or cpu clocks. | ||
167 | */ | ||
168 | case PM_SUSPEND_STANDBY: | ||
169 | /* | ||
170 | * NOTE: the Wait-for-Interrupt instruction needs to be | ||
171 | * in icache so the SDRAM stays in self-refresh mode until | ||
172 | * the wakeup IRQ occurs. | ||
173 | */ | ||
174 | asm("b 1f; .align 5; 1:"); | ||
175 | asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */ | ||
176 | at91_sys_write(AT91_SDRAMC_SRR, 1); /* self-refresh mode */ | ||
177 | /* fall though to next state */ | ||
178 | |||
179 | case PM_SUSPEND_ON: | ||
180 | asm("mcr p15, 0, r0, c7, c0, 4"); /* wait for interrupt */ | ||
181 | break; | ||
182 | |||
183 | default: | ||
184 | pr_debug("AT91: PM - bogus suspend state %d\n", state); | ||
185 | goto error; | ||
186 | } | ||
187 | |||
188 | pr_debug("AT91: PM - wakeup %08x\n", | ||
189 | at91_sys_read(AT91_AIC_IPR) & at91_sys_read(AT91_AIC_IMR)); | ||
190 | |||
191 | error: | ||
192 | target_state = PM_SUSPEND_ON; | ||
193 | at91_irq_resume(); | ||
194 | at91_gpio_resume(); | ||
195 | return 0; | ||
196 | } | ||
197 | |||
198 | |||
199 | static struct pm_ops at91_pm_ops ={ | ||
200 | .pm_disk_mode = 0, | ||
201 | .valid = at91_pm_valid_state, | ||
202 | .prepare = at91_pm_prepare, | ||
203 | .enter = at91_pm_enter, | ||
204 | }; | ||
205 | |||
206 | static int __init at91_pm_init(void) | ||
207 | { | ||
208 | printk("AT91: Power Management\n"); | ||
209 | |||
210 | #ifdef CONFIG_AT91_PM_SLOW_CLOCK | ||
211 | /* REVISIT allocations of SRAM should be dynamically managed. | ||
212 | * FIQ handlers and other components will want SRAM/TCM too... | ||
213 | */ | ||
214 | slow_clock = (void *) (AT91_VA_BASE_SRAM + (3 * SZ_4K)); | ||
215 | memcpy(slow_clock, at91rm9200_slow_clock, at91rm9200_slow_clock_sz); | ||
216 | #endif | ||
217 | |||
218 | /* Disable SDRAM low-power mode. Cannot be used with self-refresh. */ | ||
219 | at91_sys_write(AT91_SDRAMC_LPR, 0); | ||
220 | |||
221 | pm_set_ops(&at91_pm_ops); | ||
222 | |||
223 | return 0; | ||
224 | } | ||
225 | arch_initcall(at91_pm_init); | ||
diff --git a/arch/arm/mach-at91rm9200/time.c b/arch/arm/mach-at91rm9200/time.c index 7ffcf443b99f..fc2d7d5e4637 100644 --- a/arch/arm/mach-at91rm9200/time.c +++ b/arch/arm/mach-at91rm9200/time.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/mach/time.h> | 32 | #include <asm/mach/time.h> |
33 | 33 | ||
34 | static unsigned long last_crtr; | ||
35 | |||
34 | /* | 36 | /* |
35 | * The ST_CRTR is updated asynchronously to the master clock. It is therefore | 37 | * The ST_CRTR is updated asynchronously to the master clock. It is therefore |
36 | * necessary to read it twice (with the same value) to ensure accuracy. | 38 | * necessary to read it twice (with the same value) to ensure accuracy. |
@@ -56,7 +58,7 @@ static unsigned long at91rm9200_gettimeoffset(void) | |||
56 | { | 58 | { |
57 | unsigned long elapsed; | 59 | unsigned long elapsed; |
58 | 60 | ||
59 | elapsed = (read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV; | 61 | elapsed = (read_CRTR() - last_crtr) & AT91_ST_ALMV; |
60 | 62 | ||
61 | return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH; | 63 | return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH; |
62 | } | 64 | } |
@@ -66,15 +68,12 @@ static unsigned long at91rm9200_gettimeoffset(void) | |||
66 | */ | 68 | */ |
67 | static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 69 | static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) |
68 | { | 70 | { |
69 | unsigned long rtar; | ||
70 | |||
71 | if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */ | 71 | if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */ |
72 | write_seqlock(&xtime_lock); | 72 | write_seqlock(&xtime_lock); |
73 | 73 | ||
74 | while (((read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV) >= LATCH) { | 74 | while (((read_CRTR() - last_crtr) & AT91_ST_ALMV) >= LATCH) { |
75 | timer_tick(regs); | 75 | timer_tick(regs); |
76 | rtar = (at91_sys_read(AT91_ST_RTAR) + LATCH) & AT91_ST_ALMV; | 76 | last_crtr = (last_crtr + LATCH) & AT91_ST_ALMV; |
77 | at91_sys_write(AT91_ST_RTAR, rtar); | ||
78 | } | 77 | } |
79 | 78 | ||
80 | write_sequnlock(&xtime_lock); | 79 | write_sequnlock(&xtime_lock); |
@@ -87,10 +86,24 @@ static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_r | |||
87 | 86 | ||
88 | static struct irqaction at91rm9200_timer_irq = { | 87 | static struct irqaction at91rm9200_timer_irq = { |
89 | .name = "at91_tick", | 88 | .name = "at91_tick", |
90 | .flags = SA_SHIRQ | SA_INTERRUPT, | 89 | .flags = SA_SHIRQ | SA_INTERRUPT | SA_TIMER, |
91 | .handler = at91rm9200_timer_interrupt | 90 | .handler = at91rm9200_timer_interrupt |
92 | }; | 91 | }; |
93 | 92 | ||
93 | void at91rm9200_timer_reset(void) | ||
94 | { | ||
95 | last_crtr = 0; | ||
96 | |||
97 | /* Real time counter incremented every 30.51758 microseconds */ | ||
98 | at91_sys_write(AT91_ST_RTMR, 1); | ||
99 | |||
100 | /* Set Period Interval timer */ | ||
101 | at91_sys_write(AT91_ST_PIMR, LATCH); | ||
102 | |||
103 | /* Enable Period Interval Timer interrupt */ | ||
104 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | ||
105 | } | ||
106 | |||
94 | /* | 107 | /* |
95 | * Set up timer interrupt. | 108 | * Set up timer interrupt. |
96 | */ | 109 | */ |
@@ -100,28 +113,30 @@ void __init at91rm9200_timer_init(void) | |||
100 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS); | 113 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS); |
101 | (void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */ | 114 | (void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */ |
102 | 115 | ||
103 | /* | 116 | /* Make IRQs happen for the system timer */ |
104 | * Make IRQs happen for the system timer. | ||
105 | */ | ||
106 | setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq); | 117 | setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq); |
107 | 118 | ||
108 | /* Set initial alarm to 0 */ | ||
109 | at91_sys_write(AT91_ST_RTAR, 0); | ||
110 | |||
111 | /* Real time counter incremented every 30.51758 microseconds */ | ||
112 | at91_sys_write(AT91_ST_RTMR, 1); | ||
113 | |||
114 | /* Set Period Interval timer */ | ||
115 | at91_sys_write(AT91_ST_PIMR, LATCH); | ||
116 | |||
117 | /* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */ | 119 | /* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */ |
118 | tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE; | 120 | tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE; |
119 | 121 | ||
120 | /* Enable Period Interval Timer interrupt */ | 122 | /* Initialize and enable the timer interrupt */ |
121 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | 123 | at91rm9200_timer_reset(); |
124 | } | ||
125 | |||
126 | #ifdef CONFIG_PM | ||
127 | static void at91rm9200_timer_suspend(void) | ||
128 | { | ||
129 | /* disable Period Interval Timer interrupt */ | ||
130 | at91_sys_write(AT91_ST_IDR, AT91_ST_PITS); | ||
122 | } | 131 | } |
132 | #else | ||
133 | #define at91rm9200_timer_suspend NULL | ||
134 | #endif | ||
123 | 135 | ||
124 | struct sys_timer at91rm9200_timer = { | 136 | struct sys_timer at91rm9200_timer = { |
125 | .init = at91rm9200_timer_init, | 137 | .init = at91rm9200_timer_init, |
126 | .offset = at91rm9200_gettimeoffset, | 138 | .offset = at91rm9200_gettimeoffset, |
139 | .suspend = at91rm9200_timer_suspend, | ||
140 | .resume = at91rm9200_timer_reset, | ||
127 | }; | 141 | }; |
142 | |||
diff --git a/arch/arm/mach-ep93xx/Makefile b/arch/arm/mach-ep93xx/Makefile index 5393af989e94..05a48a21038e 100644 --- a/arch/arm/mach-ep93xx/Makefile +++ b/arch/arm/mach-ep93xx/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | obj-y := core.o | 4 | obj-y := core.o clock.o |
5 | obj-m := | 5 | obj-m := |
6 | obj-n := | 6 | obj-n := |
7 | obj- := | 7 | obj- := |
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c new file mode 100644 index 000000000000..08ad782c1649 --- /dev/null +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -0,0 +1,156 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ep93xx/clock.c | ||
3 | * Clock control for Cirrus EP93xx chips. | ||
4 | * | ||
5 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or (at | ||
10 | * your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/clk.h> | ||
15 | #include <linux/err.h> | ||
16 | #include <linux/string.h> | ||
17 | #include <asm/div64.h> | ||
18 | #include <asm/hardware.h> | ||
19 | #include <asm/io.h> | ||
20 | |||
21 | struct clk { | ||
22 | char *name; | ||
23 | unsigned long rate; | ||
24 | int users; | ||
25 | u32 enable_reg; | ||
26 | u32 enable_mask; | ||
27 | }; | ||
28 | |||
29 | static struct clk clk_pll1 = { | ||
30 | .name = "pll1", | ||
31 | }; | ||
32 | static struct clk clk_f = { | ||
33 | .name = "fclk", | ||
34 | }; | ||
35 | static struct clk clk_h = { | ||
36 | .name = "hclk", | ||
37 | }; | ||
38 | static struct clk clk_p = { | ||
39 | .name = "pclk", | ||
40 | }; | ||
41 | static struct clk clk_pll2 = { | ||
42 | .name = "pll2", | ||
43 | }; | ||
44 | static struct clk clk_usb_host = { | ||
45 | .name = "usb_host", | ||
46 | .enable_reg = EP93XX_SYSCON_CLOCK_CONTROL, | ||
47 | .enable_mask = EP93XX_SYSCON_CLOCK_USH_EN, | ||
48 | }; | ||
49 | |||
50 | |||
51 | static struct clk *clocks[] = { | ||
52 | &clk_pll1, | ||
53 | &clk_f, | ||
54 | &clk_h, | ||
55 | &clk_p, | ||
56 | &clk_pll2, | ||
57 | &clk_usb_host, | ||
58 | }; | ||
59 | |||
60 | struct clk *clk_get(struct device *dev, const char *id) | ||
61 | { | ||
62 | int i; | ||
63 | |||
64 | for (i = 0; i < ARRAY_SIZE(clocks); i++) { | ||
65 | if (!strcmp(clocks[i]->name, id)) | ||
66 | return clocks[i]; | ||
67 | } | ||
68 | |||
69 | return ERR_PTR(-ENOENT); | ||
70 | } | ||
71 | |||
72 | int clk_enable(struct clk *clk) | ||
73 | { | ||
74 | if (!clk->users++ && clk->enable_reg) { | ||
75 | u32 value; | ||
76 | |||
77 | value = __raw_readl(clk->enable_reg); | ||
78 | __raw_writel(value | clk->enable_mask, clk->enable_reg); | ||
79 | } | ||
80 | |||
81 | return 0; | ||
82 | } | ||
83 | |||
84 | void clk_disable(struct clk *clk) | ||
85 | { | ||
86 | if (!--clk->users && clk->enable_reg) { | ||
87 | u32 value; | ||
88 | |||
89 | value = __raw_readl(clk->enable_reg); | ||
90 | __raw_writel(value & ~clk->enable_mask, clk->enable_reg); | ||
91 | } | ||
92 | } | ||
93 | |||
94 | unsigned long clk_get_rate(struct clk *clk) | ||
95 | { | ||
96 | return clk->rate; | ||
97 | } | ||
98 | |||
99 | void clk_put(struct clk *clk) | ||
100 | { | ||
101 | } | ||
102 | |||
103 | |||
104 | |||
105 | static char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 }; | ||
106 | static char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 }; | ||
107 | static char pclk_divisors[] = { 1, 2, 4, 8 }; | ||
108 | |||
109 | /* | ||
110 | * PLL rate = 14.7456 MHz * (X1FBD + 1) * (X2FBD + 1) / (X2IPD + 1) / 2^PS | ||
111 | */ | ||
112 | static unsigned long calc_pll_rate(u32 config_word) | ||
113 | { | ||
114 | unsigned long long rate; | ||
115 | int i; | ||
116 | |||
117 | rate = 14745600; | ||
118 | rate *= ((config_word >> 11) & 0x1f) + 1; /* X1FBD */ | ||
119 | rate *= ((config_word >> 5) & 0x3f) + 1; /* X2FBD */ | ||
120 | do_div(rate, (config_word & 0x1f) + 1); /* X2IPD */ | ||
121 | for (i = 0; i < ((config_word >> 16) & 3); i++) /* PS */ | ||
122 | rate >>= 1; | ||
123 | |||
124 | return (unsigned long)rate; | ||
125 | } | ||
126 | |||
127 | void ep93xx_clock_init(void) | ||
128 | { | ||
129 | u32 value; | ||
130 | |||
131 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); | ||
132 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ | ||
133 | clk_pll1.rate = 14745600; | ||
134 | } else { | ||
135 | clk_pll1.rate = calc_pll_rate(value); | ||
136 | } | ||
137 | clk_f.rate = clk_pll1.rate / fclk_divisors[(value >> 25) & 0x7]; | ||
138 | clk_h.rate = clk_pll1.rate / hclk_divisors[(value >> 20) & 0x7]; | ||
139 | clk_p.rate = clk_h.rate / pclk_divisors[(value >> 18) & 0x3]; | ||
140 | |||
141 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET2); | ||
142 | if (!(value & 0x00080000)) { /* PLL2 bypassed? */ | ||
143 | clk_pll2.rate = 14745600; | ||
144 | } else if (value & 0x00040000) { /* PLL2 enabled? */ | ||
145 | clk_pll2.rate = calc_pll_rate(value); | ||
146 | } else { | ||
147 | clk_pll2.rate = 0; | ||
148 | } | ||
149 | clk_usb_host.rate = clk_pll2.rate / (((value >> 28) & 0xf) + 1); | ||
150 | |||
151 | printk(KERN_INFO "ep93xx: PLL1 running at %ld MHz, PLL2 at %ld MHz\n", | ||
152 | clk_pll1.rate / 1000000, clk_pll2.rate / 1000000); | ||
153 | printk(KERN_INFO "ep93xx: FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", | ||
154 | clk_f.rate / 1000000, clk_h.rate / 1000000, | ||
155 | clk_p.rate / 1000000); | ||
156 | } | ||
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index dcd417625389..1fe73c0a9d01 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -103,7 +103,8 @@ static int ep93xx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
103 | write_seqlock(&xtime_lock); | 103 | write_seqlock(&xtime_lock); |
104 | 104 | ||
105 | __raw_writel(1, EP93XX_TIMER1_CLEAR); | 105 | __raw_writel(1, EP93XX_TIMER1_CLEAR); |
106 | while (__raw_readl(EP93XX_TIMER4_VALUE_LOW) - last_jiffy_time | 106 | while ((signed long) |
107 | (__raw_readl(EP93XX_TIMER4_VALUE_LOW) - last_jiffy_time) | ||
107 | >= TIMER4_TICKS_PER_JIFFY) { | 108 | >= TIMER4_TICKS_PER_JIFFY) { |
108 | last_jiffy_time += TIMER4_TICKS_PER_JIFFY; | 109 | last_jiffy_time += TIMER4_TICKS_PER_JIFFY; |
109 | timer_tick(regs); | 110 | timer_tick(regs); |
@@ -124,7 +125,7 @@ static void __init ep93xx_timer_init(void) | |||
124 | { | 125 | { |
125 | /* Enable periodic HZ timer. */ | 126 | /* Enable periodic HZ timer. */ |
126 | __raw_writel(0x48, EP93XX_TIMER1_CONTROL); | 127 | __raw_writel(0x48, EP93XX_TIMER1_CONTROL); |
127 | __raw_writel((508000 / HZ) - 1, EP93XX_TIMER1_LOAD); | 128 | __raw_writel((508469 / HZ) - 1, EP93XX_TIMER1_LOAD); |
128 | __raw_writel(0xc8, EP93XX_TIMER1_CONTROL); | 129 | __raw_writel(0xc8, EP93XX_TIMER1_CONTROL); |
129 | 130 | ||
130 | /* Enable lost jiffy timer. */ | 131 | /* Enable lost jiffy timer. */ |
@@ -432,10 +433,37 @@ static struct platform_device ep93xx_rtc_device = { | |||
432 | }; | 433 | }; |
433 | 434 | ||
434 | 435 | ||
436 | static struct resource ep93xx_ohci_resources[] = { | ||
437 | [0] = { | ||
438 | .start = EP93XX_USB_PHYS_BASE, | ||
439 | .end = EP93XX_USB_PHYS_BASE + 0x0fff, | ||
440 | .flags = IORESOURCE_MEM, | ||
441 | }, | ||
442 | [1] = { | ||
443 | .start = IRQ_EP93XX_USB, | ||
444 | .end = IRQ_EP93XX_USB, | ||
445 | .flags = IORESOURCE_IRQ, | ||
446 | }, | ||
447 | }; | ||
448 | |||
449 | static struct platform_device ep93xx_ohci_device = { | ||
450 | .name = "ep93xx-ohci", | ||
451 | .id = -1, | ||
452 | .dev = { | ||
453 | .dma_mask = (void *)0xffffffff, | ||
454 | .coherent_dma_mask = 0xffffffff, | ||
455 | }, | ||
456 | .num_resources = ARRAY_SIZE(ep93xx_ohci_resources), | ||
457 | .resource = ep93xx_ohci_resources, | ||
458 | }; | ||
459 | |||
460 | |||
435 | void __init ep93xx_init_devices(void) | 461 | void __init ep93xx_init_devices(void) |
436 | { | 462 | { |
437 | unsigned int v; | 463 | unsigned int v; |
438 | 464 | ||
465 | ep93xx_clock_init(); | ||
466 | |||
439 | /* | 467 | /* |
440 | * Disallow access to MaverickCrunch initially. | 468 | * Disallow access to MaverickCrunch initially. |
441 | */ | 469 | */ |
@@ -449,4 +477,5 @@ void __init ep93xx_init_devices(void) | |||
449 | amba_device_register(&uart3_device, &iomem_resource); | 477 | amba_device_register(&uart3_device, &iomem_resource); |
450 | 478 | ||
451 | platform_device_register(&ep93xx_rtc_device); | 479 | platform_device_register(&ep93xx_rtc_device); |
480 | platform_device_register(&ep93xx_ohci_device); | ||
452 | } | 481 | } |
diff --git a/arch/arm/mach-ep93xx/gesbc9312.c b/arch/arm/mach-ep93xx/gesbc9312.c index d18fcb1a2f1b..47cc6c8b7c79 100644 --- a/arch/arm/mach-ep93xx/gesbc9312.c +++ b/arch/arm/mach-ep93xx/gesbc9312.c | |||
@@ -16,16 +16,38 @@ | |||
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <linux/sched.h> | 17 | #include <linux/sched.h> |
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/ioport.h> | ||
19 | #include <linux/mtd/physmap.h> | 20 | #include <linux/mtd/physmap.h> |
21 | #include <linux/platform_device.h> | ||
20 | #include <asm/io.h> | 22 | #include <asm/io.h> |
21 | #include <asm/hardware.h> | 23 | #include <asm/hardware.h> |
22 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
23 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
24 | 26 | ||
27 | static struct physmap_flash_data gesbc9312_flash_data = { | ||
28 | .width = 4, | ||
29 | }; | ||
30 | |||
31 | static struct resource gesbc9312_flash_resource = { | ||
32 | .start = 0x60000000, | ||
33 | .end = 0x60800000, | ||
34 | .flags = IORESOURCE_MEM, | ||
35 | }; | ||
36 | |||
37 | static struct platform_device gesbc9312_flash = { | ||
38 | .name = "physmap-flash", | ||
39 | .id = 0, | ||
40 | .dev = { | ||
41 | .platform_data = &gesbc9312_flash_data, | ||
42 | }, | ||
43 | .num_resources = 1, | ||
44 | .resource = &gesbc9312_flash_resource, | ||
45 | }; | ||
46 | |||
25 | static void __init gesbc9312_init_machine(void) | 47 | static void __init gesbc9312_init_machine(void) |
26 | { | 48 | { |
27 | ep93xx_init_devices(); | 49 | ep93xx_init_devices(); |
28 | physmap_configure(0x60000000, 0x00800000, 4, NULL); | 50 | platform_device_register(&gesbc9312_flash); |
29 | } | 51 | } |
30 | 52 | ||
31 | MACHINE_START(GESBC9312, "Glomation GESBC-9312-sx") | 53 | MACHINE_START(GESBC9312, "Glomation GESBC-9312-sx") |
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index e24566b88a78..6e5a56cd5ae8 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <linux/sched.h> | 17 | #include <linux/sched.h> |
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/ioport.h> | ||
19 | #include <linux/mtd/physmap.h> | 20 | #include <linux/mtd/physmap.h> |
20 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
21 | #include <linux/m48t86.h> | 22 | #include <linux/m48t86.h> |
@@ -111,6 +112,26 @@ static void __init ts72xx_map_io(void) | |||
111 | } | 112 | } |
112 | } | 113 | } |
113 | 114 | ||
115 | static struct physmap_flash_data ts72xx_flash_data = { | ||
116 | .width = 1, | ||
117 | }; | ||
118 | |||
119 | static struct resource ts72xx_flash_resource = { | ||
120 | .start = TS72XX_NOR_PHYS_BASE, | ||
121 | .end = TS72XX_NOR_PHYS_BASE + 0x01000000, | ||
122 | .flags = IORESOURCE_MEM, | ||
123 | }; | ||
124 | |||
125 | static struct platform_device ts72xx_flash = { | ||
126 | .name = "physmap-flash", | ||
127 | .id = 0, | ||
128 | .dev = { | ||
129 | .platform_data = &ts72xx_flash_data, | ||
130 | }, | ||
131 | .num_resources = 1, | ||
132 | .resource = &ts72xx_flash_resource, | ||
133 | }; | ||
134 | |||
114 | static unsigned char ts72xx_rtc_readbyte(unsigned long addr) | 135 | static unsigned char ts72xx_rtc_readbyte(unsigned long addr) |
115 | { | 136 | { |
116 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); | 137 | __raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE); |
@@ -141,7 +162,7 @@ static void __init ts72xx_init_machine(void) | |||
141 | { | 162 | { |
142 | ep93xx_init_devices(); | 163 | ep93xx_init_devices(); |
143 | if (board_is_ts7200()) | 164 | if (board_is_ts7200()) |
144 | physmap_configure(TS72XX_NOR_PHYS_BASE, 0x01000000, 1, NULL); | 165 | platform_device_register(&ts72xx_flash); |
145 | platform_device_register(&ts72xx_rtc_device); | 166 | platform_device_register(&ts72xx_rtc_device); |
146 | } | 167 | } |
147 | 168 | ||
diff --git a/arch/arm/mach-imx/dma.c b/arch/arm/mach-imx/dma.c index 4ca51dcf13ac..36578871ecc8 100644 --- a/arch/arm/mach-imx/dma.c +++ b/arch/arm/mach-imx/dma.c | |||
@@ -15,6 +15,9 @@ | |||
15 | * Changed to support scatter gather DMA | 15 | * Changed to support scatter gather DMA |
16 | * by taking Russell's code from RiscPC | 16 | * by taking Russell's code from RiscPC |
17 | * | 17 | * |
18 | * 2006-05-31 Pavel Pisa <pisa@cmp.felk.cvut.cz> | ||
19 | * Corrected error handling code. | ||
20 | * | ||
18 | */ | 21 | */ |
19 | 22 | ||
20 | #undef DEBUG | 23 | #undef DEBUG |
@@ -277,7 +280,7 @@ imx_dma_setup_sg(imx_dmach_t dma_ch, | |||
277 | int | 280 | int |
278 | imx_dma_setup_handlers(imx_dmach_t dma_ch, | 281 | imx_dma_setup_handlers(imx_dmach_t dma_ch, |
279 | void (*irq_handler) (int, void *, struct pt_regs *), | 282 | void (*irq_handler) (int, void *, struct pt_regs *), |
280 | void (*err_handler) (int, void *, struct pt_regs *), | 283 | void (*err_handler) (int, void *, struct pt_regs *, int), |
281 | void *data) | 284 | void *data) |
282 | { | 285 | { |
283 | struct imx_dma_channel *imxdma = &imx_dma_channels[dma_ch]; | 286 | struct imx_dma_channel *imxdma = &imx_dma_channels[dma_ch]; |
@@ -463,43 +466,53 @@ static irqreturn_t dma_err_handler(int irq, void *dev_id, struct pt_regs *regs) | |||
463 | int i, disr = DISR; | 466 | int i, disr = DISR; |
464 | struct imx_dma_channel *channel; | 467 | struct imx_dma_channel *channel; |
465 | unsigned int err_mask = DBTOSR | DRTOSR | DSESR | DBOSR; | 468 | unsigned int err_mask = DBTOSR | DRTOSR | DSESR | DBOSR; |
469 | int errcode; | ||
466 | 470 | ||
467 | DISR = disr; | 471 | DISR = disr & err_mask; |
468 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { | 472 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { |
469 | channel = &imx_dma_channels[i]; | 473 | if(!(err_mask & (1 << i))) |
470 | |||
471 | if ((err_mask & 1 << i) && channel->name | ||
472 | && channel->err_handler) { | ||
473 | channel->err_handler(i, channel->data, regs); | ||
474 | continue; | 474 | continue; |
475 | } | 475 | channel = &imx_dma_channels[i]; |
476 | 476 | errcode = 0; | |
477 | imx_dma_channels[i].sg = NULL; | ||
478 | 477 | ||
479 | if (DBTOSR & (1 << i)) { | 478 | if (DBTOSR & (1 << i)) { |
480 | printk(KERN_WARNING | 479 | DBTOSR = (1 << i); |
481 | "Burst timeout on channel %d (%s)\n", | 480 | errcode |= IMX_DMA_ERR_BURST; |
482 | i, channel->name); | ||
483 | DBTOSR |= (1 << i); | ||
484 | } | 481 | } |
485 | if (DRTOSR & (1 << i)) { | 482 | if (DRTOSR & (1 << i)) { |
486 | printk(KERN_WARNING | 483 | DRTOSR = (1 << i); |
487 | "Request timeout on channel %d (%s)\n", | 484 | errcode |= IMX_DMA_ERR_REQUEST; |
488 | i, channel->name); | ||
489 | DRTOSR |= (1 << i); | ||
490 | } | 485 | } |
491 | if (DSESR & (1 << i)) { | 486 | if (DSESR & (1 << i)) { |
492 | printk(KERN_WARNING | 487 | DSESR = (1 << i); |
493 | "Transfer timeout on channel %d (%s)\n", | 488 | errcode |= IMX_DMA_ERR_TRANSFER; |
494 | i, channel->name); | ||
495 | DSESR |= (1 << i); | ||
496 | } | 489 | } |
497 | if (DBOSR & (1 << i)) { | 490 | if (DBOSR & (1 << i)) { |
498 | printk(KERN_WARNING | 491 | DBOSR = (1 << i); |
499 | "Buffer overflow timeout on channel %d (%s)\n", | 492 | errcode |= IMX_DMA_ERR_BUFFER; |
500 | i, channel->name); | ||
501 | DBOSR |= (1 << i); | ||
502 | } | 493 | } |
494 | |||
495 | /* | ||
496 | * The cleaning of @sg field would be questionable | ||
497 | * there, because its value can help to compute | ||
498 | * remaining/transfered bytes count in the handler | ||
499 | */ | ||
500 | /*imx_dma_channels[i].sg = NULL;*/ | ||
501 | |||
502 | if (channel->name && channel->err_handler) { | ||
503 | channel->err_handler(i, channel->data, regs, errcode); | ||
504 | continue; | ||
505 | } | ||
506 | |||
507 | imx_dma_channels[i].sg = NULL; | ||
508 | |||
509 | printk(KERN_WARNING | ||
510 | "DMA timeout on channel %d (%s) -%s%s%s%s\n", | ||
511 | i, channel->name, | ||
512 | errcode&IMX_DMA_ERR_BURST? " burst":"", | ||
513 | errcode&IMX_DMA_ERR_REQUEST? " request":"", | ||
514 | errcode&IMX_DMA_ERR_TRANSFER? " transfer":"", | ||
515 | errcode&IMX_DMA_ERR_BUFFER? " buffer":""); | ||
503 | } | 516 | } |
504 | return IRQ_HANDLED; | 517 | return IRQ_HANDLED; |
505 | } | 518 | } |
diff --git a/arch/arm/mach-ixp2000/core.c b/arch/arm/mach-ixp2000/core.c index 6e8d504aca55..ebe4391dd7f9 100644 --- a/arch/arm/mach-ixp2000/core.c +++ b/arch/arm/mach-ixp2000/core.c | |||
@@ -211,7 +211,8 @@ static int ixp2000_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
211 | /* clear timer 1 */ | 211 | /* clear timer 1 */ |
212 | ixp2000_reg_wrb(IXP2000_T1_CLR, 1); | 212 | ixp2000_reg_wrb(IXP2000_T1_CLR, 1); |
213 | 213 | ||
214 | while ((next_jiffy_time - *missing_jiffy_timer_csr) > ticks_per_jiffy) { | 214 | while ((signed long)(next_jiffy_time - *missing_jiffy_timer_csr) |
215 | >= ticks_per_jiffy) { | ||
215 | timer_tick(regs); | 216 | timer_tick(regs); |
216 | next_jiffy_time -= ticks_per_jiffy; | 217 | next_jiffy_time -= ticks_per_jiffy; |
217 | } | 218 | } |
@@ -301,6 +302,7 @@ void gpio_line_config(int line, int direction) | |||
301 | } | 302 | } |
302 | local_irq_restore(flags); | 303 | local_irq_restore(flags); |
303 | } | 304 | } |
305 | EXPORT_SYMBOL(gpio_line_config); | ||
304 | 306 | ||
305 | 307 | ||
306 | /************************************************************************* | 308 | /************************************************************************* |
diff --git a/arch/arm/mach-ixp23xx/core.c b/arch/arm/mach-ixp23xx/core.c index affd1d5d7440..051e3d70026e 100644 --- a/arch/arm/mach-ixp23xx/core.c +++ b/arch/arm/mach-ixp23xx/core.c | |||
@@ -334,7 +334,7 @@ void __init ixp23xx_init_irq(void) | |||
334 | /************************************************************************* | 334 | /************************************************************************* |
335 | * Timer-tick functions for IXP23xx | 335 | * Timer-tick functions for IXP23xx |
336 | *************************************************************************/ | 336 | *************************************************************************/ |
337 | #define CLOCK_TICKS_PER_USEC CLOCK_TICK_RATE / (USEC_PER_SEC) | 337 | #define CLOCK_TICKS_PER_USEC (CLOCK_TICK_RATE / USEC_PER_SEC) |
338 | 338 | ||
339 | static unsigned long next_jiffy_time; | 339 | static unsigned long next_jiffy_time; |
340 | 340 | ||
@@ -353,7 +353,7 @@ ixp23xx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
353 | { | 353 | { |
354 | /* Clear Pending Interrupt by writing '1' to it */ | 354 | /* Clear Pending Interrupt by writing '1' to it */ |
355 | *IXP23XX_TIMER_STATUS = IXP23XX_TIMER1_INT_PEND; | 355 | *IXP23XX_TIMER_STATUS = IXP23XX_TIMER1_INT_PEND; |
356 | while ((*IXP23XX_TIMER_CONT - next_jiffy_time) > LATCH) { | 356 | while ((signed long)(*IXP23XX_TIMER_CONT - next_jiffy_time) >= LATCH) { |
357 | timer_tick(regs); | 357 | timer_tick(regs); |
358 | next_jiffy_time += LATCH; | 358 | next_jiffy_time += LATCH; |
359 | } | 359 | } |
@@ -439,5 +439,6 @@ static struct platform_device *ixp23xx_devices[] __initdata = { | |||
439 | 439 | ||
440 | void __init ixp23xx_sys_init(void) | 440 | void __init ixp23xx_sys_init(void) |
441 | { | 441 | { |
442 | *IXP23XX_EXP_UNIT_FUSE |= 0xf; | ||
442 | platform_add_devices(ixp23xx_devices, ARRAY_SIZE(ixp23xx_devices)); | 443 | platform_add_devices(ixp23xx_devices, ARRAY_SIZE(ixp23xx_devices)); |
443 | } | 444 | } |
diff --git a/arch/arm/mach-ixp23xx/espresso.c b/arch/arm/mach-ixp23xx/espresso.c index bf688c128630..dc5e489c70bc 100644 --- a/arch/arm/mach-ixp23xx/espresso.c +++ b/arch/arm/mach-ixp23xx/espresso.c | |||
@@ -53,9 +53,29 @@ static int __init espresso_pci_init(void) | |||
53 | }; | 53 | }; |
54 | subsys_initcall(espresso_pci_init); | 54 | subsys_initcall(espresso_pci_init); |
55 | 55 | ||
56 | static struct physmap_flash_data espresso_flash_data = { | ||
57 | .width = 2, | ||
58 | }; | ||
59 | |||
60 | static struct resource espresso_flash_resource = { | ||
61 | .start = 0x90000000, | ||
62 | .end = 0x92000000, | ||
63 | .flags = IORESOURCE_MEM, | ||
64 | }; | ||
65 | |||
66 | static struct platform_device espresso_flash = { | ||
67 | .name = "physmap-flash", | ||
68 | .id = 0, | ||
69 | .dev = { | ||
70 | .platform_data = &espresso_flash_data, | ||
71 | }, | ||
72 | .num_resources = 1, | ||
73 | .resource = &espresso_flash_resource, | ||
74 | }; | ||
75 | |||
56 | static void __init espresso_init(void) | 76 | static void __init espresso_init(void) |
57 | { | 77 | { |
58 | physmap_configure(0x90000000, 0x02000000, 2, NULL); | 78 | platform_device_register(&espresso_flash); |
59 | 79 | ||
60 | /* | 80 | /* |
61 | * Mark flash as writeable. | 81 | * Mark flash as writeable. |
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index 00146c35daac..535b334ee045 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -298,9 +298,29 @@ static void __init ixdp2351_map_io(void) | |||
298 | iotable_init(ixdp2351_io_desc, ARRAY_SIZE(ixdp2351_io_desc)); | 298 | iotable_init(ixdp2351_io_desc, ARRAY_SIZE(ixdp2351_io_desc)); |
299 | } | 299 | } |
300 | 300 | ||
301 | static struct physmap_flash_data ixdp2351_flash_data = { | ||
302 | .width = 1, | ||
303 | }; | ||
304 | |||
305 | static struct resource ixdp2351_flash_resource = { | ||
306 | .start = 0x90000000, | ||
307 | .end = 0x94000000, | ||
308 | .flags = IORESOURCE_MEM, | ||
309 | }; | ||
310 | |||
311 | static struct platform_device ixdp2351_flash = { | ||
312 | .name = "physmap-flash", | ||
313 | .id = 0, | ||
314 | .dev = { | ||
315 | .platform_data = &ixdp2351_flash_data, | ||
316 | }, | ||
317 | .num_resources = 1, | ||
318 | .resource = &ixdp2351_flash_resource, | ||
319 | }; | ||
320 | |||
301 | static void __init ixdp2351_init(void) | 321 | static void __init ixdp2351_init(void) |
302 | { | 322 | { |
303 | physmap_configure(0x90000000, 0x04000000, 1, NULL); | 323 | platform_device_register(&ixdp2351_flash); |
304 | 324 | ||
305 | /* | 325 | /* |
306 | * Mark flash as writeable | 326 | * Mark flash as writeable |
diff --git a/arch/arm/mach-ixp23xx/roadrunner.c b/arch/arm/mach-ixp23xx/roadrunner.c index 43c14e740794..b9f5d13fcfe1 100644 --- a/arch/arm/mach-ixp23xx/roadrunner.c +++ b/arch/arm/mach-ixp23xx/roadrunner.c | |||
@@ -137,9 +137,29 @@ static int __init roadrunner_pci_init(void) | |||
137 | 137 | ||
138 | subsys_initcall(roadrunner_pci_init); | 138 | subsys_initcall(roadrunner_pci_init); |
139 | 139 | ||
140 | static struct physmap_flash_data roadrunner_flash_data = { | ||
141 | .width = 2, | ||
142 | }; | ||
143 | |||
144 | static struct resource roadrunner_flash_resource = { | ||
145 | .start = 0x90000000, | ||
146 | .end = 0x94000000, | ||
147 | .flags = IORESOURCE_MEM, | ||
148 | }; | ||
149 | |||
150 | static struct platform_device roadrunner_flash = { | ||
151 | .name = "physmap-flash", | ||
152 | .id = 0, | ||
153 | .dev = { | ||
154 | .platform_data = &roadrunner_flash_data, | ||
155 | }, | ||
156 | .num_resources = 1, | ||
157 | .resource = &roadrunner_flash_resource, | ||
158 | }; | ||
159 | |||
140 | static void __init roadrunner_init(void) | 160 | static void __init roadrunner_init(void) |
141 | { | 161 | { |
142 | physmap_configure(0x90000000, 0x04000000, 2, NULL); | 162 | platform_device_register(&roadrunner_flash); |
143 | 163 | ||
144 | /* | 164 | /* |
145 | * Mark flash as writeable | 165 | * Mark flash as writeable |
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 00b761ff0f9c..bf25a76e9bdf 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -276,7 +276,7 @@ static irqreturn_t ixp4xx_timer_interrupt(int irq, void *dev_id, struct pt_regs | |||
276 | /* | 276 | /* |
277 | * Catch up with the real idea of time | 277 | * Catch up with the real idea of time |
278 | */ | 278 | */ |
279 | while ((*IXP4XX_OSTS - last_jiffy_time) > LATCH) { | 279 | while ((signed long)(*IXP4XX_OSTS - last_jiffy_time) >= LATCH) { |
280 | timer_tick(regs); | 280 | timer_tick(regs); |
281 | last_jiffy_time += LATCH; | 281 | last_jiffy_time += LATCH; |
282 | } | 282 | } |
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index a3b4c6ac5708..9a31444d9214 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/serial.h> | 16 | #include <linux/serial.h> |
17 | #include <linux/serial_8250.h> | 17 | #include <linux/serial_8250.h> |
18 | #include <linux/leds.h> | ||
18 | 19 | ||
19 | #include <asm/mach-types.h> | 20 | #include <asm/mach-types.h> |
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
@@ -37,6 +38,36 @@ static struct platform_device nas100d_flash = { | |||
37 | .resource = &nas100d_flash_resource, | 38 | .resource = &nas100d_flash_resource, |
38 | }; | 39 | }; |
39 | 40 | ||
41 | #ifdef CONFIG_LEDS_IXP4XX | ||
42 | static struct resource nas100d_led_resources[] = { | ||
43 | { | ||
44 | .name = "wlan", /* green led */ | ||
45 | .start = 0, | ||
46 | .end = 0, | ||
47 | .flags = IXP4XX_GPIO_LOW, | ||
48 | }, | ||
49 | { | ||
50 | .name = "ready", /* blue power led (off is flashing!) */ | ||
51 | .start = 15, | ||
52 | .end = 15, | ||
53 | .flags = IXP4XX_GPIO_LOW, | ||
54 | }, | ||
55 | { | ||
56 | .name = "disk", /* yellow led */ | ||
57 | .start = 3, | ||
58 | .end = 3, | ||
59 | .flags = IXP4XX_GPIO_LOW, | ||
60 | }, | ||
61 | }; | ||
62 | |||
63 | static struct platform_device nas100d_leds = { | ||
64 | .name = "IXP4XX-GPIO-LED", | ||
65 | .id = -1, | ||
66 | .num_resources = ARRAY_SIZE(nas100d_led_resources), | ||
67 | .resource = nas100d_led_resources, | ||
68 | }; | ||
69 | #endif | ||
70 | |||
40 | static struct ixp4xx_i2c_pins nas100d_i2c_gpio_pins = { | 71 | static struct ixp4xx_i2c_pins nas100d_i2c_gpio_pins = { |
41 | .sda_pin = NAS100D_SDA_PIN, | 72 | .sda_pin = NAS100D_SDA_PIN, |
42 | .scl_pin = NAS100D_SCL_PIN, | 73 | .scl_pin = NAS100D_SCL_PIN, |
@@ -95,7 +126,9 @@ static struct platform_device nas100d_uart = { | |||
95 | static struct platform_device *nas100d_devices[] __initdata = { | 126 | static struct platform_device *nas100d_devices[] __initdata = { |
96 | &nas100d_i2c_controller, | 127 | &nas100d_i2c_controller, |
97 | &nas100d_flash, | 128 | &nas100d_flash, |
98 | &nas100d_uart, | 129 | #ifdef CONFIG_LEDS_IXP4XX |
130 | &nas100d_leds, | ||
131 | #endif | ||
99 | }; | 132 | }; |
100 | 133 | ||
101 | static void nas100d_power_off(void) | 134 | static void nas100d_power_off(void) |
@@ -122,6 +155,12 @@ static void __init nas100d_init(void) | |||
122 | 155 | ||
123 | pm_power_off = nas100d_power_off; | 156 | pm_power_off = nas100d_power_off; |
124 | 157 | ||
158 | /* This is only useful on a modified machine, but it is valuable | ||
159 | * to have it first in order to see debug messages, and so that | ||
160 | * it does *not* get removed if platform_add_devices fails! | ||
161 | */ | ||
162 | (void)platform_device_register(&nas100d_uart); | ||
163 | |||
125 | platform_add_devices(nas100d_devices, ARRAY_SIZE(nas100d_devices)); | 164 | platform_add_devices(nas100d_devices, ARRAY_SIZE(nas100d_devices)); |
126 | } | 165 | } |
127 | 166 | ||
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index 55411f21d838..749a337494d3 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Copyright (C) 2003-2004 MontaVista Software, Inc. | 7 | * Copyright (C) 2003-2004 MontaVista Software, Inc. |
8 | * | 8 | * |
9 | * Author: Mark Rakes <mrakes at mac.com> | 9 | * Author: Mark Rakes <mrakes at mac.com> |
10 | * Author: Rod Whitby <rod@whitby.id.au> | ||
10 | * Maintainers: http://www.nslu2-linux.org/ | 11 | * Maintainers: http://www.nslu2-linux.org/ |
11 | * | 12 | * |
12 | * Fixed missing init_time in MACHINE_START kas11 10/22/04 | 13 | * Fixed missing init_time in MACHINE_START kas11 10/22/04 |
@@ -16,6 +17,7 @@ | |||
16 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
17 | #include <linux/serial.h> | 18 | #include <linux/serial.h> |
18 | #include <linux/serial_8250.h> | 19 | #include <linux/serial_8250.h> |
20 | #include <linux/leds.h> | ||
19 | 21 | ||
20 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
21 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
@@ -43,6 +45,42 @@ static struct ixp4xx_i2c_pins nslu2_i2c_gpio_pins = { | |||
43 | .scl_pin = NSLU2_SCL_PIN, | 45 | .scl_pin = NSLU2_SCL_PIN, |
44 | }; | 46 | }; |
45 | 47 | ||
48 | #ifdef CONFIG_LEDS_IXP4XX | ||
49 | static struct resource nslu2_led_resources[] = { | ||
50 | { | ||
51 | .name = "ready", /* green led */ | ||
52 | .start = NSLU2_LED_GRN, | ||
53 | .end = NSLU2_LED_GRN, | ||
54 | .flags = IXP4XX_GPIO_HIGH, | ||
55 | }, | ||
56 | { | ||
57 | .name = "status", /* red led */ | ||
58 | .start = NSLU2_LED_RED, | ||
59 | .end = NSLU2_LED_RED, | ||
60 | .flags = IXP4XX_GPIO_HIGH, | ||
61 | }, | ||
62 | { | ||
63 | .name = "disk-1", | ||
64 | .start = NSLU2_LED_DISK1, | ||
65 | .end = NSLU2_LED_DISK1, | ||
66 | .flags = IXP4XX_GPIO_LOW, | ||
67 | }, | ||
68 | { | ||
69 | .name = "disk-2", | ||
70 | .start = NSLU2_LED_DISK2, | ||
71 | .end = NSLU2_LED_DISK2, | ||
72 | .flags = IXP4XX_GPIO_LOW, | ||
73 | }, | ||
74 | }; | ||
75 | |||
76 | static struct platform_device nslu2_leds = { | ||
77 | .name = "IXP4XX-GPIO-LED", | ||
78 | .id = -1, | ||
79 | .num_resources = ARRAY_SIZE(nslu2_led_resources), | ||
80 | .resource = nslu2_led_resources, | ||
81 | }; | ||
82 | #endif | ||
83 | |||
46 | static struct platform_device nslu2_i2c_controller = { | 84 | static struct platform_device nslu2_i2c_controller = { |
47 | .name = "IXP4XX-I2C", | 85 | .name = "IXP4XX-I2C", |
48 | .id = 0, | 86 | .id = 0, |
@@ -102,8 +140,10 @@ static struct platform_device nslu2_uart = { | |||
102 | static struct platform_device *nslu2_devices[] __initdata = { | 140 | static struct platform_device *nslu2_devices[] __initdata = { |
103 | &nslu2_i2c_controller, | 141 | &nslu2_i2c_controller, |
104 | &nslu2_flash, | 142 | &nslu2_flash, |
105 | &nslu2_uart, | ||
106 | &nslu2_beeper, | 143 | &nslu2_beeper, |
144 | #ifdef CONFIG_LEDS_IXP4XX | ||
145 | &nslu2_leds, | ||
146 | #endif | ||
107 | }; | 147 | }; |
108 | 148 | ||
109 | static void nslu2_power_off(void) | 149 | static void nslu2_power_off(void) |
@@ -127,6 +167,12 @@ static void __init nslu2_init(void) | |||
127 | 167 | ||
128 | pm_power_off = nslu2_power_off; | 168 | pm_power_off = nslu2_power_off; |
129 | 169 | ||
170 | /* This is only useful on a modified machine, but it is valuable | ||
171 | * to have it first in order to see debug messages, and so that | ||
172 | * it does *not* get removed if platform_add_devices fails! | ||
173 | */ | ||
174 | (void)platform_device_register(&nslu2_uart); | ||
175 | |||
130 | platform_add_devices(nslu2_devices, ARRAY_SIZE(nslu2_devices)); | 176 | platform_add_devices(nslu2_devices, ARRAY_SIZE(nslu2_devices)); |
131 | } | 177 | } |
132 | 178 | ||
diff --git a/arch/arm/mach-lh7a40x/Kconfig b/arch/arm/mach-lh7a40x/Kconfig index 8a17867a6a24..558a34f53b1c 100644 --- a/arch/arm/mach-lh7a40x/Kconfig +++ b/arch/arm/mach-lh7a40x/Kconfig | |||
@@ -14,6 +14,7 @@ config MACH_LPD7A400 | |||
14 | bool "LPD7A400 Card Engine" | 14 | bool "LPD7A400 Card Engine" |
15 | select ARCH_LH7A400 | 15 | select ARCH_LH7A400 |
16 | # select IDE_POLL | 16 | # select IDE_POLL |
17 | select HAS_TOUCHSCREEN_ADS7843_LH7 | ||
17 | help | 18 | help |
18 | Say Y here if you are using Logic Product Development's | 19 | Say Y here if you are using Logic Product Development's |
19 | LPD7A400 CardEngine. For the time being, the LPD7A400 and | 20 | LPD7A400 CardEngine. For the time being, the LPD7A400 and |
@@ -23,6 +24,7 @@ config MACH_LPD7A404 | |||
23 | bool "LPD7A404 Card Engine" | 24 | bool "LPD7A404 Card Engine" |
24 | select ARCH_LH7A404 | 25 | select ARCH_LH7A404 |
25 | # select IDE_POLL | 26 | # select IDE_POLL |
27 | select HAS_TOUCHSCREEN_ADC_LH7 | ||
26 | help | 28 | help |
27 | Say Y here if you are using Logic Product Development's | 29 | Say Y here if you are using Logic Product Development's |
28 | LPD7A404 CardEngine. For the time being, the LPD7A400 and | 30 | LPD7A404 CardEngine. For the time being, the LPD7A400 and |
@@ -34,6 +36,9 @@ config ARCH_LH7A400 | |||
34 | config ARCH_LH7A404 | 36 | config ARCH_LH7A404 |
35 | bool | 37 | bool |
36 | 38 | ||
39 | config LPD7A40X_CPLD_SSP | ||
40 | bool | ||
41 | |||
37 | config LH7A40X_CONTIGMEM | 42 | config LH7A40X_CONTIGMEM |
38 | bool "Disable NUMA Support" | 43 | bool "Disable NUMA Support" |
39 | depends on ARCH_LH7A40X | 44 | depends on ARCH_LH7A40X |
diff --git a/arch/arm/mach-lh7a40x/Makefile b/arch/arm/mach-lh7a40x/Makefile index e90512dbc2d6..94b8615fb3c3 100644 --- a/arch/arm/mach-lh7a40x/Makefile +++ b/arch/arm/mach-lh7a40x/Makefile | |||
@@ -4,11 +4,14 @@ | |||
4 | 4 | ||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := time.o | 7 | obj-y := time.o clocks.o |
8 | obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o | 8 | obj-m := |
9 | obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o | 9 | obj-n := |
10 | obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o | 10 | obj- := |
11 | 11 | ||
12 | obj-m := | 12 | obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o |
13 | obj-n := | 13 | obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o |
14 | obj- := | 14 | obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o |
15 | obj-$(CONFIG_LPD7A40X_CPLD_SSP) += ssp-cpld.o | ||
16 | obj-$(CONFIG_FB_ARMCLCD) += clcd.o | ||
17 | |||
diff --git a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c index 12e23277c5ea..c0e6854289f1 100644 --- a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c +++ b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c | |||
@@ -23,6 +23,28 @@ | |||
23 | 23 | ||
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | #define CPLD_INT_NETHERNET (1<<0) | ||
27 | #define CPLD_INTMASK_ETHERNET (1<<2) | ||
28 | #if defined (CONFIG_MACH_LPD7A400) | ||
29 | # define CPLD_INT_NTOUCH (1<<1) | ||
30 | # define CPLD_INTMASK_TOUCH (1<<3) | ||
31 | # define CPLD_INT_PEN (1<<4) | ||
32 | # define CPLD_INTMASK_PEN (1<<4) | ||
33 | # define CPLD_INT_PIRQ (1<<4) | ||
34 | #endif | ||
35 | #define CPLD_INTMASK_CPLD (1<<7) | ||
36 | #define CPLD_INT_CPLD (1<<6) | ||
37 | |||
38 | #define CPLD_CONTROL_SWINT (1<<7) /* Disable all CPLD IRQs */ | ||
39 | #define CPLD_CONTROL_OCMSK (1<<6) /* Mask USB1 connect IRQ */ | ||
40 | #define CPLD_CONTROL_PDRV (1<<5) /* PCC_nDRV high */ | ||
41 | #define CPLD_CONTROL_USB1C (1<<4) /* USB1 connect IRQ active */ | ||
42 | #define CPLD_CONTROL_USB1P (1<<3) /* USB1 power disable */ | ||
43 | #define CPLD_CONTROL_AWKP (1<<2) /* Auto-wakeup disabled */ | ||
44 | #define CPLD_CONTROL_LCD_ENABLE (1<<1) /* LCD Vee enable */ | ||
45 | #define CPLD_CONTROL_WRLAN_NENABLE (1<<0) /* SMC91x power disable */ | ||
46 | |||
47 | |||
26 | static struct resource smc91x_resources[] = { | 48 | static struct resource smc91x_resources[] = { |
27 | [0] = { | 49 | [0] = { |
28 | .start = CPLD00_PHYS, | 50 | .start = CPLD00_PHYS, |
@@ -48,12 +70,12 @@ static struct platform_device smc91x_device = { | |||
48 | static struct resource lh7a40x_usbclient_resources[] = { | 70 | static struct resource lh7a40x_usbclient_resources[] = { |
49 | [0] = { | 71 | [0] = { |
50 | .start = USB_PHYS, | 72 | .start = USB_PHYS, |
51 | .end = (USB_PHYS + 0xFF), | 73 | .end = (USB_PHYS + PAGE_SIZE), |
52 | .flags = IORESOURCE_MEM, | 74 | .flags = IORESOURCE_MEM, |
53 | }, | 75 | }, |
54 | [1] = { | 76 | [1] = { |
55 | .start = IRQ_USBINTR, | 77 | .start = IRQ_USB, |
56 | .end = IRQ_USBINTR, | 78 | .end = IRQ_USB, |
57 | .flags = IORESOURCE_IRQ, | 79 | .flags = IORESOURCE_IRQ, |
58 | }, | 80 | }, |
59 | }; | 81 | }; |
@@ -61,7 +83,8 @@ static struct resource lh7a40x_usbclient_resources[] = { | |||
61 | static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; | 83 | static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; |
62 | 84 | ||
63 | static struct platform_device lh7a40x_usbclient_device = { | 85 | static struct platform_device lh7a40x_usbclient_device = { |
64 | .name = "lh7a40x_udc", | 86 | // .name = "lh7a40x_udc", |
87 | .name = "lh7-udc", | ||
65 | .id = 0, | 88 | .id = 0, |
66 | .dev = { | 89 | .dev = { |
67 | .dma_mask = &lh7a40x_usbclient_dma_mask, | 90 | .dma_mask = &lh7a40x_usbclient_dma_mask, |
@@ -101,7 +124,7 @@ static struct platform_device lh7a404_usbhost_device = { | |||
101 | 124 | ||
102 | #endif | 125 | #endif |
103 | 126 | ||
104 | static struct platform_device *lpd7a40x_devs[] __initdata = { | 127 | static struct platform_device* lpd7a40x_devs[] __initdata = { |
105 | &smc91x_device, | 128 | &smc91x_device, |
106 | &lh7a40x_usbclient_device, | 129 | &lh7a40x_usbclient_device, |
107 | #if defined (CONFIG_ARCH_LH7A404) | 130 | #if defined (CONFIG_ARCH_LH7A404) |
@@ -113,29 +136,52 @@ extern void lpd7a400_map_io (void); | |||
113 | 136 | ||
114 | static void __init lpd7a40x_init (void) | 137 | static void __init lpd7a40x_init (void) |
115 | { | 138 | { |
116 | CPLD_CONTROL |= (1<<6); /* Mask USB1 connection IRQ */ | 139 | #if defined (CONFIG_MACH_LPD7A400) |
140 | CPLD_CONTROL |= 0 | ||
141 | | CPLD_CONTROL_SWINT /* Disable software interrupt */ | ||
142 | | CPLD_CONTROL_OCMSK; /* Mask USB1 connection IRQ */ | ||
117 | CPLD_CONTROL &= ~(0 | 143 | CPLD_CONTROL &= ~(0 |
118 | | (1<<1) /* Disable LCD */ | 144 | | CPLD_CONTROL_LCD_ENABLE /* Disable LCD */ |
119 | | (1<<0) /* Enable WLAN */ | 145 | | CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */ |
120 | ); | 146 | ); |
147 | #endif | ||
148 | |||
149 | #if defined (CONFIG_MACH_LPD7A404) | ||
150 | CPLD_CONTROL &= ~(0 | ||
151 | | CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */ | ||
152 | ); | ||
153 | #endif | ||
121 | 154 | ||
122 | platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs)); | 155 | platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs)); |
156 | #if defined (CONFIG_FB_ARMCLCD) | ||
157 | lh7a40x_clcd_init (); | ||
158 | #endif | ||
123 | } | 159 | } |
124 | 160 | ||
125 | static void lh7a40x_ack_cpld_irq (u32 irq) | 161 | static void lh7a40x_ack_cpld_irq (u32 irq) |
126 | { | 162 | { |
127 | /* CPLD doesn't have ack capability */ | 163 | /* CPLD doesn't have ack capability, but some devices may */ |
164 | |||
165 | #if defined (CPLD_INTMASK_TOUCH) | ||
166 | /* The touch control *must* mask the the interrupt because the | ||
167 | * interrupt bit is read by the driver to determine if the pen | ||
168 | * is still down. */ | ||
169 | if (irq == IRQ_TOUCH) | ||
170 | CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH; | ||
171 | #endif | ||
128 | } | 172 | } |
129 | 173 | ||
130 | static void lh7a40x_mask_cpld_irq (u32 irq) | 174 | static void lh7a40x_mask_cpld_irq (u32 irq) |
131 | { | 175 | { |
132 | switch (irq) { | 176 | switch (irq) { |
133 | case IRQ_LPD7A40X_ETH_INT: | 177 | case IRQ_LPD7A40X_ETH_INT: |
134 | CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x4; | 178 | CPLD_INTERRUPTS |= CPLD_INTMASK_ETHERNET; |
135 | break; | 179 | break; |
136 | case IRQ_LPD7A400_TS: | 180 | #if defined (IRQ_TOUCH) |
137 | CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x8; | 181 | case IRQ_TOUCH: |
182 | CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH; | ||
138 | break; | 183 | break; |
184 | #endif | ||
139 | } | 185 | } |
140 | } | 186 | } |
141 | 187 | ||
@@ -143,11 +189,13 @@ static void lh7a40x_unmask_cpld_irq (u32 irq) | |||
143 | { | 189 | { |
144 | switch (irq) { | 190 | switch (irq) { |
145 | case IRQ_LPD7A40X_ETH_INT: | 191 | case IRQ_LPD7A40X_ETH_INT: |
146 | CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x4; | 192 | CPLD_INTERRUPTS &= ~CPLD_INTMASK_ETHERNET; |
147 | break; | 193 | break; |
148 | case IRQ_LPD7A400_TS: | 194 | #if defined (IRQ_TOUCH) |
149 | CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x8; | 195 | case IRQ_TOUCH: |
196 | CPLD_INTERRUPTS &= ~CPLD_INTMASK_TOUCH; | ||
150 | break; | 197 | break; |
198 | #endif | ||
151 | } | 199 | } |
152 | } | 200 | } |
153 | 201 | ||
@@ -164,11 +212,13 @@ static void lpd7a40x_cpld_handler (unsigned int irq, struct irqdesc *desc, | |||
164 | 212 | ||
165 | desc->chip->ack (irq); | 213 | desc->chip->ack (irq); |
166 | 214 | ||
167 | if ((mask & 0x1) == 0) /* WLAN */ | 215 | if ((mask & (1<<0)) == 0) /* WLAN */ |
168 | IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT); | 216 | IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT); |
169 | 217 | ||
170 | if ((mask & 0x2) == 0) /* Touch */ | 218 | #if defined (IRQ_TOUCH) |
171 | IRQ_DISPATCH (IRQ_LPD7A400_TS); | 219 | if ((mask & (1<<1)) == 0) /* Touch */ |
220 | IRQ_DISPATCH (IRQ_TOUCH); | ||
221 | #endif | ||
172 | 222 | ||
173 | desc->chip->unmask (irq); /* Level-triggered need this */ | 223 | desc->chip->unmask (irq); /* Level-triggered need this */ |
174 | } | 224 | } |
@@ -204,9 +254,21 @@ void __init lh7a40x_init_board_irq (void) | |||
204 | 254 | ||
205 | /* Then, configure CPLD interrupt */ | 255 | /* Then, configure CPLD interrupt */ |
206 | 256 | ||
207 | CPLD_INTERRUPTS = 0x9c; /* Disable all CPLD interrupts */ | 257 | /* Disable all CPLD interrupts */ |
258 | #if defined (CONFIG_MACH_LPD7A400) | ||
259 | CPLD_INTERRUPTS = CPLD_INTMASK_TOUCH | CPLD_INTMASK_PEN | ||
260 | | CPLD_INTMASK_ETHERNET; | ||
261 | /* *** FIXME: don't know why we need 7 and 4. 7 is way wrong | ||
262 | and 4 is uncefined. */ | ||
263 | // (1<<7)|(1<<4)|(1<<3)|(1<<2); | ||
264 | #endif | ||
265 | #if defined (CONFIG_MACH_LPD7A404) | ||
266 | CPLD_INTERRUPTS = CPLD_INTMASK_ETHERNET; | ||
267 | /* *** FIXME: don't know why we need 6 and 5, neither is defined. */ | ||
268 | // (1<<6)|(1<<5)|(1<<3); | ||
269 | #endif | ||
208 | GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */ | 270 | GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */ |
209 | GPIO_INTTYPE1 |= (1 << pinCPLD); /* Edge triggered */ | 271 | GPIO_INTTYPE1 &= ~(1 << pinCPLD); /* Level triggered */ |
210 | GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */ | 272 | GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */ |
211 | barrier (); | 273 | barrier (); |
212 | GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */ | 274 | GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */ |
@@ -216,7 +278,7 @@ void __init lh7a40x_init_board_irq (void) | |||
216 | for (irq = IRQ_BOARD_START; | 278 | for (irq = IRQ_BOARD_START; |
217 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { | 279 | irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) { |
218 | set_irq_chip (irq, &lpd7a40x_cpld_chip); | 280 | set_irq_chip (irq, &lpd7a40x_cpld_chip); |
219 | set_irq_handler (irq, do_edge_IRQ); | 281 | set_irq_handler (irq, do_level_IRQ); |
220 | set_irq_flags (irq, IRQF_VALID); | 282 | set_irq_flags (irq, IRQF_VALID); |
221 | } | 283 | } |
222 | 284 | ||
@@ -226,91 +288,109 @@ void __init lh7a40x_init_board_irq (void) | |||
226 | lpd7a40x_cpld_handler); | 288 | lpd7a40x_cpld_handler); |
227 | } | 289 | } |
228 | 290 | ||
229 | static struct map_desc lpd7a400_io_desc[] __initdata = { | 291 | static struct map_desc lpd7a40x_io_desc[] __initdata = { |
230 | { | 292 | { |
231 | .virtual = IO_VIRT, | 293 | .virtual = IO_VIRT, |
232 | .pfn = __phys_to_pfn(IO_PHYS), | 294 | .pfn = __phys_to_pfn(IO_PHYS), |
233 | .length = IO_SIZE, | 295 | .length = IO_SIZE, |
234 | .type = MT_DEVICE | 296 | .type = MT_DEVICE |
235 | }, { /* Mapping added to work around chip select problems */ | 297 | }, |
298 | { /* Mapping added to work around chip select problems */ | ||
236 | .virtual = IOBARRIER_VIRT, | 299 | .virtual = IOBARRIER_VIRT, |
237 | .pfn = __phys_to_pfn(IOBARRIER_PHYS), | 300 | .pfn = __phys_to_pfn(IOBARRIER_PHYS), |
238 | .length = IOBARRIER_SIZE, | 301 | .length = IOBARRIER_SIZE, |
239 | .type = MT_DEVICE | 302 | .type = MT_DEVICE |
240 | }, { | 303 | }, |
304 | { | ||
241 | .virtual = CF_VIRT, | 305 | .virtual = CF_VIRT, |
242 | .pfn = __phys_to_pfn(CF_PHYS), | 306 | .pfn = __phys_to_pfn(CF_PHYS), |
243 | .length = CF_SIZE, | 307 | .length = CF_SIZE, |
244 | .type = MT_DEVICE | 308 | .type = MT_DEVICE |
245 | }, { | 309 | }, |
310 | { | ||
246 | .virtual = CPLD02_VIRT, | 311 | .virtual = CPLD02_VIRT, |
247 | .pfn = __phys_to_pfn(CPLD02_PHYS), | 312 | .pfn = __phys_to_pfn(CPLD02_PHYS), |
248 | .length = CPLD02_SIZE, | 313 | .length = CPLD02_SIZE, |
249 | .type = MT_DEVICE | 314 | .type = MT_DEVICE |
250 | }, { | 315 | }, |
316 | { | ||
251 | .virtual = CPLD06_VIRT, | 317 | .virtual = CPLD06_VIRT, |
252 | .pfn = __phys_to_pfn(CPLD06_PHYS), | 318 | .pfn = __phys_to_pfn(CPLD06_PHYS), |
253 | .length = CPLD06_SIZE, | 319 | .length = CPLD06_SIZE, |
320 | .type = MT_DEVICE | ||
321 | }, | ||
322 | { | ||
323 | .virtual = CPLD08_VIRT, | ||
324 | .pfn = __phys_to_pfn(CPLD08_PHYS), | ||
325 | .length = CPLD08_SIZE, | ||
254 | .type = MT_DEVICE | 326 | .type = MT_DEVICE |
255 | }, { | 327 | }, |
328 | { | ||
256 | .virtual = CPLD08_VIRT, | 329 | .virtual = CPLD08_VIRT, |
257 | .pfn = __phys_to_pfn(CPLD08_PHYS), | 330 | .pfn = __phys_to_pfn(CPLD08_PHYS), |
258 | .length = CPLD08_SIZE, | 331 | .length = CPLD08_SIZE, |
259 | .type = MT_DEVICE | 332 | .type = MT_DEVICE |
260 | }, { | 333 | }, |
334 | { | ||
335 | .virtual = CPLD0A_VIRT, | ||
336 | .pfn = __phys_to_pfn(CPLD0A_PHYS), | ||
337 | .length = CPLD0A_SIZE, | ||
338 | .type = MT_DEVICE | ||
339 | }, | ||
340 | { | ||
261 | .virtual = CPLD0C_VIRT, | 341 | .virtual = CPLD0C_VIRT, |
262 | .pfn = __phys_to_pfn(CPLD0C_PHYS), | 342 | .pfn = __phys_to_pfn(CPLD0C_PHYS), |
263 | .length = CPLD0C_SIZE, | 343 | .length = CPLD0C_SIZE, |
264 | .type = MT_DEVICE | 344 | .type = MT_DEVICE |
265 | }, { | 345 | }, |
346 | { | ||
266 | .virtual = CPLD0E_VIRT, | 347 | .virtual = CPLD0E_VIRT, |
267 | .pfn = __phys_to_pfn(CPLD0E_PHYS), | 348 | .pfn = __phys_to_pfn(CPLD0E_PHYS), |
268 | .length = CPLD0E_SIZE, | 349 | .length = CPLD0E_SIZE, |
269 | .type = MT_DEVICE | 350 | .type = MT_DEVICE |
270 | }, { | 351 | }, |
352 | { | ||
271 | .virtual = CPLD10_VIRT, | 353 | .virtual = CPLD10_VIRT, |
272 | .pfn = __phys_to_pfn(CPLD10_PHYS), | 354 | .pfn = __phys_to_pfn(CPLD10_PHYS), |
273 | .length = CPLD10_SIZE, | 355 | .length = CPLD10_SIZE, |
274 | .type = MT_DEVICE | 356 | .type = MT_DEVICE |
275 | }, { | 357 | }, |
358 | { | ||
276 | .virtual = CPLD12_VIRT, | 359 | .virtual = CPLD12_VIRT, |
277 | .pfn = __phys_to_pfn(CPLD12_PHYS), | 360 | .pfn = __phys_to_pfn(CPLD12_PHYS), |
278 | .length = CPLD12_SIZE, | 361 | .length = CPLD12_SIZE, |
279 | .type = MT_DEVICE | 362 | .type = MT_DEVICE |
280 | }, { | 363 | }, |
364 | { | ||
281 | .virtual = CPLD14_VIRT, | 365 | .virtual = CPLD14_VIRT, |
282 | .pfn = __phys_to_pfn(CPLD14_PHYS), | 366 | .pfn = __phys_to_pfn(CPLD14_PHYS), |
283 | .length = CPLD14_SIZE, | 367 | .length = CPLD14_SIZE, |
284 | .type = MT_DEVICE | 368 | .type = MT_DEVICE |
285 | }, { | 369 | }, |
370 | { | ||
286 | .virtual = CPLD16_VIRT, | 371 | .virtual = CPLD16_VIRT, |
287 | .pfn = __phys_to_pfn(CPLD16_PHYS), | 372 | .pfn = __phys_to_pfn(CPLD16_PHYS), |
288 | .length = CPLD16_SIZE, | 373 | .length = CPLD16_SIZE, |
289 | .type = MT_DEVICE | 374 | .type = MT_DEVICE |
290 | }, { | 375 | }, |
376 | { | ||
291 | .virtual = CPLD18_VIRT, | 377 | .virtual = CPLD18_VIRT, |
292 | .pfn = __phys_to_pfn(CPLD18_PHYS), | 378 | .pfn = __phys_to_pfn(CPLD18_PHYS), |
293 | .length = CPLD18_SIZE, | 379 | .length = CPLD18_SIZE, |
294 | .type = MT_DEVICE | 380 | .type = MT_DEVICE |
295 | }, { | 381 | }, |
382 | { | ||
296 | .virtual = CPLD1A_VIRT, | 383 | .virtual = CPLD1A_VIRT, |
297 | .pfn = __phys_to_pfn(CPLD1A_PHYS), | 384 | .pfn = __phys_to_pfn(CPLD1A_PHYS), |
298 | .length = CPLD1A_SIZE, | 385 | .length = CPLD1A_SIZE, |
299 | .type = MT_DEVICE | 386 | .type = MT_DEVICE |
300 | }, | 387 | }, |
301 | /* This mapping is redundant since the smc driver performs another. */ | ||
302 | /* { CPLD00_VIRT, CPLD00_PHYS, CPLD00_SIZE, MT_DEVICE }, */ | ||
303 | }; | 388 | }; |
304 | 389 | ||
305 | void __init | 390 | void __init |
306 | lpd7a400_map_io(void) | 391 | lpd7a40x_map_io(void) |
307 | { | 392 | { |
308 | iotable_init (lpd7a400_io_desc, ARRAY_SIZE (lpd7a400_io_desc)); | 393 | iotable_init (lpd7a40x_io_desc, ARRAY_SIZE (lpd7a40x_io_desc)); |
309 | |||
310 | /* Fixup (improve) Static Memory Controller settings */ | ||
311 | SMC_BCR0 = 0x200039af; /* Boot Flash */ | ||
312 | SMC_BCR6 = 0x1000fbe0; /* CPLD */ | ||
313 | SMC_BCR7 = 0x1000b2c2; /* Compact Flash */ | ||
314 | } | 394 | } |
315 | 395 | ||
316 | #ifdef CONFIG_MACH_LPD7A400 | 396 | #ifdef CONFIG_MACH_LPD7A400 |
@@ -320,7 +400,7 @@ MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10") | |||
320 | .phys_io = 0x80000000, | 400 | .phys_io = 0x80000000, |
321 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, | 401 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, |
322 | .boot_params = 0xc0000100, | 402 | .boot_params = 0xc0000100, |
323 | .map_io = lpd7a400_map_io, | 403 | .map_io = lpd7a40x_map_io, |
324 | .init_irq = lh7a400_init_irq, | 404 | .init_irq = lh7a400_init_irq, |
325 | .timer = &lh7a40x_timer, | 405 | .timer = &lh7a40x_timer, |
326 | .init_machine = lpd7a40x_init, | 406 | .init_machine = lpd7a40x_init, |
@@ -335,7 +415,7 @@ MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10") | |||
335 | .phys_io = 0x80000000, | 415 | .phys_io = 0x80000000, |
336 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, | 416 | .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc, |
337 | .boot_params = 0xc0000100, | 417 | .boot_params = 0xc0000100, |
338 | .map_io = lpd7a400_map_io, | 418 | .map_io = lpd7a40x_map_io, |
339 | .init_irq = lh7a404_init_irq, | 419 | .init_irq = lh7a404_init_irq, |
340 | .timer = &lh7a40x_timer, | 420 | .timer = &lh7a40x_timer, |
341 | .init_machine = lpd7a40x_init, | 421 | .init_machine = lpd7a40x_init, |
diff --git a/arch/arm/mach-lh7a40x/clcd.c b/arch/arm/mach-lh7a40x/clcd.c new file mode 100644 index 000000000000..93751fee793d --- /dev/null +++ b/arch/arm/mach-lh7a40x/clcd.c | |||
@@ -0,0 +1,241 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-lh7a40x/clcd.c | ||
3 | * | ||
4 | * Copyright (C) 2004 Marc Singer | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * version 2 as published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | #include <linux/config.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/device.h> | ||
14 | #include <linux/dma-mapping.h> | ||
15 | #include <linux/sysdev.h> | ||
16 | #include <linux/interrupt.h> | ||
17 | |||
18 | //#include <linux/module.h> | ||
19 | //#include <linux/time.h> | ||
20 | //#include <asm/hardware.h> | ||
21 | |||
22 | //#include <asm/mach/time.h> | ||
23 | #include <asm/irq.h> | ||
24 | #include <asm/mach/irq.h> | ||
25 | |||
26 | #include <asm/system.h> | ||
27 | #include <asm/hardware.h> | ||
28 | #include <linux/amba/bus.h> | ||
29 | #include <linux/amba/clcd.h> | ||
30 | |||
31 | #define HRTFTC_HRSETUP __REG(HRTFTC_PHYS + 0x00) | ||
32 | #define HRTFTC_HRCON __REG(HRTFTC_PHYS + 0x04) | ||
33 | #define HRTFTC_HRTIMING1 __REG(HRTFTC_PHYS + 0x08) | ||
34 | #define HRTFTC_HRTIMING2 __REG(HRTFTC_PHYS + 0x0c) | ||
35 | |||
36 | #define ALI_SETUP __REG(ALI_PHYS + 0x00) | ||
37 | #define ALI_CONTROL __REG(ALI_PHYS + 0x04) | ||
38 | #define ALI_TIMING1 __REG(ALI_PHYS + 0x08) | ||
39 | #define ALI_TIMING2 __REG(ALI_PHYS + 0x0c) | ||
40 | |||
41 | #include "lcd-panel.h" | ||
42 | |||
43 | static void lh7a40x_clcd_disable (struct clcd_fb *fb) | ||
44 | { | ||
45 | #if defined (CONFIG_MACH_LPD7A400) | ||
46 | CPLD_CONTROL &= ~(1<<1); /* Disable LCD Vee */ | ||
47 | #endif | ||
48 | |||
49 | #if defined (CONFIG_MACH_LPD7A404) | ||
50 | GPIO_PCD &= ~(1<<3); /* Disable LCD Vee */ | ||
51 | #endif | ||
52 | |||
53 | #if defined (CONFIG_ARCH_LH7A400) | ||
54 | HRTFTC_HRSETUP &= ~(1<<13); /* Disable HRTFT controller */ | ||
55 | #endif | ||
56 | |||
57 | #if defined (CONFIG_ARCH_LH7A404) | ||
58 | ALI_SETUP &= ~(1<<13); /* Disable ALI */ | ||
59 | #endif | ||
60 | } | ||
61 | |||
62 | static void lh7a40x_clcd_enable (struct clcd_fb *fb) | ||
63 | { | ||
64 | struct clcd_panel_extra* extra | ||
65 | = (struct clcd_panel_extra*) fb->board_data; | ||
66 | |||
67 | #if defined (CONFIG_MACH_LPD7A400) | ||
68 | CPLD_CONTROL |= (1<<1); /* Enable LCD Vee */ | ||
69 | #endif | ||
70 | |||
71 | #if defined (CONFIG_MACH_LPD7A404) | ||
72 | GPIO_PCDD &= ~(1<<3); /* Enable LCD Vee */ | ||
73 | GPIO_PCD |= (1<<3); | ||
74 | #endif | ||
75 | |||
76 | #if defined (CONFIG_ARCH_LH7A400) | ||
77 | |||
78 | if (extra) { | ||
79 | HRTFTC_HRSETUP | ||
80 | = (1 << 13) | ||
81 | | ((fb->fb.var.xres - 1) << 4) | ||
82 | | 0xc | ||
83 | | (extra->hrmode ? 1 : 0); | ||
84 | HRTFTC_HRCON | ||
85 | = ((extra->clsen ? 1 : 0) << 1) | ||
86 | | ((extra->spsen ? 1 : 0) << 0); | ||
87 | HRTFTC_HRTIMING1 | ||
88 | = (extra->pcdel << 8) | ||
89 | | (extra->revdel << 4) | ||
90 | | (extra->lpdel << 0); | ||
91 | HRTFTC_HRTIMING2 | ||
92 | = (extra->spldel << 9) | ||
93 | | (extra->pc2del << 0); | ||
94 | } | ||
95 | else | ||
96 | HRTFTC_HRSETUP | ||
97 | = (1 << 13) | ||
98 | | 0xc; | ||
99 | #endif | ||
100 | |||
101 | #if defined (CONFIG_ARCH_LH7A404) | ||
102 | |||
103 | if (extra) { | ||
104 | ALI_SETUP | ||
105 | = (1 << 13) | ||
106 | | ((fb->fb.var.xres - 1) << 4) | ||
107 | | 0xc | ||
108 | | (extra->hrmode ? 1 : 0); | ||
109 | ALI_CONTROL | ||
110 | = ((extra->clsen ? 1 : 0) << 1) | ||
111 | | ((extra->spsen ? 1 : 0) << 0); | ||
112 | ALI_TIMING1 | ||
113 | = (extra->pcdel << 8) | ||
114 | | (extra->revdel << 4) | ||
115 | | (extra->lpdel << 0); | ||
116 | ALI_TIMING2 | ||
117 | = (extra->spldel << 9) | ||
118 | | (extra->pc2del << 0); | ||
119 | } | ||
120 | else | ||
121 | ALI_SETUP | ||
122 | = (1 << 13) | ||
123 | | 0xc; | ||
124 | #endif | ||
125 | |||
126 | } | ||
127 | |||
128 | #define FRAMESIZE(s) (((s) + PAGE_SIZE - 1)&PAGE_MASK) | ||
129 | |||
130 | static int lh7a40x_clcd_setup (struct clcd_fb *fb) | ||
131 | { | ||
132 | dma_addr_t dma; | ||
133 | u32 len = FRAMESIZE (lcd_panel.mode.xres*lcd_panel.mode.yres | ||
134 | *(lcd_panel.bpp/8)); | ||
135 | |||
136 | fb->panel = &lcd_panel; | ||
137 | |||
138 | /* Enforce the sync polarity defaults */ | ||
139 | if (!(fb->panel->tim2 & TIM2_IHS)) | ||
140 | fb->fb.var.sync |= FB_SYNC_HOR_HIGH_ACT; | ||
141 | if (!(fb->panel->tim2 & TIM2_IVS)) | ||
142 | fb->fb.var.sync |= FB_SYNC_VERT_HIGH_ACT; | ||
143 | |||
144 | #if defined (HAS_LCD_PANEL_EXTRA) | ||
145 | fb->board_data = &lcd_panel_extra; | ||
146 | #endif | ||
147 | |||
148 | fb->fb.screen_base | ||
149 | = dma_alloc_writecombine (&fb->dev->dev, len, | ||
150 | &dma, GFP_KERNEL); | ||
151 | printk ("CLCD: LCD setup fb virt 0x%p phys 0x%p l %x io 0x%p \n", | ||
152 | fb->fb.screen_base, (void*) dma, len, | ||
153 | (void*) io_p2v (CLCDC_PHYS)); | ||
154 | printk ("CLCD: pixclock %d\n", lcd_panel.mode.pixclock); | ||
155 | |||
156 | if (!fb->fb.screen_base) { | ||
157 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); | ||
158 | return -ENOMEM; | ||
159 | } | ||
160 | |||
161 | #if defined (USE_RGB555) | ||
162 | fb->fb.var.green.length = 5; /* Panel uses RGB 5:5:5 */ | ||
163 | #endif | ||
164 | |||
165 | fb->fb.fix.smem_start = dma; | ||
166 | fb->fb.fix.smem_len = len; | ||
167 | |||
168 | /* Drive PE4 high to prevent CPLD crash */ | ||
169 | GPIO_PEDD |= (1<<4); | ||
170 | GPIO_PED |= (1<<4); | ||
171 | |||
172 | GPIO_PINMUX |= (1<<1) | (1<<0); /* LCDVD[15:4] */ | ||
173 | |||
174 | // fb->fb.fbops->fb_check_var (&fb->fb.var, &fb->fb); | ||
175 | // fb->fb.fbops->fb_set_par (&fb->fb); | ||
176 | |||
177 | return 0; | ||
178 | } | ||
179 | |||
180 | static int lh7a40x_clcd_mmap (struct clcd_fb *fb, struct vm_area_struct *vma) | ||
181 | { | ||
182 | return dma_mmap_writecombine(&fb->dev->dev, vma, | ||
183 | fb->fb.screen_base, | ||
184 | fb->fb.fix.smem_start, | ||
185 | fb->fb.fix.smem_len); | ||
186 | } | ||
187 | |||
188 | static void lh7a40x_clcd_remove (struct clcd_fb *fb) | ||
189 | { | ||
190 | dma_free_writecombine (&fb->dev->dev, fb->fb.fix.smem_len, | ||
191 | fb->fb.screen_base, fb->fb.fix.smem_start); | ||
192 | } | ||
193 | |||
194 | static struct clcd_board clcd_platform_data = { | ||
195 | .name = "lh7a40x FB", | ||
196 | .check = clcdfb_check, | ||
197 | .decode = clcdfb_decode, | ||
198 | .enable = lh7a40x_clcd_enable, | ||
199 | .setup = lh7a40x_clcd_setup, | ||
200 | .mmap = lh7a40x_clcd_mmap, | ||
201 | .remove = lh7a40x_clcd_remove, | ||
202 | .disable = lh7a40x_clcd_disable, | ||
203 | }; | ||
204 | |||
205 | #define IRQ_CLCDC (IRQ_LCDINTR) | ||
206 | |||
207 | #define AMBA_DEVICE(name,busid,base,plat,pid) \ | ||
208 | static struct amba_device name##_device = { \ | ||
209 | .dev = { \ | ||
210 | .coherent_dma_mask = ~0, \ | ||
211 | .bus_id = busid, \ | ||
212 | .platform_data = plat, \ | ||
213 | }, \ | ||
214 | .res = { \ | ||
215 | .start = base##_PHYS, \ | ||
216 | .end = (base##_PHYS) + (4*1024) - 1, \ | ||
217 | .flags = IORESOURCE_MEM, \ | ||
218 | }, \ | ||
219 | .dma_mask = ~0, \ | ||
220 | .irq = { IRQ_##base, }, \ | ||
221 | /* .dma = base##_DMA,*/ \ | ||
222 | .periphid = pid, \ | ||
223 | } | ||
224 | |||
225 | AMBA_DEVICE(clcd, "cldc-lh7a40x", CLCDC, &clcd_platform_data, 0x41110); | ||
226 | |||
227 | static struct amba_device *amba_devs[] __initdata = { | ||
228 | &clcd_device, | ||
229 | }; | ||
230 | |||
231 | void __init lh7a40x_clcd_init (void) | ||
232 | { | ||
233 | int i; | ||
234 | int result; | ||
235 | printk ("CLCD: registering amba devices\n"); | ||
236 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | ||
237 | struct amba_device *d = amba_devs[i]; | ||
238 | result = amba_device_register(d, &iomem_resource); | ||
239 | printk (" %d -> %d\n", i ,result); | ||
240 | } | ||
241 | } | ||
diff --git a/arch/arm/mach-lh7a40x/clocks.c b/arch/arm/mach-lh7a40x/clocks.c new file mode 100644 index 000000000000..2291afe9f23e --- /dev/null +++ b/arch/arm/mach-lh7a40x/clocks.c | |||
@@ -0,0 +1,199 @@ | |||
1 | /* arch/arm/mach-lh7a40x/clocks.c | ||
2 | * | ||
3 | * Copyright (C) 2004 Marc Singer | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | #include <linux/config.h> | ||
12 | #include <linux/cpufreq.h> | ||
13 | #include <asm/hardware.h> | ||
14 | #include <asm/arch/clocks.h> | ||
15 | #include <linux/err.h> | ||
16 | |||
17 | struct module; | ||
18 | struct icst525_params; | ||
19 | |||
20 | struct clk { | ||
21 | struct list_head node; | ||
22 | unsigned long rate; | ||
23 | struct module *owner; | ||
24 | const char *name; | ||
25 | // void *data; | ||
26 | // const struct icst525_params *params; | ||
27 | // void (*setvco)(struct clk *, struct icst525_vco vco); | ||
28 | }; | ||
29 | |||
30 | int clk_register(struct clk *clk); | ||
31 | void clk_unregister(struct clk *clk); | ||
32 | |||
33 | /* ----- */ | ||
34 | |||
35 | #define MAINDIV1(c) (((c) >> 7) & 0x0f) | ||
36 | #define MAINDIV2(c) (((c) >> 11) & 0x1f) | ||
37 | #define PS(c) (((c) >> 18) & 0x03) | ||
38 | #define PREDIV(c) (((c) >> 2) & 0x1f) | ||
39 | #define HCLKDIV(c) (((c) >> 0) & 0x02) | ||
40 | #define PCLKDIV(c) (((c) >> 16) & 0x03) | ||
41 | |||
42 | unsigned int cpufreq_get (unsigned int cpu) /* in kHz */ | ||
43 | { | ||
44 | return fclkfreq_get ()/1000; | ||
45 | } | ||
46 | EXPORT_SYMBOL(cpufreq_get); | ||
47 | |||
48 | unsigned int fclkfreq_get (void) | ||
49 | { | ||
50 | unsigned int clkset = CSC_CLKSET; | ||
51 | unsigned int gclk | ||
52 | = XTAL_IN | ||
53 | / (1 << PS(clkset)) | ||
54 | * (MAINDIV1(clkset) + 2) | ||
55 | / (PREDIV(clkset) + 2) | ||
56 | * (MAINDIV2(clkset) + 2) | ||
57 | ; | ||
58 | return gclk; | ||
59 | } | ||
60 | |||
61 | unsigned int hclkfreq_get (void) | ||
62 | { | ||
63 | unsigned int clkset = CSC_CLKSET; | ||
64 | unsigned int hclk = fclkfreq_get () / (HCLKDIV(clkset) + 1); | ||
65 | |||
66 | return hclk; | ||
67 | } | ||
68 | |||
69 | unsigned int pclkfreq_get (void) | ||
70 | { | ||
71 | unsigned int clkset = CSC_CLKSET; | ||
72 | int pclkdiv = PCLKDIV(clkset); | ||
73 | unsigned int pclk; | ||
74 | if (pclkdiv == 0x3) | ||
75 | pclkdiv = 0x2; | ||
76 | pclk = hclkfreq_get () / (1 << pclkdiv); | ||
77 | |||
78 | return pclk; | ||
79 | } | ||
80 | |||
81 | /* ----- */ | ||
82 | |||
83 | static LIST_HEAD(clocks); | ||
84 | static DECLARE_MUTEX(clocks_sem); | ||
85 | |||
86 | struct clk *clk_get (struct device *dev, const char *id) | ||
87 | { | ||
88 | struct clk *p; | ||
89 | struct clk *clk = ERR_PTR(-ENOENT); | ||
90 | |||
91 | down (&clocks_sem); | ||
92 | list_for_each_entry (p, &clocks, node) { | ||
93 | if (strcmp (id, p->name) == 0 | ||
94 | && try_module_get(p->owner)) { | ||
95 | clk = p; | ||
96 | break; | ||
97 | } | ||
98 | } | ||
99 | up (&clocks_sem); | ||
100 | |||
101 | return clk; | ||
102 | } | ||
103 | EXPORT_SYMBOL(clk_get); | ||
104 | |||
105 | void clk_put (struct clk *clk) | ||
106 | { | ||
107 | module_put(clk->owner); | ||
108 | } | ||
109 | EXPORT_SYMBOL(clk_put); | ||
110 | |||
111 | int clk_enable (struct clk *clk) | ||
112 | { | ||
113 | return 0; | ||
114 | } | ||
115 | EXPORT_SYMBOL(clk_enable); | ||
116 | |||
117 | void clk_disable (struct clk *clk) | ||
118 | { | ||
119 | } | ||
120 | EXPORT_SYMBOL(clk_disable); | ||
121 | |||
122 | int clk_use (struct clk *clk) | ||
123 | { | ||
124 | return 0; | ||
125 | } | ||
126 | EXPORT_SYMBOL(clk_use); | ||
127 | |||
128 | void clk_unuse (struct clk *clk) | ||
129 | { | ||
130 | } | ||
131 | EXPORT_SYMBOL(clk_unuse); | ||
132 | |||
133 | unsigned long clk_get_rate (struct clk *clk) | ||
134 | { | ||
135 | return clk->rate; | ||
136 | } | ||
137 | EXPORT_SYMBOL(clk_get_rate); | ||
138 | |||
139 | long clk_round_rate (struct clk *clk, unsigned long rate) | ||
140 | { | ||
141 | return rate; | ||
142 | } | ||
143 | EXPORT_SYMBOL(clk_round_rate); | ||
144 | |||
145 | int clk_set_rate (struct clk *clk, unsigned long rate) | ||
146 | { | ||
147 | int ret = -EIO; | ||
148 | return ret; | ||
149 | } | ||
150 | EXPORT_SYMBOL(clk_set_rate); | ||
151 | |||
152 | #if 0 | ||
153 | /* | ||
154 | * These are fixed clocks. | ||
155 | */ | ||
156 | static struct clk kmi_clk = { | ||
157 | .name = "KMIREFCLK", | ||
158 | .rate = 24000000, | ||
159 | }; | ||
160 | |||
161 | static struct clk uart_clk = { | ||
162 | .name = "UARTCLK", | ||
163 | .rate = 24000000, | ||
164 | }; | ||
165 | |||
166 | static struct clk mmci_clk = { | ||
167 | .name = "MCLK", | ||
168 | .rate = 33000000, | ||
169 | }; | ||
170 | #endif | ||
171 | |||
172 | static struct clk clcd_clk = { | ||
173 | .name = "CLCDCLK", | ||
174 | .rate = 0, | ||
175 | }; | ||
176 | |||
177 | int clk_register (struct clk *clk) | ||
178 | { | ||
179 | down (&clocks_sem); | ||
180 | list_add (&clk->node, &clocks); | ||
181 | up (&clocks_sem); | ||
182 | return 0; | ||
183 | } | ||
184 | EXPORT_SYMBOL(clk_register); | ||
185 | |||
186 | void clk_unregister (struct clk *clk) | ||
187 | { | ||
188 | down (&clocks_sem); | ||
189 | list_del (&clk->node); | ||
190 | up (&clocks_sem); | ||
191 | } | ||
192 | EXPORT_SYMBOL(clk_unregister); | ||
193 | |||
194 | static int __init clk_init (void) | ||
195 | { | ||
196 | clk_register(&clcd_clk); | ||
197 | return 0; | ||
198 | } | ||
199 | arch_initcall(clk_init); | ||
diff --git a/arch/arm/mach-lh7a40x/common.h b/arch/arm/mach-lh7a40x/common.h index ea8de7e3ab1b..18e8bb4eb202 100644 --- a/arch/arm/mach-lh7a40x/common.h +++ b/arch/arm/mach-lh7a40x/common.h | |||
@@ -12,6 +12,7 @@ extern struct sys_timer lh7a40x_timer; | |||
12 | 12 | ||
13 | extern void lh7a400_init_irq (void); | 13 | extern void lh7a400_init_irq (void); |
14 | extern void lh7a404_init_irq (void); | 14 | extern void lh7a404_init_irq (void); |
15 | extern void lh7a40x_clcd_init (void); | ||
15 | extern void lh7a40x_init_board_irq (void); | 16 | extern void lh7a40x_init_board_irq (void); |
16 | 17 | ||
17 | #define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs) | 18 | #define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs) |
diff --git a/arch/arm/mach-lh7a40x/irq-lh7a404.c b/arch/arm/mach-lh7a40x/irq-lh7a404.c index e902e3d87da4..2685a81454d2 100644 --- a/arch/arm/mach-lh7a40x/irq-lh7a404.c +++ b/arch/arm/mach-lh7a40x/irq-lh7a404.c | |||
@@ -28,13 +28,17 @@ | |||
28 | 28 | ||
29 | static unsigned char irq_pri_vic1[] = { | 29 | static unsigned char irq_pri_vic1[] = { |
30 | #if defined (USE_PRIORITIES) | 30 | #if defined (USE_PRIORITIES) |
31 | IRQ_GPIO3INTR, | 31 | IRQ_GPIO3INTR, /* CPLD */ |
32 | IRQ_DMAM2P4, IRQ_DMAM2P5, /* AC97 */ | ||
32 | #endif | 33 | #endif |
33 | }; | 34 | }; |
34 | static unsigned char irq_pri_vic2[] = { | 35 | static unsigned char irq_pri_vic2[] = { |
35 | #if defined (USE_PRIORITIES) | 36 | #if defined (USE_PRIORITIES) |
36 | IRQ_T3UI, IRQ_GPIO7INTR, | 37 | IRQ_T3UI, /* Timer */ |
38 | IRQ_GPIO7INTR, /* CPLD */ | ||
37 | IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR, | 39 | IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR, |
40 | IRQ_LCDINTR, /* LCD */ | ||
41 | IRQ_TSCINTR, /* ADC/Touchscreen */ | ||
38 | #endif | 42 | #endif |
39 | }; | 43 | }; |
40 | 44 | ||
@@ -98,10 +102,19 @@ static struct irqchip lh7a404_gpio_vic2_chip = { | |||
98 | 102 | ||
99 | /* IRQ initialization */ | 103 | /* IRQ initialization */ |
100 | 104 | ||
105 | #if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404) | ||
106 | extern void* branch_irq_lh7a400; | ||
107 | #endif | ||
108 | |||
101 | void __init lh7a404_init_irq (void) | 109 | void __init lh7a404_init_irq (void) |
102 | { | 110 | { |
103 | int irq; | 111 | int irq; |
104 | 112 | ||
113 | #if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404) | ||
114 | #define NOP 0xe1a00000 /* mov r0, r0 */ | ||
115 | branch_irq_lh7a400 = NOP; | ||
116 | #endif | ||
117 | |||
105 | VIC1_INTENCLR = 0xffffffff; | 118 | VIC1_INTENCLR = 0xffffffff; |
106 | VIC2_INTENCLR = 0xffffffff; | 119 | VIC2_INTENCLR = 0xffffffff; |
107 | VIC1_INTSEL = 0; /* All IRQs */ | 120 | VIC1_INTSEL = 0; /* All IRQs */ |
diff --git a/arch/arm/mach-lh7a40x/lcd-panel.h b/arch/arm/mach-lh7a40x/lcd-panel.h new file mode 100644 index 000000000000..4fb2efc4950f --- /dev/null +++ b/arch/arm/mach-lh7a40x/lcd-panel.h | |||
@@ -0,0 +1,346 @@ | |||
1 | /* lcd-panel.h | ||
2 | $Id$ | ||
3 | |||
4 | written by Marc Singer | ||
5 | 18 Jul 2005 | ||
6 | |||
7 | Copyright (C) 2005 Marc Singer | ||
8 | |||
9 | ----------- | ||
10 | DESCRIPTION | ||
11 | ----------- | ||
12 | |||
13 | Only one panel may be defined at a time. | ||
14 | |||
15 | The pixel clock is calculated to be no greater than the target. | ||
16 | |||
17 | Each timing value is accompanied by a specification comment. | ||
18 | |||
19 | UNITS/MIN/TYP/MAX | ||
20 | |||
21 | Most of the units will be in clocks. | ||
22 | |||
23 | USE_RGB555 | ||
24 | |||
25 | Define this macro to configure the AMBA LCD controller to use an | ||
26 | RGB555 encoding for the pels instead of the normal RGB565. | ||
27 | |||
28 | LPD9520, LPD79524, LPD7A400, LPD7A404-10, LPD7A404-11 | ||
29 | |||
30 | These boards are best approximated by 555 for all panels. Some | ||
31 | can use an extra low-order bit of blue in bit 16 of the color | ||
32 | value, but we don't have a way to communicate this non-linear | ||
33 | mapping to the kernel. | ||
34 | |||
35 | */ | ||
36 | |||
37 | #if !defined (__LCD_PANEL_H__) | ||
38 | # define __LCD_PANEL_H__ | ||
39 | |||
40 | #if defined (MACH_LPD79520)\ | ||
41 | || defined (MACH_LPD79524)\ | ||
42 | || defined (MACH_LPD7A400)\ | ||
43 | || defined (MACH_LPD7A404) | ||
44 | # define USE_RGB555 | ||
45 | #endif | ||
46 | |||
47 | struct clcd_panel_extra { | ||
48 | unsigned int hrmode; | ||
49 | unsigned int clsen; | ||
50 | unsigned int spsen; | ||
51 | unsigned int pcdel; | ||
52 | unsigned int revdel; | ||
53 | unsigned int lpdel; | ||
54 | unsigned int spldel; | ||
55 | unsigned int pc2del; | ||
56 | }; | ||
57 | |||
58 | #define NS_TO_CLOCK(ns,c) ((((ns)*((c)/1000) + (1000000 - 1))/1000000)) | ||
59 | #define CLOCK_TO_DIV(e,c) (((c) + (e) - 1)/(e)) | ||
60 | |||
61 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT | ||
62 | |||
63 | /* Logic Product Development LCD 3.5" QVGA HRTFT -10 */ | ||
64 | /* Sharp PN LQ035Q7DB02 w/HRTFT controller chip */ | ||
65 | |||
66 | #define PIX_CLOCK_TARGET (6800000) | ||
67 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
68 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
69 | |||
70 | static struct clcd_panel lcd_panel = { | ||
71 | .mode = { | ||
72 | .name = "3.5in QVGA (LQ035Q7DB02)", | ||
73 | .xres = 240, | ||
74 | .yres = 320, | ||
75 | .pixclock = PIX_CLOCK, | ||
76 | .left_margin = 16, | ||
77 | .right_margin = 21, | ||
78 | .upper_margin = 8, // line/8/8/8 | ||
79 | .lower_margin = 5, | ||
80 | .hsync_len = 61, | ||
81 | .vsync_len = NS_TO_CLOCK (60, PIX_CLOCK), | ||
82 | .vmode = FB_VMODE_NONINTERLACED, | ||
83 | }, | ||
84 | .width = -1, | ||
85 | .height = -1, | ||
86 | .tim2 = TIM2_IPC | (PIX_CLOCK_DIVIDER - 2), | ||
87 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
88 | .bpp = 16, | ||
89 | }; | ||
90 | |||
91 | #define HAS_LCD_PANEL_EXTRA | ||
92 | |||
93 | static struct clcd_panel_extra lcd_panel_extra = { | ||
94 | .hrmode = 1, | ||
95 | .clsen = 1, | ||
96 | .spsen = 1, | ||
97 | .pcdel = 8, | ||
98 | .revdel = 7, | ||
99 | .lpdel = 13, | ||
100 | .spldel = 77, | ||
101 | .pc2del = 208, | ||
102 | }; | ||
103 | |||
104 | #endif | ||
105 | |||
106 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 | ||
107 | |||
108 | /* Logic Product Development LCD 5.7" QVGA -10 */ | ||
109 | /* Sharp PN LQ057Q3DC02 */ | ||
110 | /* QVGA mode, V/Q=LOW */ | ||
111 | |||
112 | /* From Sharp on 2006.1.3. I believe some of the values are incorrect | ||
113 | * based on the datasheet. | ||
114 | |||
115 | Timing0 TIMING1 TIMING2 CONTROL | ||
116 | 0x140A0C4C 0x080504EF 0x013F380D 0x00000829 | ||
117 | HBP= 20 VBP= 8 BCD= 0 | ||
118 | HFP= 10 VFP= 5 CPL=319 | ||
119 | HSW= 12 VSW= 1 IOE= 0 | ||
120 | PPL= 19 LPP=239 IPC= 1 | ||
121 | IHS= 1 | ||
122 | IVS= 1 | ||
123 | ACB= 0 | ||
124 | CSEL= 0 | ||
125 | PCD= 13 | ||
126 | |||
127 | */ | ||
128 | |||
129 | /* The full horozontal cycle (Th) is clock/360/400/450. */ | ||
130 | /* The full vertical cycle (Tv) is line/251/262/280. */ | ||
131 | |||
132 | #define PIX_CLOCK_TARGET (6300000) /* -/6.3/7 MHz */ | ||
133 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
134 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
135 | |||
136 | static struct clcd_panel lcd_panel = { | ||
137 | .mode = { | ||
138 | .name = "5.7in QVGA (LQ057Q3DC02)", | ||
139 | .xres = 320, | ||
140 | .yres = 240, | ||
141 | .pixclock = PIX_CLOCK, | ||
142 | .left_margin = 11, | ||
143 | .right_margin = 400-11-320-2, | ||
144 | .upper_margin = 7, // line/7/7/7 | ||
145 | .lower_margin = 262-7-240-2, | ||
146 | .hsync_len = 2, // clk/2/96/200 | ||
147 | .vsync_len = 2, // line/2/-/34 | ||
148 | .vmode = FB_VMODE_NONINTERLACED, | ||
149 | }, | ||
150 | .width = -1, | ||
151 | .height = -1, | ||
152 | .tim2 = TIM2_IHS | TIM2_IVS | ||
153 | | (PIX_CLOCK_DIVIDER - 2), | ||
154 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
155 | .bpp = 16, | ||
156 | }; | ||
157 | |||
158 | #endif | ||
159 | |||
160 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ64D343 | ||
161 | |||
162 | /* Logic Product Development LCD 6.4" VGA -10 */ | ||
163 | /* Sharp PN LQ64D343 */ | ||
164 | |||
165 | /* The full horozontal cycle (Th) is clock/750/800/900. */ | ||
166 | /* The full vertical cycle (Tv) is line/515/525/560. */ | ||
167 | |||
168 | #define PIX_CLOCK_TARGET (28330000) | ||
169 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
170 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
171 | |||
172 | static struct clcd_panel lcd_panel = { | ||
173 | .mode = { | ||
174 | .name = "6.4in QVGA (LQ64D343)", | ||
175 | .xres = 640, | ||
176 | .yres = 480, | ||
177 | .pixclock = PIX_CLOCK, | ||
178 | .left_margin = 32, | ||
179 | .right_margin = 800-32-640-96, | ||
180 | .upper_margin = 32, // line/34/34/34 | ||
181 | .lower_margin = 540-32-480-2, | ||
182 | .hsync_len = 96, // clk/2/96/200 | ||
183 | .vsync_len = 2, // line/2/-/34 | ||
184 | .vmode = FB_VMODE_NONINTERLACED, | ||
185 | }, | ||
186 | .width = -1, | ||
187 | .height = -1, | ||
188 | .tim2 = TIM2_IHS | TIM2_IVS | ||
189 | | (PIX_CLOCK_DIVIDER - 2), | ||
190 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
191 | .bpp = 16, | ||
192 | }; | ||
193 | |||
194 | #endif | ||
195 | |||
196 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ10D368 | ||
197 | |||
198 | /* Logic Product Development LCD 10.4" VGA -10 */ | ||
199 | /* Sharp PN LQ10D368 */ | ||
200 | |||
201 | #define PIX_CLOCK_TARGET (28330000) | ||
202 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
203 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
204 | |||
205 | static struct clcd_panel lcd_panel = { | ||
206 | .mode = { | ||
207 | .name = "10.4in VGA (LQ10D368)", | ||
208 | .xres = 640, | ||
209 | .yres = 480, | ||
210 | .pixclock = PIX_CLOCK, | ||
211 | .left_margin = 21, | ||
212 | .right_margin = 15, | ||
213 | .upper_margin = 34, | ||
214 | .lower_margin = 5, | ||
215 | .hsync_len = 96, | ||
216 | .vsync_len = 16, | ||
217 | .vmode = FB_VMODE_NONINTERLACED, | ||
218 | }, | ||
219 | .width = -1, | ||
220 | .height = -1, | ||
221 | .tim2 = TIM2_IHS | TIM2_IVS | ||
222 | | (PIX_CLOCK_DIVIDER - 2), | ||
223 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
224 | .bpp = 16, | ||
225 | }; | ||
226 | |||
227 | #endif | ||
228 | |||
229 | #if defined CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 | ||
230 | |||
231 | /* Logic Product Development LCD 12.1" SVGA -10 */ | ||
232 | /* Sharp PN LQ121S1DG41, was LQ121S1DG31 */ | ||
233 | |||
234 | /* Note that with a 99993900 Hz HCLK, it is not possible to hit the | ||
235 | * target clock frequency range of 35MHz to 42MHz. */ | ||
236 | |||
237 | /* If the target pixel clock is substantially lower than the panel | ||
238 | * spec, this is done to prevent the LCD display from glitching when | ||
239 | * the CPU is under load. A pixel clock higher than 25MHz | ||
240 | * (empirically determined) will compete with the CPU for bus cycles | ||
241 | * for the Ethernet chip. However, even a pixel clock of 10MHz | ||
242 | * competes with Compact Flash interface during some operations | ||
243 | * (fdisk, e2fsck). And, at that speed the display may have a visible | ||
244 | * flicker. */ | ||
245 | |||
246 | /* The full horozontal cycle (Th) is clock/832/1056/1395. */ | ||
247 | |||
248 | #define PIX_CLOCK_TARGET (20000000) | ||
249 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
250 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
251 | |||
252 | static struct clcd_panel lcd_panel = { | ||
253 | .mode = { | ||
254 | .name = "12.1in SVGA (LQ121S1DG41)", | ||
255 | .xres = 800, | ||
256 | .yres = 600, | ||
257 | .pixclock = PIX_CLOCK, | ||
258 | .left_margin = 89, // ns/5/-/(1/PIX_CLOCK)-10 | ||
259 | .right_margin = 1056-800-89-128, | ||
260 | .upper_margin = 23, // line/23/23/23 | ||
261 | .lower_margin = 44, | ||
262 | .hsync_len = 128, // clk/2/128/200 | ||
263 | .vsync_len = 4, // line/2/4/6 | ||
264 | .vmode = FB_VMODE_NONINTERLACED, | ||
265 | }, | ||
266 | .width = -1, | ||
267 | .height = -1, | ||
268 | .tim2 = TIM2_IHS | TIM2_IVS | ||
269 | | (PIX_CLOCK_DIVIDER - 2), | ||
270 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
271 | .bpp = 16, | ||
272 | }; | ||
273 | |||
274 | #endif | ||
275 | |||
276 | #if defined CONFIG_FB_ARMCLCD_HITACHI | ||
277 | |||
278 | /* Hitachi*/ | ||
279 | /* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */ | ||
280 | |||
281 | #define PIX_CLOCK_TARGET (49000000) | ||
282 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
283 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
284 | |||
285 | static struct clcd_panel lcd_panel = { | ||
286 | .mode = { | ||
287 | .name = "Hitachi 800x480", | ||
288 | .xres = 800, | ||
289 | .yres = 480, | ||
290 | .pixclock = PIX_CLOCK, | ||
291 | .left_margin = 88, | ||
292 | .right_margin = 40, | ||
293 | .upper_margin = 32, | ||
294 | .lower_margin = 11, | ||
295 | .hsync_len = 128, | ||
296 | .vsync_len = 2, | ||
297 | .vmode = FB_VMODE_NONINTERLACED, | ||
298 | }, | ||
299 | .width = -1, | ||
300 | .height = -1, | ||
301 | .tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS | ||
302 | | (PIX_CLOCK_DIVIDER - 2), | ||
303 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
304 | .bpp = 16, | ||
305 | }; | ||
306 | |||
307 | #endif | ||
308 | |||
309 | |||
310 | #if defined CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE | ||
311 | |||
312 | /* AU Optotronics A070VW01 7.0 Wide Screen color Display*/ | ||
313 | /* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */ | ||
314 | |||
315 | #define PIX_CLOCK_TARGET (10000000) | ||
316 | #define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK) | ||
317 | #define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER) | ||
318 | |||
319 | static struct clcd_panel lcd_panel = { | ||
320 | .mode = { | ||
321 | .name = "7.0in Wide (A070VW01)", | ||
322 | .xres = 480, | ||
323 | .yres = 234, | ||
324 | .pixclock = PIX_CLOCK, | ||
325 | .left_margin = 30, | ||
326 | .right_margin = 25, | ||
327 | .upper_margin = 14, | ||
328 | .lower_margin = 12, | ||
329 | .hsync_len = 100, | ||
330 | .vsync_len = 1, | ||
331 | .vmode = FB_VMODE_NONINTERLACED, | ||
332 | }, | ||
333 | .width = -1, | ||
334 | .height = -1, | ||
335 | .tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS | ||
336 | | (PIX_CLOCK_DIVIDER - 2), | ||
337 | .cntl = CNTL_LCDTFT | CNTL_WATERMARK, | ||
338 | .bpp = 16, | ||
339 | }; | ||
340 | |||
341 | #endif | ||
342 | |||
343 | #undef NS_TO_CLOCK | ||
344 | #undef CLOCK_TO_DIV | ||
345 | |||
346 | #endif /* __LCD_PANEL_H__ */ | ||
diff --git a/arch/arm/mach-lh7a40x/ssp-cpld.c b/arch/arm/mach-lh7a40x/ssp-cpld.c new file mode 100644 index 000000000000..a10830186dac --- /dev/null +++ b/arch/arm/mach-lh7a40x/ssp-cpld.c | |||
@@ -0,0 +1,343 @@ | |||
1 | /* arch/arm/mach-lh7a40x/ssp-cpld.c | ||
2 | * | ||
3 | * Copyright (C) 2004,2005 Marc Singer | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * SSP/SPI driver for the CardEngine CPLD. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | /* NOTES | ||
14 | ----- | ||
15 | |||
16 | o *** This driver is cribbed from the 7952x implementation. | ||
17 | Some comments may not apply. | ||
18 | |||
19 | o This driver contains sufficient logic to control either the | ||
20 | serial EEPROMs or the audio codec. It is included in the kernel | ||
21 | to support the codec. The EEPROMs are really the responsibility | ||
22 | of the boot loader and should probably be left alone. | ||
23 | |||
24 | o The code must be augmented to cope with multiple, simultaneous | ||
25 | clients. | ||
26 | o The audio codec writes to the codec chip whenever playback | ||
27 | starts. | ||
28 | o The touchscreen driver writes to the ads chip every time it | ||
29 | samples. | ||
30 | o The audio codec must write 16 bits, but the touch chip writes | ||
31 | are 8 bits long. | ||
32 | o We need to be able to keep these configurations separate while | ||
33 | simultaneously active. | ||
34 | |||
35 | */ | ||
36 | |||
37 | #include <linux/module.h> | ||
38 | #include <linux/kernel.h> | ||
39 | //#include <linux/sched.h> | ||
40 | #include <linux/errno.h> | ||
41 | #include <linux/interrupt.h> | ||
42 | //#include <linux/ioport.h> | ||
43 | #include <linux/init.h> | ||
44 | #include <linux/delay.h> | ||
45 | #include <linux/spinlock.h> | ||
46 | |||
47 | #include <asm/io.h> | ||
48 | #include <asm/irq.h> | ||
49 | #include <asm/hardware.h> | ||
50 | |||
51 | #include <asm/arch/ssp.h> | ||
52 | |||
53 | //#define TALK | ||
54 | |||
55 | #if defined (TALK) | ||
56 | #define PRINTK(f...) printk (f) | ||
57 | #else | ||
58 | #define PRINTK(f...) do {} while (0) | ||
59 | #endif | ||
60 | |||
61 | #if defined (CONFIG_ARCH_LH7A400) | ||
62 | # define CPLD_SPID __REGP16(CPLD06_VIRT) /* SPI data */ | ||
63 | # define CPLD_SPIC __REGP16(CPLD08_VIRT) /* SPI control */ | ||
64 | # define CPLD_SPIC_CS_CODEC (1<<0) | ||
65 | # define CPLD_SPIC_CS_TOUCH (1<<1) | ||
66 | # define CPLD_SPIC_WRITE (0<<2) | ||
67 | # define CPLD_SPIC_READ (1<<2) | ||
68 | # define CPLD_SPIC_DONE (1<<3) /* r/o */ | ||
69 | # define CPLD_SPIC_LOAD (1<<4) | ||
70 | # define CPLD_SPIC_START (1<<4) | ||
71 | # define CPLD_SPIC_LOADED (1<<5) /* r/o */ | ||
72 | #endif | ||
73 | |||
74 | #define CPLD_SPI __REGP16(CPLD0A_VIRT) /* SPI operation */ | ||
75 | #define CPLD_SPI_CS_EEPROM (1<<3) | ||
76 | #define CPLD_SPI_SCLK (1<<2) | ||
77 | #define CPLD_SPI_TX_SHIFT (1) | ||
78 | #define CPLD_SPI_TX (1<<CPLD_SPI_TX_SHIFT) | ||
79 | #define CPLD_SPI_RX_SHIFT (0) | ||
80 | #define CPLD_SPI_RX (1<<CPLD_SPI_RX_SHIFT) | ||
81 | |||
82 | /* *** FIXME: these timing values are substantially larger than the | ||
83 | *** chip requires. We may implement an nsleep () function. */ | ||
84 | #define T_SKH 1 /* Clock time high (us) */ | ||
85 | #define T_SKL 1 /* Clock time low (us) */ | ||
86 | #define T_CS 1 /* Minimum chip select low time (us) */ | ||
87 | #define T_CSS 1 /* Minimum chip select setup time (us) */ | ||
88 | #define T_DIS 1 /* Data setup time (us) */ | ||
89 | |||
90 | /* EEPROM SPI bits */ | ||
91 | #define P_START (1<<9) | ||
92 | #define P_WRITE (1<<7) | ||
93 | #define P_READ (2<<7) | ||
94 | #define P_ERASE (3<<7) | ||
95 | #define P_EWDS (0<<7) | ||
96 | #define P_WRAL (0<<7) | ||
97 | #define P_ERAL (0<<7) | ||
98 | #define P_EWEN (0<<7) | ||
99 | #define P_A_EWDS (0<<5) | ||
100 | #define P_A_WRAL (1<<5) | ||
101 | #define P_A_ERAL (2<<5) | ||
102 | #define P_A_EWEN (3<<5) | ||
103 | |||
104 | struct ssp_configuration { | ||
105 | int device; | ||
106 | int mode; | ||
107 | int speed; | ||
108 | int frame_size_write; | ||
109 | int frame_size_read; | ||
110 | }; | ||
111 | |||
112 | static struct ssp_configuration ssp_configuration; | ||
113 | static spinlock_t ssp_lock; | ||
114 | |||
115 | static void enable_cs (void) | ||
116 | { | ||
117 | switch (ssp_configuration.device) { | ||
118 | case DEVICE_EEPROM: | ||
119 | CPLD_SPI |= CPLD_SPI_CS_EEPROM; | ||
120 | break; | ||
121 | } | ||
122 | udelay (T_CSS); | ||
123 | } | ||
124 | |||
125 | static void disable_cs (void) | ||
126 | { | ||
127 | switch (ssp_configuration.device) { | ||
128 | case DEVICE_EEPROM: | ||
129 | CPLD_SPI &= ~CPLD_SPI_CS_EEPROM; | ||
130 | break; | ||
131 | } | ||
132 | udelay (T_CS); | ||
133 | } | ||
134 | |||
135 | static void pulse_clock (void) | ||
136 | { | ||
137 | CPLD_SPI |= CPLD_SPI_SCLK; | ||
138 | udelay (T_SKH); | ||
139 | CPLD_SPI &= ~CPLD_SPI_SCLK; | ||
140 | udelay (T_SKL); | ||
141 | } | ||
142 | |||
143 | |||
144 | /* execute_spi_command | ||
145 | |||
146 | sends an spi command to a device. It first sends cwrite bits from | ||
147 | v. If cread is greater than zero it will read cread bits | ||
148 | (discarding the leading 0 bit) and return them. If cread is less | ||
149 | than zero it will check for completetion status and return 0 on | ||
150 | success or -1 on timeout. If cread is zero it does nothing other | ||
151 | than sending the command. | ||
152 | |||
153 | On the LPD7A400, we can only read or write multiples of 8 bits on | ||
154 | the codec and the touch screen device. Here, we round up. | ||
155 | |||
156 | */ | ||
157 | |||
158 | static int execute_spi_command (int v, int cwrite, int cread) | ||
159 | { | ||
160 | unsigned long l = 0; | ||
161 | |||
162 | #if defined (CONFIG_MACH_LPD7A400) | ||
163 | /* The codec and touch devices cannot be bit-banged. Instead, | ||
164 | * the CPLD provides an eight-bit shift register and a crude | ||
165 | * interface. */ | ||
166 | if ( ssp_configuration.device == DEVICE_CODEC | ||
167 | || ssp_configuration.device == DEVICE_TOUCH) { | ||
168 | int select = 0; | ||
169 | |||
170 | PRINTK ("spi(%d %d.%d) 0x%04x", | ||
171 | ssp_configuration.device, cwrite, cread, | ||
172 | v); | ||
173 | #if defined (TALK) | ||
174 | if (ssp_configuration.device == DEVICE_CODEC) | ||
175 | PRINTK (" 0x%03x -> %2d", v & 0x1ff, (v >> 9) & 0x7f); | ||
176 | #endif | ||
177 | PRINTK ("\n"); | ||
178 | |||
179 | if (ssp_configuration.device == DEVICE_CODEC) | ||
180 | select = CPLD_SPIC_CS_CODEC; | ||
181 | if (ssp_configuration.device == DEVICE_TOUCH) | ||
182 | select = CPLD_SPIC_CS_TOUCH; | ||
183 | if (cwrite) { | ||
184 | for (cwrite = (cwrite + 7)/8; cwrite-- > 0; ) { | ||
185 | CPLD_SPID = (v >> (8*cwrite)) & 0xff; | ||
186 | CPLD_SPIC = select | CPLD_SPIC_LOAD; | ||
187 | while (!(CPLD_SPIC & CPLD_SPIC_LOADED)) | ||
188 | ; | ||
189 | CPLD_SPIC = select; | ||
190 | while (!(CPLD_SPIC & CPLD_SPIC_DONE)) | ||
191 | ; | ||
192 | } | ||
193 | v = 0; | ||
194 | } | ||
195 | if (cread) { | ||
196 | mdelay (2); /* *** FIXME: required by ads7843? */ | ||
197 | v = 0; | ||
198 | for (cread = (cread + 7)/8; cread-- > 0;) { | ||
199 | CPLD_SPID = 0; | ||
200 | CPLD_SPIC = select | CPLD_SPIC_READ | ||
201 | | CPLD_SPIC_START; | ||
202 | while (!(CPLD_SPIC & CPLD_SPIC_LOADED)) | ||
203 | ; | ||
204 | CPLD_SPIC = select | CPLD_SPIC_READ; | ||
205 | while (!(CPLD_SPIC & CPLD_SPIC_DONE)) | ||
206 | ; | ||
207 | v = (v << 8) | CPLD_SPID; | ||
208 | } | ||
209 | } | ||
210 | return v; | ||
211 | } | ||
212 | #endif | ||
213 | |||
214 | PRINTK ("spi(%d) 0x%04x -> 0x%x\r\n", ssp_configuration.device, | ||
215 | v & 0x1ff, (v >> 9) & 0x7f); | ||
216 | |||
217 | enable_cs (); | ||
218 | |||
219 | v <<= CPLD_SPI_TX_SHIFT; /* Correction for position of SPI_TX bit */ | ||
220 | while (cwrite--) { | ||
221 | CPLD_SPI | ||
222 | = (CPLD_SPI & ~CPLD_SPI_TX) | ||
223 | | ((v >> cwrite) & CPLD_SPI_TX); | ||
224 | udelay (T_DIS); | ||
225 | pulse_clock (); | ||
226 | } | ||
227 | |||
228 | if (cread < 0) { | ||
229 | int delay = 10; | ||
230 | disable_cs (); | ||
231 | udelay (1); | ||
232 | enable_cs (); | ||
233 | |||
234 | l = -1; | ||
235 | do { | ||
236 | if (CPLD_SPI & CPLD_SPI_RX) { | ||
237 | l = 0; | ||
238 | break; | ||
239 | } | ||
240 | } while (udelay (1), --delay); | ||
241 | } | ||
242 | else | ||
243 | /* We pulse the clock before the data to skip the leading zero. */ | ||
244 | while (cread-- > 0) { | ||
245 | pulse_clock (); | ||
246 | l = (l<<1) | ||
247 | | (((CPLD_SPI & CPLD_SPI_RX) | ||
248 | >> CPLD_SPI_RX_SHIFT) & 0x1); | ||
249 | } | ||
250 | |||
251 | disable_cs (); | ||
252 | return l; | ||
253 | } | ||
254 | |||
255 | static int ssp_init (void) | ||
256 | { | ||
257 | spin_lock_init (&ssp_lock); | ||
258 | memset (&ssp_configuration, 0, sizeof (ssp_configuration)); | ||
259 | return 0; | ||
260 | } | ||
261 | |||
262 | |||
263 | /* ssp_chip_select | ||
264 | |||
265 | drops the chip select line for the CPLD shift-register controlled | ||
266 | devices. It doesn't enable chip | ||
267 | |||
268 | */ | ||
269 | |||
270 | static void ssp_chip_select (int enable) | ||
271 | { | ||
272 | #if defined (CONFIG_MACH_LPD7A400) | ||
273 | int select; | ||
274 | |||
275 | if (ssp_configuration.device == DEVICE_CODEC) | ||
276 | select = CPLD_SPIC_CS_CODEC; | ||
277 | else if (ssp_configuration.device == DEVICE_TOUCH) | ||
278 | select = CPLD_SPIC_CS_TOUCH; | ||
279 | else | ||
280 | return; | ||
281 | |||
282 | if (enable) | ||
283 | CPLD_SPIC = select; | ||
284 | else | ||
285 | CPLD_SPIC = 0; | ||
286 | #endif | ||
287 | } | ||
288 | |||
289 | static void ssp_acquire (void) | ||
290 | { | ||
291 | spin_lock (&ssp_lock); | ||
292 | } | ||
293 | |||
294 | static void ssp_release (void) | ||
295 | { | ||
296 | ssp_chip_select (0); /* just in case */ | ||
297 | spin_unlock (&ssp_lock); | ||
298 | } | ||
299 | |||
300 | static int ssp_configure (int device, int mode, int speed, | ||
301 | int frame_size_write, int frame_size_read) | ||
302 | { | ||
303 | ssp_configuration.device = device; | ||
304 | ssp_configuration.mode = mode; | ||
305 | ssp_configuration.speed = speed; | ||
306 | ssp_configuration.frame_size_write = frame_size_write; | ||
307 | ssp_configuration.frame_size_read = frame_size_read; | ||
308 | |||
309 | return 0; | ||
310 | } | ||
311 | |||
312 | static int ssp_read (void) | ||
313 | { | ||
314 | return execute_spi_command (0, 0, ssp_configuration.frame_size_read); | ||
315 | } | ||
316 | |||
317 | static int ssp_write (u16 data) | ||
318 | { | ||
319 | execute_spi_command (data, ssp_configuration.frame_size_write, 0); | ||
320 | return 0; | ||
321 | } | ||
322 | |||
323 | static int ssp_write_read (u16 data) | ||
324 | { | ||
325 | return execute_spi_command (data, ssp_configuration.frame_size_write, | ||
326 | ssp_configuration.frame_size_read); | ||
327 | } | ||
328 | |||
329 | struct ssp_driver lh7a40x_cpld_ssp_driver = { | ||
330 | .init = ssp_init, | ||
331 | .acquire = ssp_acquire, | ||
332 | .release = ssp_release, | ||
333 | .configure = ssp_configure, | ||
334 | .chip_select = ssp_chip_select, | ||
335 | .read = ssp_read, | ||
336 | .write = ssp_write, | ||
337 | .write_read = ssp_write_read, | ||
338 | }; | ||
339 | |||
340 | |||
341 | MODULE_AUTHOR("Marc Singer"); | ||
342 | MODULE_DESCRIPTION("LPD7A40X CPLD SPI driver"); | ||
343 | MODULE_LICENSE("GPL"); | ||
diff --git a/arch/arm/mach-lh7a40x/time.c b/arch/arm/mach-lh7a40x/time.c index be377e331f25..ef9af375fcc4 100644 --- a/arch/arm/mach-lh7a40x/time.c +++ b/arch/arm/mach-lh7a40x/time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-lh7a40x/time.c | 2 | * arch/arm/mach-lh7a40x/time.c |
3 | * | 3 | * |
4 | * Copyright (C) 2004 Logic Product Development | 4 | * Copyright (C) 2004 Logic Product Development |
@@ -57,7 +57,7 @@ static struct irqaction lh7a40x_timer_irq = { | |||
57 | .handler = lh7a40x_timer_interrupt, | 57 | .handler = lh7a40x_timer_interrupt, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static void __init lh7a40x_timer_init(void) | 60 | static void __init lh7a40x_timer_init (void) |
61 | { | 61 | { |
62 | /* Stop/disable all timers */ | 62 | /* Stop/disable all timers */ |
63 | TIMER_CONTROL1 = 0; | 63 | TIMER_CONTROL1 = 0; |
diff --git a/arch/arm/mach-netx/Kconfig b/arch/arm/mach-netx/Kconfig new file mode 100644 index 000000000000..3d90ef19be2b --- /dev/null +++ b/arch/arm/mach-netx/Kconfig | |||
@@ -0,0 +1,24 @@ | |||
1 | menu "NetX Implementations" | ||
2 | depends on ARCH_NETX | ||
3 | |||
4 | config MACH_NXDKN | ||
5 | bool "Enable Hilscher nxdkn Eval Board support" | ||
6 | depends on ARCH_NETX | ||
7 | help | ||
8 | Board support for the Hilscher NetX Eval Board | ||
9 | |||
10 | config MACH_NXDB500 | ||
11 | bool "Enable Hilscher nxdb500 Eval Board support" | ||
12 | depends on ARCH_NETX | ||
13 | select ARM_AMBA | ||
14 | help | ||
15 | Board support for the Hilscher nxdb500 Eval Board | ||
16 | |||
17 | config MACH_NXEB500HMI | ||
18 | bool "Enable Hilscher nxeb500hmi Eval Board support" | ||
19 | depends on ARCH_NETX | ||
20 | select ARM_AMBA | ||
21 | help | ||
22 | Board support for the Hilscher nxeb500hmi Eval Board | ||
23 | |||
24 | endmenu | ||
diff --git a/arch/arm/mach-netx/Makefile b/arch/arm/mach-netx/Makefile new file mode 100644 index 000000000000..18785ff37657 --- /dev/null +++ b/arch/arm/mach-netx/Makefile | |||
@@ -0,0 +1,15 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | # Note! Dependencies are done automagically by 'make dep', which also | ||
5 | # removes any old dependencies. DON'T put your own dependencies here | ||
6 | # unless it's something special (ie not a .c file). | ||
7 | |||
8 | # Object file lists. | ||
9 | |||
10 | obj-y += time.o generic.o pfifo.o xc.o | ||
11 | |||
12 | # Specific board support | ||
13 | obj-$(CONFIG_MACH_NXDKN) += nxdkn.o | ||
14 | obj-$(CONFIG_MACH_NXDB500) += nxdb500.o fb.o | ||
15 | obj-$(CONFIG_MACH_NXEB500HMI) += nxeb500hmi.o fb.o | ||
diff --git a/arch/arm/mach-netx/Makefile.boot b/arch/arm/mach-netx/Makefile.boot new file mode 100644 index 000000000000..b81cf6aff0ac --- /dev/null +++ b/arch/arm/mach-netx/Makefile.boot | |||
@@ -0,0 +1,2 @@ | |||
1 | zreladdr-y := 0x80008000 | ||
2 | |||
diff --git a/arch/arm/mach-netx/fb.c b/arch/arm/mach-netx/fb.c new file mode 100644 index 000000000000..ef0ab6115c0b --- /dev/null +++ b/arch/arm/mach-netx/fb.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/fb.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/device.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/amba/bus.h> | ||
24 | #include <linux/amba/clcd.h> | ||
25 | |||
26 | #include <asm/arch/netx-regs.h> | ||
27 | #include <asm/hardware.h> | ||
28 | |||
29 | struct clk {}; | ||
30 | |||
31 | static struct clk fb_clk; | ||
32 | |||
33 | static struct clcd_panel *netx_panel; | ||
34 | |||
35 | void netx_clcd_enable(struct clcd_fb *fb) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | int netx_clcd_setup(struct clcd_fb *fb) | ||
40 | { | ||
41 | dma_addr_t dma; | ||
42 | |||
43 | fb->panel = netx_panel; | ||
44 | |||
45 | fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, 1024*1024, | ||
46 | &dma, GFP_KERNEL); | ||
47 | if (!fb->fb.screen_base) { | ||
48 | printk(KERN_ERR "CLCD: unable to map framebuffer\n"); | ||
49 | return -ENOMEM; | ||
50 | } | ||
51 | |||
52 | fb->fb.fix.smem_start = dma; | ||
53 | fb->fb.fix.smem_len = 1024*1024; | ||
54 | |||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) | ||
59 | { | ||
60 | return dma_mmap_writecombine(&fb->dev->dev, vma, | ||
61 | fb->fb.screen_base, | ||
62 | fb->fb.fix.smem_start, | ||
63 | fb->fb.fix.smem_len); | ||
64 | } | ||
65 | |||
66 | void netx_clcd_remove(struct clcd_fb *fb) | ||
67 | { | ||
68 | dma_free_writecombine(&fb->dev->dev, fb->fb.fix.smem_len, | ||
69 | fb->fb.screen_base, fb->fb.fix.smem_start); | ||
70 | } | ||
71 | |||
72 | void clk_disable(struct clk *clk) | ||
73 | { | ||
74 | } | ||
75 | |||
76 | int clk_set_rate(struct clk *clk, unsigned long rate) | ||
77 | { | ||
78 | return 0; | ||
79 | } | ||
80 | |||
81 | int clk_enable(struct clk *clk) | ||
82 | { | ||
83 | return 0; | ||
84 | } | ||
85 | |||
86 | struct clk *clk_get(struct device *dev, const char *id) | ||
87 | { | ||
88 | return &fb_clk; | ||
89 | } | ||
90 | |||
91 | void clk_put(struct clk *clk) | ||
92 | { | ||
93 | } | ||
94 | |||
95 | static struct amba_device fb_device = { | ||
96 | .dev = { | ||
97 | .bus_id = "fb", | ||
98 | .coherent_dma_mask = ~0, | ||
99 | }, | ||
100 | .res = { | ||
101 | .start = 0x00104000, | ||
102 | .end = 0x00104fff, | ||
103 | .flags = IORESOURCE_MEM, | ||
104 | }, | ||
105 | .irq = { NETX_IRQ_LCD, NO_IRQ }, | ||
106 | .periphid = 0x10112400, | ||
107 | }; | ||
108 | |||
109 | int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel) | ||
110 | { | ||
111 | netx_panel = panel; | ||
112 | fb_device.dev.platform_data = board; | ||
113 | return amba_device_register(&fb_device, &iomem_resource); | ||
114 | } | ||
diff --git a/arch/arm/mach-netx/fb.h b/arch/arm/mach-netx/fb.h new file mode 100644 index 000000000000..4919cf33a5f3 --- /dev/null +++ b/arch/arm/mach-netx/fb.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/fb.h | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | void netx_clcd_enable(struct clcd_fb *fb); | ||
21 | int netx_clcd_setup(struct clcd_fb *fb); | ||
22 | int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma); | ||
23 | void netx_clcd_remove(struct clcd_fb *fb); | ||
24 | int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel); | ||
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c new file mode 100644 index 000000000000..af0b13534cfd --- /dev/null +++ b/arch/arm/mach-netx/generic.c | |||
@@ -0,0 +1,193 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/generic.c | ||
3 | * | ||
4 | * Copyright (C) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/device.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/mach/map.h> | ||
27 | #include <asm/hardware/vic.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/arch/netx-regs.h> | ||
30 | #include <asm/mach/irq.h> | ||
31 | |||
32 | static struct map_desc netx_io_desc[] __initdata = { | ||
33 | { | ||
34 | .virtual = NETX_IO_VIRT, | ||
35 | .pfn = __phys_to_pfn(NETX_IO_PHYS), | ||
36 | .length = NETX_IO_SIZE, | ||
37 | .type = MT_DEVICE | ||
38 | } | ||
39 | }; | ||
40 | |||
41 | void __init netx_map_io(void) | ||
42 | { | ||
43 | iotable_init(netx_io_desc, ARRAY_SIZE(netx_io_desc)); | ||
44 | } | ||
45 | |||
46 | static struct resource netx_rtc_resources[] = { | ||
47 | [0] = { | ||
48 | .start = 0x00101200, | ||
49 | .end = 0x00101220, | ||
50 | .flags = IORESOURCE_MEM, | ||
51 | }, | ||
52 | }; | ||
53 | |||
54 | static struct platform_device netx_rtc_device = { | ||
55 | .name = "netx-rtc", | ||
56 | .id = 0, | ||
57 | .num_resources = ARRAY_SIZE(netx_rtc_resources), | ||
58 | .resource = netx_rtc_resources, | ||
59 | }; | ||
60 | |||
61 | static struct platform_device *devices[] __initdata = { | ||
62 | &netx_rtc_device, | ||
63 | }; | ||
64 | |||
65 | #if 0 | ||
66 | #define DEBUG_IRQ(fmt...) printk(fmt) | ||
67 | #else | ||
68 | #define DEBUG_IRQ(fmt...) while (0) {} | ||
69 | #endif | ||
70 | |||
71 | static void | ||
72 | netx_hif_demux_handler(unsigned int irq_unused, struct irqdesc *desc, | ||
73 | struct pt_regs *regs) | ||
74 | { | ||
75 | unsigned int irq = NETX_IRQ_HIF_CHAINED(0); | ||
76 | unsigned int stat; | ||
77 | |||
78 | stat = ((readl(NETX_DPMAS_INT_EN) & | ||
79 | readl(NETX_DPMAS_INT_STAT)) >> 24) & 0x1f; | ||
80 | |||
81 | desc = irq_desc + NETX_IRQ_HIF_CHAINED(0); | ||
82 | |||
83 | while (stat) { | ||
84 | if (stat & 1) { | ||
85 | DEBUG_IRQ("handling irq %d\n", irq); | ||
86 | desc_handle_irq(irq, desc, regs); | ||
87 | } | ||
88 | irq++; | ||
89 | desc++; | ||
90 | stat >>= 1; | ||
91 | } | ||
92 | } | ||
93 | |||
94 | static int | ||
95 | netx_hif_irq_type(unsigned int _irq, unsigned int type) | ||
96 | { | ||
97 | unsigned int val, irq; | ||
98 | |||
99 | val = readl(NETX_DPMAS_IF_CONF1); | ||
100 | |||
101 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
102 | |||
103 | if (type & __IRQT_RISEDGE) { | ||
104 | DEBUG_IRQ("rising edges\n"); | ||
105 | val |= (1 << 26) << irq; | ||
106 | } | ||
107 | if (type & __IRQT_FALEDGE) { | ||
108 | DEBUG_IRQ("falling edges\n"); | ||
109 | val &= ~((1 << 26) << irq); | ||
110 | } | ||
111 | if (type & __IRQT_LOWLVL) { | ||
112 | DEBUG_IRQ("low level\n"); | ||
113 | val &= ~((1 << 26) << irq); | ||
114 | } | ||
115 | if (type & __IRQT_HIGHLVL) { | ||
116 | DEBUG_IRQ("high level\n"); | ||
117 | val |= (1 << 26) << irq; | ||
118 | } | ||
119 | |||
120 | writel(val, NETX_DPMAS_IF_CONF1); | ||
121 | |||
122 | return 0; | ||
123 | } | ||
124 | |||
125 | static void | ||
126 | netx_hif_ack_irq(unsigned int _irq) | ||
127 | { | ||
128 | unsigned int val, irq; | ||
129 | |||
130 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
131 | writel((1 << 24) << irq, NETX_DPMAS_INT_STAT); | ||
132 | |||
133 | val = readl(NETX_DPMAS_INT_EN); | ||
134 | val &= ~((1 << 24) << irq); | ||
135 | writel(val, NETX_DPMAS_INT_EN); | ||
136 | |||
137 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
138 | } | ||
139 | |||
140 | static void | ||
141 | netx_hif_mask_irq(unsigned int _irq) | ||
142 | { | ||
143 | unsigned int val, irq; | ||
144 | |||
145 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
146 | val = readl(NETX_DPMAS_INT_EN); | ||
147 | val &= ~((1 << 24) << irq); | ||
148 | writel(val, NETX_DPMAS_INT_EN); | ||
149 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
150 | } | ||
151 | |||
152 | static void | ||
153 | netx_hif_unmask_irq(unsigned int _irq) | ||
154 | { | ||
155 | unsigned int val, irq; | ||
156 | |||
157 | irq = _irq - NETX_IRQ_HIF_CHAINED(0); | ||
158 | val = readl(NETX_DPMAS_INT_EN); | ||
159 | val |= (1 << 24) << irq; | ||
160 | writel(val, NETX_DPMAS_INT_EN); | ||
161 | DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq); | ||
162 | } | ||
163 | |||
164 | static struct irqchip netx_hif_chip = { | ||
165 | .ack = netx_hif_ack_irq, | ||
166 | .mask = netx_hif_mask_irq, | ||
167 | .unmask = netx_hif_unmask_irq, | ||
168 | .set_type = netx_hif_irq_type, | ||
169 | }; | ||
170 | |||
171 | void __init netx_init_irq(void) | ||
172 | { | ||
173 | int irq; | ||
174 | |||
175 | vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0); | ||
176 | |||
177 | for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) { | ||
178 | set_irq_chip(irq, &netx_hif_chip); | ||
179 | set_irq_handler(irq, do_level_IRQ); | ||
180 | set_irq_flags(irq, IRQF_VALID); | ||
181 | } | ||
182 | |||
183 | writel(NETX_DPMAS_INT_EN_GLB_EN, NETX_DPMAS_INT_EN); | ||
184 | set_irq_chained_handler(NETX_IRQ_HIF, netx_hif_demux_handler); | ||
185 | } | ||
186 | |||
187 | static int __init netx_init(void) | ||
188 | { | ||
189 | return platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
190 | } | ||
191 | |||
192 | subsys_initcall(netx_init); | ||
193 | |||
diff --git a/arch/arm/mach-netx/generic.h b/arch/arm/mach-netx/generic.h new file mode 100644 index 000000000000..ede2d35341c3 --- /dev/null +++ b/arch/arm/mach-netx/generic.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/generic.h | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | extern void __init netx_map_io(void); | ||
21 | extern void __init netx_init_irq(void); | ||
22 | |||
23 | struct sys_timer; | ||
24 | extern struct sys_timer netx_timer; | ||
diff --git a/arch/arm/mach-netx/nxdb500.c b/arch/arm/mach-netx/nxdb500.c new file mode 100644 index 000000000000..e4a133d62846 --- /dev/null +++ b/arch/arm/mach-netx/nxdb500.c | |||
@@ -0,0 +1,210 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxdb500.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | #include "fb.h" | ||
36 | |||
37 | static struct clcd_panel qvga = { | ||
38 | .mode = { | ||
39 | .name = "QVGA", | ||
40 | .refresh = 60, | ||
41 | .xres = 240, | ||
42 | .yres = 320, | ||
43 | .pixclock = 187617, | ||
44 | .left_margin = 6, | ||
45 | .right_margin = 26, | ||
46 | .upper_margin = 0, | ||
47 | .lower_margin = 6, | ||
48 | .hsync_len = 6, | ||
49 | .vsync_len = 1, | ||
50 | .sync = 0, | ||
51 | .vmode = FB_VMODE_NONINTERLACED, | ||
52 | }, | ||
53 | .width = -1, | ||
54 | .height = -1, | ||
55 | .tim2 = 16, | ||
56 | .cntl = CNTL_LCDTFT | CNTL_BGR, | ||
57 | .bpp = 16, | ||
58 | .grayscale = 0, | ||
59 | }; | ||
60 | |||
61 | static inline int nxdb500_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) | ||
62 | { | ||
63 | var->green.length = 5; | ||
64 | var->green.msb_right = 0; | ||
65 | |||
66 | return clcdfb_check(fb, var); | ||
67 | } | ||
68 | |||
69 | static int nxdb500_clcd_setup(struct clcd_fb *fb) | ||
70 | { | ||
71 | unsigned int val; | ||
72 | |||
73 | fb->fb.var.green.length = 5; | ||
74 | fb->fb.var.green.msb_right = 0; | ||
75 | |||
76 | /* enable asic control */ | ||
77 | val = readl(NETX_SYSTEM_IOC_ACCESS_KEY); | ||
78 | writel(val, NETX_SYSTEM_IOC_ACCESS_KEY); | ||
79 | |||
80 | writel(3, NETX_SYSTEM_IOC_CR); | ||
81 | |||
82 | val = readl(NETX_PIO_OUTPIO); | ||
83 | writel(val | 1, NETX_PIO_OUTPIO); | ||
84 | |||
85 | val = readl(NETX_PIO_OEPIO); | ||
86 | writel(val | 1, NETX_PIO_OEPIO); | ||
87 | return netx_clcd_setup(fb); | ||
88 | } | ||
89 | |||
90 | static struct clcd_board clcd_data = { | ||
91 | .name = "netX", | ||
92 | .check = nxdb500_check, | ||
93 | .decode = clcdfb_decode, | ||
94 | .enable = netx_clcd_enable, | ||
95 | .setup = nxdb500_clcd_setup, | ||
96 | .mmap = netx_clcd_mmap, | ||
97 | .remove = netx_clcd_remove, | ||
98 | }; | ||
99 | |||
100 | static struct netxeth_platform_data eth0_platform_data = { | ||
101 | .xcno = 0, | ||
102 | }; | ||
103 | |||
104 | static struct platform_device netx_eth0_device = { | ||
105 | .name = "netx-eth", | ||
106 | .id = 0, | ||
107 | .num_resources = 0, | ||
108 | .resource = NULL, | ||
109 | .dev = { | ||
110 | .platform_data = ð0_platform_data, | ||
111 | } | ||
112 | }; | ||
113 | |||
114 | static struct netxeth_platform_data eth1_platform_data = { | ||
115 | .xcno = 1, | ||
116 | }; | ||
117 | |||
118 | static struct platform_device netx_eth1_device = { | ||
119 | .name = "netx-eth", | ||
120 | .id = 1, | ||
121 | .num_resources = 0, | ||
122 | .resource = NULL, | ||
123 | .dev = { | ||
124 | .platform_data = ð1_platform_data, | ||
125 | } | ||
126 | }; | ||
127 | |||
128 | static struct resource netx_uart0_resources[] = { | ||
129 | [0] = { | ||
130 | .start = 0x00100A00, | ||
131 | .end = 0x00100A3F, | ||
132 | .flags = IORESOURCE_MEM, | ||
133 | }, | ||
134 | [1] = { | ||
135 | .start = (NETX_IRQ_UART0), | ||
136 | .end = (NETX_IRQ_UART0), | ||
137 | .flags = IORESOURCE_IRQ, | ||
138 | }, | ||
139 | }; | ||
140 | |||
141 | static struct platform_device netx_uart0_device = { | ||
142 | .name = "netx-uart", | ||
143 | .id = 0, | ||
144 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
145 | .resource = netx_uart0_resources, | ||
146 | }; | ||
147 | |||
148 | static struct resource netx_uart1_resources[] = { | ||
149 | [0] = { | ||
150 | .start = 0x00100A40, | ||
151 | .end = 0x00100A7F, | ||
152 | .flags = IORESOURCE_MEM, | ||
153 | }, | ||
154 | [1] = { | ||
155 | .start = (NETX_IRQ_UART1), | ||
156 | .end = (NETX_IRQ_UART1), | ||
157 | .flags = IORESOURCE_IRQ, | ||
158 | }, | ||
159 | }; | ||
160 | |||
161 | static struct platform_device netx_uart1_device = { | ||
162 | .name = "netx-uart", | ||
163 | .id = 1, | ||
164 | .num_resources = ARRAY_SIZE(netx_uart1_resources), | ||
165 | .resource = netx_uart1_resources, | ||
166 | }; | ||
167 | |||
168 | static struct resource netx_uart2_resources[] = { | ||
169 | [0] = { | ||
170 | .start = 0x00100A80, | ||
171 | .end = 0x00100ABF, | ||
172 | .flags = IORESOURCE_MEM, | ||
173 | }, | ||
174 | [1] = { | ||
175 | .start = (NETX_IRQ_UART2), | ||
176 | .end = (NETX_IRQ_UART2), | ||
177 | .flags = IORESOURCE_IRQ, | ||
178 | }, | ||
179 | }; | ||
180 | |||
181 | static struct platform_device netx_uart2_device = { | ||
182 | .name = "netx-uart", | ||
183 | .id = 2, | ||
184 | .num_resources = ARRAY_SIZE(netx_uart2_resources), | ||
185 | .resource = netx_uart2_resources, | ||
186 | }; | ||
187 | |||
188 | static struct platform_device *devices[] __initdata = { | ||
189 | &netx_eth0_device, | ||
190 | &netx_eth1_device, | ||
191 | &netx_uart0_device, | ||
192 | &netx_uart1_device, | ||
193 | &netx_uart2_device, | ||
194 | }; | ||
195 | |||
196 | static void __init nxdb500_init(void) | ||
197 | { | ||
198 | netx_fb_init(&clcd_data, &qvga); | ||
199 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
200 | } | ||
201 | |||
202 | MACHINE_START(NXDB500, "Hilscher nxdb500") | ||
203 | .phys_io = 0x00100000, | ||
204 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
205 | .boot_params = 0x80000100, | ||
206 | .map_io = netx_map_io, | ||
207 | .init_irq = netx_init_irq, | ||
208 | .timer = &netx_timer, | ||
209 | .init_machine = nxdb500_init, | ||
210 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/nxdkn.c b/arch/arm/mach-netx/nxdkn.c new file mode 100644 index 000000000000..7e26c42d1ac7 --- /dev/null +++ b/arch/arm/mach-netx/nxdkn.c | |||
@@ -0,0 +1,103 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxdkn.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | |||
36 | static struct netxeth_platform_data eth0_platform_data = { | ||
37 | .xcno = 0, | ||
38 | }; | ||
39 | |||
40 | static struct platform_device nxdkn_eth0_device = { | ||
41 | .name = "netx-eth", | ||
42 | .id = 0, | ||
43 | .num_resources = 0, | ||
44 | .resource = NULL, | ||
45 | .dev = { | ||
46 | .platform_data = ð0_platform_data, | ||
47 | } | ||
48 | }; | ||
49 | |||
50 | static struct netxeth_platform_data eth1_platform_data = { | ||
51 | .xcno = 1, | ||
52 | }; | ||
53 | |||
54 | static struct platform_device nxdkn_eth1_device = { | ||
55 | .name = "netx-eth", | ||
56 | .id = 1, | ||
57 | .num_resources = 0, | ||
58 | .resource = NULL, | ||
59 | .dev = { | ||
60 | .platform_data = ð1_platform_data, | ||
61 | } | ||
62 | }; | ||
63 | |||
64 | static struct resource netx_uart0_resources[] = { | ||
65 | [0] = { | ||
66 | .start = 0x00100A00, | ||
67 | .end = 0x00100A3F, | ||
68 | .flags = IORESOURCE_MEM, | ||
69 | }, | ||
70 | [1] = { | ||
71 | .start = (NETX_IRQ_UART0), | ||
72 | .end = (NETX_IRQ_UART0), | ||
73 | .flags = IORESOURCE_IRQ, | ||
74 | }, | ||
75 | }; | ||
76 | |||
77 | static struct platform_device netx_uart0_device = { | ||
78 | .name = "netx-uart", | ||
79 | .id = 0, | ||
80 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
81 | .resource = netx_uart0_resources, | ||
82 | }; | ||
83 | |||
84 | static struct platform_device *devices[] __initdata = { | ||
85 | &nxdkn_eth0_device, | ||
86 | &nxdkn_eth1_device, | ||
87 | &netx_uart0_device, | ||
88 | }; | ||
89 | |||
90 | static void __init nxdkn_init(void) | ||
91 | { | ||
92 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
93 | } | ||
94 | |||
95 | MACHINE_START(NXDKN, "Hilscher nxdkn") | ||
96 | .phys_io = 0x00100000, | ||
97 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
98 | .boot_params = 0x80000100, | ||
99 | .map_io = netx_map_io, | ||
100 | .init_irq = netx_init_irq, | ||
101 | .timer = &netx_timer, | ||
102 | .init_machine = nxdkn_init, | ||
103 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/nxeb500hmi.c b/arch/arm/mach-netx/nxeb500hmi.c new file mode 100644 index 000000000000..53e10a9849f9 --- /dev/null +++ b/arch/arm/mach-netx/nxeb500hmi.c | |||
@@ -0,0 +1,187 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/nxeb500hmi.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/dma-mapping.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/mtd/plat-ram.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/amba/bus.h> | ||
26 | #include <linux/amba/clcd.h> | ||
27 | |||
28 | #include <asm/hardware.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/arch/netx-regs.h> | ||
32 | #include <asm/arch/eth.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | #include "fb.h" | ||
36 | |||
37 | static struct clcd_panel qvga = { | ||
38 | .mode = { | ||
39 | .name = "QVGA", | ||
40 | .refresh = 60, | ||
41 | .xres = 240, | ||
42 | .yres = 320, | ||
43 | .pixclock = 187617, | ||
44 | .left_margin = 6, | ||
45 | .right_margin = 26, | ||
46 | .upper_margin = 0, | ||
47 | .lower_margin = 6, | ||
48 | .hsync_len = 6, | ||
49 | .vsync_len = 1, | ||
50 | .sync = 0, | ||
51 | .vmode = FB_VMODE_NONINTERLACED, | ||
52 | }, | ||
53 | .width = -1, | ||
54 | .height = -1, | ||
55 | .tim2 = 16, | ||
56 | .cntl = CNTL_LCDTFT | CNTL_BGR, | ||
57 | .bpp = 16, | ||
58 | .grayscale = 0, | ||
59 | }; | ||
60 | |||
61 | static inline int nxeb500hmi_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) | ||
62 | { | ||
63 | var->green.length = 5; | ||
64 | var->green.msb_right = 0; | ||
65 | |||
66 | return clcdfb_check(fb, var); | ||
67 | } | ||
68 | |||
69 | static int nxeb500hmi_clcd_setup(struct clcd_fb *fb) | ||
70 | { | ||
71 | unsigned int val; | ||
72 | |||
73 | fb->fb.var.green.length = 5; | ||
74 | fb->fb.var.green.msb_right = 0; | ||
75 | |||
76 | /* enable asic control */ | ||
77 | val = readl(NETX_SYSTEM_IOC_ACCESS_KEY); | ||
78 | writel(val, NETX_SYSTEM_IOC_ACCESS_KEY); | ||
79 | |||
80 | writel(3, NETX_SYSTEM_IOC_CR); | ||
81 | |||
82 | /* GPIO 14 is used for display enable on newer boards */ | ||
83 | writel(9, NETX_GPIO_CFG(14)); | ||
84 | |||
85 | val = readl(NETX_PIO_OUTPIO); | ||
86 | writel(val | 1, NETX_PIO_OUTPIO); | ||
87 | |||
88 | val = readl(NETX_PIO_OEPIO); | ||
89 | writel(val | 1, NETX_PIO_OEPIO); | ||
90 | return netx_clcd_setup(fb); | ||
91 | } | ||
92 | |||
93 | static struct clcd_board clcd_data = { | ||
94 | .name = "netX", | ||
95 | .check = nxeb500hmi_check, | ||
96 | .decode = clcdfb_decode, | ||
97 | .enable = netx_clcd_enable, | ||
98 | .setup = nxeb500hmi_clcd_setup, | ||
99 | .mmap = netx_clcd_mmap, | ||
100 | .remove = netx_clcd_remove, | ||
101 | }; | ||
102 | |||
103 | static struct netxeth_platform_data eth0_platform_data = { | ||
104 | .xcno = 0, | ||
105 | }; | ||
106 | |||
107 | static struct platform_device netx_eth0_device = { | ||
108 | .name = "netx-eth", | ||
109 | .id = 0, | ||
110 | .num_resources = 0, | ||
111 | .resource = NULL, | ||
112 | .dev = { | ||
113 | .platform_data = ð0_platform_data, | ||
114 | } | ||
115 | }; | ||
116 | |||
117 | static struct netxeth_platform_data eth1_platform_data = { | ||
118 | .xcno = 1, | ||
119 | }; | ||
120 | |||
121 | static struct platform_device netx_eth1_device = { | ||
122 | .name = "netx-eth", | ||
123 | .id = 1, | ||
124 | .num_resources = 0, | ||
125 | .resource = NULL, | ||
126 | .dev = { | ||
127 | .platform_data = ð1_platform_data, | ||
128 | } | ||
129 | }; | ||
130 | |||
131 | static struct resource netx_cf_resources[] = { | ||
132 | [0] = { | ||
133 | .start = 0x20000000, | ||
134 | .end = 0x25ffffff, | ||
135 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT, | ||
136 | }, | ||
137 | }; | ||
138 | |||
139 | static struct platform_device netx_cf_device = { | ||
140 | .name = "netx-cf", | ||
141 | .id = 0, | ||
142 | .resource = netx_cf_resources, | ||
143 | .num_resources = ARRAY_SIZE(netx_cf_resources), | ||
144 | }; | ||
145 | |||
146 | static struct resource netx_uart0_resources[] = { | ||
147 | [0] = { | ||
148 | .start = 0x00100A00, | ||
149 | .end = 0x00100A3F, | ||
150 | .flags = IORESOURCE_MEM, | ||
151 | }, | ||
152 | [1] = { | ||
153 | .start = (NETX_IRQ_UART0), | ||
154 | .end = (NETX_IRQ_UART0), | ||
155 | .flags = IORESOURCE_IRQ, | ||
156 | }, | ||
157 | }; | ||
158 | |||
159 | static struct platform_device netx_uart0_device = { | ||
160 | .name = "netx-uart", | ||
161 | .id = 0, | ||
162 | .num_resources = ARRAY_SIZE(netx_uart0_resources), | ||
163 | .resource = netx_uart0_resources, | ||
164 | }; | ||
165 | |||
166 | static struct platform_device *devices[] __initdata = { | ||
167 | &netx_eth0_device, | ||
168 | &netx_eth1_device, | ||
169 | &netx_cf_device, | ||
170 | &netx_uart0_device, | ||
171 | }; | ||
172 | |||
173 | static void __init nxeb500hmi_init(void) | ||
174 | { | ||
175 | netx_fb_init(&clcd_data, &qvga); | ||
176 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
177 | } | ||
178 | |||
179 | MACHINE_START(NXEB500HMI, "Hilscher nxeb500hmi") | ||
180 | .phys_io = 0x00100000, | ||
181 | .io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc, | ||
182 | .boot_params = 0x80000100, | ||
183 | .map_io = netx_map_io, | ||
184 | .init_irq = netx_init_irq, | ||
185 | .timer = &netx_timer, | ||
186 | .init_machine = nxeb500hmi_init, | ||
187 | MACHINE_END | ||
diff --git a/arch/arm/mach-netx/pfifo.c b/arch/arm/mach-netx/pfifo.c new file mode 100644 index 000000000000..44dea61a9de4 --- /dev/null +++ b/arch/arm/mach-netx/pfifo.c | |||
@@ -0,0 +1,68 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/pfifo.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/init.h> | ||
21 | #include <linux/module.h> | ||
22 | #include <linux/mutex.h> | ||
23 | |||
24 | #include <asm/io.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/arch/netx-regs.h> | ||
27 | #include <asm/arch/pfifo.h> | ||
28 | |||
29 | static DEFINE_MUTEX(pfifo_lock); | ||
30 | |||
31 | static unsigned int pfifo_used = 0; | ||
32 | |||
33 | int pfifo_request(unsigned int pfifo_mask) | ||
34 | { | ||
35 | int err = 0; | ||
36 | unsigned int val; | ||
37 | |||
38 | mutex_lock(&pfifo_lock); | ||
39 | |||
40 | if (pfifo_mask & pfifo_used) { | ||
41 | err = -EBUSY; | ||
42 | goto out; | ||
43 | } | ||
44 | |||
45 | pfifo_used |= pfifo_mask; | ||
46 | |||
47 | val = readl(NETX_PFIFO_RESET); | ||
48 | writel(val | pfifo_mask, NETX_PFIFO_RESET); | ||
49 | writel(val, NETX_PFIFO_RESET); | ||
50 | |||
51 | out: | ||
52 | mutex_unlock(&pfifo_lock); | ||
53 | return err; | ||
54 | } | ||
55 | |||
56 | void pfifo_free(unsigned int pfifo_mask) | ||
57 | { | ||
58 | mutex_lock(&pfifo_lock); | ||
59 | pfifo_used &= ~pfifo_mask; | ||
60 | mutex_unlock(&pfifo_lock); | ||
61 | } | ||
62 | |||
63 | EXPORT_SYMBOL(pfifo_push); | ||
64 | EXPORT_SYMBOL(pfifo_pop); | ||
65 | EXPORT_SYMBOL(pfifo_fill_level); | ||
66 | EXPORT_SYMBOL(pfifo_empty); | ||
67 | EXPORT_SYMBOL(pfifo_request); | ||
68 | EXPORT_SYMBOL(pfifo_free); | ||
diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c new file mode 100644 index 000000000000..edfbdf40c600 --- /dev/null +++ b/arch/arm/mach-netx/time.c | |||
@@ -0,0 +1,88 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/time.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/init.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | |||
23 | #include <asm/hardware.h> | ||
24 | #include <asm/io.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | #include <asm/arch/netx-regs.h> | ||
27 | |||
28 | /* | ||
29 | * Returns number of us since last clock interrupt. Note that interrupts | ||
30 | * will have been disabled by do_gettimeoffset() | ||
31 | */ | ||
32 | static unsigned long netx_gettimeoffset(void) | ||
33 | { | ||
34 | return readl(NETX_GPIO_COUNTER_CURRENT(0)) / 100; | ||
35 | } | ||
36 | |||
37 | /* | ||
38 | * IRQ handler for the timer | ||
39 | */ | ||
40 | static irqreturn_t | ||
41 | netx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | ||
42 | { | ||
43 | write_seqlock(&xtime_lock); | ||
44 | |||
45 | timer_tick(regs); | ||
46 | write_sequnlock(&xtime_lock); | ||
47 | |||
48 | /* acknowledge interrupt */ | ||
49 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ); | ||
50 | |||
51 | return IRQ_HANDLED; | ||
52 | } | ||
53 | |||
54 | |||
55 | static struct irqaction netx_timer_irq = { | ||
56 | .name = "NetX Timer Tick", | ||
57 | .flags = SA_INTERRUPT | SA_TIMER, | ||
58 | .handler = netx_timer_interrupt, | ||
59 | }; | ||
60 | |||
61 | /* | ||
62 | * Set up timer interrupt | ||
63 | */ | ||
64 | static void __init netx_timer_init(void) | ||
65 | { | ||
66 | /* disable timer initially */ | ||
67 | writel(0, NETX_GPIO_COUNTER_CTRL(0)); | ||
68 | |||
69 | /* Reset the timer value to zero */ | ||
70 | writel(0, NETX_GPIO_COUNTER_CURRENT(0)); | ||
71 | |||
72 | writel(LATCH, NETX_GPIO_COUNTER_MAX(0)); | ||
73 | |||
74 | /* acknowledge interrupt */ | ||
75 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ); | ||
76 | |||
77 | /* Enable the interrupt in the specific timer register and start timer */ | ||
78 | writel(COUNTER_BIT(0), NETX_GPIO_IRQ_ENABLE); | ||
79 | writel(NETX_GPIO_COUNTER_CTRL_IRQ_EN | NETX_GPIO_COUNTER_CTRL_RUN, | ||
80 | NETX_GPIO_COUNTER_CTRL(0)); | ||
81 | |||
82 | setup_irq(NETX_IRQ_TIMER0, &netx_timer_irq); | ||
83 | } | ||
84 | |||
85 | struct sys_timer netx_timer = { | ||
86 | .init = netx_timer_init, | ||
87 | .offset = netx_gettimeoffset, | ||
88 | }; | ||
diff --git a/arch/arm/mach-netx/xc.c b/arch/arm/mach-netx/xc.c new file mode 100644 index 000000000000..172a058ddd66 --- /dev/null +++ b/arch/arm/mach-netx/xc.c | |||
@@ -0,0 +1,255 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-netx/xc.c | ||
3 | * | ||
4 | * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 | ||
8 | * as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #include <linux/init.h> | ||
21 | #include <linux/device.h> | ||
22 | #include <linux/firmware.h> | ||
23 | #include <linux/mutex.h> | ||
24 | |||
25 | #include <asm/io.h> | ||
26 | #include <asm/hardware.h> | ||
27 | #include <asm/arch/netx-regs.h> | ||
28 | |||
29 | #include <asm/arch/xc.h> | ||
30 | |||
31 | static DEFINE_MUTEX(xc_lock); | ||
32 | |||
33 | static int xc_in_use = 0; | ||
34 | |||
35 | struct fw_desc { | ||
36 | unsigned int ofs; | ||
37 | unsigned int size; | ||
38 | unsigned int patch_ofs; | ||
39 | unsigned int patch_entries; | ||
40 | }; | ||
41 | |||
42 | struct fw_header { | ||
43 | unsigned int magic; | ||
44 | unsigned int type; | ||
45 | unsigned int version; | ||
46 | unsigned int reserved[5]; | ||
47 | struct fw_desc fw_desc[3]; | ||
48 | } __attribute__ ((packed)); | ||
49 | |||
50 | int xc_stop(struct xc *x) | ||
51 | { | ||
52 | writel(RPU_HOLD_PC, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS); | ||
53 | writel(TPU_HOLD_PC, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS); | ||
54 | writel(XPU_HOLD_PC, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS); | ||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | int xc_start(struct xc *x) | ||
59 | { | ||
60 | writel(0, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS); | ||
61 | writel(0, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS); | ||
62 | writel(0, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS); | ||
63 | return 0; | ||
64 | } | ||
65 | |||
66 | int xc_running(struct xc *x) | ||
67 | { | ||
68 | return (readl(x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS) & RPU_HOLD_PC) | ||
69 | || (readl(x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS) & TPU_HOLD_PC) | ||
70 | || (readl(x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS) & XPU_HOLD_PC) ? | ||
71 | 0 : 1; | ||
72 | } | ||
73 | |||
74 | int xc_reset(struct xc *x) | ||
75 | { | ||
76 | writel(0, x->xpec_base + NETX_XPEC_PC_OFS); | ||
77 | return 0; | ||
78 | } | ||
79 | |||
80 | static int xc_check_ptr(struct xc *x, unsigned long adr, unsigned int size) | ||
81 | { | ||
82 | if (adr >= NETX_PA_XMAC(x->no) && | ||
83 | adr + size < NETX_PA_XMAC(x->no) + XMAC_MEM_SIZE) | ||
84 | return 0; | ||
85 | |||
86 | if (adr >= NETX_PA_XPEC(x->no) && | ||
87 | adr + size < NETX_PA_XPEC(x->no) + XPEC_MEM_SIZE) | ||
88 | return 0; | ||
89 | |||
90 | dev_err(x->dev, "Illegal pointer in firmware found. aborting\n"); | ||
91 | |||
92 | return -1; | ||
93 | } | ||
94 | |||
95 | static int xc_patch(struct xc *x, void *patch, int count) | ||
96 | { | ||
97 | unsigned int val, adr; | ||
98 | unsigned int *data = patch; | ||
99 | |||
100 | int i; | ||
101 | for (i = 0; i < count; i++) { | ||
102 | adr = *data++; | ||
103 | val = *data++; | ||
104 | if (xc_check_ptr(x, adr, 4) < 0) | ||
105 | return -EINVAL; | ||
106 | |||
107 | writel(val, (void __iomem *)io_p2v(adr)); | ||
108 | } | ||
109 | return 0; | ||
110 | } | ||
111 | |||
112 | int xc_request_firmware(struct xc *x) | ||
113 | { | ||
114 | int ret; | ||
115 | char name[16]; | ||
116 | const struct firmware *fw; | ||
117 | struct fw_header *head; | ||
118 | unsigned int size; | ||
119 | int i; | ||
120 | void *src; | ||
121 | unsigned long dst; | ||
122 | |||
123 | sprintf(name, "xc%d.bin", x->no); | ||
124 | |||
125 | ret = request_firmware(&fw, name, x->dev); | ||
126 | |||
127 | if (ret < 0) { | ||
128 | dev_err(x->dev, "request_firmware failed\n"); | ||
129 | return ret; | ||
130 | } | ||
131 | |||
132 | head = (struct fw_header *)fw->data; | ||
133 | if (head->magic != 0x4e657458) { | ||
134 | if (head->magic == 0x5874654e) { | ||
135 | dev_err(x->dev, | ||
136 | "firmware magic is 'XteN'. Endianess problems?\n"); | ||
137 | ret = -ENODEV; | ||
138 | goto exit_release_firmware; | ||
139 | } | ||
140 | dev_err(x->dev, "unrecognized firmware magic 0x%08x\n", | ||
141 | head->magic); | ||
142 | ret = -ENODEV; | ||
143 | goto exit_release_firmware; | ||
144 | } | ||
145 | |||
146 | x->type = head->type; | ||
147 | x->version = head->version; | ||
148 | |||
149 | ret = -EINVAL; | ||
150 | |||
151 | for (i = 0; i < 3; i++) { | ||
152 | src = fw->data + head->fw_desc[i].ofs; | ||
153 | dst = *(unsigned int *)src; | ||
154 | src += sizeof (unsigned int); | ||
155 | size = head->fw_desc[i].size - sizeof (unsigned int); | ||
156 | |||
157 | if (xc_check_ptr(x, dst, size)) | ||
158 | goto exit_release_firmware; | ||
159 | |||
160 | memcpy((void *)io_p2v(dst), src, size); | ||
161 | |||
162 | src = fw->data + head->fw_desc[i].patch_ofs; | ||
163 | size = head->fw_desc[i].patch_entries; | ||
164 | ret = xc_patch(x, src, size); | ||
165 | if (ret < 0) | ||
166 | goto exit_release_firmware; | ||
167 | } | ||
168 | |||
169 | ret = 0; | ||
170 | |||
171 | exit_release_firmware: | ||
172 | release_firmware(fw); | ||
173 | |||
174 | return ret; | ||
175 | } | ||
176 | |||
177 | struct xc *request_xc(int xcno, struct device *dev) | ||
178 | { | ||
179 | struct xc *x = NULL; | ||
180 | |||
181 | mutex_lock(&xc_lock); | ||
182 | |||
183 | if (xcno > 3) | ||
184 | goto exit; | ||
185 | if (xc_in_use & (1 << xcno)) | ||
186 | goto exit; | ||
187 | |||
188 | x = kmalloc(sizeof (struct xc), GFP_KERNEL); | ||
189 | if (!x) | ||
190 | goto exit; | ||
191 | |||
192 | if (!request_mem_region | ||
193 | (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, dev->kobj.name)) | ||
194 | goto exit_free; | ||
195 | |||
196 | if (!request_mem_region | ||
197 | (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, dev->kobj.name)) | ||
198 | goto exit_release_1; | ||
199 | |||
200 | if (!request_mem_region | ||
201 | (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, dev->kobj.name)) | ||
202 | goto exit_release_2; | ||
203 | |||
204 | x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); | ||
205 | x->xmac_base = (void * __iomem)io_p2v(NETX_PA_XMAC(xcno)); | ||
206 | x->sram_base = ioremap(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
207 | if (!x->sram_base) | ||
208 | goto exit_release_3; | ||
209 | |||
210 | x->irq = NETX_IRQ_XPEC(xcno); | ||
211 | |||
212 | x->no = xcno; | ||
213 | x->dev = dev; | ||
214 | |||
215 | xc_in_use |= (1 << xcno); | ||
216 | |||
217 | goto exit; | ||
218 | |||
219 | exit_release_3: | ||
220 | release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
221 | exit_release_2: | ||
222 | release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); | ||
223 | exit_release_1: | ||
224 | release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); | ||
225 | exit_free: | ||
226 | kfree(x); | ||
227 | x = NULL; | ||
228 | exit: | ||
229 | mutex_unlock(&xc_lock); | ||
230 | return x; | ||
231 | } | ||
232 | |||
233 | void free_xc(struct xc *x) | ||
234 | { | ||
235 | int xcno = x->no; | ||
236 | |||
237 | mutex_lock(&xc_lock); | ||
238 | |||
239 | iounmap(x->sram_base); | ||
240 | release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE); | ||
241 | release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE); | ||
242 | release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE); | ||
243 | xc_in_use &= ~(1 << x->no); | ||
244 | kfree(x); | ||
245 | |||
246 | mutex_unlock(&xc_lock); | ||
247 | } | ||
248 | |||
249 | EXPORT_SYMBOL(free_xc); | ||
250 | EXPORT_SYMBOL(request_xc); | ||
251 | EXPORT_SYMBOL(xc_request_firmware); | ||
252 | EXPORT_SYMBOL(xc_reset); | ||
253 | EXPORT_SYMBOL(xc_running); | ||
254 | EXPORT_SYMBOL(xc_start); | ||
255 | EXPORT_SYMBOL(xc_stop); | ||
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 6178f046f128..73df32aac4c4 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -84,6 +84,15 @@ static struct omap_board_config_kernel ams_delta_config[] = { | |||
84 | { OMAP_TAG_UART, &ams_delta_uart_config }, | 84 | { OMAP_TAG_UART, &ams_delta_uart_config }, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct platform_device ams_delta_led_device = { | ||
88 | .name = "ams-delta-led", | ||
89 | .id = -1 | ||
90 | }; | ||
91 | |||
92 | static struct platform_device *ams_delta_devices[] __initdata = { | ||
93 | &ams_delta_led_device, | ||
94 | }; | ||
95 | |||
87 | static void __init ams_delta_init(void) | 96 | static void __init ams_delta_init(void) |
88 | { | 97 | { |
89 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); | 98 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); |
@@ -94,6 +103,8 @@ static void __init ams_delta_init(void) | |||
94 | 103 | ||
95 | /* Clear latch2 (NAND, LCD, modem enable) */ | 104 | /* Clear latch2 (NAND, LCD, modem enable) */ |
96 | ams_delta_latch2_write(~0, 0); | 105 | ams_delta_latch2_write(~0, 0); |
106 | |||
107 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); | ||
97 | } | 108 | } |
98 | 109 | ||
99 | static void __init ams_delta_map_io(void) | 110 | static void __init ams_delta_map_io(void) |
diff --git a/arch/arm/mach-pnx4008/Makefile b/arch/arm/mach-pnx4008/Makefile new file mode 100644 index 000000000000..b457ca0a431a --- /dev/null +++ b/arch/arm/mach-pnx4008/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | obj-y := core.o irq.o time.o clock.o gpio.o serial.o dma.o | ||
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | |||
10 | # Power Management | ||
11 | obj-$(CONFIG_PM) += pm.o sleep.o | ||
12 | |||
diff --git a/arch/arm/mach-pnx4008/Makefile.boot b/arch/arm/mach-pnx4008/Makefile.boot new file mode 100644 index 000000000000..44c7117e20dd --- /dev/null +++ b/arch/arm/mach-pnx4008/Makefile.boot | |||
@@ -0,0 +1,4 @@ | |||
1 | zreladdr-y := 0x80008000 | ||
2 | params_phys-y := 0x80000100 | ||
3 | initrd_phys-y := 0x80800000 | ||
4 | |||
diff --git a/arch/arm/mach-pnx4008/clock.c b/arch/arm/mach-pnx4008/clock.c new file mode 100644 index 000000000000..f582ed2ec43c --- /dev/null +++ b/arch/arm/mach-pnx4008/clock.c | |||
@@ -0,0 +1,983 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/clock.c | ||
3 | * | ||
4 | * Clock control driver for PNX4008 | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev <source@mvista.com> | ||
7 | * Generic clock management functions are partially based on: | ||
8 | * linux/arch/arm/mach-omap/clock.c | ||
9 | * | ||
10 | * 2005-2006 (c) MontaVista Software, Inc. This file is licensed under | ||
11 | * the terms of the GNU General Public License version 2. This program | ||
12 | * is licensed "as is" without any warranty of any kind, whether express | ||
13 | * or implied. | ||
14 | */ | ||
15 | |||
16 | #include <linux/module.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/list.h> | ||
19 | #include <linux/errno.h> | ||
20 | #include <linux/device.h> | ||
21 | #include <linux/err.h> | ||
22 | #include <linux/delay.h> | ||
23 | |||
24 | #include <asm/semaphore.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/io.h> | ||
27 | |||
28 | #include <asm/arch/clock.h> | ||
29 | #include "clock.h" | ||
30 | |||
31 | /*forward declaration*/ | ||
32 | static struct clk per_ck; | ||
33 | static struct clk hclk_ck; | ||
34 | static struct clk ck_1MHz; | ||
35 | static struct clk ck_13MHz; | ||
36 | static struct clk ck_pll1; | ||
37 | static int local_set_rate(struct clk *clk, u32 rate); | ||
38 | |||
39 | static inline void clock_lock(void) | ||
40 | { | ||
41 | local_irq_disable(); | ||
42 | } | ||
43 | |||
44 | static inline void clock_unlock(void) | ||
45 | { | ||
46 | local_irq_enable(); | ||
47 | } | ||
48 | |||
49 | static void propagate_rate(struct clk *clk) | ||
50 | { | ||
51 | struct clk *tmp_clk; | ||
52 | |||
53 | tmp_clk = clk; | ||
54 | while (tmp_clk->propagate_next) { | ||
55 | tmp_clk = tmp_clk->propagate_next; | ||
56 | local_set_rate(tmp_clk, tmp_clk->user_rate); | ||
57 | } | ||
58 | } | ||
59 | |||
60 | static inline void clk_reg_disable(struct clk *clk) | ||
61 | { | ||
62 | if (clk->enable_reg) | ||
63 | __raw_writel(__raw_readl(clk->enable_reg) & | ||
64 | ~(1 << clk->enable_shift), clk->enable_reg); | ||
65 | } | ||
66 | |||
67 | static inline void clk_reg_enable(struct clk *clk) | ||
68 | { | ||
69 | if (clk->enable_reg) | ||
70 | __raw_writel(__raw_readl(clk->enable_reg) | | ||
71 | (1 << clk->enable_shift), clk->enable_reg); | ||
72 | } | ||
73 | |||
74 | static inline void clk_reg_disable1(struct clk *clk) | ||
75 | { | ||
76 | if (clk->enable_reg1) | ||
77 | __raw_writel(__raw_readl(clk->enable_reg1) & | ||
78 | ~(1 << clk->enable_shift1), clk->enable_reg1); | ||
79 | } | ||
80 | |||
81 | static inline void clk_reg_enable1(struct clk *clk) | ||
82 | { | ||
83 | if (clk->enable_reg1) | ||
84 | __raw_writel(__raw_readl(clk->enable_reg1) | | ||
85 | (1 << clk->enable_shift1), clk->enable_reg1); | ||
86 | } | ||
87 | |||
88 | static int clk_wait_for_pll_lock(struct clk *clk) | ||
89 | { | ||
90 | int i; | ||
91 | i = 0; | ||
92 | while (i++ < 0xFFF && !(__raw_readl(clk->scale_reg) & 1)) ; /*wait for PLL to lock */ | ||
93 | |||
94 | if (!(__raw_readl(clk->scale_reg) & 1)) { | ||
95 | printk(KERN_ERR | ||
96 | "%s ERROR: failed to lock, scale reg data: %x\n", | ||
97 | clk->name, __raw_readl(clk->scale_reg)); | ||
98 | return -1; | ||
99 | } | ||
100 | return 0; | ||
101 | } | ||
102 | |||
103 | static int switch_to_dirty_13mhz(struct clk *clk) | ||
104 | { | ||
105 | int i; | ||
106 | int ret; | ||
107 | u32 tmp_reg; | ||
108 | |||
109 | ret = 0; | ||
110 | |||
111 | if (!clk->rate) | ||
112 | clk_reg_enable1(clk); | ||
113 | |||
114 | tmp_reg = __raw_readl(clk->parent_switch_reg); | ||
115 | /*if 13Mhz clock selected, select 13'MHz (dirty) source from OSC */ | ||
116 | if (!(tmp_reg & 1)) { | ||
117 | tmp_reg |= (1 << 1); /* Trigger switch to 13'MHz (dirty) clock */ | ||
118 | __raw_writel(tmp_reg, clk->parent_switch_reg); | ||
119 | i = 0; | ||
120 | while (i++ < 0xFFF && !(__raw_readl(clk->parent_switch_reg) & 1)) ; /*wait for 13'MHz selection status */ | ||
121 | |||
122 | if (!(__raw_readl(clk->parent_switch_reg) & 1)) { | ||
123 | printk(KERN_ERR | ||
124 | "%s ERROR: failed to select 13'MHz, parent sw reg data: %x\n", | ||
125 | clk->name, __raw_readl(clk->parent_switch_reg)); | ||
126 | ret = -1; | ||
127 | } | ||
128 | } | ||
129 | |||
130 | if (!clk->rate) | ||
131 | clk_reg_disable1(clk); | ||
132 | |||
133 | return ret; | ||
134 | } | ||
135 | |||
136 | static int switch_to_clean_13mhz(struct clk *clk) | ||
137 | { | ||
138 | int i; | ||
139 | int ret; | ||
140 | u32 tmp_reg; | ||
141 | |||
142 | ret = 0; | ||
143 | |||
144 | if (!clk->rate) | ||
145 | clk_reg_enable1(clk); | ||
146 | |||
147 | tmp_reg = __raw_readl(clk->parent_switch_reg); | ||
148 | /*if 13'Mhz clock selected, select 13MHz (clean) source from OSC */ | ||
149 | if (tmp_reg & 1) { | ||
150 | tmp_reg &= ~(1 << 1); /* Trigger switch to 13MHz (clean) clock */ | ||
151 | __raw_writel(tmp_reg, clk->parent_switch_reg); | ||
152 | i = 0; | ||
153 | while (i++ < 0xFFF && (__raw_readl(clk->parent_switch_reg) & 1)) ; /*wait for 13MHz selection status */ | ||
154 | |||
155 | if (__raw_readl(clk->parent_switch_reg) & 1) { | ||
156 | printk(KERN_ERR | ||
157 | "%s ERROR: failed to select 13MHz, parent sw reg data: %x\n", | ||
158 | clk->name, __raw_readl(clk->parent_switch_reg)); | ||
159 | ret = -1; | ||
160 | } | ||
161 | } | ||
162 | |||
163 | if (!clk->rate) | ||
164 | clk_reg_disable1(clk); | ||
165 | |||
166 | return ret; | ||
167 | } | ||
168 | |||
169 | static int set_13MHz_parent(struct clk *clk, struct clk *parent) | ||
170 | { | ||
171 | int ret = -EINVAL; | ||
172 | |||
173 | if (parent == &ck_13MHz) | ||
174 | ret = switch_to_clean_13mhz(clk); | ||
175 | else if (parent == &ck_pll1) | ||
176 | ret = switch_to_dirty_13mhz(clk); | ||
177 | |||
178 | return ret; | ||
179 | } | ||
180 | |||
181 | #define PLL160_MIN_FCCO 156000 | ||
182 | #define PLL160_MAX_FCCO 320000 | ||
183 | |||
184 | /* | ||
185 | * Calculate pll160 settings. | ||
186 | * Possible input: up to 320MHz with step of clk->parent->rate. | ||
187 | * In PNX4008 parent rate for pll160s may be either 1 or 13MHz. | ||
188 | * Ignored paths: "feedback" (bit 13 set), "div-by-N". | ||
189 | * Setting ARM PLL4 rate to 0 will put CPU into direct run mode. | ||
190 | * Setting PLL5 and PLL3 rate to 0 will disable USB and DSP clock input. | ||
191 | * Please refer to PNX4008 IC manual for details. | ||
192 | */ | ||
193 | |||
194 | static int pll160_set_rate(struct clk *clk, u32 rate) | ||
195 | { | ||
196 | u32 tmp_reg, tmp_m, tmp_2p, i; | ||
197 | u32 parent_rate; | ||
198 | int ret = -EINVAL; | ||
199 | |||
200 | parent_rate = clk->parent->rate; | ||
201 | |||
202 | if (!parent_rate) | ||
203 | goto out; | ||
204 | |||
205 | /* set direct run for ARM or disable output for others */ | ||
206 | clk_reg_disable(clk); | ||
207 | |||
208 | /* disable source input as well (ignored for ARM) */ | ||
209 | clk_reg_disable1(clk); | ||
210 | |||
211 | tmp_reg = __raw_readl(clk->scale_reg); | ||
212 | tmp_reg &= ~0x1ffff; /*clear all settings, power down */ | ||
213 | __raw_writel(tmp_reg, clk->scale_reg); | ||
214 | |||
215 | rate -= rate % parent_rate; /*round down the input */ | ||
216 | |||
217 | if (rate > PLL160_MAX_FCCO) | ||
218 | rate = PLL160_MAX_FCCO; | ||
219 | |||
220 | if (!rate) { | ||
221 | clk->rate = 0; | ||
222 | ret = 0; | ||
223 | goto out; | ||
224 | } | ||
225 | |||
226 | clk_reg_enable1(clk); | ||
227 | tmp_reg = __raw_readl(clk->scale_reg); | ||
228 | |||
229 | if (rate == parent_rate) { | ||
230 | /*enter direct bypass mode */ | ||
231 | tmp_reg |= ((1 << 14) | (1 << 15)); | ||
232 | __raw_writel(tmp_reg, clk->scale_reg); | ||
233 | clk->rate = parent_rate; | ||
234 | clk_reg_enable(clk); | ||
235 | ret = 0; | ||
236 | goto out; | ||
237 | } | ||
238 | |||
239 | i = 0; | ||
240 | for (tmp_2p = 1; tmp_2p < 16; tmp_2p <<= 1) { | ||
241 | if (rate * tmp_2p >= PLL160_MIN_FCCO) | ||
242 | break; | ||
243 | i++; | ||
244 | } | ||
245 | |||
246 | if (tmp_2p > 1) | ||
247 | tmp_reg |= ((i - 1) << 11); | ||
248 | else | ||
249 | tmp_reg |= (1 << 14); /*direct mode, no divide */ | ||
250 | |||
251 | tmp_m = rate * tmp_2p; | ||
252 | tmp_m /= parent_rate; | ||
253 | |||
254 | tmp_reg |= (tmp_m - 1) << 1; /*calculate M */ | ||
255 | tmp_reg |= (1 << 16); /*power up PLL */ | ||
256 | __raw_writel(tmp_reg, clk->scale_reg); | ||
257 | |||
258 | if (clk_wait_for_pll_lock(clk) < 0) { | ||
259 | clk_reg_disable(clk); | ||
260 | clk_reg_disable1(clk); | ||
261 | |||
262 | tmp_reg = __raw_readl(clk->scale_reg); | ||
263 | tmp_reg &= ~0x1ffff; /*clear all settings, power down */ | ||
264 | __raw_writel(tmp_reg, clk->scale_reg); | ||
265 | clk->rate = 0; | ||
266 | ret = -EFAULT; | ||
267 | goto out; | ||
268 | } | ||
269 | |||
270 | clk->rate = (tmp_m * parent_rate) / tmp_2p; | ||
271 | |||
272 | if (clk->flags & RATE_PROPAGATES) | ||
273 | propagate_rate(clk); | ||
274 | |||
275 | clk_reg_enable(clk); | ||
276 | ret = 0; | ||
277 | |||
278 | out: | ||
279 | return ret; | ||
280 | } | ||
281 | |||
282 | /*configure PER_CLK*/ | ||
283 | static int per_clk_set_rate(struct clk *clk, u32 rate) | ||
284 | { | ||
285 | u32 tmp; | ||
286 | |||
287 | tmp = __raw_readl(clk->scale_reg); | ||
288 | tmp &= ~(0x1f << 2); | ||
289 | tmp |= ((clk->parent->rate / clk->rate) - 1) << 2; | ||
290 | __raw_writel(tmp, clk->scale_reg); | ||
291 | clk->rate = rate; | ||
292 | return 0; | ||
293 | } | ||
294 | |||
295 | /*configure HCLK*/ | ||
296 | static int hclk_set_rate(struct clk *clk, u32 rate) | ||
297 | { | ||
298 | u32 tmp; | ||
299 | tmp = __raw_readl(clk->scale_reg); | ||
300 | tmp = tmp & ~0x3; | ||
301 | switch (rate) { | ||
302 | case 1: | ||
303 | break; | ||
304 | case 2: | ||
305 | tmp |= 1; | ||
306 | break; | ||
307 | case 4: | ||
308 | tmp |= 2; | ||
309 | break; | ||
310 | } | ||
311 | |||
312 | __raw_writel(tmp, clk->scale_reg); | ||
313 | clk->rate = rate; | ||
314 | return 0; | ||
315 | } | ||
316 | |||
317 | static u32 hclk_round_rate(struct clk *clk, u32 rate) | ||
318 | { | ||
319 | switch (rate) { | ||
320 | case 1: | ||
321 | case 4: | ||
322 | return rate; | ||
323 | } | ||
324 | return 2; | ||
325 | } | ||
326 | |||
327 | static u32 per_clk_round_rate(struct clk *clk, u32 rate) | ||
328 | { | ||
329 | return CLK_RATE_13MHZ; | ||
330 | } | ||
331 | |||
332 | static int on_off_set_rate(struct clk *clk, u32 rate) | ||
333 | { | ||
334 | if (rate) { | ||
335 | clk_reg_enable(clk); | ||
336 | clk->rate = 1; | ||
337 | } else { | ||
338 | clk_reg_disable(clk); | ||
339 | clk->rate = 0; | ||
340 | } | ||
341 | return 0; | ||
342 | } | ||
343 | |||
344 | static int on_off_inv_set_rate(struct clk *clk, u32 rate) | ||
345 | { | ||
346 | if (rate) { | ||
347 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
348 | clk->rate = 1; | ||
349 | } else { | ||
350 | clk_reg_enable(clk); | ||
351 | clk->rate = 0; | ||
352 | } | ||
353 | return 0; | ||
354 | } | ||
355 | |||
356 | static u32 on_off_round_rate(struct clk *clk, u32 rate) | ||
357 | { | ||
358 | return (rate ? 1 : 0); | ||
359 | } | ||
360 | |||
361 | static u32 pll4_round_rate(struct clk *clk, u32 rate) | ||
362 | { | ||
363 | if (rate > CLK_RATE_208MHZ) | ||
364 | rate = CLK_RATE_208MHZ; | ||
365 | if (rate == CLK_RATE_208MHZ && hclk_ck.user_rate == 1) | ||
366 | rate = CLK_RATE_208MHZ - CLK_RATE_13MHZ; | ||
367 | return (rate - (rate % (hclk_ck.user_rate * CLK_RATE_13MHZ))); | ||
368 | } | ||
369 | |||
370 | static u32 pll3_round_rate(struct clk *clk, u32 rate) | ||
371 | { | ||
372 | if (rate > CLK_RATE_208MHZ) | ||
373 | rate = CLK_RATE_208MHZ; | ||
374 | return (rate - rate % CLK_RATE_13MHZ); | ||
375 | } | ||
376 | |||
377 | static u32 pll5_round_rate(struct clk *clk, u32 rate) | ||
378 | { | ||
379 | return (rate ? CLK_RATE_48MHZ : 0); | ||
380 | } | ||
381 | |||
382 | static u32 ck_13MHz_round_rate(struct clk *clk, u32 rate) | ||
383 | { | ||
384 | return (rate ? CLK_RATE_13MHZ : 0); | ||
385 | } | ||
386 | |||
387 | static int ck_13MHz_set_rate(struct clk *clk, u32 rate) | ||
388 | { | ||
389 | if (rate) { | ||
390 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
391 | udelay(500); | ||
392 | clk->rate = CLK_RATE_13MHZ; | ||
393 | ck_1MHz.rate = CLK_RATE_1MHZ; | ||
394 | } else { | ||
395 | clk_reg_enable(clk); | ||
396 | clk->rate = 0; | ||
397 | ck_1MHz.rate = 0; | ||
398 | } | ||
399 | return 0; | ||
400 | } | ||
401 | |||
402 | static int pll1_set_rate(struct clk *clk, u32 rate) | ||
403 | { | ||
404 | #if 0 /* doesn't work on some boards, probably a HW BUG */ | ||
405 | if (rate) { | ||
406 | clk_reg_disable(clk); /*enable bit is inverted */ | ||
407 | if (!clk_wait_for_pll_lock(clk)) { | ||
408 | clk->rate = CLK_RATE_13MHZ; | ||
409 | } else { | ||
410 | clk_reg_enable(clk); | ||
411 | clk->rate = 0; | ||
412 | } | ||
413 | |||
414 | } else { | ||
415 | clk_reg_enable(clk); | ||
416 | clk->rate = 0; | ||
417 | } | ||
418 | #endif | ||
419 | return 0; | ||
420 | } | ||
421 | |||
422 | /* Clock sources */ | ||
423 | |||
424 | static struct clk osc_13MHz = { | ||
425 | .name = "osc_13MHz", | ||
426 | .flags = FIXED_RATE, | ||
427 | .rate = CLK_RATE_13MHZ, | ||
428 | }; | ||
429 | |||
430 | static struct clk ck_13MHz = { | ||
431 | .name = "ck_13MHz", | ||
432 | .parent = &osc_13MHz, | ||
433 | .flags = NEEDS_INITIALIZATION, | ||
434 | .round_rate = &ck_13MHz_round_rate, | ||
435 | .set_rate = &ck_13MHz_set_rate, | ||
436 | .enable_reg = OSC13CTRL_REG, | ||
437 | .enable_shift = 0, | ||
438 | .rate = CLK_RATE_13MHZ, | ||
439 | }; | ||
440 | |||
441 | static struct clk osc_32KHz = { | ||
442 | .name = "osc_32KHz", | ||
443 | .flags = FIXED_RATE, | ||
444 | .rate = CLK_RATE_32KHZ, | ||
445 | }; | ||
446 | |||
447 | /*attached to PLL5*/ | ||
448 | static struct clk ck_1MHz = { | ||
449 | .name = "ck_1MHz", | ||
450 | .flags = FIXED_RATE | PARENT_SET_RATE, | ||
451 | .parent = &ck_13MHz, | ||
452 | }; | ||
453 | |||
454 | /* PLL1 (397) - provides 13' MHz clock */ | ||
455 | static struct clk ck_pll1 = { | ||
456 | .name = "ck_pll1", | ||
457 | .parent = &osc_32KHz, | ||
458 | .flags = NEEDS_INITIALIZATION, | ||
459 | .round_rate = &ck_13MHz_round_rate, | ||
460 | .set_rate = &pll1_set_rate, | ||
461 | .enable_reg = PLLCTRL_REG, | ||
462 | .enable_shift = 1, | ||
463 | .scale_reg = PLLCTRL_REG, | ||
464 | .rate = CLK_RATE_13MHZ, | ||
465 | }; | ||
466 | |||
467 | /* CPU/Bus PLL */ | ||
468 | static struct clk ck_pll4 = { | ||
469 | .name = "ck_pll4", | ||
470 | .parent = &ck_pll1, | ||
471 | .flags = RATE_PROPAGATES | NEEDS_INITIALIZATION, | ||
472 | .propagate_next = &per_ck, | ||
473 | .round_rate = &pll4_round_rate, | ||
474 | .set_rate = &pll160_set_rate, | ||
475 | .rate = CLK_RATE_208MHZ, | ||
476 | .scale_reg = HCLKPLLCTRL_REG, | ||
477 | .enable_reg = PWRCTRL_REG, | ||
478 | .enable_shift = 2, | ||
479 | .parent_switch_reg = SYSCLKCTRL_REG, | ||
480 | .set_parent = &set_13MHz_parent, | ||
481 | }; | ||
482 | |||
483 | /* USB PLL */ | ||
484 | static struct clk ck_pll5 = { | ||
485 | .name = "ck_pll5", | ||
486 | .parent = &ck_1MHz, | ||
487 | .flags = NEEDS_INITIALIZATION, | ||
488 | .round_rate = &pll5_round_rate, | ||
489 | .set_rate = &pll160_set_rate, | ||
490 | .scale_reg = USBCTRL_REG, | ||
491 | .enable_reg = USBCTRL_REG, | ||
492 | .enable_shift = 18, | ||
493 | .enable_reg1 = USBCTRL_REG, | ||
494 | .enable_shift1 = 17, | ||
495 | }; | ||
496 | |||
497 | /* XPERTTeak DSP PLL */ | ||
498 | static struct clk ck_pll3 = { | ||
499 | .name = "ck_pll3", | ||
500 | .parent = &ck_pll1, | ||
501 | .flags = NEEDS_INITIALIZATION, | ||
502 | .round_rate = &pll3_round_rate, | ||
503 | .set_rate = &pll160_set_rate, | ||
504 | .scale_reg = DSPPLLCTRL_REG, | ||
505 | .enable_reg = DSPCLKCTRL_REG, | ||
506 | .enable_shift = 3, | ||
507 | .enable_reg1 = DSPCLKCTRL_REG, | ||
508 | .enable_shift1 = 2, | ||
509 | .parent_switch_reg = DSPCLKCTRL_REG, | ||
510 | .set_parent = &set_13MHz_parent, | ||
511 | }; | ||
512 | |||
513 | static struct clk hclk_ck = { | ||
514 | .name = "hclk_ck", | ||
515 | .parent = &ck_pll4, | ||
516 | .flags = PARENT_SET_RATE, | ||
517 | .set_rate = &hclk_set_rate, | ||
518 | .round_rate = &hclk_round_rate, | ||
519 | .scale_reg = HCLKDIVCTRL_REG, | ||
520 | .rate = 2, | ||
521 | .user_rate = 2, | ||
522 | }; | ||
523 | |||
524 | static struct clk per_ck = { | ||
525 | .name = "per_ck", | ||
526 | .parent = &ck_pll4, | ||
527 | .flags = FIXED_RATE, | ||
528 | .propagate_next = &hclk_ck, | ||
529 | .set_rate = &per_clk_set_rate, | ||
530 | .round_rate = &per_clk_round_rate, | ||
531 | .scale_reg = HCLKDIVCTRL_REG, | ||
532 | .rate = CLK_RATE_13MHZ, | ||
533 | .user_rate = CLK_RATE_13MHZ, | ||
534 | }; | ||
535 | |||
536 | static struct clk m2hclk_ck = { | ||
537 | .name = "m2hclk_ck", | ||
538 | .parent = &hclk_ck, | ||
539 | .flags = NEEDS_INITIALIZATION, | ||
540 | .round_rate = &on_off_round_rate, | ||
541 | .set_rate = &on_off_inv_set_rate, | ||
542 | .rate = 1, | ||
543 | .enable_shift = 6, | ||
544 | .enable_reg = PWRCTRL_REG, | ||
545 | }; | ||
546 | |||
547 | static struct clk vfp9_ck = { | ||
548 | .name = "vfp9_ck", | ||
549 | .parent = &ck_pll4, | ||
550 | .flags = NEEDS_INITIALIZATION, | ||
551 | .round_rate = &on_off_round_rate, | ||
552 | .set_rate = &on_off_set_rate, | ||
553 | .rate = 1, | ||
554 | .enable_shift = 4, | ||
555 | .enable_reg = VFP9CLKCTRL_REG, | ||
556 | }; | ||
557 | |||
558 | static struct clk keyscan_ck = { | ||
559 | .name = "keyscan_ck", | ||
560 | .parent = &osc_32KHz, | ||
561 | .flags = NEEDS_INITIALIZATION, | ||
562 | .round_rate = &on_off_round_rate, | ||
563 | .set_rate = &on_off_set_rate, | ||
564 | .enable_shift = 0, | ||
565 | .enable_reg = KEYCLKCTRL_REG, | ||
566 | }; | ||
567 | |||
568 | static struct clk touch_ck = { | ||
569 | .name = "touch_ck", | ||
570 | .parent = &osc_32KHz, | ||
571 | .flags = NEEDS_INITIALIZATION, | ||
572 | .round_rate = &on_off_round_rate, | ||
573 | .set_rate = &on_off_set_rate, | ||
574 | .enable_shift = 0, | ||
575 | .enable_reg = TSCLKCTRL_REG, | ||
576 | }; | ||
577 | |||
578 | static struct clk pwm1_ck = { | ||
579 | .name = "pwm1_ck", | ||
580 | .parent = &osc_32KHz, | ||
581 | .flags = NEEDS_INITIALIZATION, | ||
582 | .round_rate = &on_off_round_rate, | ||
583 | .set_rate = &on_off_set_rate, | ||
584 | .enable_shift = 0, | ||
585 | .enable_reg = PWMCLKCTRL_REG, | ||
586 | }; | ||
587 | |||
588 | static struct clk pwm2_ck = { | ||
589 | .name = "pwm2_ck", | ||
590 | .parent = &osc_32KHz, | ||
591 | .flags = NEEDS_INITIALIZATION, | ||
592 | .round_rate = &on_off_round_rate, | ||
593 | .set_rate = &on_off_set_rate, | ||
594 | .enable_shift = 2, | ||
595 | .enable_reg = PWMCLKCTRL_REG, | ||
596 | }; | ||
597 | |||
598 | static struct clk jpeg_ck = { | ||
599 | .name = "jpeg_ck", | ||
600 | .parent = &hclk_ck, | ||
601 | .flags = NEEDS_INITIALIZATION, | ||
602 | .round_rate = &on_off_round_rate, | ||
603 | .set_rate = &on_off_set_rate, | ||
604 | .enable_shift = 0, | ||
605 | .enable_reg = JPEGCLKCTRL_REG, | ||
606 | }; | ||
607 | |||
608 | static struct clk ms_ck = { | ||
609 | .name = "ms_ck", | ||
610 | .parent = &ck_pll4, | ||
611 | .flags = NEEDS_INITIALIZATION, | ||
612 | .round_rate = &on_off_round_rate, | ||
613 | .set_rate = &on_off_set_rate, | ||
614 | .enable_shift = 5, | ||
615 | .enable_reg = MSCTRL_REG, | ||
616 | }; | ||
617 | |||
618 | static struct clk dum_ck = { | ||
619 | .name = "dum_ck", | ||
620 | .parent = &hclk_ck, | ||
621 | .flags = NEEDS_INITIALIZATION, | ||
622 | .round_rate = &on_off_round_rate, | ||
623 | .set_rate = &on_off_set_rate, | ||
624 | .enable_shift = 0, | ||
625 | .enable_reg = DUMCLKCTRL_REG, | ||
626 | }; | ||
627 | |||
628 | static struct clk flash_ck = { | ||
629 | .name = "flash_ck", | ||
630 | .parent = &hclk_ck, | ||
631 | .round_rate = &on_off_round_rate, | ||
632 | .set_rate = &on_off_set_rate, | ||
633 | .enable_shift = 1, /* Only MLC clock supported */ | ||
634 | .enable_reg = FLASHCLKCTRL_REG, | ||
635 | }; | ||
636 | |||
637 | static struct clk i2c0_ck = { | ||
638 | .name = "i2c0_ck", | ||
639 | .parent = &per_ck, | ||
640 | .flags = NEEDS_INITIALIZATION, | ||
641 | .round_rate = &on_off_round_rate, | ||
642 | .set_rate = &on_off_set_rate, | ||
643 | .enable_shift = 0, | ||
644 | .enable_reg = I2CCLKCTRL_REG, | ||
645 | }; | ||
646 | |||
647 | static struct clk i2c1_ck = { | ||
648 | .name = "i2c1_ck", | ||
649 | .parent = &per_ck, | ||
650 | .flags = NEEDS_INITIALIZATION, | ||
651 | .round_rate = &on_off_round_rate, | ||
652 | .set_rate = &on_off_set_rate, | ||
653 | .enable_shift = 1, | ||
654 | .enable_reg = I2CCLKCTRL_REG, | ||
655 | }; | ||
656 | |||
657 | static struct clk i2c2_ck = { | ||
658 | .name = "i2c2_ck", | ||
659 | .parent = &per_ck, | ||
660 | .flags = NEEDS_INITIALIZATION, | ||
661 | .round_rate = &on_off_round_rate, | ||
662 | .set_rate = &on_off_set_rate, | ||
663 | .enable_shift = 2, | ||
664 | .enable_reg = USB_OTG_CLKCTRL_REG, | ||
665 | }; | ||
666 | |||
667 | static struct clk spi0_ck = { | ||
668 | .name = "spi0_ck", | ||
669 | .parent = &hclk_ck, | ||
670 | .flags = NEEDS_INITIALIZATION, | ||
671 | .round_rate = &on_off_round_rate, | ||
672 | .set_rate = &on_off_set_rate, | ||
673 | .enable_shift = 0, | ||
674 | .enable_reg = SPICTRL_REG, | ||
675 | }; | ||
676 | |||
677 | static struct clk spi1_ck = { | ||
678 | .name = "spi1_ck", | ||
679 | .parent = &hclk_ck, | ||
680 | .flags = NEEDS_INITIALIZATION, | ||
681 | .round_rate = &on_off_round_rate, | ||
682 | .set_rate = &on_off_set_rate, | ||
683 | .enable_shift = 4, | ||
684 | .enable_reg = SPICTRL_REG, | ||
685 | }; | ||
686 | |||
687 | static struct clk dma_ck = { | ||
688 | .name = "dma_ck", | ||
689 | .parent = &hclk_ck, | ||
690 | .round_rate = &on_off_round_rate, | ||
691 | .set_rate = &on_off_set_rate, | ||
692 | .enable_shift = 0, | ||
693 | .enable_reg = DMACLKCTRL_REG, | ||
694 | }; | ||
695 | |||
696 | static struct clk uart3_ck = { | ||
697 | .name = "uart3_ck", | ||
698 | .parent = &per_ck, | ||
699 | .flags = NEEDS_INITIALIZATION, | ||
700 | .round_rate = &on_off_round_rate, | ||
701 | .set_rate = &on_off_set_rate, | ||
702 | .rate = 1, | ||
703 | .enable_shift = 0, | ||
704 | .enable_reg = UARTCLKCTRL_REG, | ||
705 | }; | ||
706 | |||
707 | static struct clk uart4_ck = { | ||
708 | .name = "uart4_ck", | ||
709 | .parent = &per_ck, | ||
710 | .flags = NEEDS_INITIALIZATION, | ||
711 | .round_rate = &on_off_round_rate, | ||
712 | .set_rate = &on_off_set_rate, | ||
713 | .enable_shift = 1, | ||
714 | .enable_reg = UARTCLKCTRL_REG, | ||
715 | }; | ||
716 | |||
717 | static struct clk uart5_ck = { | ||
718 | .name = "uart5_ck", | ||
719 | .parent = &per_ck, | ||
720 | .flags = NEEDS_INITIALIZATION, | ||
721 | .round_rate = &on_off_round_rate, | ||
722 | .set_rate = &on_off_set_rate, | ||
723 | .rate = 1, | ||
724 | .enable_shift = 2, | ||
725 | .enable_reg = UARTCLKCTRL_REG, | ||
726 | }; | ||
727 | |||
728 | static struct clk uart6_ck = { | ||
729 | .name = "uart6_ck", | ||
730 | .parent = &per_ck, | ||
731 | .flags = NEEDS_INITIALIZATION, | ||
732 | .round_rate = &on_off_round_rate, | ||
733 | .set_rate = &on_off_set_rate, | ||
734 | .enable_shift = 3, | ||
735 | .enable_reg = UARTCLKCTRL_REG, | ||
736 | }; | ||
737 | |||
738 | /* These clocks are visible outside this module | ||
739 | * and can be initialized | ||
740 | */ | ||
741 | static struct clk *onchip_clks[] = { | ||
742 | &ck_13MHz, | ||
743 | &ck_pll1, | ||
744 | &ck_pll4, | ||
745 | &ck_pll5, | ||
746 | &ck_pll3, | ||
747 | &vfp9_ck, | ||
748 | &m2hclk_ck, | ||
749 | &hclk_ck, | ||
750 | &dma_ck, | ||
751 | &flash_ck, | ||
752 | &dum_ck, | ||
753 | &keyscan_ck, | ||
754 | &pwm1_ck, | ||
755 | &pwm2_ck, | ||
756 | &jpeg_ck, | ||
757 | &ms_ck, | ||
758 | &touch_ck, | ||
759 | &i2c0_ck, | ||
760 | &i2c1_ck, | ||
761 | &i2c2_ck, | ||
762 | &spi0_ck, | ||
763 | &spi1_ck, | ||
764 | &uart3_ck, | ||
765 | &uart4_ck, | ||
766 | &uart5_ck, | ||
767 | &uart6_ck, | ||
768 | }; | ||
769 | |||
770 | static int local_clk_enable(struct clk *clk) | ||
771 | { | ||
772 | int ret = 0; | ||
773 | |||
774 | if (!(clk->flags & FIXED_RATE) && !clk->rate && clk->set_rate | ||
775 | && clk->user_rate) | ||
776 | ret = clk->set_rate(clk, clk->user_rate); | ||
777 | return ret; | ||
778 | } | ||
779 | |||
780 | static void local_clk_disable(struct clk *clk) | ||
781 | { | ||
782 | if (!(clk->flags & FIXED_RATE) && clk->rate && clk->set_rate) | ||
783 | clk->set_rate(clk, 0); | ||
784 | } | ||
785 | |||
786 | static void local_clk_unuse(struct clk *clk) | ||
787 | { | ||
788 | if (clk->usecount > 0 && !(--clk->usecount)) { | ||
789 | local_clk_disable(clk); | ||
790 | if (clk->parent) | ||
791 | local_clk_unuse(clk->parent); | ||
792 | } | ||
793 | } | ||
794 | |||
795 | static int local_clk_use(struct clk *clk) | ||
796 | { | ||
797 | int ret = 0; | ||
798 | if (clk->usecount++ == 0) { | ||
799 | if (clk->parent) | ||
800 | ret = local_clk_use(clk->parent); | ||
801 | |||
802 | if (ret != 0) { | ||
803 | clk->usecount--; | ||
804 | goto out; | ||
805 | } | ||
806 | |||
807 | ret = local_clk_enable(clk); | ||
808 | |||
809 | if (ret != 0 && clk->parent) { | ||
810 | local_clk_unuse(clk->parent); | ||
811 | clk->usecount--; | ||
812 | } | ||
813 | } | ||
814 | out: | ||
815 | return ret; | ||
816 | } | ||
817 | |||
818 | static int local_set_rate(struct clk *clk, u32 rate) | ||
819 | { | ||
820 | int ret = -EINVAL; | ||
821 | if (clk->set_rate) { | ||
822 | |||
823 | if (clk->user_rate == clk->rate && clk->parent->rate) { | ||
824 | /* if clock enabled or rate not set */ | ||
825 | clk->user_rate = clk->round_rate(clk, rate); | ||
826 | ret = clk->set_rate(clk, clk->user_rate); | ||
827 | } else | ||
828 | clk->user_rate = clk->round_rate(clk, rate); | ||
829 | ret = 0; | ||
830 | } | ||
831 | return ret; | ||
832 | } | ||
833 | |||
834 | int clk_set_rate(struct clk *clk, unsigned long rate) | ||
835 | { | ||
836 | int ret = -EINVAL; | ||
837 | |||
838 | if (clk->flags & FIXED_RATE) | ||
839 | goto out; | ||
840 | |||
841 | clock_lock(); | ||
842 | if ((clk->flags & PARENT_SET_RATE) && clk->parent) { | ||
843 | |||
844 | clk->user_rate = clk->round_rate(clk, rate); | ||
845 | /* parent clock needs to be refreshed | ||
846 | for the setting to take effect */ | ||
847 | } else { | ||
848 | ret = local_set_rate(clk, rate); | ||
849 | } | ||
850 | ret = 0; | ||
851 | clock_unlock(); | ||
852 | |||
853 | out: | ||
854 | return ret; | ||
855 | } | ||
856 | |||
857 | EXPORT_SYMBOL(clk_set_rate); | ||
858 | |||
859 | struct clk *clk_get(struct device *dev, const char *id) | ||
860 | { | ||
861 | struct clk *clk = ERR_PTR(-ENOENT); | ||
862 | struct clk **clkp; | ||
863 | |||
864 | clock_lock(); | ||
865 | for (clkp = onchip_clks; clkp < onchip_clks + ARRAY_SIZE(onchip_clks); | ||
866 | clkp++) { | ||
867 | if (strcmp(id, (*clkp)->name) == 0 | ||
868 | && try_module_get((*clkp)->owner)) { | ||
869 | clk = (*clkp); | ||
870 | break; | ||
871 | } | ||
872 | } | ||
873 | clock_unlock(); | ||
874 | |||
875 | return clk; | ||
876 | } | ||
877 | EXPORT_SYMBOL(clk_get); | ||
878 | |||
879 | void clk_put(struct clk *clk) | ||
880 | { | ||
881 | clock_lock(); | ||
882 | if (clk && !IS_ERR(clk)) | ||
883 | module_put(clk->owner); | ||
884 | clock_unlock(); | ||
885 | } | ||
886 | EXPORT_SYMBOL(clk_put); | ||
887 | |||
888 | unsigned long clk_get_rate(struct clk *clk) | ||
889 | { | ||
890 | unsigned long ret; | ||
891 | clock_lock(); | ||
892 | ret = clk->rate; | ||
893 | clock_unlock(); | ||
894 | return ret; | ||
895 | } | ||
896 | EXPORT_SYMBOL(clk_get_rate); | ||
897 | |||
898 | int clk_enable(struct clk *clk) | ||
899 | { | ||
900 | int ret = 0; | ||
901 | |||
902 | clock_lock(); | ||
903 | ret = local_clk_use(clk); | ||
904 | clock_unlock(); | ||
905 | return ret; | ||
906 | } | ||
907 | |||
908 | EXPORT_SYMBOL(clk_enable); | ||
909 | |||
910 | void clk_disable(struct clk *clk) | ||
911 | { | ||
912 | clock_lock(); | ||
913 | local_clk_unuse(clk); | ||
914 | clock_unlock(); | ||
915 | } | ||
916 | |||
917 | EXPORT_SYMBOL(clk_disable); | ||
918 | |||
919 | long clk_round_rate(struct clk *clk, unsigned long rate) | ||
920 | { | ||
921 | long ret; | ||
922 | clock_lock(); | ||
923 | if (clk->round_rate) | ||
924 | ret = clk->round_rate(clk, rate); | ||
925 | else | ||
926 | ret = clk->rate; | ||
927 | clock_unlock(); | ||
928 | return ret; | ||
929 | } | ||
930 | |||
931 | EXPORT_SYMBOL(clk_round_rate); | ||
932 | |||
933 | int clk_set_parent(struct clk *clk, struct clk *parent) | ||
934 | { | ||
935 | int ret = -ENODEV; | ||
936 | if (!clk->set_parent) | ||
937 | goto out; | ||
938 | |||
939 | clock_lock(); | ||
940 | ret = clk->set_parent(clk, parent); | ||
941 | if (!ret) | ||
942 | clk->parent = parent; | ||
943 | clock_unlock(); | ||
944 | |||
945 | out: | ||
946 | return ret; | ||
947 | } | ||
948 | |||
949 | EXPORT_SYMBOL(clk_set_parent); | ||
950 | |||
951 | static int __init clk_init(void) | ||
952 | { | ||
953 | struct clk **clkp; | ||
954 | |||
955 | /* Disable autoclocking, as it doesn't seem to work */ | ||
956 | __raw_writel(0xff, AUTOCLK_CTRL); | ||
957 | |||
958 | for (clkp = onchip_clks; clkp < onchip_clks + ARRAY_SIZE(onchip_clks); | ||
959 | clkp++) { | ||
960 | if (((*clkp)->flags & NEEDS_INITIALIZATION) | ||
961 | && ((*clkp)->set_rate)) { | ||
962 | (*clkp)->user_rate = (*clkp)->rate; | ||
963 | local_set_rate((*clkp), (*clkp)->user_rate); | ||
964 | if ((*clkp)->set_parent) | ||
965 | (*clkp)->set_parent((*clkp), (*clkp)->parent); | ||
966 | } | ||
967 | pr_debug("%s: clock %s, rate %ld\n", | ||
968 | __FUNCTION__, (*clkp)->name, (*clkp)->rate); | ||
969 | } | ||
970 | |||
971 | local_clk_use(&ck_pll4); | ||
972 | |||
973 | /* if ck_13MHz is not used, disable it. */ | ||
974 | if (ck_13MHz.usecount == 0) | ||
975 | local_clk_disable(&ck_13MHz); | ||
976 | |||
977 | /* Disable autoclocking */ | ||
978 | __raw_writeb(0xff, AUTOCLK_CTRL); | ||
979 | |||
980 | return 0; | ||
981 | } | ||
982 | |||
983 | arch_initcall(clk_init); | ||
diff --git a/arch/arm/mach-pnx4008/clock.h b/arch/arm/mach-pnx4008/clock.h new file mode 100644 index 000000000000..cd58f372cfd0 --- /dev/null +++ b/arch/arm/mach-pnx4008/clock.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/clock.h | ||
3 | * | ||
4 | * Clock control driver for PNX4008 - internal header file | ||
5 | * | ||
6 | * Author: Vitaly Wool <source@mvista.com> | ||
7 | * | ||
8 | * 2006 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PNX4008_CLOCK_H__ | ||
14 | #define __ARCH_ARM_PNX4008_CLOCK_H__ | ||
15 | |||
16 | struct clk { | ||
17 | struct list_head node; | ||
18 | struct module *owner; | ||
19 | const char *name; | ||
20 | struct clk *parent; | ||
21 | struct clk *propagate_next; | ||
22 | u32 rate; | ||
23 | u32 user_rate; | ||
24 | s8 usecount; | ||
25 | u32 flags; | ||
26 | u32 scale_reg; | ||
27 | u8 enable_shift; | ||
28 | u32 enable_reg; | ||
29 | u8 enable_shift1; | ||
30 | u32 enable_reg1; | ||
31 | u32 parent_switch_reg; | ||
32 | u32(*round_rate) (struct clk *, u32); | ||
33 | int (*set_rate) (struct clk *, u32); | ||
34 | int (*set_parent) (struct clk * clk, struct clk * parent); | ||
35 | }; | ||
36 | |||
37 | /* Flags */ | ||
38 | #define RATE_PROPAGATES (1<<0) | ||
39 | #define NEEDS_INITIALIZATION (1<<1) | ||
40 | #define PARENT_SET_RATE (1<<2) | ||
41 | #define FIXED_RATE (1<<3) | ||
42 | |||
43 | #endif | ||
diff --git a/arch/arm/mach-pnx4008/core.c b/arch/arm/mach-pnx4008/core.c new file mode 100644 index 000000000000..ba91daad64fb --- /dev/null +++ b/arch/arm/mach-pnx4008/core.c | |||
@@ -0,0 +1,207 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/core.c | ||
3 | * | ||
4 | * PNX4008 core startup code | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev, | ||
7 | * Grigory Tolstolytkin, Dmitry Pervushin <source@mvista.com> | ||
8 | * | ||
9 | * Based on reference code received from Philips: | ||
10 | * Copyright (C) 2003 Philips Semiconductors | ||
11 | * | ||
12 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
13 | * the terms of the GNU General Public License version 2. This program | ||
14 | * is licensed "as is" without any warranty of any kind, whether express | ||
15 | * or implied. | ||
16 | */ | ||
17 | |||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/types.h> | ||
20 | #include <linux/mm.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/list.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/serial_8250.h> | ||
26 | #include <linux/device.h> | ||
27 | #include <linux/spi/spi.h> | ||
28 | |||
29 | #include <asm/hardware.h> | ||
30 | #include <asm/irq.h> | ||
31 | #include <asm/io.h> | ||
32 | #include <asm/setup.h> | ||
33 | #include <asm/mach-types.h> | ||
34 | #include <asm/pgtable.h> | ||
35 | #include <asm/page.h> | ||
36 | #include <asm/system.h> | ||
37 | |||
38 | #include <asm/mach/arch.h> | ||
39 | #include <asm/mach/irq.h> | ||
40 | #include <asm/mach/map.h> | ||
41 | #include <asm/mach/time.h> | ||
42 | |||
43 | #include <asm/arch/irq.h> | ||
44 | #include <asm/arch/clock.h> | ||
45 | #include <asm/arch/dma.h> | ||
46 | |||
47 | struct resource spipnx_0_resources[] = { | ||
48 | { | ||
49 | .start = PNX4008_SPI1_BASE, | ||
50 | .end = PNX4008_SPI1_BASE + SZ_4K, | ||
51 | .flags = IORESOURCE_MEM, | ||
52 | }, { | ||
53 | .start = PER_SPI1_REC_XMIT, | ||
54 | .flags = IORESOURCE_DMA, | ||
55 | }, { | ||
56 | .start = SPI1_INT, | ||
57 | .flags = IORESOURCE_IRQ, | ||
58 | }, { | ||
59 | .flags = 0, | ||
60 | }, | ||
61 | }; | ||
62 | |||
63 | struct resource spipnx_1_resources[] = { | ||
64 | { | ||
65 | .start = PNX4008_SPI2_BASE, | ||
66 | .end = PNX4008_SPI2_BASE + SZ_4K, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, { | ||
69 | .start = PER_SPI2_REC_XMIT, | ||
70 | .flags = IORESOURCE_DMA, | ||
71 | }, { | ||
72 | .start = SPI2_INT, | ||
73 | .flags = IORESOURCE_IRQ, | ||
74 | }, { | ||
75 | .flags = 0, | ||
76 | } | ||
77 | }; | ||
78 | |||
79 | static struct spi_board_info spi_board_info[] __initdata = { | ||
80 | { | ||
81 | .modalias = "m25p80", | ||
82 | .max_speed_hz = 1000000, | ||
83 | .bus_num = 1, | ||
84 | .chip_select = 0, | ||
85 | }, | ||
86 | }; | ||
87 | |||
88 | static struct platform_device spipnx_1 = { | ||
89 | .name = "spipnx", | ||
90 | .id = 1, | ||
91 | .num_resources = ARRAY_SIZE(spipnx_0_resources), | ||
92 | .resource = spipnx_0_resources, | ||
93 | .dev = { | ||
94 | .coherent_dma_mask = 0xFFFFFFFF, | ||
95 | }, | ||
96 | }; | ||
97 | |||
98 | static struct platform_device spipnx_2 = { | ||
99 | .name = "spipnx", | ||
100 | .id = 2, | ||
101 | .num_resources = ARRAY_SIZE(spipnx_1_resources), | ||
102 | .resource = spipnx_1_resources, | ||
103 | .dev = { | ||
104 | .coherent_dma_mask = 0xFFFFFFFF, | ||
105 | }, | ||
106 | }; | ||
107 | |||
108 | static struct plat_serial8250_port platform_serial_ports[] = { | ||
109 | { | ||
110 | .membase = (void *)__iomem(IO_ADDRESS(PNX4008_UART5_BASE)), | ||
111 | .mapbase = (unsigned long)PNX4008_UART5_BASE, | ||
112 | .irq = IIR5_INT, | ||
113 | .uartclk = PNX4008_UART_CLK, | ||
114 | .regshift = 2, | ||
115 | .iotype = UPIO_MEM, | ||
116 | .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART | UPF_SKIP_TEST, | ||
117 | }, | ||
118 | { | ||
119 | .membase = (void *)__iomem(IO_ADDRESS(PNX4008_UART3_BASE)), | ||
120 | .mapbase = (unsigned long)PNX4008_UART3_BASE, | ||
121 | .irq = IIR3_INT, | ||
122 | .uartclk = PNX4008_UART_CLK, | ||
123 | .regshift = 2, | ||
124 | .iotype = UPIO_MEM, | ||
125 | .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART | UPF_SKIP_TEST, | ||
126 | }, | ||
127 | {} | ||
128 | }; | ||
129 | |||
130 | static struct platform_device serial_device = { | ||
131 | .name = "serial8250", | ||
132 | .id = PLAT8250_DEV_PLATFORM, | ||
133 | .dev = { | ||
134 | .platform_data = &platform_serial_ports, | ||
135 | }, | ||
136 | }; | ||
137 | |||
138 | static struct platform_device *devices[] __initdata = { | ||
139 | &spipnx_1, | ||
140 | &spipnx_2, | ||
141 | &serial_device, | ||
142 | }; | ||
143 | |||
144 | |||
145 | extern void pnx4008_uart_init(void); | ||
146 | |||
147 | static void __init pnx4008_init(void) | ||
148 | { | ||
149 | /*disable all START interrupt sources, | ||
150 | and clear all START interrupt flags */ | ||
151 | __raw_writel(0, START_INT_ER_REG(SE_PIN_BASE_INT)); | ||
152 | __raw_writel(0, START_INT_ER_REG(SE_INT_BASE_INT)); | ||
153 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_PIN_BASE_INT)); | ||
154 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_INT_BASE_INT)); | ||
155 | |||
156 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
157 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | ||
158 | /* Switch on the UART clocks */ | ||
159 | pnx4008_uart_init(); | ||
160 | } | ||
161 | |||
162 | static struct map_desc pnx4008_io_desc[] __initdata = { | ||
163 | { | ||
164 | .virtual = IO_ADDRESS(PNX4008_IRAM_BASE), | ||
165 | .pfn = __phys_to_pfn(PNX4008_IRAM_BASE), | ||
166 | .length = SZ_64K, | ||
167 | .type = MT_DEVICE, | ||
168 | }, { | ||
169 | .virtual = IO_ADDRESS(PNX4008_NDF_FLASH_BASE), | ||
170 | .pfn = __phys_to_pfn(PNX4008_NDF_FLASH_BASE), | ||
171 | .length = SZ_1M - SZ_128K, | ||
172 | .type = MT_DEVICE, | ||
173 | }, { | ||
174 | .virtual = IO_ADDRESS(PNX4008_JPEG_CONFIG_BASE), | ||
175 | .pfn = __phys_to_pfn(PNX4008_JPEG_CONFIG_BASE), | ||
176 | .length = SZ_128K * 3, | ||
177 | .type = MT_DEVICE, | ||
178 | }, { | ||
179 | .virtual = IO_ADDRESS(PNX4008_DMA_CONFIG_BASE), | ||
180 | .pfn = __phys_to_pfn(PNX4008_DMA_CONFIG_BASE), | ||
181 | .length = SZ_1M, | ||
182 | .type = MT_DEVICE, | ||
183 | }, { | ||
184 | .virtual = IO_ADDRESS(PNX4008_AHB2FAB_BASE), | ||
185 | .pfn = __phys_to_pfn(PNX4008_AHB2FAB_BASE), | ||
186 | .length = SZ_1M, | ||
187 | .type = MT_DEVICE, | ||
188 | }, | ||
189 | }; | ||
190 | |||
191 | void __init pnx4008_map_io(void) | ||
192 | { | ||
193 | iotable_init(pnx4008_io_desc, ARRAY_SIZE(pnx4008_io_desc)); | ||
194 | } | ||
195 | |||
196 | extern struct sys_timer pnx4008_timer; | ||
197 | |||
198 | MACHINE_START(PNX4008, "Philips PNX4008") | ||
199 | /* Maintainer: MontaVista Software Inc. */ | ||
200 | .phys_io = 0x40090000, | ||
201 | .io_pg_offst = (0xf4090000 >> 18) & 0xfffc, | ||
202 | .boot_params = 0x80000100, | ||
203 | .map_io = pnx4008_map_io, | ||
204 | .init_irq = pnx4008_init_irq, | ||
205 | .init_machine = pnx4008_init, | ||
206 | .timer = &pnx4008_timer, | ||
207 | MACHINE_END | ||
diff --git a/arch/arm/mach-pnx4008/dma.c b/arch/arm/mach-pnx4008/dma.c new file mode 100644 index 000000000000..981aa9dcdede --- /dev/null +++ b/arch/arm/mach-pnx4008/dma.c | |||
@@ -0,0 +1,1109 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/dma.c | ||
3 | * | ||
4 | * PNX4008 DMA registration and IRQ dispatching | ||
5 | * | ||
6 | * Author: Vitaly Wool | ||
7 | * Copyright: MontaVista Software Inc. (c) 2005 | ||
8 | * | ||
9 | * Based on the code from Nicolas Pitre | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/module.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/errno.h> | ||
21 | #include <linux/err.h> | ||
22 | #include <linux/dma-mapping.h> | ||
23 | #include <linux/clk.h> | ||
24 | |||
25 | #include <asm/system.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/dma.h> | ||
29 | #include <asm/dma-mapping.h> | ||
30 | #include <asm/io.h> | ||
31 | #include <asm/mach/dma.h> | ||
32 | #include <asm/arch/clock.h> | ||
33 | |||
34 | static struct dma_channel { | ||
35 | char *name; | ||
36 | void (*irq_handler) (int, int, void *, struct pt_regs *); | ||
37 | void *data; | ||
38 | struct pnx4008_dma_ll *ll; | ||
39 | u32 ll_dma; | ||
40 | void *target_addr; | ||
41 | int target_id; | ||
42 | } dma_channels[MAX_DMA_CHANNELS]; | ||
43 | |||
44 | static struct ll_pool { | ||
45 | void *vaddr; | ||
46 | void *cur; | ||
47 | dma_addr_t dma_addr; | ||
48 | int count; | ||
49 | } ll_pool; | ||
50 | |||
51 | static spinlock_t ll_lock = SPIN_LOCK_UNLOCKED; | ||
52 | |||
53 | struct pnx4008_dma_ll *pnx4008_alloc_ll_entry(dma_addr_t * ll_dma) | ||
54 | { | ||
55 | struct pnx4008_dma_ll *ll = NULL; | ||
56 | unsigned long flags; | ||
57 | |||
58 | spin_lock_irqsave(&ll_lock, flags); | ||
59 | if (ll_pool.count > 4) { /* can give one more */ | ||
60 | ll = *(struct pnx4008_dma_ll **) ll_pool.cur; | ||
61 | *ll_dma = ll_pool.dma_addr + ((void *)ll - ll_pool.vaddr); | ||
62 | *(void **)ll_pool.cur = **(void ***)ll_pool.cur; | ||
63 | memset(ll, 0, sizeof(*ll)); | ||
64 | ll_pool.count--; | ||
65 | } | ||
66 | spin_unlock_irqrestore(&ll_lock, flags); | ||
67 | |||
68 | return ll; | ||
69 | } | ||
70 | |||
71 | EXPORT_SYMBOL_GPL(pnx4008_alloc_ll_entry); | ||
72 | |||
73 | void pnx4008_free_ll_entry(struct pnx4008_dma_ll * ll, dma_addr_t ll_dma) | ||
74 | { | ||
75 | unsigned long flags; | ||
76 | |||
77 | if (ll) { | ||
78 | if ((unsigned long)((long)ll - (long)ll_pool.vaddr) > 0x4000) { | ||
79 | printk(KERN_ERR "Trying to free entry not allocated by DMA\n"); | ||
80 | BUG(); | ||
81 | } | ||
82 | |||
83 | if (ll->flags & DMA_BUFFER_ALLOCATED) | ||
84 | ll->free(ll->alloc_data); | ||
85 | |||
86 | spin_lock_irqsave(&ll_lock, flags); | ||
87 | *(long *)ll = *(long *)ll_pool.cur; | ||
88 | *(long *)ll_pool.cur = (long)ll; | ||
89 | ll_pool.count++; | ||
90 | spin_unlock_irqrestore(&ll_lock, flags); | ||
91 | } | ||
92 | } | ||
93 | |||
94 | EXPORT_SYMBOL_GPL(pnx4008_free_ll_entry); | ||
95 | |||
96 | void pnx4008_free_ll(u32 ll_dma, struct pnx4008_dma_ll * ll) | ||
97 | { | ||
98 | struct pnx4008_dma_ll *ptr; | ||
99 | u32 dma; | ||
100 | |||
101 | while (ll) { | ||
102 | dma = ll->next_dma; | ||
103 | ptr = ll->next; | ||
104 | pnx4008_free_ll_entry(ll, ll_dma); | ||
105 | |||
106 | ll_dma = dma; | ||
107 | ll = ptr; | ||
108 | } | ||
109 | } | ||
110 | |||
111 | EXPORT_SYMBOL_GPL(pnx4008_free_ll); | ||
112 | |||
113 | static int dma_channels_requested = 0; | ||
114 | |||
115 | static inline void dma_increment_usage(void) | ||
116 | { | ||
117 | if (!dma_channels_requested++) { | ||
118 | struct clk *clk = clk_get(0, "dma_ck"); | ||
119 | if (!IS_ERR(clk)) { | ||
120 | clk_set_rate(clk, 1); | ||
121 | clk_put(clk); | ||
122 | } | ||
123 | pnx4008_config_dma(-1, -1, 1); | ||
124 | } | ||
125 | } | ||
126 | static inline void dma_decrement_usage(void) | ||
127 | { | ||
128 | if (!--dma_channels_requested) { | ||
129 | struct clk *clk = clk_get(0, "dma_ck"); | ||
130 | if (!IS_ERR(clk)) { | ||
131 | clk_set_rate(clk, 0); | ||
132 | clk_put(clk); | ||
133 | } | ||
134 | pnx4008_config_dma(-1, -1, 0); | ||
135 | |||
136 | } | ||
137 | } | ||
138 | |||
139 | static spinlock_t dma_lock = SPIN_LOCK_UNLOCKED; | ||
140 | |||
141 | static inline void pnx4008_dma_lock(void) | ||
142 | { | ||
143 | spin_lock_irq(&dma_lock); | ||
144 | } | ||
145 | |||
146 | static inline void pnx4008_dma_unlock(void) | ||
147 | { | ||
148 | spin_unlock_irq(&dma_lock); | ||
149 | } | ||
150 | |||
151 | #define VALID_CHANNEL(c) (((c) >= 0) && ((c) < MAX_DMA_CHANNELS)) | ||
152 | |||
153 | int pnx4008_request_channel(char *name, int ch, | ||
154 | void (*irq_handler) (int, int, void *, | ||
155 | struct pt_regs *), void *data) | ||
156 | { | ||
157 | int i, found = 0; | ||
158 | |||
159 | /* basic sanity checks */ | ||
160 | if (!name || (ch != -1 && !VALID_CHANNEL(ch))) | ||
161 | return -EINVAL; | ||
162 | |||
163 | pnx4008_dma_lock(); | ||
164 | |||
165 | /* try grabbing a DMA channel with the requested priority */ | ||
166 | for (i = MAX_DMA_CHANNELS - 1; i >= 0; i--) { | ||
167 | if (!dma_channels[i].name && (ch == -1 || ch == i)) { | ||
168 | found = 1; | ||
169 | break; | ||
170 | } | ||
171 | } | ||
172 | |||
173 | if (found) { | ||
174 | dma_increment_usage(); | ||
175 | dma_channels[i].name = name; | ||
176 | dma_channels[i].irq_handler = irq_handler; | ||
177 | dma_channels[i].data = data; | ||
178 | dma_channels[i].ll = NULL; | ||
179 | dma_channels[i].ll_dma = 0; | ||
180 | } else { | ||
181 | printk(KERN_WARNING "No more available DMA channels for %s\n", | ||
182 | name); | ||
183 | i = -ENODEV; | ||
184 | } | ||
185 | |||
186 | pnx4008_dma_unlock(); | ||
187 | return i; | ||
188 | } | ||
189 | |||
190 | EXPORT_SYMBOL_GPL(pnx4008_request_channel); | ||
191 | |||
192 | void pnx4008_free_channel(int ch) | ||
193 | { | ||
194 | if (!dma_channels[ch].name) { | ||
195 | printk(KERN_CRIT | ||
196 | "%s: trying to free channel %d which is already freed\n", | ||
197 | __FUNCTION__, ch); | ||
198 | return; | ||
199 | } | ||
200 | |||
201 | pnx4008_dma_lock(); | ||
202 | pnx4008_free_ll(dma_channels[ch].ll_dma, dma_channels[ch].ll); | ||
203 | dma_channels[ch].ll = NULL; | ||
204 | dma_decrement_usage(); | ||
205 | |||
206 | dma_channels[ch].name = NULL; | ||
207 | pnx4008_dma_unlock(); | ||
208 | } | ||
209 | |||
210 | EXPORT_SYMBOL_GPL(pnx4008_free_channel); | ||
211 | |||
212 | int pnx4008_config_dma(int ahb_m1_be, int ahb_m2_be, int enable) | ||
213 | { | ||
214 | unsigned long dma_cfg = __raw_readl(DMAC_CONFIG); | ||
215 | |||
216 | switch (ahb_m1_be) { | ||
217 | case 0: | ||
218 | dma_cfg &= ~(1 << 1); | ||
219 | break; | ||
220 | case 1: | ||
221 | dma_cfg |= (1 << 1); | ||
222 | break; | ||
223 | default: | ||
224 | break; | ||
225 | } | ||
226 | |||
227 | switch (ahb_m2_be) { | ||
228 | case 0: | ||
229 | dma_cfg &= ~(1 << 2); | ||
230 | break; | ||
231 | case 1: | ||
232 | dma_cfg |= (1 << 2); | ||
233 | break; | ||
234 | default: | ||
235 | break; | ||
236 | } | ||
237 | |||
238 | switch (enable) { | ||
239 | case 0: | ||
240 | dma_cfg &= ~(1 << 0); | ||
241 | break; | ||
242 | case 1: | ||
243 | dma_cfg |= (1 << 0); | ||
244 | break; | ||
245 | default: | ||
246 | break; | ||
247 | } | ||
248 | |||
249 | pnx4008_dma_lock(); | ||
250 | __raw_writel(dma_cfg, DMAC_CONFIG); | ||
251 | pnx4008_dma_unlock(); | ||
252 | |||
253 | return 0; | ||
254 | } | ||
255 | |||
256 | EXPORT_SYMBOL_GPL(pnx4008_config_dma); | ||
257 | |||
258 | int pnx4008_dma_pack_control(const struct pnx4008_dma_ch_ctrl * ch_ctrl, | ||
259 | unsigned long *ctrl) | ||
260 | { | ||
261 | int i = 0, dbsize, sbsize, err = 0; | ||
262 | |||
263 | if (!ctrl || !ch_ctrl) { | ||
264 | err = -EINVAL; | ||
265 | goto out; | ||
266 | } | ||
267 | |||
268 | *ctrl = 0; | ||
269 | |||
270 | switch (ch_ctrl->tc_mask) { | ||
271 | case 0: | ||
272 | break; | ||
273 | case 1: | ||
274 | *ctrl |= (1 << 31); | ||
275 | break; | ||
276 | |||
277 | default: | ||
278 | err = -EINVAL; | ||
279 | goto out; | ||
280 | } | ||
281 | |||
282 | switch (ch_ctrl->cacheable) { | ||
283 | case 0: | ||
284 | break; | ||
285 | case 1: | ||
286 | *ctrl |= (1 << 30); | ||
287 | break; | ||
288 | |||
289 | default: | ||
290 | err = -EINVAL; | ||
291 | goto out; | ||
292 | } | ||
293 | switch (ch_ctrl->bufferable) { | ||
294 | case 0: | ||
295 | break; | ||
296 | case 1: | ||
297 | *ctrl |= (1 << 29); | ||
298 | break; | ||
299 | |||
300 | default: | ||
301 | err = -EINVAL; | ||
302 | goto out; | ||
303 | } | ||
304 | switch (ch_ctrl->priv_mode) { | ||
305 | case 0: | ||
306 | break; | ||
307 | case 1: | ||
308 | *ctrl |= (1 << 28); | ||
309 | break; | ||
310 | |||
311 | default: | ||
312 | err = -EINVAL; | ||
313 | goto out; | ||
314 | } | ||
315 | switch (ch_ctrl->di) { | ||
316 | case 0: | ||
317 | break; | ||
318 | case 1: | ||
319 | *ctrl |= (1 << 27); | ||
320 | break; | ||
321 | |||
322 | default: | ||
323 | err = -EINVAL; | ||
324 | goto out; | ||
325 | } | ||
326 | switch (ch_ctrl->si) { | ||
327 | case 0: | ||
328 | break; | ||
329 | case 1: | ||
330 | *ctrl |= (1 << 26); | ||
331 | break; | ||
332 | |||
333 | default: | ||
334 | err = -EINVAL; | ||
335 | goto out; | ||
336 | } | ||
337 | switch (ch_ctrl->dest_ahb1) { | ||
338 | case 0: | ||
339 | break; | ||
340 | case 1: | ||
341 | *ctrl |= (1 << 25); | ||
342 | break; | ||
343 | |||
344 | default: | ||
345 | err = -EINVAL; | ||
346 | goto out; | ||
347 | } | ||
348 | switch (ch_ctrl->src_ahb1) { | ||
349 | case 0: | ||
350 | break; | ||
351 | case 1: | ||
352 | *ctrl |= (1 << 24); | ||
353 | break; | ||
354 | |||
355 | default: | ||
356 | err = -EINVAL; | ||
357 | goto out; | ||
358 | } | ||
359 | switch (ch_ctrl->dwidth) { | ||
360 | case WIDTH_BYTE: | ||
361 | *ctrl &= ~(7 << 21); | ||
362 | break; | ||
363 | case WIDTH_HWORD: | ||
364 | *ctrl &= ~(7 << 21); | ||
365 | *ctrl |= (1 << 21); | ||
366 | break; | ||
367 | case WIDTH_WORD: | ||
368 | *ctrl &= ~(7 << 21); | ||
369 | *ctrl |= (2 << 21); | ||
370 | break; | ||
371 | |||
372 | default: | ||
373 | err = -EINVAL; | ||
374 | goto out; | ||
375 | } | ||
376 | switch (ch_ctrl->swidth) { | ||
377 | case WIDTH_BYTE: | ||
378 | *ctrl &= ~(7 << 18); | ||
379 | break; | ||
380 | case WIDTH_HWORD: | ||
381 | *ctrl &= ~(7 << 18); | ||
382 | *ctrl |= (1 << 18); | ||
383 | break; | ||
384 | case WIDTH_WORD: | ||
385 | *ctrl &= ~(7 << 18); | ||
386 | *ctrl |= (2 << 18); | ||
387 | break; | ||
388 | |||
389 | default: | ||
390 | err = -EINVAL; | ||
391 | goto out; | ||
392 | } | ||
393 | dbsize = ch_ctrl->dbsize; | ||
394 | while (!(dbsize & 1)) { | ||
395 | i++; | ||
396 | dbsize >>= 1; | ||
397 | } | ||
398 | if (ch_ctrl->dbsize != 1 || i > 8 || i == 1) { | ||
399 | err = -EINVAL; | ||
400 | goto out; | ||
401 | } else if (i > 1) | ||
402 | i--; | ||
403 | *ctrl &= ~(7 << 15); | ||
404 | *ctrl |= (i << 15); | ||
405 | |||
406 | sbsize = ch_ctrl->sbsize; | ||
407 | while (!(sbsize & 1)) { | ||
408 | i++; | ||
409 | sbsize >>= 1; | ||
410 | } | ||
411 | if (ch_ctrl->sbsize != 1 || i > 8 || i == 1) { | ||
412 | err = -EINVAL; | ||
413 | goto out; | ||
414 | } else if (i > 1) | ||
415 | i--; | ||
416 | *ctrl &= ~(7 << 12); | ||
417 | *ctrl |= (i << 12); | ||
418 | |||
419 | if (ch_ctrl->tr_size > 0x7ff) { | ||
420 | err = -E2BIG; | ||
421 | goto out; | ||
422 | } | ||
423 | *ctrl &= ~0x7ff; | ||
424 | *ctrl |= ch_ctrl->tr_size & 0x7ff; | ||
425 | |||
426 | out: | ||
427 | return err; | ||
428 | } | ||
429 | |||
430 | EXPORT_SYMBOL_GPL(pnx4008_dma_pack_control); | ||
431 | |||
432 | int pnx4008_dma_parse_control(unsigned long ctrl, | ||
433 | struct pnx4008_dma_ch_ctrl * ch_ctrl) | ||
434 | { | ||
435 | int err = 0; | ||
436 | |||
437 | if (!ch_ctrl) { | ||
438 | err = -EINVAL; | ||
439 | goto out; | ||
440 | } | ||
441 | |||
442 | ch_ctrl->tr_size = ctrl & 0x7ff; | ||
443 | ctrl >>= 12; | ||
444 | |||
445 | ch_ctrl->sbsize = 1 << (ctrl & 7); | ||
446 | if (ch_ctrl->sbsize > 1) | ||
447 | ch_ctrl->sbsize <<= 1; | ||
448 | ctrl >>= 3; | ||
449 | |||
450 | ch_ctrl->dbsize = 1 << (ctrl & 7); | ||
451 | if (ch_ctrl->dbsize > 1) | ||
452 | ch_ctrl->dbsize <<= 1; | ||
453 | ctrl >>= 3; | ||
454 | |||
455 | switch (ctrl & 7) { | ||
456 | case 0: | ||
457 | ch_ctrl->swidth = WIDTH_BYTE; | ||
458 | break; | ||
459 | case 1: | ||
460 | ch_ctrl->swidth = WIDTH_HWORD; | ||
461 | break; | ||
462 | case 2: | ||
463 | ch_ctrl->swidth = WIDTH_WORD; | ||
464 | break; | ||
465 | default: | ||
466 | err = -EINVAL; | ||
467 | goto out; | ||
468 | } | ||
469 | ctrl >>= 3; | ||
470 | |||
471 | switch (ctrl & 7) { | ||
472 | case 0: | ||
473 | ch_ctrl->dwidth = WIDTH_BYTE; | ||
474 | break; | ||
475 | case 1: | ||
476 | ch_ctrl->dwidth = WIDTH_HWORD; | ||
477 | break; | ||
478 | case 2: | ||
479 | ch_ctrl->dwidth = WIDTH_WORD; | ||
480 | break; | ||
481 | default: | ||
482 | err = -EINVAL; | ||
483 | goto out; | ||
484 | } | ||
485 | ctrl >>= 3; | ||
486 | |||
487 | ch_ctrl->src_ahb1 = ctrl & 1; | ||
488 | ctrl >>= 1; | ||
489 | |||
490 | ch_ctrl->dest_ahb1 = ctrl & 1; | ||
491 | ctrl >>= 1; | ||
492 | |||
493 | ch_ctrl->si = ctrl & 1; | ||
494 | ctrl >>= 1; | ||
495 | |||
496 | ch_ctrl->di = ctrl & 1; | ||
497 | ctrl >>= 1; | ||
498 | |||
499 | ch_ctrl->priv_mode = ctrl & 1; | ||
500 | ctrl >>= 1; | ||
501 | |||
502 | ch_ctrl->bufferable = ctrl & 1; | ||
503 | ctrl >>= 1; | ||
504 | |||
505 | ch_ctrl->cacheable = ctrl & 1; | ||
506 | ctrl >>= 1; | ||
507 | |||
508 | ch_ctrl->tc_mask = ctrl & 1; | ||
509 | |||
510 | out: | ||
511 | return err; | ||
512 | } | ||
513 | |||
514 | EXPORT_SYMBOL_GPL(pnx4008_dma_parse_control); | ||
515 | |||
516 | int pnx4008_dma_pack_config(const struct pnx4008_dma_ch_config * ch_cfg, | ||
517 | unsigned long *cfg) | ||
518 | { | ||
519 | int err = 0; | ||
520 | |||
521 | if (!cfg || !ch_cfg) { | ||
522 | err = -EINVAL; | ||
523 | goto out; | ||
524 | } | ||
525 | |||
526 | *cfg = 0; | ||
527 | |||
528 | switch (ch_cfg->halt) { | ||
529 | case 0: | ||
530 | break; | ||
531 | case 1: | ||
532 | *cfg |= (1 << 18); | ||
533 | break; | ||
534 | |||
535 | default: | ||
536 | err = -EINVAL; | ||
537 | goto out; | ||
538 | } | ||
539 | switch (ch_cfg->active) { | ||
540 | case 0: | ||
541 | break; | ||
542 | case 1: | ||
543 | *cfg |= (1 << 17); | ||
544 | break; | ||
545 | |||
546 | default: | ||
547 | err = -EINVAL; | ||
548 | goto out; | ||
549 | } | ||
550 | switch (ch_cfg->lock) { | ||
551 | case 0: | ||
552 | break; | ||
553 | case 1: | ||
554 | *cfg |= (1 << 16); | ||
555 | break; | ||
556 | |||
557 | default: | ||
558 | err = -EINVAL; | ||
559 | goto out; | ||
560 | } | ||
561 | switch (ch_cfg->itc) { | ||
562 | case 0: | ||
563 | break; | ||
564 | case 1: | ||
565 | *cfg |= (1 << 15); | ||
566 | break; | ||
567 | |||
568 | default: | ||
569 | err = -EINVAL; | ||
570 | goto out; | ||
571 | } | ||
572 | switch (ch_cfg->ie) { | ||
573 | case 0: | ||
574 | break; | ||
575 | case 1: | ||
576 | *cfg |= (1 << 14); | ||
577 | break; | ||
578 | |||
579 | default: | ||
580 | err = -EINVAL; | ||
581 | goto out; | ||
582 | } | ||
583 | switch (ch_cfg->flow_cntrl) { | ||
584 | case FC_MEM2MEM_DMA: | ||
585 | *cfg &= ~(7 << 11); | ||
586 | break; | ||
587 | case FC_MEM2PER_DMA: | ||
588 | *cfg &= ~(7 << 11); | ||
589 | *cfg |= (1 << 11); | ||
590 | break; | ||
591 | case FC_PER2MEM_DMA: | ||
592 | *cfg &= ~(7 << 11); | ||
593 | *cfg |= (2 << 11); | ||
594 | break; | ||
595 | case FC_PER2PER_DMA: | ||
596 | *cfg &= ~(7 << 11); | ||
597 | *cfg |= (3 << 11); | ||
598 | break; | ||
599 | case FC_PER2PER_DPER: | ||
600 | *cfg &= ~(7 << 11); | ||
601 | *cfg |= (4 << 11); | ||
602 | break; | ||
603 | case FC_MEM2PER_PER: | ||
604 | *cfg &= ~(7 << 11); | ||
605 | *cfg |= (5 << 11); | ||
606 | break; | ||
607 | case FC_PER2MEM_PER: | ||
608 | *cfg &= ~(7 << 11); | ||
609 | *cfg |= (6 << 11); | ||
610 | break; | ||
611 | case FC_PER2PER_SPER: | ||
612 | *cfg |= (7 << 11); | ||
613 | break; | ||
614 | |||
615 | default: | ||
616 | err = -EINVAL; | ||
617 | goto out; | ||
618 | } | ||
619 | *cfg &= ~(0x1f << 6); | ||
620 | *cfg |= ((ch_cfg->dest_per & 0x1f) << 6); | ||
621 | |||
622 | *cfg &= ~(0x1f << 1); | ||
623 | *cfg |= ((ch_cfg->src_per & 0x1f) << 1); | ||
624 | |||
625 | out: | ||
626 | return err; | ||
627 | } | ||
628 | |||
629 | EXPORT_SYMBOL_GPL(pnx4008_dma_pack_config); | ||
630 | |||
631 | int pnx4008_dma_parse_config(unsigned long cfg, | ||
632 | struct pnx4008_dma_ch_config * ch_cfg) | ||
633 | { | ||
634 | int err = 0; | ||
635 | |||
636 | if (!ch_cfg) { | ||
637 | err = -EINVAL; | ||
638 | goto out; | ||
639 | } | ||
640 | |||
641 | cfg >>= 1; | ||
642 | |||
643 | ch_cfg->src_per = cfg & 0x1f; | ||
644 | cfg >>= 5; | ||
645 | |||
646 | ch_cfg->dest_per = cfg & 0x1f; | ||
647 | cfg >>= 5; | ||
648 | |||
649 | switch (cfg & 7) { | ||
650 | case 0: | ||
651 | ch_cfg->flow_cntrl = FC_MEM2MEM_DMA; | ||
652 | break; | ||
653 | case 1: | ||
654 | ch_cfg->flow_cntrl = FC_MEM2PER_DMA; | ||
655 | break; | ||
656 | case 2: | ||
657 | ch_cfg->flow_cntrl = FC_PER2MEM_DMA; | ||
658 | break; | ||
659 | case 3: | ||
660 | ch_cfg->flow_cntrl = FC_PER2PER_DMA; | ||
661 | break; | ||
662 | case 4: | ||
663 | ch_cfg->flow_cntrl = FC_PER2PER_DPER; | ||
664 | break; | ||
665 | case 5: | ||
666 | ch_cfg->flow_cntrl = FC_MEM2PER_PER; | ||
667 | break; | ||
668 | case 6: | ||
669 | ch_cfg->flow_cntrl = FC_PER2MEM_PER; | ||
670 | break; | ||
671 | case 7: | ||
672 | ch_cfg->flow_cntrl = FC_PER2PER_SPER; | ||
673 | } | ||
674 | cfg >>= 3; | ||
675 | |||
676 | ch_cfg->ie = cfg & 1; | ||
677 | cfg >>= 1; | ||
678 | |||
679 | ch_cfg->itc = cfg & 1; | ||
680 | cfg >>= 1; | ||
681 | |||
682 | ch_cfg->lock = cfg & 1; | ||
683 | cfg >>= 1; | ||
684 | |||
685 | ch_cfg->active = cfg & 1; | ||
686 | cfg >>= 1; | ||
687 | |||
688 | ch_cfg->halt = cfg & 1; | ||
689 | |||
690 | out: | ||
691 | return err; | ||
692 | } | ||
693 | |||
694 | EXPORT_SYMBOL_GPL(pnx4008_dma_parse_config); | ||
695 | |||
696 | void pnx4008_dma_split_head_entry(struct pnx4008_dma_config * config, | ||
697 | struct pnx4008_dma_ch_ctrl * ctrl) | ||
698 | { | ||
699 | int new_len = ctrl->tr_size, num_entries = 0; | ||
700 | int old_len = new_len; | ||
701 | int src_width, dest_width, count = 1; | ||
702 | |||
703 | switch (ctrl->swidth) { | ||
704 | case WIDTH_BYTE: | ||
705 | src_width = 1; | ||
706 | break; | ||
707 | case WIDTH_HWORD: | ||
708 | src_width = 2; | ||
709 | break; | ||
710 | case WIDTH_WORD: | ||
711 | src_width = 4; | ||
712 | break; | ||
713 | default: | ||
714 | return; | ||
715 | } | ||
716 | |||
717 | switch (ctrl->dwidth) { | ||
718 | case WIDTH_BYTE: | ||
719 | dest_width = 1; | ||
720 | break; | ||
721 | case WIDTH_HWORD: | ||
722 | dest_width = 2; | ||
723 | break; | ||
724 | case WIDTH_WORD: | ||
725 | dest_width = 4; | ||
726 | break; | ||
727 | default: | ||
728 | return; | ||
729 | } | ||
730 | |||
731 | while (new_len > 0x7FF) { | ||
732 | num_entries++; | ||
733 | new_len = (ctrl->tr_size + num_entries) / (num_entries + 1); | ||
734 | } | ||
735 | if (num_entries != 0) { | ||
736 | struct pnx4008_dma_ll *ll = NULL; | ||
737 | config->ch_ctrl &= ~0x7ff; | ||
738 | config->ch_ctrl |= new_len; | ||
739 | if (!config->is_ll) { | ||
740 | config->is_ll = 1; | ||
741 | while (num_entries) { | ||
742 | if (!ll) { | ||
743 | config->ll = | ||
744 | pnx4008_alloc_ll_entry(&config-> | ||
745 | ll_dma); | ||
746 | ll = config->ll; | ||
747 | } else { | ||
748 | ll->next = | ||
749 | pnx4008_alloc_ll_entry(&ll-> | ||
750 | next_dma); | ||
751 | ll = ll->next; | ||
752 | } | ||
753 | |||
754 | if (ctrl->si) | ||
755 | ll->src_addr = | ||
756 | config->src_addr + | ||
757 | src_width * new_len * count; | ||
758 | else | ||
759 | ll->src_addr = config->src_addr; | ||
760 | if (ctrl->di) | ||
761 | ll->dest_addr = | ||
762 | config->dest_addr + | ||
763 | dest_width * new_len * count; | ||
764 | else | ||
765 | ll->dest_addr = config->dest_addr; | ||
766 | ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; | ||
767 | ll->next_dma = 0; | ||
768 | ll->next = NULL; | ||
769 | num_entries--; | ||
770 | count++; | ||
771 | } | ||
772 | } else { | ||
773 | struct pnx4008_dma_ll *ll_old = config->ll; | ||
774 | unsigned long ll_dma_old = config->ll_dma; | ||
775 | while (num_entries) { | ||
776 | if (!ll) { | ||
777 | config->ll = | ||
778 | pnx4008_alloc_ll_entry(&config-> | ||
779 | ll_dma); | ||
780 | ll = config->ll; | ||
781 | } else { | ||
782 | ll->next = | ||
783 | pnx4008_alloc_ll_entry(&ll-> | ||
784 | next_dma); | ||
785 | ll = ll->next; | ||
786 | } | ||
787 | |||
788 | if (ctrl->si) | ||
789 | ll->src_addr = | ||
790 | config->src_addr + | ||
791 | src_width * new_len * count; | ||
792 | else | ||
793 | ll->src_addr = config->src_addr; | ||
794 | if (ctrl->di) | ||
795 | ll->dest_addr = | ||
796 | config->dest_addr + | ||
797 | dest_width * new_len * count; | ||
798 | else | ||
799 | ll->dest_addr = config->dest_addr; | ||
800 | ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; | ||
801 | ll->next_dma = 0; | ||
802 | ll->next = NULL; | ||
803 | num_entries--; | ||
804 | count++; | ||
805 | } | ||
806 | ll->next_dma = ll_dma_old; | ||
807 | ll->next = ll_old; | ||
808 | } | ||
809 | /* adjust last length/tc */ | ||
810 | ll->ch_ctrl = config->ch_ctrl & (~0x7ff); | ||
811 | ll->ch_ctrl |= old_len - new_len * (count - 1); | ||
812 | config->ch_ctrl &= 0x7fffffff; | ||
813 | } | ||
814 | } | ||
815 | |||
816 | EXPORT_SYMBOL_GPL(pnx4008_dma_split_head_entry); | ||
817 | |||
818 | void pnx4008_dma_split_ll_entry(struct pnx4008_dma_ll * cur_ll, | ||
819 | struct pnx4008_dma_ch_ctrl * ctrl) | ||
820 | { | ||
821 | int new_len = ctrl->tr_size, num_entries = 0; | ||
822 | int old_len = new_len; | ||
823 | int src_width, dest_width, count = 1; | ||
824 | |||
825 | switch (ctrl->swidth) { | ||
826 | case WIDTH_BYTE: | ||
827 | src_width = 1; | ||
828 | break; | ||
829 | case WIDTH_HWORD: | ||
830 | src_width = 2; | ||
831 | break; | ||
832 | case WIDTH_WORD: | ||
833 | src_width = 4; | ||
834 | break; | ||
835 | default: | ||
836 | return; | ||
837 | } | ||
838 | |||
839 | switch (ctrl->dwidth) { | ||
840 | case WIDTH_BYTE: | ||
841 | dest_width = 1; | ||
842 | break; | ||
843 | case WIDTH_HWORD: | ||
844 | dest_width = 2; | ||
845 | break; | ||
846 | case WIDTH_WORD: | ||
847 | dest_width = 4; | ||
848 | break; | ||
849 | default: | ||
850 | return; | ||
851 | } | ||
852 | |||
853 | while (new_len > 0x7FF) { | ||
854 | num_entries++; | ||
855 | new_len = (ctrl->tr_size + num_entries) / (num_entries + 1); | ||
856 | } | ||
857 | if (num_entries != 0) { | ||
858 | struct pnx4008_dma_ll *ll = NULL; | ||
859 | cur_ll->ch_ctrl &= ~0x7ff; | ||
860 | cur_ll->ch_ctrl |= new_len; | ||
861 | if (!cur_ll->next) { | ||
862 | while (num_entries) { | ||
863 | if (!ll) { | ||
864 | cur_ll->next = | ||
865 | pnx4008_alloc_ll_entry(&cur_ll-> | ||
866 | next_dma); | ||
867 | ll = cur_ll->next; | ||
868 | } else { | ||
869 | ll->next = | ||
870 | pnx4008_alloc_ll_entry(&ll-> | ||
871 | next_dma); | ||
872 | ll = ll->next; | ||
873 | } | ||
874 | |||
875 | if (ctrl->si) | ||
876 | ll->src_addr = | ||
877 | cur_ll->src_addr + | ||
878 | src_width * new_len * count; | ||
879 | else | ||
880 | ll->src_addr = cur_ll->src_addr; | ||
881 | if (ctrl->di) | ||
882 | ll->dest_addr = | ||
883 | cur_ll->dest_addr + | ||
884 | dest_width * new_len * count; | ||
885 | else | ||
886 | ll->dest_addr = cur_ll->dest_addr; | ||
887 | ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; | ||
888 | ll->next_dma = 0; | ||
889 | ll->next = NULL; | ||
890 | num_entries--; | ||
891 | count++; | ||
892 | } | ||
893 | } else { | ||
894 | struct pnx4008_dma_ll *ll_old = cur_ll->next; | ||
895 | unsigned long ll_dma_old = cur_ll->next_dma; | ||
896 | while (num_entries) { | ||
897 | if (!ll) { | ||
898 | cur_ll->next = | ||
899 | pnx4008_alloc_ll_entry(&cur_ll-> | ||
900 | next_dma); | ||
901 | ll = cur_ll->next; | ||
902 | } else { | ||
903 | ll->next = | ||
904 | pnx4008_alloc_ll_entry(&ll-> | ||
905 | next_dma); | ||
906 | ll = ll->next; | ||
907 | } | ||
908 | |||
909 | if (ctrl->si) | ||
910 | ll->src_addr = | ||
911 | cur_ll->src_addr + | ||
912 | src_width * new_len * count; | ||
913 | else | ||
914 | ll->src_addr = cur_ll->src_addr; | ||
915 | if (ctrl->di) | ||
916 | ll->dest_addr = | ||
917 | cur_ll->dest_addr + | ||
918 | dest_width * new_len * count; | ||
919 | else | ||
920 | ll->dest_addr = cur_ll->dest_addr; | ||
921 | ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; | ||
922 | ll->next_dma = 0; | ||
923 | ll->next = NULL; | ||
924 | num_entries--; | ||
925 | count++; | ||
926 | } | ||
927 | |||
928 | ll->next_dma = ll_dma_old; | ||
929 | ll->next = ll_old; | ||
930 | } | ||
931 | /* adjust last length/tc */ | ||
932 | ll->ch_ctrl = cur_ll->ch_ctrl & (~0x7ff); | ||
933 | ll->ch_ctrl |= old_len - new_len * (count - 1); | ||
934 | cur_ll->ch_ctrl &= 0x7fffffff; | ||
935 | } | ||
936 | } | ||
937 | |||
938 | EXPORT_SYMBOL_GPL(pnx4008_dma_split_ll_entry); | ||
939 | |||
940 | int pnx4008_config_channel(int ch, struct pnx4008_dma_config * config) | ||
941 | { | ||
942 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
943 | return -EINVAL; | ||
944 | |||
945 | pnx4008_dma_lock(); | ||
946 | __raw_writel(config->src_addr, DMAC_Cx_SRC_ADDR(ch)); | ||
947 | __raw_writel(config->dest_addr, DMAC_Cx_DEST_ADDR(ch)); | ||
948 | |||
949 | if (config->is_ll) | ||
950 | __raw_writel(config->ll_dma, DMAC_Cx_LLI(ch)); | ||
951 | else | ||
952 | __raw_writel(0, DMAC_Cx_LLI(ch)); | ||
953 | |||
954 | __raw_writel(config->ch_ctrl, DMAC_Cx_CONTROL(ch)); | ||
955 | __raw_writel(config->ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
956 | pnx4008_dma_unlock(); | ||
957 | |||
958 | return 0; | ||
959 | |||
960 | } | ||
961 | |||
962 | EXPORT_SYMBOL_GPL(pnx4008_config_channel); | ||
963 | |||
964 | int pnx4008_channel_get_config(int ch, struct pnx4008_dma_config * config) | ||
965 | { | ||
966 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name || !config) | ||
967 | return -EINVAL; | ||
968 | |||
969 | pnx4008_dma_lock(); | ||
970 | config->ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
971 | config->ch_ctrl = __raw_readl(DMAC_Cx_CONTROL(ch)); | ||
972 | |||
973 | config->ll_dma = __raw_readl(DMAC_Cx_LLI(ch)); | ||
974 | config->is_ll = config->ll_dma ? 1 : 0; | ||
975 | |||
976 | config->src_addr = __raw_readl(DMAC_Cx_SRC_ADDR(ch)); | ||
977 | config->dest_addr = __raw_readl(DMAC_Cx_DEST_ADDR(ch)); | ||
978 | pnx4008_dma_unlock(); | ||
979 | |||
980 | return 0; | ||
981 | } | ||
982 | |||
983 | EXPORT_SYMBOL_GPL(pnx4008_channel_get_config); | ||
984 | |||
985 | int pnx4008_dma_ch_enable(int ch) | ||
986 | { | ||
987 | unsigned long ch_cfg; | ||
988 | |||
989 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
990 | return -EINVAL; | ||
991 | |||
992 | pnx4008_dma_lock(); | ||
993 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
994 | ch_cfg |= 1; | ||
995 | __raw_writel(ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
996 | pnx4008_dma_unlock(); | ||
997 | |||
998 | return 0; | ||
999 | } | ||
1000 | |||
1001 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_enable); | ||
1002 | |||
1003 | int pnx4008_dma_ch_disable(int ch) | ||
1004 | { | ||
1005 | unsigned long ch_cfg; | ||
1006 | |||
1007 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
1008 | return -EINVAL; | ||
1009 | |||
1010 | pnx4008_dma_lock(); | ||
1011 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
1012 | ch_cfg &= ~1; | ||
1013 | __raw_writel(ch_cfg, DMAC_Cx_CONFIG(ch)); | ||
1014 | pnx4008_dma_unlock(); | ||
1015 | |||
1016 | return 0; | ||
1017 | } | ||
1018 | |||
1019 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_disable); | ||
1020 | |||
1021 | int pnx4008_dma_ch_enabled(int ch) | ||
1022 | { | ||
1023 | unsigned long ch_cfg; | ||
1024 | |||
1025 | if (!VALID_CHANNEL(ch) || !dma_channels[ch].name) | ||
1026 | return -EINVAL; | ||
1027 | |||
1028 | pnx4008_dma_lock(); | ||
1029 | ch_cfg = __raw_readl(DMAC_Cx_CONFIG(ch)); | ||
1030 | pnx4008_dma_unlock(); | ||
1031 | |||
1032 | return ch_cfg & 1; | ||
1033 | } | ||
1034 | |||
1035 | EXPORT_SYMBOL_GPL(pnx4008_dma_ch_enabled); | ||
1036 | |||
1037 | static irqreturn_t dma_irq_handler(int irq, void *dev_id, struct pt_regs *regs) | ||
1038 | { | ||
1039 | int i; | ||
1040 | unsigned long dint = __raw_readl(DMAC_INT_STAT); | ||
1041 | unsigned long tcint = __raw_readl(DMAC_INT_TC_STAT); | ||
1042 | unsigned long eint = __raw_readl(DMAC_INT_ERR_STAT); | ||
1043 | unsigned long i_bit; | ||
1044 | |||
1045 | for (i = MAX_DMA_CHANNELS - 1; i >= 0; i--) { | ||
1046 | i_bit = 1 << i; | ||
1047 | if (dint & i_bit) { | ||
1048 | struct dma_channel *channel = &dma_channels[i]; | ||
1049 | |||
1050 | if (channel->name && channel->irq_handler) { | ||
1051 | int cause = 0; | ||
1052 | |||
1053 | if (eint & i_bit) | ||
1054 | cause |= DMA_ERR_INT; | ||
1055 | if (tcint & i_bit) | ||
1056 | cause |= DMA_TC_INT; | ||
1057 | channel->irq_handler(i, cause, channel->data, | ||
1058 | regs); | ||
1059 | } else { | ||
1060 | /* | ||
1061 | * IRQ for an unregistered DMA channel | ||
1062 | */ | ||
1063 | printk(KERN_WARNING | ||
1064 | "spurious IRQ for DMA channel %d\n", i); | ||
1065 | } | ||
1066 | if (tcint & i_bit) | ||
1067 | __raw_writel(i_bit, DMAC_INT_TC_CLEAR); | ||
1068 | if (eint & i_bit) | ||
1069 | __raw_writel(i_bit, DMAC_INT_ERR_CLEAR); | ||
1070 | } | ||
1071 | } | ||
1072 | return IRQ_HANDLED; | ||
1073 | } | ||
1074 | |||
1075 | static int __init pnx4008_dma_init(void) | ||
1076 | { | ||
1077 | int ret, i; | ||
1078 | |||
1079 | ret = request_irq(DMA_INT, dma_irq_handler, 0, "DMA", NULL); | ||
1080 | if (ret) { | ||
1081 | printk(KERN_CRIT "Wow! Can't register IRQ for DMA\n"); | ||
1082 | goto out; | ||
1083 | } | ||
1084 | |||
1085 | ll_pool.count = 0x4000 / sizeof(struct pnx4008_dma_ll); | ||
1086 | ll_pool.cur = ll_pool.vaddr = | ||
1087 | dma_alloc_coherent(NULL, ll_pool.count * sizeof(struct pnx4008_dma_ll), | ||
1088 | &ll_pool.dma_addr, GFP_KERNEL); | ||
1089 | |||
1090 | if (!ll_pool.vaddr) { | ||
1091 | ret = -ENOMEM; | ||
1092 | free_irq(DMA_INT, NULL); | ||
1093 | goto out; | ||
1094 | } | ||
1095 | |||
1096 | for (i = 0; i < ll_pool.count - 1; i++) { | ||
1097 | void **addr = ll_pool.vaddr + i * sizeof(struct pnx4008_dma_ll); | ||
1098 | *addr = (void *)addr + sizeof(struct pnx4008_dma_ll); | ||
1099 | } | ||
1100 | *(long *)(ll_pool.vaddr + | ||
1101 | (ll_pool.count - 1) * sizeof(struct pnx4008_dma_ll)) = | ||
1102 | (long)ll_pool.vaddr; | ||
1103 | |||
1104 | __raw_writel(1, DMAC_CONFIG); | ||
1105 | |||
1106 | out: | ||
1107 | return ret; | ||
1108 | } | ||
1109 | arch_initcall(pnx4008_dma_init); | ||
diff --git a/arch/arm/mach-pnx4008/gpio.c b/arch/arm/mach-pnx4008/gpio.c new file mode 100644 index 000000000000..e1ce050d8fe0 --- /dev/null +++ b/arch/arm/mach-pnx4008/gpio.c | |||
@@ -0,0 +1,330 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/gpio.c | ||
3 | * | ||
4 | * PNX4008 GPIO driver | ||
5 | * | ||
6 | * Author: Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * Based on reference code by Iwo Mergler and Z.Tabaaloute from Philips: | ||
9 | * Copyright (c) 2005 Koninklijke Philips Electronics N.V. | ||
10 | * | ||
11 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | */ | ||
16 | |||
17 | #include <linux/config.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <asm/semaphore.h> | ||
22 | #include <asm/io.h> | ||
23 | #include <asm/arch/platform.h> | ||
24 | #include <asm/arch/gpio.h> | ||
25 | |||
26 | /* register definitions */ | ||
27 | #define PIO_VA_BASE IO_ADDRESS(PNX4008_PIO_BASE) | ||
28 | |||
29 | #define PIO_INP_STATE (0x00U) | ||
30 | #define PIO_OUTP_SET (0x04U) | ||
31 | #define PIO_OUTP_CLR (0x08U) | ||
32 | #define PIO_OUTP_STATE (0x0CU) | ||
33 | #define PIO_DRV_SET (0x10U) | ||
34 | #define PIO_DRV_CLR (0x14U) | ||
35 | #define PIO_DRV_STATE (0x18U) | ||
36 | #define PIO_SDINP_STATE (0x1CU) | ||
37 | #define PIO_SDOUTP_SET (0x20U) | ||
38 | #define PIO_SDOUTP_CLR (0x24U) | ||
39 | #define PIO_MUX_SET (0x28U) | ||
40 | #define PIO_MUX_CLR (0x2CU) | ||
41 | #define PIO_MUX_STATE (0x30U) | ||
42 | |||
43 | static inline void gpio_lock(void) | ||
44 | { | ||
45 | local_irq_disable(); | ||
46 | } | ||
47 | |||
48 | static inline void gpio_unlock(void) | ||
49 | { | ||
50 | local_irq_enable(); | ||
51 | } | ||
52 | |||
53 | /* Inline functions */ | ||
54 | static inline int gpio_read_bit(u32 reg, int gpio) | ||
55 | { | ||
56 | u32 bit, val; | ||
57 | int ret = -EFAULT; | ||
58 | |||
59 | if (gpio < 0) | ||
60 | goto out; | ||
61 | |||
62 | bit = GPIO_BIT(gpio); | ||
63 | if (bit) { | ||
64 | val = __raw_readl(PIO_VA_BASE + reg); | ||
65 | ret = (val & bit) ? 1 : 0; | ||
66 | } | ||
67 | out: | ||
68 | return ret; | ||
69 | } | ||
70 | |||
71 | static inline int gpio_set_bit(u32 reg, int gpio) | ||
72 | { | ||
73 | u32 bit, val; | ||
74 | int ret = -EFAULT; | ||
75 | |||
76 | if (gpio < 0) | ||
77 | goto out; | ||
78 | |||
79 | bit = GPIO_BIT(gpio); | ||
80 | if (bit) { | ||
81 | val = __raw_readl(PIO_VA_BASE + reg); | ||
82 | val |= bit; | ||
83 | __raw_writel(val, PIO_VA_BASE + reg); | ||
84 | ret = 0; | ||
85 | } | ||
86 | out: | ||
87 | return ret; | ||
88 | } | ||
89 | |||
90 | /* Very simple access control, bitmap for allocated/free */ | ||
91 | static unsigned long access_map[4]; | ||
92 | #define INP_INDEX 0 | ||
93 | #define OUTP_INDEX 1 | ||
94 | #define GPIO_INDEX 2 | ||
95 | #define MUX_INDEX 3 | ||
96 | |||
97 | /*GPIO to Input Mapping */ | ||
98 | static short gpio_to_inp_map[32] = { | ||
99 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
100 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
101 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
102 | -1, 10, 11, 12, 13, 14, 24, -1 | ||
103 | }; | ||
104 | |||
105 | /*GPIO to Mux Mapping */ | ||
106 | static short gpio_to_mux_map[32] = { | ||
107 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
108 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
109 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
110 | -1, -1, -1, 0, 1, 4, 5, -1 | ||
111 | }; | ||
112 | |||
113 | /*Output to Mux Mapping */ | ||
114 | static short outp_to_mux_map[32] = { | ||
115 | -1, -1, -1, 6, -1, -1, -1, -1, | ||
116 | -1, -1, -1, -1, -1, -1, -1, -1, | ||
117 | -1, -1, -1, -1, -1, 2, -1, -1, | ||
118 | -1, -1, -1, -1, -1, -1, -1, -1 | ||
119 | }; | ||
120 | |||
121 | int pnx4008_gpio_register_pin(unsigned short pin) | ||
122 | { | ||
123 | unsigned long bit = GPIO_BIT(pin); | ||
124 | int ret = -EBUSY; /* Already in use */ | ||
125 | |||
126 | gpio_lock(); | ||
127 | |||
128 | if (GPIO_ISBID(pin)) { | ||
129 | if (access_map[GPIO_INDEX] & bit) | ||
130 | goto out; | ||
131 | access_map[GPIO_INDEX] |= bit; | ||
132 | |||
133 | } else if (GPIO_ISRAM(pin)) { | ||
134 | if (access_map[GPIO_INDEX] & bit) | ||
135 | goto out; | ||
136 | access_map[GPIO_INDEX] |= bit; | ||
137 | |||
138 | } else if (GPIO_ISMUX(pin)) { | ||
139 | if (access_map[MUX_INDEX] & bit) | ||
140 | goto out; | ||
141 | access_map[MUX_INDEX] |= bit; | ||
142 | |||
143 | } else if (GPIO_ISOUT(pin)) { | ||
144 | if (access_map[OUTP_INDEX] & bit) | ||
145 | goto out; | ||
146 | access_map[OUTP_INDEX] |= bit; | ||
147 | |||
148 | } else if (GPIO_ISIN(pin)) { | ||
149 | if (access_map[INP_INDEX] & bit) | ||
150 | goto out; | ||
151 | access_map[INP_INDEX] |= bit; | ||
152 | } else | ||
153 | goto out; | ||
154 | ret = 0; | ||
155 | |||
156 | out: | ||
157 | gpio_unlock(); | ||
158 | return ret; | ||
159 | } | ||
160 | |||
161 | EXPORT_SYMBOL(pnx4008_gpio_register_pin); | ||
162 | |||
163 | int pnx4008_gpio_unregister_pin(unsigned short pin) | ||
164 | { | ||
165 | unsigned long bit = GPIO_BIT(pin); | ||
166 | int ret = -EFAULT; /* Not registered */ | ||
167 | |||
168 | gpio_lock(); | ||
169 | |||
170 | if (GPIO_ISBID(pin)) { | ||
171 | if (~access_map[GPIO_INDEX] & bit) | ||
172 | goto out; | ||
173 | access_map[GPIO_INDEX] &= ~bit; | ||
174 | } else if (GPIO_ISRAM(pin)) { | ||
175 | if (~access_map[GPIO_INDEX] & bit) | ||
176 | goto out; | ||
177 | access_map[GPIO_INDEX] &= ~bit; | ||
178 | } else if (GPIO_ISMUX(pin)) { | ||
179 | if (~access_map[MUX_INDEX] & bit) | ||
180 | goto out; | ||
181 | access_map[MUX_INDEX] &= ~bit; | ||
182 | } else if (GPIO_ISOUT(pin)) { | ||
183 | if (~access_map[OUTP_INDEX] & bit) | ||
184 | goto out; | ||
185 | access_map[OUTP_INDEX] &= ~bit; | ||
186 | } else if (GPIO_ISIN(pin)) { | ||
187 | if (~access_map[INP_INDEX] & bit) | ||
188 | goto out; | ||
189 | access_map[INP_INDEX] &= ~bit; | ||
190 | } else | ||
191 | goto out; | ||
192 | ret = 0; | ||
193 | |||
194 | out: | ||
195 | gpio_unlock(); | ||
196 | return ret; | ||
197 | } | ||
198 | |||
199 | EXPORT_SYMBOL(pnx4008_gpio_unregister_pin); | ||
200 | |||
201 | unsigned long pnx4008_gpio_read_pin(unsigned short pin) | ||
202 | { | ||
203 | unsigned long ret = -EFAULT; | ||
204 | int gpio = GPIO_BIT_MASK(pin); | ||
205 | gpio_lock(); | ||
206 | if (GPIO_ISOUT(pin)) { | ||
207 | ret = gpio_read_bit(PIO_OUTP_STATE, gpio); | ||
208 | } else if (GPIO_ISRAM(pin)) { | ||
209 | if (gpio_read_bit(PIO_DRV_STATE, gpio) == 0) { | ||
210 | ret = gpio_read_bit(PIO_SDINP_STATE, gpio); | ||
211 | } | ||
212 | } else if (GPIO_ISBID(pin)) { | ||
213 | ret = gpio_read_bit(PIO_DRV_STATE, gpio); | ||
214 | if (ret > 0) | ||
215 | ret = gpio_read_bit(PIO_OUTP_STATE, gpio); | ||
216 | else if (ret == 0) | ||
217 | ret = | ||
218 | gpio_read_bit(PIO_INP_STATE, gpio_to_inp_map[gpio]); | ||
219 | } else if (GPIO_ISIN(pin)) { | ||
220 | ret = gpio_read_bit(PIO_INP_STATE, gpio); | ||
221 | } | ||
222 | gpio_unlock(); | ||
223 | return ret; | ||
224 | } | ||
225 | |||
226 | EXPORT_SYMBOL(pnx4008_gpio_read_pin); | ||
227 | |||
228 | /* Write Value to output */ | ||
229 | int pnx4008_gpio_write_pin(unsigned short pin, int output) | ||
230 | { | ||
231 | int gpio = GPIO_BIT_MASK(pin); | ||
232 | int ret = -EFAULT; | ||
233 | |||
234 | gpio_lock(); | ||
235 | if (GPIO_ISOUT(pin)) { | ||
236 | printk( "writing '%x' to '%x'\n", | ||
237 | gpio, output ? PIO_OUTP_SET : PIO_OUTP_CLR ); | ||
238 | ret = gpio_set_bit(output ? PIO_OUTP_SET : PIO_OUTP_CLR, gpio); | ||
239 | } else if (GPIO_ISRAM(pin)) { | ||
240 | if (gpio_read_bit(PIO_DRV_STATE, gpio) > 0) | ||
241 | ret = gpio_set_bit(output ? PIO_SDOUTP_SET : | ||
242 | PIO_SDOUTP_CLR, gpio); | ||
243 | } else if (GPIO_ISBID(pin)) { | ||
244 | if (gpio_read_bit(PIO_DRV_STATE, gpio) > 0) | ||
245 | ret = gpio_set_bit(output ? PIO_OUTP_SET : | ||
246 | PIO_OUTP_CLR, gpio); | ||
247 | } | ||
248 | gpio_unlock(); | ||
249 | return ret; | ||
250 | } | ||
251 | |||
252 | EXPORT_SYMBOL(pnx4008_gpio_write_pin); | ||
253 | |||
254 | /* Value = 1 : Set GPIO pin as output */ | ||
255 | /* Value = 0 : Set GPIO pin as input */ | ||
256 | int pnx4008_gpio_set_pin_direction(unsigned short pin, int output) | ||
257 | { | ||
258 | int gpio = GPIO_BIT_MASK(pin); | ||
259 | int ret = -EFAULT; | ||
260 | |||
261 | gpio_lock(); | ||
262 | if (GPIO_ISBID(pin) || GPIO_ISRAM(pin)) { | ||
263 | ret = gpio_set_bit(output ? PIO_DRV_SET : PIO_DRV_CLR, gpio); | ||
264 | } | ||
265 | gpio_unlock(); | ||
266 | return ret; | ||
267 | } | ||
268 | |||
269 | EXPORT_SYMBOL(pnx4008_gpio_set_pin_direction); | ||
270 | |||
271 | /* Read GPIO pin direction: 0= pin used as input, 1= pin used as output*/ | ||
272 | int pnx4008_gpio_read_pin_direction(unsigned short pin) | ||
273 | { | ||
274 | int gpio = GPIO_BIT_MASK(pin); | ||
275 | int ret = -EFAULT; | ||
276 | |||
277 | gpio_lock(); | ||
278 | if (GPIO_ISBID(pin) || GPIO_ISRAM(pin)) { | ||
279 | ret = gpio_read_bit(PIO_DRV_STATE, gpio); | ||
280 | } | ||
281 | gpio_unlock(); | ||
282 | return ret; | ||
283 | } | ||
284 | |||
285 | EXPORT_SYMBOL(pnx4008_gpio_read_pin_direction); | ||
286 | |||
287 | /* Value = 1 : Set pin to muxed function */ | ||
288 | /* Value = 0 : Set pin as GPIO */ | ||
289 | int pnx4008_gpio_set_pin_mux(unsigned short pin, int output) | ||
290 | { | ||
291 | int gpio = GPIO_BIT_MASK(pin); | ||
292 | int ret = -EFAULT; | ||
293 | |||
294 | gpio_lock(); | ||
295 | if (GPIO_ISBID(pin)) { | ||
296 | ret = | ||
297 | gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, | ||
298 | gpio_to_mux_map[gpio]); | ||
299 | } else if (GPIO_ISOUT(pin)) { | ||
300 | ret = | ||
301 | gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, | ||
302 | outp_to_mux_map[gpio]); | ||
303 | } else if (GPIO_ISMUX(pin)) { | ||
304 | ret = gpio_set_bit(output ? PIO_MUX_SET : PIO_MUX_CLR, gpio); | ||
305 | } | ||
306 | gpio_unlock(); | ||
307 | return ret; | ||
308 | } | ||
309 | |||
310 | EXPORT_SYMBOL(pnx4008_gpio_set_pin_mux); | ||
311 | |||
312 | /* Read pin mux function: 0= pin used as GPIO, 1= pin used for muxed function*/ | ||
313 | int pnx4008_gpio_read_pin_mux(unsigned short pin) | ||
314 | { | ||
315 | int gpio = GPIO_BIT_MASK(pin); | ||
316 | int ret = -EFAULT; | ||
317 | |||
318 | gpio_lock(); | ||
319 | if (GPIO_ISBID(pin)) { | ||
320 | ret = gpio_read_bit(PIO_MUX_STATE, gpio_to_mux_map[gpio]); | ||
321 | } else if (GPIO_ISOUT(pin)) { | ||
322 | ret = gpio_read_bit(PIO_MUX_STATE, outp_to_mux_map[gpio]); | ||
323 | } else if (GPIO_ISMUX(pin)) { | ||
324 | ret = gpio_read_bit(PIO_MUX_STATE, gpio); | ||
325 | } | ||
326 | gpio_unlock(); | ||
327 | return ret; | ||
328 | } | ||
329 | |||
330 | EXPORT_SYMBOL(pnx4008_gpio_read_pin_mux); | ||
diff --git a/arch/arm/mach-pnx4008/irq.c b/arch/arm/mach-pnx4008/irq.c new file mode 100644 index 000000000000..9b0a8e084e99 --- /dev/null +++ b/arch/arm/mach-pnx4008/irq.c | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/irq.c | ||
3 | * | ||
4 | * PNX4008 IRQ controller driver | ||
5 | * | ||
6 | * Author: Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * Based on reference code received from Philips: | ||
9 | * Copyright (C) 2003 Philips Semiconductors | ||
10 | * | ||
11 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | */ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/types.h> | ||
19 | #include <linux/mm.h> | ||
20 | #include <linux/interrupt.h> | ||
21 | #include <linux/list.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/ioport.h> | ||
24 | #include <linux/device.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/io.h> | ||
28 | #include <asm/setup.h> | ||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/pgtable.h> | ||
31 | #include <asm/page.h> | ||
32 | #include <asm/system.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/irq.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/arch/irq.h> | ||
37 | |||
38 | static u8 pnx4008_irq_type[NR_IRQS] = PNX4008_IRQ_TYPES; | ||
39 | |||
40 | static void pnx4008_mask_irq(unsigned int irq) | ||
41 | { | ||
42 | __raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq)); /* mask interrupt */ | ||
43 | } | ||
44 | |||
45 | static void pnx4008_unmask_irq(unsigned int irq) | ||
46 | { | ||
47 | __raw_writel(__raw_readl(INTC_ER(irq)) | INTC_BIT(irq), INTC_ER(irq)); /* unmask interrupt */ | ||
48 | } | ||
49 | |||
50 | static void pnx4008_mask_ack_irq(unsigned int irq) | ||
51 | { | ||
52 | __raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq)); /* mask interrupt */ | ||
53 | __raw_writel(INTC_BIT(irq), INTC_SR(irq)); /* clear interrupt status */ | ||
54 | } | ||
55 | |||
56 | static int pnx4008_set_irq_type(unsigned int irq, unsigned int type) | ||
57 | { | ||
58 | switch (type) { | ||
59 | case IRQT_RISING: | ||
60 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | ||
61 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /*rising edge */ | ||
62 | set_irq_handler(irq, do_edge_IRQ); | ||
63 | break; | ||
64 | case IRQT_FALLING: | ||
65 | __raw_writel(__raw_readl(INTC_ATR(irq)) | INTC_BIT(irq), INTC_ATR(irq)); /*edge sensitive */ | ||
66 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*falling edge */ | ||
67 | set_irq_handler(irq, do_edge_IRQ); | ||
68 | break; | ||
69 | case IRQT_LOW: | ||
70 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | ||
71 | __raw_writel(__raw_readl(INTC_APR(irq)) & ~INTC_BIT(irq), INTC_APR(irq)); /*low level */ | ||
72 | set_irq_handler(irq, do_level_IRQ); | ||
73 | break; | ||
74 | case IRQT_HIGH: | ||
75 | __raw_writel(__raw_readl(INTC_ATR(irq)) & ~INTC_BIT(irq), INTC_ATR(irq)); /*level sensitive */ | ||
76 | __raw_writel(__raw_readl(INTC_APR(irq)) | INTC_BIT(irq), INTC_APR(irq)); /* high level */ | ||
77 | set_irq_handler(irq, do_level_IRQ); | ||
78 | break; | ||
79 | |||
80 | /* IRQT_BOTHEDGE is not supported */ | ||
81 | default: | ||
82 | printk(KERN_ERR "PNX4008 IRQ: Unsupported irq type %d\n", type); | ||
83 | return -1; | ||
84 | } | ||
85 | return 0; | ||
86 | } | ||
87 | |||
88 | static struct irqchip pnx4008_irq_chip = { | ||
89 | .ack = pnx4008_mask_ack_irq, | ||
90 | .mask = pnx4008_mask_irq, | ||
91 | .unmask = pnx4008_unmask_irq, | ||
92 | .set_type = pnx4008_set_irq_type, | ||
93 | }; | ||
94 | |||
95 | void __init pnx4008_init_irq(void) | ||
96 | { | ||
97 | unsigned int i; | ||
98 | |||
99 | /* configure and enable IRQ 0,1,30,31 (cascade interrupts) mask all others */ | ||
100 | pnx4008_set_irq_type(SUB1_IRQ_N, pnx4008_irq_type[SUB1_IRQ_N]); | ||
101 | pnx4008_set_irq_type(SUB2_IRQ_N, pnx4008_irq_type[SUB2_IRQ_N]); | ||
102 | pnx4008_set_irq_type(SUB1_FIQ_N, pnx4008_irq_type[SUB1_FIQ_N]); | ||
103 | pnx4008_set_irq_type(SUB2_FIQ_N, pnx4008_irq_type[SUB2_FIQ_N]); | ||
104 | |||
105 | __raw_writel((1 << SUB2_FIQ_N) | (1 << SUB1_FIQ_N) | | ||
106 | (1 << SUB2_IRQ_N) | (1 << SUB1_IRQ_N), | ||
107 | INTC_ER(MAIN_BASE_INT)); | ||
108 | __raw_writel(0, INTC_ER(SIC1_BASE_INT)); | ||
109 | __raw_writel(0, INTC_ER(SIC2_BASE_INT)); | ||
110 | |||
111 | /* configure all other IRQ's */ | ||
112 | for (i = 0; i < NR_IRQS; i++) { | ||
113 | if (i == SUB2_FIQ_N || i == SUB1_FIQ_N || | ||
114 | i == SUB2_IRQ_N || i == SUB1_IRQ_N) | ||
115 | continue; | ||
116 | set_irq_flags(i, IRQF_VALID); | ||
117 | set_irq_chip(i, &pnx4008_irq_chip); | ||
118 | pnx4008_set_irq_type(i, pnx4008_irq_type[i]); | ||
119 | } | ||
120 | } | ||
121 | |||
diff --git a/arch/arm/mach-pnx4008/pm.c b/arch/arm/mach-pnx4008/pm.c new file mode 100644 index 000000000000..3649cd3dfc9a --- /dev/null +++ b/arch/arm/mach-pnx4008/pm.c | |||
@@ -0,0 +1,184 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/pm.c | ||
3 | * | ||
4 | * Power Management driver for PNX4008 | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/pm.h> | ||
15 | #include <linux/rtc.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/proc_fs.h> | ||
18 | #include <linux/pm.h> | ||
19 | #include <linux/delay.h> | ||
20 | #include <linux/clk.h> | ||
21 | |||
22 | #include <asm/io.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/cacheflush.h> | ||
25 | #include <asm/arch/pm.h> | ||
26 | #include <asm/arch/clock.h> | ||
27 | |||
28 | #define SRAM_VA IO_ADDRESS(PNX4008_IRAM_BASE) | ||
29 | |||
30 | static void *saved_sram; | ||
31 | |||
32 | static struct clk *pll4_clk; | ||
33 | |||
34 | static inline void pnx4008_standby(void) | ||
35 | { | ||
36 | void (*pnx4008_cpu_standby_ptr) (void); | ||
37 | |||
38 | local_irq_disable(); | ||
39 | local_fiq_disable(); | ||
40 | |||
41 | clk_disable(pll4_clk); | ||
42 | |||
43 | /*saving portion of SRAM to be used by suspend function. */ | ||
44 | memcpy(saved_sram, (void *)SRAM_VA, pnx4008_cpu_standby_sz); | ||
45 | |||
46 | /*make sure SRAM copy gets physically written into SDRAM. | ||
47 | SDRAM will be placed into self-refresh during power down */ | ||
48 | flush_cache_all(); | ||
49 | |||
50 | /*copy suspend function into SRAM */ | ||
51 | memcpy((void *)SRAM_VA, pnx4008_cpu_standby, pnx4008_cpu_standby_sz); | ||
52 | |||
53 | /*do suspend */ | ||
54 | pnx4008_cpu_standby_ptr = (void *)SRAM_VA; | ||
55 | pnx4008_cpu_standby_ptr(); | ||
56 | |||
57 | /*restoring portion of SRAM that was used by suspend function */ | ||
58 | memcpy((void *)SRAM_VA, saved_sram, pnx4008_cpu_standby_sz); | ||
59 | |||
60 | clk_enable(pll4_clk); | ||
61 | |||
62 | local_fiq_enable(); | ||
63 | local_irq_enable(); | ||
64 | } | ||
65 | |||
66 | static inline void pnx4008_suspend(void) | ||
67 | { | ||
68 | void (*pnx4008_cpu_suspend_ptr) (void); | ||
69 | |||
70 | local_irq_disable(); | ||
71 | local_fiq_disable(); | ||
72 | |||
73 | clk_disable(pll4_clk); | ||
74 | |||
75 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_PIN_BASE_INT)); | ||
76 | __raw_writel(0xffffffff, START_INT_RSR_REG(SE_INT_BASE_INT)); | ||
77 | |||
78 | /*saving portion of SRAM to be used by suspend function. */ | ||
79 | memcpy(saved_sram, (void *)SRAM_VA, pnx4008_cpu_suspend_sz); | ||
80 | |||
81 | /*make sure SRAM copy gets physically written into SDRAM. | ||
82 | SDRAM will be placed into self-refresh during power down */ | ||
83 | flush_cache_all(); | ||
84 | |||
85 | /*copy suspend function into SRAM */ | ||
86 | memcpy((void *)SRAM_VA, pnx4008_cpu_suspend, pnx4008_cpu_suspend_sz); | ||
87 | |||
88 | /*do suspend */ | ||
89 | pnx4008_cpu_suspend_ptr = (void *)SRAM_VA; | ||
90 | pnx4008_cpu_suspend_ptr(); | ||
91 | |||
92 | /*restoring portion of SRAM that was used by suspend function */ | ||
93 | memcpy((void *)SRAM_VA, saved_sram, pnx4008_cpu_suspend_sz); | ||
94 | |||
95 | clk_enable(pll4_clk); | ||
96 | |||
97 | local_fiq_enable(); | ||
98 | local_irq_enable(); | ||
99 | } | ||
100 | |||
101 | static int pnx4008_pm_enter(suspend_state_t state) | ||
102 | { | ||
103 | switch (state) { | ||
104 | case PM_SUSPEND_STANDBY: | ||
105 | pnx4008_standby(); | ||
106 | break; | ||
107 | case PM_SUSPEND_MEM: | ||
108 | pnx4008_suspend(); | ||
109 | break; | ||
110 | case PM_SUSPEND_DISK: | ||
111 | return -ENOTSUPP; | ||
112 | default: | ||
113 | return -EINVAL; | ||
114 | } | ||
115 | return 0; | ||
116 | } | ||
117 | |||
118 | /* | ||
119 | * Called after processes are frozen, but before we shut down devices. | ||
120 | */ | ||
121 | static int pnx4008_pm_prepare(suspend_state_t state) | ||
122 | { | ||
123 | switch (state) { | ||
124 | case PM_SUSPEND_STANDBY: | ||
125 | case PM_SUSPEND_MEM: | ||
126 | break; | ||
127 | |||
128 | case PM_SUSPEND_DISK: | ||
129 | return -ENOTSUPP; | ||
130 | break; | ||
131 | |||
132 | default: | ||
133 | return -EINVAL; | ||
134 | break; | ||
135 | } | ||
136 | return 0; | ||
137 | } | ||
138 | |||
139 | /* | ||
140 | * Called after devices are re-setup, but before processes are thawed. | ||
141 | */ | ||
142 | static int pnx4008_pm_finish(suspend_state_t state) | ||
143 | { | ||
144 | return 0; | ||
145 | } | ||
146 | |||
147 | /* | ||
148 | * Set to PM_DISK_FIRMWARE so we can quickly veto suspend-to-disk. | ||
149 | */ | ||
150 | static struct pm_ops pnx4008_pm_ops = { | ||
151 | .prepare = pnx4008_pm_prepare, | ||
152 | .enter = pnx4008_pm_enter, | ||
153 | .finish = pnx4008_pm_finish, | ||
154 | }; | ||
155 | |||
156 | static int __init pnx4008_pm_init(void) | ||
157 | { | ||
158 | u32 sram_size_to_allocate; | ||
159 | |||
160 | pll4_clk = clk_get(0, "ck_pll4"); | ||
161 | if (IS_ERR(pll4_clk)) { | ||
162 | printk(KERN_ERR | ||
163 | "PM Suspend cannot acquire ARM(PLL4) clock control\n"); | ||
164 | return PTR_ERR(pll4_clk); | ||
165 | } | ||
166 | |||
167 | if (pnx4008_cpu_standby_sz > pnx4008_cpu_suspend_sz) | ||
168 | sram_size_to_allocate = pnx4008_cpu_standby_sz; | ||
169 | else | ||
170 | sram_size_to_allocate = pnx4008_cpu_suspend_sz; | ||
171 | |||
172 | saved_sram = kmalloc(sram_size_to_allocate, GFP_ATOMIC); | ||
173 | if (!saved_sram) { | ||
174 | printk(KERN_ERR | ||
175 | "PM Suspend: cannot allocate memory to save portion of SRAM\n"); | ||
176 | clk_put(pll4_clk); | ||
177 | return -ENOMEM; | ||
178 | } | ||
179 | |||
180 | pm_set_ops(&pnx4008_pm_ops); | ||
181 | return 0; | ||
182 | } | ||
183 | |||
184 | late_initcall(pnx4008_pm_init); | ||
diff --git a/arch/arm/mach-pnx4008/serial.c b/arch/arm/mach-pnx4008/serial.c new file mode 100644 index 000000000000..95a1b3f964a2 --- /dev/null +++ b/arch/arm/mach-pnx4008/serial.c | |||
@@ -0,0 +1,69 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/serial.c | ||
3 | * | ||
4 | * PNX4008 UART initialization | ||
5 | * | ||
6 | * Copyright: MontaVista Software Inc. (c) 2005 | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | |||
16 | #include <asm/io.h> | ||
17 | |||
18 | #include <asm/arch/platform.h> | ||
19 | #include <asm/hardware.h> | ||
20 | |||
21 | #include <linux/serial_core.h> | ||
22 | #include <linux/serial_reg.h> | ||
23 | #include <asm/arch/gpio.h> | ||
24 | |||
25 | #include <asm/arch/clock.h> | ||
26 | |||
27 | #define UART_3 0 | ||
28 | #define UART_4 1 | ||
29 | #define UART_5 2 | ||
30 | #define UART_6 3 | ||
31 | #define UART_UNKNOWN (-1) | ||
32 | |||
33 | #define UART3_BASE_VA IO_ADDRESS(PNX4008_UART3_BASE) | ||
34 | #define UART4_BASE_VA IO_ADDRESS(PNX4008_UART4_BASE) | ||
35 | #define UART5_BASE_VA IO_ADDRESS(PNX4008_UART5_BASE) | ||
36 | #define UART6_BASE_VA IO_ADDRESS(PNX4008_UART6_BASE) | ||
37 | |||
38 | #define UART_FCR_OFFSET 8 | ||
39 | #define UART_FIFO_SIZE 64 | ||
40 | |||
41 | void pnx4008_uart_init(void) | ||
42 | { | ||
43 | u32 tmp; | ||
44 | int i = UART_FIFO_SIZE; | ||
45 | |||
46 | __raw_writel(0xC1, UART5_BASE_VA + UART_FCR_OFFSET); | ||
47 | __raw_writel(0xC1, UART3_BASE_VA + UART_FCR_OFFSET); | ||
48 | |||
49 | /* Send a NULL to fix the UART HW bug */ | ||
50 | __raw_writel(0x00, UART5_BASE_VA); | ||
51 | __raw_writel(0x00, UART3_BASE_VA); | ||
52 | |||
53 | while (i--) { | ||
54 | tmp = __raw_readl(UART5_BASE_VA); | ||
55 | tmp = __raw_readl(UART3_BASE_VA); | ||
56 | } | ||
57 | __raw_writel(0, UART5_BASE_VA + UART_FCR_OFFSET); | ||
58 | __raw_writel(0, UART3_BASE_VA + UART_FCR_OFFSET); | ||
59 | |||
60 | /* setup wakeup interrupt */ | ||
61 | start_int_set_rising_edge(SE_U3_RX_INT); | ||
62 | start_int_ack(SE_U3_RX_INT); | ||
63 | start_int_umask(SE_U3_RX_INT); | ||
64 | |||
65 | start_int_set_rising_edge(SE_U5_RX_INT); | ||
66 | start_int_ack(SE_U5_RX_INT); | ||
67 | start_int_umask(SE_U5_RX_INT); | ||
68 | } | ||
69 | |||
diff --git a/arch/arm/mach-pnx4008/sleep.S b/arch/arm/mach-pnx4008/sleep.S new file mode 100644 index 000000000000..93c802bac269 --- /dev/null +++ b/arch/arm/mach-pnx4008/sleep.S | |||
@@ -0,0 +1,196 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pnx4008/sleep.S | ||
3 | * | ||
4 | * PNX4008 support for STOP mode and SDRAM self-refresh | ||
5 | * | ||
6 | * Authors: Dmitry Chigirev, Vitaly Wool <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/config.h> | ||
15 | #include <linux/linkage.h> | ||
16 | #include <asm/assembler.h> | ||
17 | #include <asm/hardware.h> | ||
18 | |||
19 | #define PWRMAN_VA_BASE IO_ADDRESS(PNX4008_PWRMAN_BASE) | ||
20 | #define PWR_CTRL_REG_OFFS 0x44 | ||
21 | |||
22 | #define SDRAM_CFG_VA_BASE IO_ADDRESS(PNX4008_SDRAM_CFG_BASE) | ||
23 | #define MPMC_STATUS_REG_OFFS 0x4 | ||
24 | |||
25 | .text | ||
26 | |||
27 | ENTRY(pnx4008_cpu_suspend) | ||
28 | @this function should be entered in Direct run mode. | ||
29 | |||
30 | @ save registers on stack | ||
31 | stmfd sp!, {r0 - r6, lr} | ||
32 | |||
33 | @ setup Power Manager base address in r4 | ||
34 | @ and put it's value in r5 | ||
35 | mov r4, #(PWRMAN_VA_BASE & 0xff000000) | ||
36 | orr r4, r4, #(PWRMAN_VA_BASE & 0x00ff0000) | ||
37 | orr r4, r4, #(PWRMAN_VA_BASE & 0x0000ff00) | ||
38 | orr r4, r4, #(PWRMAN_VA_BASE & 0x000000ff) | ||
39 | ldr r5, [r4, #PWR_CTRL_REG_OFFS] | ||
40 | |||
41 | @ setup SDRAM controller base address in r2 | ||
42 | @ and put it's value in r3 | ||
43 | mov r2, #(SDRAM_CFG_VA_BASE & 0xff000000) | ||
44 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x00ff0000) | ||
45 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x0000ff00) | ||
46 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x000000ff) | ||
47 | ldr r3, [r2, #MPMC_STATUS_REG_OFFS] @extra read - HW bug workaround | ||
48 | |||
49 | @ clear SDRAM self-refresh bit latch | ||
50 | and r5, r5, #(~(1 << 8)) | ||
51 | @ clear SDRAM self-refresh bit | ||
52 | and r5, r5, #(~(1 << 9)) | ||
53 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
54 | |||
55 | @ do save current bit settings in r1 | ||
56 | mov r1, r5 | ||
57 | |||
58 | @ set SDRAM self-refresh bit | ||
59 | orr r5, r5, #(1 << 9) | ||
60 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
61 | |||
62 | @ set SDRAM self-refresh bit latch | ||
63 | orr r5, r5, #(1 << 8) | ||
64 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
65 | |||
66 | @ clear SDRAM self-refresh bit latch | ||
67 | and r5, r5, #(~(1 << 8)) | ||
68 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
69 | |||
70 | @ clear SDRAM self-refresh bit | ||
71 | and r5, r5, #(~(1 << 9)) | ||
72 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
73 | |||
74 | @ wait for SDRAM to get into self-refresh mode | ||
75 | 2: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
76 | tst r3, #(1 << 2) | ||
77 | beq 2b | ||
78 | |||
79 | @ to prepare SDRAM to get out of self-refresh mode after wakeup | ||
80 | orr r5, r5, #(1 << 7) | ||
81 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
82 | |||
83 | @ do enter stop mode | ||
84 | orr r5, r5, #(1 << 0) | ||
85 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
86 | nop | ||
87 | nop | ||
88 | nop | ||
89 | nop | ||
90 | nop | ||
91 | nop | ||
92 | nop | ||
93 | nop | ||
94 | nop | ||
95 | |||
96 | @ sleeping now... | ||
97 | |||
98 | @ coming out of STOP mode into Direct Run mode | ||
99 | @ clear STOP mode and SDRAM self-refresh bits | ||
100 | str r1, [r4, #PWR_CTRL_REG_OFFS] | ||
101 | |||
102 | @ wait for SDRAM to get out self-refresh mode | ||
103 | 3: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
104 | tst r3, #5 | ||
105 | bne 3b | ||
106 | |||
107 | @ restore regs and return | ||
108 | ldmfd sp!, {r0 - r6, pc} | ||
109 | |||
110 | ENTRY(pnx4008_cpu_suspend_sz) | ||
111 | .word . - pnx4008_cpu_suspend | ||
112 | |||
113 | ENTRY(pnx4008_cpu_standby) | ||
114 | @ save registers on stack | ||
115 | stmfd sp!, {r0 - r6, lr} | ||
116 | |||
117 | @ setup Power Manager base address in r4 | ||
118 | @ and put it's value in r5 | ||
119 | mov r4, #(PWRMAN_VA_BASE & 0xff000000) | ||
120 | orr r4, r4, #(PWRMAN_VA_BASE & 0x00ff0000) | ||
121 | orr r4, r4, #(PWRMAN_VA_BASE & 0x0000ff00) | ||
122 | orr r4, r4, #(PWRMAN_VA_BASE & 0x000000ff) | ||
123 | ldr r5, [r4, #PWR_CTRL_REG_OFFS] | ||
124 | |||
125 | @ setup SDRAM controller base address in r2 | ||
126 | @ and put it's value in r3 | ||
127 | mov r2, #(SDRAM_CFG_VA_BASE & 0xff000000) | ||
128 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x00ff0000) | ||
129 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x0000ff00) | ||
130 | orr r2, r2, #(SDRAM_CFG_VA_BASE & 0x000000ff) | ||
131 | ldr r3, [r2, #MPMC_STATUS_REG_OFFS] @extra read - HW bug workaround | ||
132 | |||
133 | @ clear SDRAM self-refresh bit latch | ||
134 | and r5, r5, #(~(1 << 8)) | ||
135 | @ clear SDRAM self-refresh bit | ||
136 | and r5, r5, #(~(1 << 9)) | ||
137 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
138 | |||
139 | @ do save current bit settings in r1 | ||
140 | mov r1, r5 | ||
141 | |||
142 | @ set SDRAM self-refresh bit | ||
143 | orr r5, r5, #(1 << 9) | ||
144 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
145 | |||
146 | @ set SDRAM self-refresh bit latch | ||
147 | orr r5, r5, #(1 << 8) | ||
148 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
149 | |||
150 | @ clear SDRAM self-refresh bit latch | ||
151 | and r5, r5, #(~(1 << 8)) | ||
152 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
153 | |||
154 | @ clear SDRAM self-refresh bit | ||
155 | and r5, r5, #(~(1 << 9)) | ||
156 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
157 | |||
158 | @ wait for SDRAM to get into self-refresh mode | ||
159 | 2: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
160 | tst r3, #(1 << 2) | ||
161 | beq 2b | ||
162 | |||
163 | @ set 'get out of self-refresh mode after wakeup' bit | ||
164 | orr r5, r5, #(1 << 7) | ||
165 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
166 | |||
167 | mcr p15, 0, r0, c7, c0, 4 @ kinda sleeping now... | ||
168 | |||
169 | @ set SDRAM self-refresh bit latch | ||
170 | orr r5, r5, #(1 << 8) | ||
171 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
172 | |||
173 | @ clear SDRAM self-refresh bit latch | ||
174 | and r5, r5, #(~(1 << 8)) | ||
175 | str r5, [r4, #PWR_CTRL_REG_OFFS] | ||
176 | |||
177 | @ wait for SDRAM to get out self-refresh mode | ||
178 | 3: ldr r3, [r2, #MPMC_STATUS_REG_OFFS] | ||
179 | tst r3, #5 | ||
180 | bne 3b | ||
181 | |||
182 | @ restore regs and return | ||
183 | ldmfd sp!, {r0 - r6, pc} | ||
184 | |||
185 | ENTRY(pnx4008_cpu_standby_sz) | ||
186 | .word . - pnx4008_cpu_standby | ||
187 | |||
188 | ENTRY(pnx4008_cache_clean_invalidate) | ||
189 | stmfd sp!, {r0 - r6, lr} | ||
190 | #ifdef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
191 | mcr p15, 0, ip, c7, c6, 0 @ invalidate D cache | ||
192 | #else | ||
193 | 1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate | ||
194 | bne 1b | ||
195 | #endif | ||
196 | ldmfd sp!, {r0 - r6, pc} | ||
diff --git a/arch/arm/mach-pnx4008/time.c b/arch/arm/mach-pnx4008/time.c new file mode 100644 index 000000000000..4ce680698529 --- /dev/null +++ b/arch/arm/mach-pnx4008/time.c | |||
@@ -0,0 +1,141 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pnx4008/time.c | ||
3 | * | ||
4 | * PNX4008 Timers | ||
5 | * | ||
6 | * Authors: Vitaly Wool, Dmitry Chigirev, Grigory Tolstolytkin <source@mvista.com> | ||
7 | * | ||
8 | * 2005 (c) MontaVista Software, Inc. This file is licensed under | ||
9 | * the terms of the GNU General Public License version 2. This program | ||
10 | * is licensed "as is" without any warranty of any kind, whether express | ||
11 | * or implied. | ||
12 | */ | ||
13 | |||
14 | #include <linux/config.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/interrupt.h> | ||
19 | #include <linux/sched.h> | ||
20 | #include <linux/spinlock.h> | ||
21 | #include <linux/module.h> | ||
22 | #include <linux/kallsyms.h> | ||
23 | |||
24 | #include <asm/system.h> | ||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/io.h> | ||
27 | #include <asm/leds.h> | ||
28 | #include <asm/irq.h> | ||
29 | #include <asm/mach/irq.h> | ||
30 | #include <asm/mach/time.h> | ||
31 | |||
32 | #include <linux/time.h> | ||
33 | #include <linux/timex.h> | ||
34 | #include <asm/errno.h> | ||
35 | |||
36 | /*! Note: all timers are UPCOUNTING */ | ||
37 | |||
38 | /*! | ||
39 | * Returns number of us since last clock interrupt. Note that interrupts | ||
40 | * will have been disabled by do_gettimeoffset() | ||
41 | */ | ||
42 | static unsigned long pnx4008_gettimeoffset(void) | ||
43 | { | ||
44 | u32 ticks_to_match = | ||
45 | __raw_readl(HSTIM_MATCH0) - __raw_readl(HSTIM_COUNTER); | ||
46 | u32 elapsed = LATCH - ticks_to_match; | ||
47 | return (elapsed * (tick_nsec / 1000)) / LATCH; | ||
48 | } | ||
49 | |||
50 | /*! | ||
51 | * IRQ handler for the timer | ||
52 | */ | ||
53 | static irqreturn_t pnx4008_timer_interrupt(int irq, void *dev_id, | ||
54 | struct pt_regs *regs) | ||
55 | { | ||
56 | if (__raw_readl(HSTIM_INT) & MATCH0_INT) { | ||
57 | |||
58 | write_seqlock(&xtime_lock); | ||
59 | |||
60 | do { | ||
61 | timer_tick(regs); | ||
62 | |||
63 | /* | ||
64 | * this algorithm takes care of possible delay | ||
65 | * for this interrupt handling longer than a normal | ||
66 | * timer period | ||
67 | */ | ||
68 | __raw_writel(__raw_readl(HSTIM_MATCH0) + LATCH, | ||
69 | HSTIM_MATCH0); | ||
70 | __raw_writel(MATCH0_INT, HSTIM_INT); /* clear interrupt */ | ||
71 | |||
72 | /* | ||
73 | * The goal is to keep incrementing HSTIM_MATCH0 | ||
74 | * register until HSTIM_MATCH0 indicates time after | ||
75 | * what HSTIM_COUNTER indicates. | ||
76 | */ | ||
77 | } while ((signed) | ||
78 | (__raw_readl(HSTIM_MATCH0) - | ||
79 | __raw_readl(HSTIM_COUNTER)) < 0); | ||
80 | |||
81 | write_sequnlock(&xtime_lock); | ||
82 | } | ||
83 | |||
84 | return IRQ_HANDLED; | ||
85 | } | ||
86 | |||
87 | static struct irqaction pnx4008_timer_irq = { | ||
88 | .name = "PNX4008 Tick Timer", | ||
89 | .flags = SA_INTERRUPT | SA_TIMER, | ||
90 | .handler = pnx4008_timer_interrupt | ||
91 | }; | ||
92 | |||
93 | /*! | ||
94 | * Set up timer and timer interrupt. | ||
95 | */ | ||
96 | static __init void pnx4008_setup_timer(void) | ||
97 | { | ||
98 | __raw_writel(RESET_COUNT, MSTIM_CTRL); | ||
99 | while (__raw_readl(MSTIM_COUNTER)) ; /* wait for reset to complete. 100% guarantee event */ | ||
100 | __raw_writel(0, MSTIM_CTRL); /* stop the timer */ | ||
101 | __raw_writel(0, MSTIM_MCTRL); | ||
102 | |||
103 | __raw_writel(RESET_COUNT, HSTIM_CTRL); | ||
104 | while (__raw_readl(HSTIM_COUNTER)) ; /* wait for reset to complete. 100% guarantee event */ | ||
105 | __raw_writel(0, HSTIM_CTRL); | ||
106 | __raw_writel(0, HSTIM_MCTRL); | ||
107 | __raw_writel(0, HSTIM_CCR); | ||
108 | __raw_writel(12, HSTIM_PMATCH); /* scale down to 1 MHZ */ | ||
109 | __raw_writel(LATCH, HSTIM_MATCH0); | ||
110 | __raw_writel(MR0_INT, HSTIM_MCTRL); | ||
111 | |||
112 | setup_irq(HSTIMER_INT, &pnx4008_timer_irq); | ||
113 | |||
114 | __raw_writel(COUNT_ENAB | DEBUG_EN, HSTIM_CTRL); /*start timer, stop when JTAG active */ | ||
115 | } | ||
116 | |||
117 | /* Timer Clock Control in PM register */ | ||
118 | #define TIMCLK_CTRL_REG IO_ADDRESS((PNX4008_PWRMAN_BASE + 0xBC)) | ||
119 | #define WATCHDOG_CLK_EN 1 | ||
120 | #define TIMER_CLK_EN 2 /* HS and MS timers? */ | ||
121 | |||
122 | static u32 timclk_ctrl_reg_save; | ||
123 | |||
124 | void pnx4008_timer_suspend(void) | ||
125 | { | ||
126 | timclk_ctrl_reg_save = __raw_readl(TIMCLK_CTRL_REG); | ||
127 | __raw_writel(0, TIMCLK_CTRL_REG); /* disable timers */ | ||
128 | } | ||
129 | |||
130 | void pnx4008_timer_resume(void) | ||
131 | { | ||
132 | __raw_writel(timclk_ctrl_reg_save, TIMCLK_CTRL_REG); /* enable timers */ | ||
133 | } | ||
134 | |||
135 | struct sys_timer pnx4008_timer = { | ||
136 | .init = pnx4008_setup_timer, | ||
137 | .offset = pnx4008_gettimeoffset, | ||
138 | .suspend = pnx4008_timer_suspend, | ||
139 | .resume = pnx4008_timer_resume, | ||
140 | }; | ||
141 | |||
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 0104fd142e70..ea5137f319c4 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -61,6 +61,7 @@ config MACH_POODLE | |||
61 | bool "Enable Sharp SL-5600 (Poodle) Support" | 61 | bool "Enable Sharp SL-5600 (Poodle) Support" |
62 | depends PXA_SHARPSL_25x | 62 | depends PXA_SHARPSL_25x |
63 | select SHARP_LOCOMO | 63 | select SHARP_LOCOMO |
64 | select PXA_SSP | ||
64 | 65 | ||
65 | config MACH_CORGI | 66 | config MACH_CORGI |
66 | bool "Enable Sharp SL-C700 (Corgi) Support" | 67 | bool "Enable Sharp SL-C700 (Corgi) Support" |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 4e8a983e2b83..1610690be419 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -15,7 +15,7 @@ obj-$(CONFIG_ARCH_PXA_IDP) += idp.o | |||
15 | obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o | 15 | obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o |
16 | obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o | 16 | obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o |
17 | obj-$(CONFIG_MACH_AKITA) += akita-ioexp.o | 17 | obj-$(CONFIG_MACH_AKITA) += akita-ioexp.o |
18 | obj-$(CONFIG_MACH_POODLE) += poodle.o | 18 | obj-$(CONFIG_MACH_POODLE) += poodle.o corgi_ssp.o |
19 | obj-$(CONFIG_MACH_TOSA) += tosa.o | 19 | obj-$(CONFIG_MACH_TOSA) += tosa.o |
20 | 20 | ||
21 | # Support for blinky lights | 21 | # Support for blinky lights |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index d6d726036361..bf6648a83901 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/mmc/host.h> | 21 | #include <linux/mmc/host.h> |
22 | #include <linux/pm.h> | ||
22 | 23 | ||
23 | #include <asm/setup.h> | 24 | #include <asm/setup.h> |
24 | #include <asm/memory.h> | 25 | #include <asm/memory.h> |
@@ -26,6 +27,7 @@ | |||
26 | #include <asm/hardware.h> | 27 | #include <asm/hardware.h> |
27 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
28 | #include <asm/io.h> | 29 | #include <asm/io.h> |
30 | #include <asm/system.h> | ||
29 | 31 | ||
30 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
@@ -310,8 +312,31 @@ static struct platform_device *devices[] __initdata = { | |||
310 | &corgiled_device, | 312 | &corgiled_device, |
311 | }; | 313 | }; |
312 | 314 | ||
315 | static void corgi_poweroff(void) | ||
316 | { | ||
317 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
318 | |||
319 | if (!machine_is_corgi()) | ||
320 | /* Green LED off tells the bootloader to halt */ | ||
321 | reset_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); | ||
322 | arm_machine_restart('h'); | ||
323 | } | ||
324 | |||
325 | static void corgi_restart(char mode) | ||
326 | { | ||
327 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
328 | |||
329 | if (!machine_is_corgi()) | ||
330 | /* Green LED on tells the bootloader to reboot */ | ||
331 | set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); | ||
332 | arm_machine_restart('h'); | ||
333 | } | ||
334 | |||
313 | static void __init corgi_init(void) | 335 | static void __init corgi_init(void) |
314 | { | 336 | { |
337 | pm_power_off = corgi_poweroff; | ||
338 | arm_pm_restart = corgi_restart; | ||
339 | |||
315 | /* setup sleep mode values */ | 340 | /* setup sleep mode values */ |
316 | PWER = 0x00000002; | 341 | PWER = 0x00000002; |
317 | PFER = 0x00000000; | 342 | PFER = 0x00000000; |
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c index 7a1ab73e9e10..4c3de4008a43 100644 --- a/arch/arm/mach-pxa/corgi_pm.c +++ b/arch/arm/mach-pxa/corgi_pm.c | |||
@@ -27,6 +27,13 @@ | |||
27 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
28 | #include "sharpsl.h" | 28 | #include "sharpsl.h" |
29 | 29 | ||
30 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
31 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
32 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
33 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
34 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
35 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
36 | |||
30 | static void corgi_charger_init(void) | 37 | static void corgi_charger_init(void) |
31 | { | 38 | { |
32 | pxa_gpio_mode(CORGI_GPIO_ADC_TEMP_ON | GPIO_OUT); | 39 | pxa_gpio_mode(CORGI_GPIO_ADC_TEMP_ON | GPIO_OUT); |
@@ -195,9 +202,16 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = { | |||
195 | .read_devdata = corgipm_read_devdata, | 202 | .read_devdata = corgipm_read_devdata, |
196 | .charger_wakeup = corgi_charger_wakeup, | 203 | .charger_wakeup = corgi_charger_wakeup, |
197 | .should_wakeup = corgi_should_wakeup, | 204 | .should_wakeup = corgi_should_wakeup, |
198 | .bat_levels = 40, | 205 | .backlight_limit = corgibl_limit_intensity, |
199 | .bat_levels_noac = spitz_battery_levels_noac, | 206 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, |
200 | .bat_levels_acin = spitz_battery_levels_acin, | 207 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, |
208 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | ||
209 | .charge_acin_low = SHARPSL_CHARGE_ON_ACIN_LOW, | ||
210 | .fatal_acin_volt = SHARPSL_FATAL_ACIN_VOLT, | ||
211 | .fatal_noacin_volt= SHARPSL_FATAL_NOACIN_VOLT, | ||
212 | .bat_levels = 40, | ||
213 | .bat_levels_noac = spitz_battery_levels_noac, | ||
214 | .bat_levels_acin = spitz_battery_levels_acin, | ||
201 | .status_high_acin = 188, | 215 | .status_high_acin = 188, |
202 | .status_low_acin = 178, | 216 | .status_low_acin = 178, |
203 | .status_high_noac = 185, | 217 | .status_high_noac = 185, |
@@ -214,6 +228,9 @@ static int __devinit corgipm_init(void) | |||
214 | if (!corgipm_device) | 228 | if (!corgipm_device) |
215 | return -ENOMEM; | 229 | return -ENOMEM; |
216 | 230 | ||
231 | if (!machine_is_corgi()) | ||
232 | corgi_pm_machinfo.batfull_irq = 1; | ||
233 | |||
217 | corgipm_device->dev.platform_data = &corgi_pm_machinfo; | 234 | corgipm_device->dev.platform_data = &corgi_pm_machinfo; |
218 | ret = platform_device_add(corgipm_device); | 235 | ret = platform_device_add(corgipm_device); |
219 | 236 | ||
diff --git a/arch/arm/mach-pxa/corgi_ssp.c b/arch/arm/mach-pxa/corgi_ssp.c index 8a25a1c8019f..f9421318cb7a 100644 --- a/arch/arm/mach-pxa/corgi_ssp.c +++ b/arch/arm/mach-pxa/corgi_ssp.c | |||
@@ -50,12 +50,14 @@ unsigned long corgi_ssp_ads7846_putget(ulong data) | |||
50 | unsigned long ret,flag; | 50 | unsigned long ret,flag; |
51 | 51 | ||
52 | spin_lock_irqsave(&corgi_ssp_lock, flag); | 52 | spin_lock_irqsave(&corgi_ssp_lock, flag); |
53 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 53 | if (ssp_machinfo->cs_ads7846 >= 0) |
54 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
54 | 55 | ||
55 | ssp_write_word(&corgi_ssp_dev,data); | 56 | ssp_write_word(&corgi_ssp_dev,data); |
56 | ret = ssp_read_word(&corgi_ssp_dev); | 57 | ret = ssp_read_word(&corgi_ssp_dev); |
57 | 58 | ||
58 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 59 | if (ssp_machinfo->cs_ads7846 >= 0) |
60 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
59 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); | 61 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); |
60 | 62 | ||
61 | return ret; | 63 | return ret; |
@@ -68,12 +70,14 @@ unsigned long corgi_ssp_ads7846_putget(ulong data) | |||
68 | void corgi_ssp_ads7846_lock(void) | 70 | void corgi_ssp_ads7846_lock(void) |
69 | { | 71 | { |
70 | spin_lock(&corgi_ssp_lock); | 72 | spin_lock(&corgi_ssp_lock); |
71 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 73 | if (ssp_machinfo->cs_ads7846 >= 0) |
74 | GPCR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
72 | } | 75 | } |
73 | 76 | ||
74 | void corgi_ssp_ads7846_unlock(void) | 77 | void corgi_ssp_ads7846_unlock(void) |
75 | { | 78 | { |
76 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | 79 | if (ssp_machinfo->cs_ads7846 >= 0) |
80 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); | ||
77 | spin_unlock(&corgi_ssp_lock); | 81 | spin_unlock(&corgi_ssp_lock); |
78 | } | 82 | } |
79 | 83 | ||
@@ -110,11 +114,13 @@ unsigned long corgi_ssp_dac_put(ulong data) | |||
110 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), sscr1, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_lcdcon)); | 114 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), sscr1, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_lcdcon)); |
111 | ssp_enable(&corgi_ssp_dev); | 115 | ssp_enable(&corgi_ssp_dev); |
112 | 116 | ||
113 | GPCR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | 117 | if (ssp_machinfo->cs_lcdcon >= 0) |
118 | GPCR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | ||
114 | ssp_write_word(&corgi_ssp_dev,data); | 119 | ssp_write_word(&corgi_ssp_dev,data); |
115 | /* Read null data back from device to prevent SSP overflow */ | 120 | /* Read null data back from device to prevent SSP overflow */ |
116 | ssp_read_word(&corgi_ssp_dev); | 121 | ssp_read_word(&corgi_ssp_dev); |
117 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | 122 | if (ssp_machinfo->cs_lcdcon >= 0) |
123 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); | ||
118 | 124 | ||
119 | ssp_disable(&corgi_ssp_dev); | 125 | ssp_disable(&corgi_ssp_dev); |
120 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); | 126 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); |
@@ -147,7 +153,8 @@ int corgi_ssp_max1111_get(ulong data) | |||
147 | int voltage,voltage1,voltage2; | 153 | int voltage,voltage1,voltage2; |
148 | 154 | ||
149 | spin_lock_irqsave(&corgi_ssp_lock, flag); | 155 | spin_lock_irqsave(&corgi_ssp_lock, flag); |
150 | GPCR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | 156 | if (ssp_machinfo->cs_max1111 >= 0) |
157 | GPCR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | ||
151 | ssp_disable(&corgi_ssp_dev); | 158 | ssp_disable(&corgi_ssp_dev); |
152 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_max1111)); | 159 | ssp_config(&corgi_ssp_dev, (SSCR0_Motorola | (SSCR0_DSS & 0x07 )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_max1111)); |
153 | ssp_enable(&corgi_ssp_dev); | 160 | ssp_enable(&corgi_ssp_dev); |
@@ -169,7 +176,8 @@ int corgi_ssp_max1111_get(ulong data) | |||
169 | ssp_disable(&corgi_ssp_dev); | 176 | ssp_disable(&corgi_ssp_dev); |
170 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); | 177 | ssp_config(&corgi_ssp_dev, (SSCR0_National | (SSCR0_DSS & 0x0b )), 0, 0, SSCR0_SerClkDiv(ssp_machinfo->clk_ads7846)); |
171 | ssp_enable(&corgi_ssp_dev); | 178 | ssp_enable(&corgi_ssp_dev); |
172 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | 179 | if (ssp_machinfo->cs_max1111 >= 0) |
180 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); | ||
173 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); | 181 | spin_unlock_irqrestore(&corgi_ssp_lock, flag); |
174 | 182 | ||
175 | if (voltage1 & 0xc0 || voltage2 & 0x3f) | 183 | if (voltage1 & 0xc0 || voltage2 & 0x3f) |
@@ -196,9 +204,12 @@ static int __init corgi_ssp_probe(struct platform_device *dev) | |||
196 | int ret; | 204 | int ret; |
197 | 205 | ||
198 | /* Chip Select - Disable All */ | 206 | /* Chip Select - Disable All */ |
199 | pxa_gpio_mode(ssp_machinfo->cs_lcdcon | GPIO_OUT | GPIO_DFLT_HIGH); | 207 | if (ssp_machinfo->cs_lcdcon >= 0) |
200 | pxa_gpio_mode(ssp_machinfo->cs_max1111 | GPIO_OUT | GPIO_DFLT_HIGH); | 208 | pxa_gpio_mode(ssp_machinfo->cs_lcdcon | GPIO_OUT | GPIO_DFLT_HIGH); |
201 | pxa_gpio_mode(ssp_machinfo->cs_ads7846 | GPIO_OUT | GPIO_DFLT_HIGH); | 209 | if (ssp_machinfo->cs_max1111 >= 0) |
210 | pxa_gpio_mode(ssp_machinfo->cs_max1111 | GPIO_OUT | GPIO_DFLT_HIGH); | ||
211 | if (ssp_machinfo->cs_ads7846 >= 0) | ||
212 | pxa_gpio_mode(ssp_machinfo->cs_ads7846 | GPIO_OUT | GPIO_DFLT_HIGH); | ||
202 | 213 | ||
203 | ret = ssp_init(&corgi_ssp_dev, ssp_machinfo->port, 0); | 214 | ret = ssp_init(&corgi_ssp_dev, ssp_machinfo->port, 0); |
204 | 215 | ||
@@ -229,9 +240,12 @@ static int corgi_ssp_suspend(struct platform_device *dev, pm_message_t state) | |||
229 | 240 | ||
230 | static int corgi_ssp_resume(struct platform_device *dev) | 241 | static int corgi_ssp_resume(struct platform_device *dev) |
231 | { | 242 | { |
232 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); /* High - Disable LCD Control/Timing Gen */ | 243 | if (ssp_machinfo->cs_lcdcon >= 0) |
233 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); /* High - Disable MAX1111*/ | 244 | GPSR(ssp_machinfo->cs_lcdcon) = GPIO_bit(ssp_machinfo->cs_lcdcon); /* High - Disable LCD Control/Timing Gen */ |
234 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); /* High - Disable ADS7846*/ | 245 | if (ssp_machinfo->cs_max1111 >= 0) |
246 | GPSR(ssp_machinfo->cs_max1111) = GPIO_bit(ssp_machinfo->cs_max1111); /* High - Disable MAX1111*/ | ||
247 | if (ssp_machinfo->cs_ads7846 >= 0) | ||
248 | GPSR(ssp_machinfo->cs_ads7846) = GPIO_bit(ssp_machinfo->cs_ads7846); /* High - Disable ADS7846*/ | ||
235 | ssp_restore_state(&corgi_ssp_dev,&corgi_ssp_state); | 249 | ssp_restore_state(&corgi_ssp_dev,&corgi_ssp_state); |
236 | ssp_enable(&corgi_ssp_dev); | 250 | ssp_enable(&corgi_ssp_dev); |
237 | 251 | ||
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 3e26d7ce5bb2..1ab26c6914f2 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -22,6 +22,10 @@ | |||
22 | #include <linux/mtd/mtd.h> | 22 | #include <linux/mtd/mtd.h> |
23 | #include <linux/mtd/partitions.h> | 23 | #include <linux/mtd/partitions.h> |
24 | 24 | ||
25 | #include <linux/spi/spi.h> | ||
26 | #include <linux/spi/ads7846.h> | ||
27 | #include <asm/arch/pxa2xx_spi.h> | ||
28 | |||
25 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
26 | #include <asm/memory.h> | 30 | #include <asm/memory.h> |
27 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
@@ -196,6 +200,78 @@ static struct resource smc91x_resources[] = { | |||
196 | }, | 200 | }, |
197 | }; | 201 | }; |
198 | 202 | ||
203 | /* ADS7846 is connected through SSP ... and if your board has J5 populated, | ||
204 | * you can select it to replace the ucb1400 by switching the touchscreen cable | ||
205 | * (to J5) and poking board registers (as done below). Else it's only useful | ||
206 | * for the temperature sensors. | ||
207 | */ | ||
208 | static struct resource pxa_ssp_resources[] = { | ||
209 | [0] = { | ||
210 | .start = __PREG(SSCR0_P(1)), | ||
211 | .end = __PREG(SSCR0_P(1)) + 0x14, | ||
212 | .flags = IORESOURCE_MEM, | ||
213 | }, | ||
214 | [1] = { | ||
215 | .start = IRQ_SSP, | ||
216 | .end = IRQ_SSP, | ||
217 | .flags = IORESOURCE_IRQ, | ||
218 | }, | ||
219 | }; | ||
220 | |||
221 | static struct pxa2xx_spi_master pxa_ssp_master_info = { | ||
222 | .ssp_type = PXA25x_SSP, | ||
223 | .clock_enable = CKEN3_SSP, | ||
224 | .num_chipselect = 0, | ||
225 | }; | ||
226 | |||
227 | static struct platform_device pxa_ssp = { | ||
228 | .name = "pxa2xx-spi", | ||
229 | .id = 1, | ||
230 | .resource = pxa_ssp_resources, | ||
231 | .num_resources = ARRAY_SIZE(pxa_ssp_resources), | ||
232 | .dev = { | ||
233 | .platform_data = &pxa_ssp_master_info, | ||
234 | }, | ||
235 | }; | ||
236 | |||
237 | static int lubbock_ads7846_pendown_state(void) | ||
238 | { | ||
239 | /* TS_BUSY is bit 8 in LUB_MISC_RD, but pendown is irq-only */ | ||
240 | return 0; | ||
241 | } | ||
242 | |||
243 | static struct ads7846_platform_data ads_info = { | ||
244 | .model = 7846, | ||
245 | .vref_delay_usecs = 100, /* internal, no cap */ | ||
246 | .get_pendown_state = lubbock_ads7846_pendown_state, | ||
247 | // .x_plate_ohms = 500, /* GUESS! */ | ||
248 | // .y_plate_ohms = 500, /* GUESS! */ | ||
249 | }; | ||
250 | |||
251 | static void ads7846_cs(u32 command) | ||
252 | { | ||
253 | static const unsigned TS_nCS = 1 << 11; | ||
254 | lubbock_set_misc_wr(TS_nCS, (command == PXA2XX_CS_ASSERT) ? 0 : TS_nCS); | ||
255 | } | ||
256 | |||
257 | static struct pxa2xx_spi_chip ads_hw = { | ||
258 | .tx_threshold = 1, | ||
259 | .rx_threshold = 2, | ||
260 | .cs_control = ads7846_cs, | ||
261 | }; | ||
262 | |||
263 | static struct spi_board_info spi_board_info[] __initdata = { { | ||
264 | .modalias = "ads7846", | ||
265 | .platform_data = &ads_info, | ||
266 | .controller_data = &ads_hw, | ||
267 | .irq = LUBBOCK_BB_IRQ, | ||
268 | .max_speed_hz = 120000 /* max sample rate at 3V */ | ||
269 | * 26 /* command + data + overhead */, | ||
270 | .bus_num = 1, | ||
271 | .chip_select = 0, | ||
272 | }, | ||
273 | }; | ||
274 | |||
199 | static struct platform_device smc91x_device = { | 275 | static struct platform_device smc91x_device = { |
200 | .name = "smc91x", | 276 | .name = "smc91x", |
201 | .id = -1, | 277 | .id = -1, |
@@ -272,6 +348,7 @@ static struct platform_device *devices[] __initdata = { | |||
272 | &smc91x_device, | 348 | &smc91x_device, |
273 | &lubbock_flash_device[0], | 349 | &lubbock_flash_device[0], |
274 | &lubbock_flash_device[1], | 350 | &lubbock_flash_device[1], |
351 | &pxa_ssp, | ||
275 | }; | 352 | }; |
276 | 353 | ||
277 | static struct pxafb_mach_info sharp_lm8v31 __initdata = { | 354 | static struct pxafb_mach_info sharp_lm8v31 __initdata = { |
@@ -400,6 +477,8 @@ static void __init lubbock_init(void) | |||
400 | lubbock_flash_data[flashboot^1].name = "application-flash"; | 477 | lubbock_flash_data[flashboot^1].name = "application-flash"; |
401 | lubbock_flash_data[flashboot].name = "boot-rom"; | 478 | lubbock_flash_data[flashboot].name = "boot-rom"; |
402 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); | 479 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); |
480 | |||
481 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | ||
403 | } | 482 | } |
404 | 483 | ||
405 | static struct map_desc lubbock_io_desc[] __initdata = { | 484 | static struct map_desc lubbock_io_desc[] __initdata = { |
@@ -416,6 +495,11 @@ static void __init lubbock_map_io(void) | |||
416 | pxa_map_io(); | 495 | pxa_map_io(); |
417 | iotable_init(lubbock_io_desc, ARRAY_SIZE(lubbock_io_desc)); | 496 | iotable_init(lubbock_io_desc, ARRAY_SIZE(lubbock_io_desc)); |
418 | 497 | ||
498 | /* SSP data pins */ | ||
499 | pxa_gpio_mode(GPIO23_SCLK_MD); | ||
500 | pxa_gpio_mode(GPIO25_STXD_MD); | ||
501 | pxa_gpio_mode(GPIO26_SRXD_MD); | ||
502 | |||
419 | /* This enables the BTUART */ | 503 | /* This enables the BTUART */ |
420 | pxa_gpio_mode(GPIO42_BTRXD_MD); | 504 | pxa_gpio_mode(GPIO42_BTRXD_MD); |
421 | pxa_gpio_mode(GPIO43_BTTXD_MD); | 505 | pxa_gpio_mode(GPIO43_BTTXD_MD); |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index a042473deedd..9a9fa87cea9f 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -18,11 +18,14 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/fb.h> | 20 | #include <linux/fb.h> |
21 | #include <linux/pm.h> | ||
22 | #include <linux/delay.h> | ||
21 | 23 | ||
22 | #include <asm/hardware.h> | 24 | #include <asm/hardware.h> |
23 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
24 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
25 | #include <asm/setup.h> | 27 | #include <asm/setup.h> |
28 | #include <asm/system.h> | ||
26 | 29 | ||
27 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
@@ -34,12 +37,15 @@ | |||
34 | #include <asm/arch/irda.h> | 37 | #include <asm/arch/irda.h> |
35 | #include <asm/arch/poodle.h> | 38 | #include <asm/arch/poodle.h> |
36 | #include <asm/arch/pxafb.h> | 39 | #include <asm/arch/pxafb.h> |
40 | #include <asm/arch/sharpsl.h> | ||
41 | #include <asm/arch/ssp.h> | ||
37 | 42 | ||
38 | #include <asm/hardware/scoop.h> | 43 | #include <asm/hardware/scoop.h> |
39 | #include <asm/hardware/locomo.h> | 44 | #include <asm/hardware/locomo.h> |
40 | #include <asm/mach/sharpsl_param.h> | 45 | #include <asm/mach/sharpsl_param.h> |
41 | 46 | ||
42 | #include "generic.h" | 47 | #include "generic.h" |
48 | #include "sharpsl.h" | ||
43 | 49 | ||
44 | static struct resource poodle_scoop_resources[] = { | 50 | static struct resource poodle_scoop_resources[] = { |
45 | [0] = { | 51 | [0] = { |
@@ -117,13 +123,71 @@ static struct resource locomo_resources[] = { | |||
117 | }, | 123 | }, |
118 | }; | 124 | }; |
119 | 125 | ||
120 | static struct platform_device locomo_device = { | 126 | struct platform_device poodle_locomo_device = { |
121 | .name = "locomo", | 127 | .name = "locomo", |
122 | .id = 0, | 128 | .id = 0, |
123 | .num_resources = ARRAY_SIZE(locomo_resources), | 129 | .num_resources = ARRAY_SIZE(locomo_resources), |
124 | .resource = locomo_resources, | 130 | .resource = locomo_resources, |
125 | }; | 131 | }; |
126 | 132 | ||
133 | EXPORT_SYMBOL(poodle_locomo_device); | ||
134 | |||
135 | /* | ||
136 | * Poodle SSP Device | ||
137 | */ | ||
138 | |||
139 | struct platform_device poodle_ssp_device = { | ||
140 | .name = "corgi-ssp", | ||
141 | .id = -1, | ||
142 | }; | ||
143 | |||
144 | struct corgissp_machinfo poodle_ssp_machinfo = { | ||
145 | .port = 1, | ||
146 | .cs_lcdcon = -1, | ||
147 | .cs_ads7846 = -1, | ||
148 | .cs_max1111 = -1, | ||
149 | .clk_lcdcon = 2, | ||
150 | .clk_ads7846 = 36, | ||
151 | .clk_max1111 = 2, | ||
152 | }; | ||
153 | |||
154 | |||
155 | /* | ||
156 | * Poodle Touch Screen Device | ||
157 | */ | ||
158 | static struct resource poodlets_resources[] = { | ||
159 | [0] = { | ||
160 | .start = POODLE_IRQ_GPIO_TP_INT, | ||
161 | .end = POODLE_IRQ_GPIO_TP_INT, | ||
162 | .flags = IORESOURCE_IRQ, | ||
163 | }, | ||
164 | }; | ||
165 | |||
166 | static unsigned long poodle_get_hsync_len(void) | ||
167 | { | ||
168 | return 0; | ||
169 | } | ||
170 | |||
171 | static void poodle_null_hsync(void) | ||
172 | { | ||
173 | } | ||
174 | |||
175 | static struct corgits_machinfo poodle_ts_machinfo = { | ||
176 | .get_hsync_len = poodle_get_hsync_len, | ||
177 | .put_hsync = poodle_null_hsync, | ||
178 | .wait_hsync = poodle_null_hsync, | ||
179 | }; | ||
180 | |||
181 | static struct platform_device poodle_ts_device = { | ||
182 | .name = "corgi-ts", | ||
183 | .dev = { | ||
184 | .platform_data = &poodle_ts_machinfo, | ||
185 | }, | ||
186 | .id = -1, | ||
187 | .num_resources = ARRAY_SIZE(poodlets_resources), | ||
188 | .resource = poodlets_resources, | ||
189 | }; | ||
190 | |||
127 | 191 | ||
128 | /* | 192 | /* |
129 | * MMC/SD Device | 193 | * MMC/SD Device |
@@ -141,7 +205,9 @@ static int poodle_mci_init(struct device *dev, irqreturn_t (*poodle_detect_int)( | |||
141 | pxa_gpio_mode(GPIO6_MMCCLK_MD); | 205 | pxa_gpio_mode(GPIO6_MMCCLK_MD); |
142 | pxa_gpio_mode(GPIO8_MMCCS0_MD); | 206 | pxa_gpio_mode(GPIO8_MMCCS0_MD); |
143 | pxa_gpio_mode(POODLE_GPIO_nSD_DETECT | GPIO_IN); | 207 | pxa_gpio_mode(POODLE_GPIO_nSD_DETECT | GPIO_IN); |
208 | pxa_gpio_mode(POODLE_GPIO_nSD_WP | GPIO_IN); | ||
144 | pxa_gpio_mode(POODLE_GPIO_SD_PWR | GPIO_OUT); | 209 | pxa_gpio_mode(POODLE_GPIO_SD_PWR | GPIO_OUT); |
210 | pxa_gpio_mode(POODLE_GPIO_SD_PWR1 | GPIO_OUT); | ||
145 | 211 | ||
146 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); | 212 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); |
147 | 213 | ||
@@ -160,12 +226,22 @@ static void poodle_mci_setpower(struct device *dev, unsigned int vdd) | |||
160 | { | 226 | { |
161 | struct pxamci_platform_data* p_d = dev->platform_data; | 227 | struct pxamci_platform_data* p_d = dev->platform_data; |
162 | 228 | ||
163 | if (( 1 << vdd) & p_d->ocr_mask) | 229 | if (( 1 << vdd) & p_d->ocr_mask) { |
164 | GPSR1 = GPIO_bit(POODLE_GPIO_SD_PWR); | 230 | GPSR(POODLE_GPIO_SD_PWR) = GPIO_bit(POODLE_GPIO_SD_PWR); |
165 | else | 231 | mdelay(2); |
166 | GPCR1 = GPIO_bit(POODLE_GPIO_SD_PWR); | 232 | GPSR(POODLE_GPIO_SD_PWR1) = GPIO_bit(POODLE_GPIO_SD_PWR1); |
233 | } else { | ||
234 | GPCR(POODLE_GPIO_SD_PWR1) = GPIO_bit(POODLE_GPIO_SD_PWR1); | ||
235 | GPCR(POODLE_GPIO_SD_PWR) = GPIO_bit(POODLE_GPIO_SD_PWR); | ||
236 | } | ||
237 | } | ||
238 | |||
239 | static int poodle_mci_get_ro(struct device *dev) | ||
240 | { | ||
241 | return GPLR(POODLE_GPIO_nSD_WP) & GPIO_bit(POODLE_GPIO_nSD_WP); | ||
167 | } | 242 | } |
168 | 243 | ||
244 | |||
169 | static void poodle_mci_exit(struct device *dev, void *data) | 245 | static void poodle_mci_exit(struct device *dev, void *data) |
170 | { | 246 | { |
171 | free_irq(POODLE_IRQ_GPIO_nSD_DETECT, data); | 247 | free_irq(POODLE_IRQ_GPIO_nSD_DETECT, data); |
@@ -174,6 +250,7 @@ static void poodle_mci_exit(struct device *dev, void *data) | |||
174 | static struct pxamci_platform_data poodle_mci_platform_data = { | 250 | static struct pxamci_platform_data poodle_mci_platform_data = { |
175 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 251 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
176 | .init = poodle_mci_init, | 252 | .init = poodle_mci_init, |
253 | .get_ro = poodle_mci_get_ro, | ||
177 | .setpower = poodle_mci_setpower, | 254 | .setpower = poodle_mci_setpower, |
178 | .exit = poodle_mci_exit, | 255 | .exit = poodle_mci_exit, |
179 | }; | 256 | }; |
@@ -243,14 +320,31 @@ static struct pxafb_mach_info poodle_fb_info __initdata = { | |||
243 | }; | 320 | }; |
244 | 321 | ||
245 | static struct platform_device *devices[] __initdata = { | 322 | static struct platform_device *devices[] __initdata = { |
246 | &locomo_device, | 323 | &poodle_locomo_device, |
247 | &poodle_scoop_device, | 324 | &poodle_scoop_device, |
325 | &poodle_ssp_device, | ||
326 | &poodle_ts_device, | ||
248 | }; | 327 | }; |
249 | 328 | ||
329 | static void poodle_poweroff(void) | ||
330 | { | ||
331 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
332 | arm_machine_restart('h'); | ||
333 | } | ||
334 | |||
335 | static void poodle_restart(char mode) | ||
336 | { | ||
337 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
338 | arm_machine_restart('h'); | ||
339 | } | ||
340 | |||
250 | static void __init poodle_init(void) | 341 | static void __init poodle_init(void) |
251 | { | 342 | { |
252 | int ret = 0; | 343 | int ret = 0; |
253 | 344 | ||
345 | pm_power_off = poodle_poweroff; | ||
346 | arm_pm_restart = poodle_restart; | ||
347 | |||
254 | /* setup sleep mode values */ | 348 | /* setup sleep mode values */ |
255 | PWER = 0x00000002; | 349 | PWER = 0x00000002; |
256 | PFER = 0x00000000; | 350 | PFER = 0x00000000; |
@@ -288,6 +382,7 @@ static void __init poodle_init(void) | |||
288 | GPSR1 = 0x00000000; | 382 | GPSR1 = 0x00000000; |
289 | GPSR2 = 0x00000000; | 383 | GPSR2 = 0x00000000; |
290 | 384 | ||
385 | set_pxa_fb_parent(&poodle_locomo_device.dev); | ||
291 | set_pxa_fb_info(&poodle_fb_info); | 386 | set_pxa_fb_info(&poodle_fb_info); |
292 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); | 387 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); |
293 | pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT); | 388 | pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT); |
@@ -301,6 +396,7 @@ static void __init poodle_init(void) | |||
301 | if (ret) { | 396 | if (ret) { |
302 | printk(KERN_WARNING "poodle: Unable to register LoCoMo device\n"); | 397 | printk(KERN_WARNING "poodle: Unable to register LoCoMo device\n"); |
303 | } | 398 | } |
399 | corgi_ssp_set_machinfo(&poodle_ssp_machinfo); | ||
304 | } | 400 | } |
305 | 401 | ||
306 | static void __init fixup_poodle(struct machine_desc *desc, | 402 | static void __init fixup_poodle(struct machine_desc *desc, |
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index 6d402b262d8a..0f1648780c41 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c | |||
@@ -128,6 +128,9 @@ struct battery_thresh spitz_battery_levels_noac[] = { | |||
128 | */ | 128 | */ |
129 | int sharpsl_pm_pxa_read_max1111(int channel) | 129 | int sharpsl_pm_pxa_read_max1111(int channel) |
130 | { | 130 | { |
131 | if (machine_is_tosa()) // Ugly, better move this function into another module | ||
132 | return 0; | ||
133 | |||
131 | return corgi_ssp_max1111_get((channel << MAXCTRL_SEL_SH) | MAXCTRL_PD0 | MAXCTRL_PD1 | 134 | return corgi_ssp_max1111_get((channel << MAXCTRL_SEL_SH) | MAXCTRL_PD0 | MAXCTRL_PD1 |
132 | | MAXCTRL_SGL | MAXCTRL_UNI | MAXCTRL_STR); | 135 | | MAXCTRL_SGL | MAXCTRL_UNI | MAXCTRL_STR); |
133 | } | 136 | } |
@@ -156,7 +159,7 @@ void sharpsl_pm_pxa_init(void) | |||
156 | else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal),IRQT_FALLING); | 159 | else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal),IRQT_FALLING); |
157 | } | 160 | } |
158 | 161 | ||
159 | if (!machine_is_corgi()) | 162 | if (sharpsl_pm.machinfo->batfull_irq) |
160 | { | 163 | { |
161 | /* Register interrupt handler. */ | 164 | /* Register interrupt handler. */ |
162 | if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, SA_INTERRUPT, "CO", sharpsl_chrg_full_isr)) { | 165 | if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, SA_INTERRUPT, "CO", sharpsl_chrg_full_isr)) { |
@@ -174,6 +177,6 @@ void sharpsl_pm_pxa_remove(void) | |||
174 | if (sharpsl_pm.machinfo->gpio_fatal) | 177 | if (sharpsl_pm.machinfo->gpio_fatal) |
175 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); | 178 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); |
176 | 179 | ||
177 | if (!machine_is_corgi()) | 180 | if (sharpsl_pm.machinfo->batfull_irq) |
178 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); | 181 | free_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); |
179 | } | 182 | } |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 44bcb8097c7a..eb9937f6f5cd 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/mmc/host.h> | 22 | #include <linux/mmc/host.h> |
23 | #include <linux/pm.h> | ||
23 | 24 | ||
24 | #include <asm/setup.h> | 25 | #include <asm/setup.h> |
25 | #include <asm/memory.h> | 26 | #include <asm/memory.h> |
@@ -27,6 +28,7 @@ | |||
27 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
28 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
29 | #include <asm/io.h> | 30 | #include <asm/io.h> |
31 | #include <asm/system.h> | ||
30 | 32 | ||
31 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
@@ -432,8 +434,31 @@ static struct platform_device *devices[] __initdata = { | |||
432 | &spitzled_device, | 434 | &spitzled_device, |
433 | }; | 435 | }; |
434 | 436 | ||
437 | static void spitz_poweroff(void) | ||
438 | { | ||
439 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
440 | |||
441 | pxa_gpio_mode(SPITZ_GPIO_ON_RESET | GPIO_OUT); | ||
442 | GPSR(SPITZ_GPIO_ON_RESET) = GPIO_bit(SPITZ_GPIO_ON_RESET); | ||
443 | |||
444 | mdelay(1000); | ||
445 | arm_machine_restart('h'); | ||
446 | } | ||
447 | |||
448 | static void spitz_restart(char mode) | ||
449 | { | ||
450 | /* Bootloader magic for a reboot */ | ||
451 | if((MSC0 & 0xffff0000) == 0x7ff00000) | ||
452 | MSC0 = (MSC0 & 0xffff) | 0x7ee00000; | ||
453 | |||
454 | spitz_poweroff(); | ||
455 | } | ||
456 | |||
435 | static void __init common_init(void) | 457 | static void __init common_init(void) |
436 | { | 458 | { |
459 | pm_power_off = spitz_poweroff; | ||
460 | arm_pm_restart = spitz_restart; | ||
461 | |||
437 | PMCR = 0x00; | 462 | PMCR = 0x00; |
438 | 463 | ||
439 | /* setup sleep mode values */ | 464 | /* setup sleep mode values */ |
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c index 5e5bdc898482..40be833079c7 100644 --- a/arch/arm/mach-pxa/spitz_pm.c +++ b/arch/arm/mach-pxa/spitz_pm.c | |||
@@ -27,6 +27,13 @@ | |||
27 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
28 | #include "sharpsl.h" | 28 | #include "sharpsl.h" |
29 | 29 | ||
30 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | ||
31 | #define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */ | ||
32 | #define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */ | ||
33 | #define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */ | ||
34 | #define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */ | ||
35 | #define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */ | ||
36 | |||
30 | static int spitz_last_ac_status; | 37 | static int spitz_last_ac_status; |
31 | 38 | ||
32 | static void spitz_charger_init(void) | 39 | static void spitz_charger_init(void) |
@@ -190,6 +197,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
190 | .gpio_batlock = SPITZ_GPIO_BAT_COVER, | 197 | .gpio_batlock = SPITZ_GPIO_BAT_COVER, |
191 | .gpio_acin = SPITZ_GPIO_AC_IN, | 198 | .gpio_acin = SPITZ_GPIO_AC_IN, |
192 | .gpio_batfull = SPITZ_GPIO_CHRG_FULL, | 199 | .gpio_batfull = SPITZ_GPIO_CHRG_FULL, |
200 | .batfull_irq = 1, | ||
193 | .gpio_fatal = SPITZ_GPIO_FATAL_BAT, | 201 | .gpio_fatal = SPITZ_GPIO_FATAL_BAT, |
194 | .discharge = spitz_discharge, | 202 | .discharge = spitz_discharge, |
195 | .discharge1 = spitz_discharge1, | 203 | .discharge1 = spitz_discharge1, |
@@ -200,6 +208,13 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
200 | .read_devdata = spitzpm_read_devdata, | 208 | .read_devdata = spitzpm_read_devdata, |
201 | .charger_wakeup = spitz_charger_wakeup, | 209 | .charger_wakeup = spitz_charger_wakeup, |
202 | .should_wakeup = spitz_should_wakeup, | 210 | .should_wakeup = spitz_should_wakeup, |
211 | .backlight_limit = corgibl_limit_intensity, | ||
212 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, | ||
213 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, | ||
214 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | ||
215 | .charge_acin_low = SHARPSL_CHARGE_ON_ACIN_LOW, | ||
216 | .fatal_acin_volt = SHARPSL_FATAL_ACIN_VOLT, | ||
217 | .fatal_noacin_volt= SHARPSL_FATAL_NOACIN_VOLT, | ||
203 | .bat_levels = 40, | 218 | .bat_levels = 40, |
204 | .bat_levels_noac = spitz_battery_levels_noac, | 219 | .bat_levels_noac = spitz_battery_levels_noac, |
205 | .bat_levels_acin = spitz_battery_levels_acin, | 220 | .bat_levels_acin = spitz_battery_levels_acin, |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 76c0e7f0a219..7152bc13680f 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -19,12 +19,15 @@ | |||
19 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/mmc/host.h> | 21 | #include <linux/mmc/host.h> |
22 | #include <linux/pm.h> | ||
23 | #include <linux/delay.h> | ||
22 | 24 | ||
23 | #include <asm/setup.h> | 25 | #include <asm/setup.h> |
24 | #include <asm/memory.h> | 26 | #include <asm/memory.h> |
25 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
26 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
27 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
30 | #include <asm/system.h> | ||
28 | #include <asm/arch/irda.h> | 31 | #include <asm/arch/irda.h> |
29 | #include <asm/arch/mmc.h> | 32 | #include <asm/arch/mmc.h> |
30 | #include <asm/arch/udc.h> | 33 | #include <asm/arch/udc.h> |
@@ -266,8 +269,31 @@ static struct platform_device *devices[] __initdata = { | |||
266 | &tosaled_device, | 269 | &tosaled_device, |
267 | }; | 270 | }; |
268 | 271 | ||
272 | static void tosa_poweroff(void) | ||
273 | { | ||
274 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
275 | |||
276 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_OUT); | ||
277 | GPSR(TOSA_GPIO_ON_RESET) = GPIO_bit(TOSA_GPIO_ON_RESET); | ||
278 | |||
279 | mdelay(1000); | ||
280 | arm_machine_restart('h'); | ||
281 | } | ||
282 | |||
283 | static void tosa_restart(char mode) | ||
284 | { | ||
285 | /* Bootloader magic for a reboot */ | ||
286 | if((MSC0 & 0xffff0000) == 0x7ff00000) | ||
287 | MSC0 = (MSC0 & 0xffff) | 0x7ee00000; | ||
288 | |||
289 | tosa_poweroff(); | ||
290 | } | ||
291 | |||
269 | static void __init tosa_init(void) | 292 | static void __init tosa_init(void) |
270 | { | 293 | { |
294 | pm_power_off = tosa_poweroff; | ||
295 | arm_pm_restart = tosa_restart; | ||
296 | |||
271 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_IN); | 297 | pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_IN); |
272 | pxa_gpio_mode(TOSA_GPIO_TC6393_INT | GPIO_IN); | 298 | pxa_gpio_mode(TOSA_GPIO_TC6393_INT | GPIO_IN); |
273 | pxa_gpio_mode(TOSA_GPIO_USB_IN | GPIO_IN); | 299 | pxa_gpio_mode(TOSA_GPIO_USB_IN | GPIO_IN); |
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index 970f98dadffc..f5d9cd498a5f 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig | |||
@@ -70,6 +70,24 @@ config ARCH_S3C2440 | |||
70 | help | 70 | help |
71 | Say Y here if you are using the SMDK2440. | 71 | Say Y here if you are using the SMDK2440. |
72 | 72 | ||
73 | config SMDK2440_CPU2440 | ||
74 | bool "SMDK2440 with S3C2440 cpu module" | ||
75 | depends on ARCH_S3C2440 | ||
76 | default y if ARCH_S3C2440 | ||
77 | select CPU_S3C2440 | ||
78 | |||
79 | config SMDK2440_CPU2442 | ||
80 | bool "SMDM2440 with S3C2442 cpu module" | ||
81 | depends on ARCH_S3C2440 | ||
82 | select CPU_S3C2442 | ||
83 | |||
84 | config MACH_SMDK2413 | ||
85 | bool "SMDK2413" | ||
86 | select CPU_S3C2412 | ||
87 | select MACH_SMDK | ||
88 | help | ||
89 | Say Y here if you are using an SMDK2413 | ||
90 | |||
73 | config MACH_VR1000 | 91 | config MACH_VR1000 |
74 | bool "Thorcom VR1000" | 92 | bool "Thorcom VR1000" |
75 | select CPU_S3C2410 | 93 | select CPU_S3C2410 |
@@ -102,19 +120,55 @@ config MACH_NEXCODER_2440 | |||
102 | 120 | ||
103 | endmenu | 121 | endmenu |
104 | 122 | ||
123 | config S3C2410_CLOCK | ||
124 | bool | ||
125 | help | ||
126 | Clock code for the S3C2410, and similar processors | ||
127 | |||
105 | config CPU_S3C2410 | 128 | config CPU_S3C2410 |
106 | bool | 129 | bool |
107 | depends on ARCH_S3C2410 | 130 | depends on ARCH_S3C2410 |
131 | select S3C2410_CLOCK | ||
108 | help | 132 | help |
109 | Support for S3C2410 and S3C2410A family from the S3C24XX line | 133 | Support for S3C2410 and S3C2410A family from the S3C24XX line |
110 | of Samsung Mobile CPUs. | 134 | of Samsung Mobile CPUs. |
111 | 135 | ||
136 | # internal node to signify if we are only dealing with an S3C2412 | ||
137 | |||
138 | config CPU_S3C2412_ONLY | ||
139 | bool | ||
140 | depends on ARCH_S3C2410 && !CPU_S3C2400 && !CPU_S3C2410 && \ | ||
141 | !CPU_S3C2440 && !CPU_S3C2442 && CPU_S3C2412 | ||
142 | default y if CPU_S3C2412 | ||
143 | |||
144 | config CPU_S3C2412 | ||
145 | bool | ||
146 | depends on ARCH_S3C2410 | ||
147 | help | ||
148 | Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line | ||
149 | |||
150 | config CPU_S3C244X | ||
151 | bool | ||
152 | depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442) | ||
153 | help | ||
154 | Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems. | ||
155 | |||
112 | config CPU_S3C2440 | 156 | config CPU_S3C2440 |
113 | bool | 157 | bool |
114 | depends on ARCH_S3C2410 | 158 | depends on ARCH_S3C2410 |
159 | select S3C2410_CLOCK | ||
160 | select CPU_S3C244X | ||
115 | help | 161 | help |
116 | Support for S3C2440 Samsung Mobile CPU based systems. | 162 | Support for S3C2440 Samsung Mobile CPU based systems. |
117 | 163 | ||
164 | config CPU_S3C2442 | ||
165 | bool | ||
166 | depends on ARCH_S3C2420 | ||
167 | select S3C2410_CLOCK | ||
168 | select CPU_S3C244X | ||
169 | help | ||
170 | Support for S3C2442 Samsung Mobile CPU based systems. | ||
171 | |||
118 | comment "S3C2410 Boot" | 172 | comment "S3C2410 Boot" |
119 | 173 | ||
120 | config S3C2410_BOOT_WATCHDOG | 174 | config S3C2410_BOOT_WATCHDOG |
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile index 3e5712db6b52..0c7938645df6 100644 --- a/arch/arm/mach-s3c2410/Makefile +++ b/arch/arm/mach-s3c2410/Makefile | |||
@@ -24,6 +24,20 @@ obj-$(CONFIG_S3C2410_DMA) += dma.o | |||
24 | obj-$(CONFIG_PM) += pm.o sleep.o | 24 | obj-$(CONFIG_PM) += pm.o sleep.o |
25 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o | 25 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o |
26 | 26 | ||
27 | # S3C2412 support | ||
28 | obj-$(CONFIG_CPU_S3C2412) += s3c2412.o | ||
29 | obj-$(CONFIG_CPU_S3C2412) += s3c2412-clock.o | ||
30 | |||
31 | # | ||
32 | # S3C244X support | ||
33 | |||
34 | obj-$(CONFIG_CPU_S3C244X) += s3c244x.o | ||
35 | obj-$(CONFIG_CPU_S3C244X) += s3c244x-irq.o | ||
36 | |||
37 | # Clock control | ||
38 | |||
39 | obj-$(CONFIG_S3C2410_CLOCK) += s3c2410-clock.o | ||
40 | |||
27 | # S3C2440 support | 41 | # S3C2440 support |
28 | 42 | ||
29 | obj-$(CONFIG_CPU_S3C2440) += s3c2440.o s3c2440-dsc.o | 43 | obj-$(CONFIG_CPU_S3C2440) += s3c2440.o s3c2440-dsc.o |
@@ -31,6 +45,11 @@ obj-$(CONFIG_CPU_S3C2440) += s3c2440-irq.o | |||
31 | obj-$(CONFIG_CPU_S3C2440) += s3c2440-clock.o | 45 | obj-$(CONFIG_CPU_S3C2440) += s3c2440-clock.o |
32 | obj-$(CONFIG_CPU_S3C2440) += s3c2410-gpio.o | 46 | obj-$(CONFIG_CPU_S3C2440) += s3c2410-gpio.o |
33 | 47 | ||
48 | # S3C2442 support | ||
49 | |||
50 | obj-$(CONFIG_CPU_S3C2442) += s3c2442.o | ||
51 | obj-$(CONFIG_CPU_S3C2442) += s3c2442-clock.o | ||
52 | |||
34 | # bast extras | 53 | # bast extras |
35 | 54 | ||
36 | obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o | 55 | obj-$(CONFIG_BAST_PC104_IRQ) += bast-irq.o |
@@ -43,6 +62,7 @@ obj-$(CONFIG_ARCH_BAST) += mach-bast.o usb-simtec.o | |||
43 | obj-$(CONFIG_ARCH_H1940) += mach-h1940.o | 62 | obj-$(CONFIG_ARCH_H1940) += mach-h1940.o |
44 | obj-$(CONFIG_MACH_N30) += mach-n30.o | 63 | obj-$(CONFIG_MACH_N30) += mach-n30.o |
45 | obj-$(CONFIG_ARCH_SMDK2410) += mach-smdk2410.o | 64 | obj-$(CONFIG_ARCH_SMDK2410) += mach-smdk2410.o |
65 | obj-$(CONFIG_MACH_SMDK2413) += mach-smdk2413.o | ||
46 | obj-$(CONFIG_ARCH_S3C2440) += mach-smdk2440.o | 66 | obj-$(CONFIG_ARCH_S3C2440) += mach-smdk2440.o |
47 | obj-$(CONFIG_MACH_VR1000) += mach-vr1000.o usb-simtec.o | 67 | obj-$(CONFIG_MACH_VR1000) += mach-vr1000.o usb-simtec.o |
48 | obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o | 68 | obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o |
diff --git a/arch/arm/mach-s3c2410/clock.c b/arch/arm/mach-s3c2410/clock.c index 6de713ad319a..e13fb6778890 100644 --- a/arch/arm/mach-s3c2410/clock.c +++ b/arch/arm/mach-s3c2410/clock.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Copyright (c) 2004-2005 Simtec Electronics | 3 | * Copyright (c) 2004-2005 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 Clock control support | 6 | * S3C24XX Core clock control support |
7 | * | 7 | * |
8 | * Based on, and code from linux/arch/arm/mach-versatile/clock.c | 8 | * Based on, and code from linux/arch/arm/mach-versatile/clock.c |
9 | ** | 9 | ** |
@@ -56,25 +56,6 @@ static LIST_HEAD(clocks); | |||
56 | 56 | ||
57 | DEFINE_MUTEX(clocks_mutex); | 57 | DEFINE_MUTEX(clocks_mutex); |
58 | 58 | ||
59 | /* old functions */ | ||
60 | |||
61 | void inline s3c24xx_clk_enable(unsigned int clocks, unsigned int enable) | ||
62 | { | ||
63 | unsigned long clkcon; | ||
64 | |||
65 | clkcon = __raw_readl(S3C2410_CLKCON); | ||
66 | |||
67 | if (enable) | ||
68 | clkcon |= clocks; | ||
69 | else | ||
70 | clkcon &= ~clocks; | ||
71 | |||
72 | /* ensure none of the special function bits set */ | ||
73 | clkcon &= ~(S3C2410_CLKCON_IDLE|S3C2410_CLKCON_POWER); | ||
74 | |||
75 | __raw_writel(clkcon, S3C2410_CLKCON); | ||
76 | } | ||
77 | |||
78 | /* enable and disable calls for use with the clk struct */ | 59 | /* enable and disable calls for use with the clk struct */ |
79 | 60 | ||
80 | static int clk_null_enable(struct clk *clk, int enable) | 61 | static int clk_null_enable(struct clk *clk, int enable) |
@@ -82,12 +63,6 @@ static int clk_null_enable(struct clk *clk, int enable) | |||
82 | return 0; | 63 | return 0; |
83 | } | 64 | } |
84 | 65 | ||
85 | int s3c24xx_clkcon_enable(struct clk *clk, int enable) | ||
86 | { | ||
87 | s3c24xx_clk_enable(clk->ctrlbit, enable); | ||
88 | return 0; | ||
89 | } | ||
90 | |||
91 | /* Clock API calls */ | 66 | /* Clock API calls */ |
92 | 67 | ||
93 | struct clk *clk_get(struct device *dev, const char *id) | 68 | struct clk *clk_get(struct device *dev, const char *id) |
@@ -173,8 +148,11 @@ unsigned long clk_get_rate(struct clk *clk) | |||
173 | if (clk->rate != 0) | 148 | if (clk->rate != 0) |
174 | return clk->rate; | 149 | return clk->rate; |
175 | 150 | ||
176 | while (clk->parent != NULL && clk->rate == 0) | 151 | if (clk->get_rate != NULL) |
177 | clk = clk->parent; | 152 | return (clk->get_rate)(clk); |
153 | |||
154 | if (clk->parent != NULL) | ||
155 | return clk_get_rate(clk->parent); | ||
178 | 156 | ||
179 | return clk->rate; | 157 | return clk->rate; |
180 | } | 158 | } |
@@ -233,31 +211,9 @@ EXPORT_SYMBOL(clk_set_rate); | |||
233 | EXPORT_SYMBOL(clk_get_parent); | 211 | EXPORT_SYMBOL(clk_get_parent); |
234 | EXPORT_SYMBOL(clk_set_parent); | 212 | EXPORT_SYMBOL(clk_set_parent); |
235 | 213 | ||
236 | /* base clock enable */ | ||
237 | |||
238 | static int s3c24xx_upll_enable(struct clk *clk, int enable) | ||
239 | { | ||
240 | unsigned long clkslow = __raw_readl(S3C2410_CLKSLOW); | ||
241 | unsigned long orig = clkslow; | ||
242 | |||
243 | if (enable) | ||
244 | clkslow &= ~S3C2410_CLKSLOW_UCLK_OFF; | ||
245 | else | ||
246 | clkslow |= S3C2410_CLKSLOW_UCLK_OFF; | ||
247 | |||
248 | __raw_writel(clkslow, S3C2410_CLKSLOW); | ||
249 | |||
250 | /* if we started the UPLL, then allow to settle */ | ||
251 | |||
252 | if (enable && (orig & S3C2410_CLKSLOW_UCLK_OFF)) | ||
253 | udelay(200); | ||
254 | |||
255 | return 0; | ||
256 | } | ||
257 | |||
258 | /* base clocks */ | 214 | /* base clocks */ |
259 | 215 | ||
260 | static struct clk clk_xtal = { | 216 | struct clk clk_xtal = { |
261 | .name = "xtal", | 217 | .name = "xtal", |
262 | .id = -1, | 218 | .id = -1, |
263 | .rate = 0, | 219 | .rate = 0, |
@@ -265,23 +221,27 @@ static struct clk clk_xtal = { | |||
265 | .ctrlbit = 0, | 221 | .ctrlbit = 0, |
266 | }; | 222 | }; |
267 | 223 | ||
268 | static struct clk clk_upll = { | 224 | struct clk clk_mpll = { |
225 | .name = "mpll", | ||
226 | .id = -1, | ||
227 | }; | ||
228 | |||
229 | struct clk clk_upll = { | ||
269 | .name = "upll", | 230 | .name = "upll", |
270 | .id = -1, | 231 | .id = -1, |
271 | .parent = NULL, | 232 | .parent = NULL, |
272 | .enable = s3c24xx_upll_enable, | ||
273 | .ctrlbit = 0, | 233 | .ctrlbit = 0, |
274 | }; | 234 | }; |
275 | 235 | ||
276 | static struct clk clk_f = { | 236 | struct clk clk_f = { |
277 | .name = "fclk", | 237 | .name = "fclk", |
278 | .id = -1, | 238 | .id = -1, |
279 | .rate = 0, | 239 | .rate = 0, |
280 | .parent = NULL, | 240 | .parent = &clk_mpll, |
281 | .ctrlbit = 0, | 241 | .ctrlbit = 0, |
282 | }; | 242 | }; |
283 | 243 | ||
284 | static struct clk clk_h = { | 244 | struct clk clk_h = { |
285 | .name = "hclk", | 245 | .name = "hclk", |
286 | .id = -1, | 246 | .id = -1, |
287 | .rate = 0, | 247 | .rate = 0, |
@@ -289,7 +249,7 @@ static struct clk clk_h = { | |||
289 | .ctrlbit = 0, | 249 | .ctrlbit = 0, |
290 | }; | 250 | }; |
291 | 251 | ||
292 | static struct clk clk_p = { | 252 | struct clk clk_p = { |
293 | .name = "pclk", | 253 | .name = "pclk", |
294 | .id = -1, | 254 | .id = -1, |
295 | .rate = 0, | 255 | .rate = 0, |
@@ -308,14 +268,14 @@ struct clk clk_usb_bus = { | |||
308 | 268 | ||
309 | static int s3c24xx_dclk_enable(struct clk *clk, int enable) | 269 | static int s3c24xx_dclk_enable(struct clk *clk, int enable) |
310 | { | 270 | { |
311 | unsigned long dclkcon = __raw_readl(S3C2410_DCLKCON); | 271 | unsigned long dclkcon = __raw_readl(S3C24XX_DCLKCON); |
312 | 272 | ||
313 | if (enable) | 273 | if (enable) |
314 | dclkcon |= clk->ctrlbit; | 274 | dclkcon |= clk->ctrlbit; |
315 | else | 275 | else |
316 | dclkcon &= ~clk->ctrlbit; | 276 | dclkcon &= ~clk->ctrlbit; |
317 | 277 | ||
318 | __raw_writel(dclkcon, S3C2410_DCLKCON); | 278 | __raw_writel(dclkcon, S3C24XX_DCLKCON); |
319 | 279 | ||
320 | return 0; | 280 | return 0; |
321 | } | 281 | } |
@@ -334,7 +294,7 @@ static int s3c24xx_dclk_setparent(struct clk *clk, struct clk *parent) | |||
334 | 294 | ||
335 | clk->parent = parent; | 295 | clk->parent = parent; |
336 | 296 | ||
337 | dclkcon = __raw_readl(S3C2410_DCLKCON); | 297 | dclkcon = __raw_readl(S3C24XX_DCLKCON); |
338 | 298 | ||
339 | if (clk->ctrlbit == S3C2410_DCLKCON_DCLK0EN) { | 299 | if (clk->ctrlbit == S3C2410_DCLKCON_DCLK0EN) { |
340 | if (uclk) | 300 | if (uclk) |
@@ -348,7 +308,7 @@ static int s3c24xx_dclk_setparent(struct clk *clk, struct clk *parent) | |||
348 | dclkcon &= ~S3C2410_DCLKCON_DCLK1_UCLK; | 308 | dclkcon &= ~S3C2410_DCLKCON_DCLK1_UCLK; |
349 | } | 309 | } |
350 | 310 | ||
351 | __raw_writel(dclkcon, S3C2410_DCLKCON); | 311 | __raw_writel(dclkcon, S3C24XX_DCLKCON); |
352 | 312 | ||
353 | return 0; | 313 | return 0; |
354 | } | 314 | } |
@@ -426,108 +386,6 @@ struct clk s3c24xx_uclk = { | |||
426 | .id = -1, | 386 | .id = -1, |
427 | }; | 387 | }; |
428 | 388 | ||
429 | |||
430 | /* standard clock definitions */ | ||
431 | |||
432 | static struct clk init_clocks[] = { | ||
433 | { | ||
434 | .name = "nand", | ||
435 | .id = -1, | ||
436 | .parent = &clk_h, | ||
437 | .enable = s3c24xx_clkcon_enable, | ||
438 | .ctrlbit = S3C2410_CLKCON_NAND, | ||
439 | }, { | ||
440 | .name = "lcd", | ||
441 | .id = -1, | ||
442 | .parent = &clk_h, | ||
443 | .enable = s3c24xx_clkcon_enable, | ||
444 | .ctrlbit = S3C2410_CLKCON_LCDC, | ||
445 | }, { | ||
446 | .name = "usb-host", | ||
447 | .id = -1, | ||
448 | .parent = &clk_h, | ||
449 | .enable = s3c24xx_clkcon_enable, | ||
450 | .ctrlbit = S3C2410_CLKCON_USBH, | ||
451 | }, { | ||
452 | .name = "usb-device", | ||
453 | .id = -1, | ||
454 | .parent = &clk_h, | ||
455 | .enable = s3c24xx_clkcon_enable, | ||
456 | .ctrlbit = S3C2410_CLKCON_USBD, | ||
457 | }, { | ||
458 | .name = "timers", | ||
459 | .id = -1, | ||
460 | .parent = &clk_p, | ||
461 | .enable = s3c24xx_clkcon_enable, | ||
462 | .ctrlbit = S3C2410_CLKCON_PWMT, | ||
463 | }, { | ||
464 | .name = "sdi", | ||
465 | .id = -1, | ||
466 | .parent = &clk_p, | ||
467 | .enable = s3c24xx_clkcon_enable, | ||
468 | .ctrlbit = S3C2410_CLKCON_SDI, | ||
469 | }, { | ||
470 | .name = "uart", | ||
471 | .id = 0, | ||
472 | .parent = &clk_p, | ||
473 | .enable = s3c24xx_clkcon_enable, | ||
474 | .ctrlbit = S3C2410_CLKCON_UART0, | ||
475 | }, { | ||
476 | .name = "uart", | ||
477 | .id = 1, | ||
478 | .parent = &clk_p, | ||
479 | .enable = s3c24xx_clkcon_enable, | ||
480 | .ctrlbit = S3C2410_CLKCON_UART1, | ||
481 | }, { | ||
482 | .name = "uart", | ||
483 | .id = 2, | ||
484 | .parent = &clk_p, | ||
485 | .enable = s3c24xx_clkcon_enable, | ||
486 | .ctrlbit = S3C2410_CLKCON_UART2, | ||
487 | }, { | ||
488 | .name = "gpio", | ||
489 | .id = -1, | ||
490 | .parent = &clk_p, | ||
491 | .enable = s3c24xx_clkcon_enable, | ||
492 | .ctrlbit = S3C2410_CLKCON_GPIO, | ||
493 | }, { | ||
494 | .name = "rtc", | ||
495 | .id = -1, | ||
496 | .parent = &clk_p, | ||
497 | .enable = s3c24xx_clkcon_enable, | ||
498 | .ctrlbit = S3C2410_CLKCON_RTC, | ||
499 | }, { | ||
500 | .name = "adc", | ||
501 | .id = -1, | ||
502 | .parent = &clk_p, | ||
503 | .enable = s3c24xx_clkcon_enable, | ||
504 | .ctrlbit = S3C2410_CLKCON_ADC, | ||
505 | }, { | ||
506 | .name = "i2c", | ||
507 | .id = -1, | ||
508 | .parent = &clk_p, | ||
509 | .enable = s3c24xx_clkcon_enable, | ||
510 | .ctrlbit = S3C2410_CLKCON_IIC, | ||
511 | }, { | ||
512 | .name = "iis", | ||
513 | .id = -1, | ||
514 | .parent = &clk_p, | ||
515 | .enable = s3c24xx_clkcon_enable, | ||
516 | .ctrlbit = S3C2410_CLKCON_IIS, | ||
517 | }, { | ||
518 | .name = "spi", | ||
519 | .id = -1, | ||
520 | .parent = &clk_p, | ||
521 | .enable = s3c24xx_clkcon_enable, | ||
522 | .ctrlbit = S3C2410_CLKCON_SPI, | ||
523 | }, { | ||
524 | .name = "watchdog", | ||
525 | .id = -1, | ||
526 | .parent = &clk_p, | ||
527 | .ctrlbit = 0, | ||
528 | } | ||
529 | }; | ||
530 | |||
531 | /* initialise the clock system */ | 389 | /* initialise the clock system */ |
532 | 390 | ||
533 | int s3c24xx_register_clock(struct clk *clk) | 391 | int s3c24xx_register_clock(struct clk *clk) |
@@ -537,14 +395,6 @@ int s3c24xx_register_clock(struct clk *clk) | |||
537 | if (clk->enable == NULL) | 395 | if (clk->enable == NULL) |
538 | clk->enable = clk_null_enable; | 396 | clk->enable = clk_null_enable; |
539 | 397 | ||
540 | /* if this is a standard clock, set the usage state */ | ||
541 | |||
542 | if (clk->ctrlbit && clk->enable == s3c24xx_clkcon_enable) { | ||
543 | unsigned long clkcon = __raw_readl(S3C2410_CLKCON); | ||
544 | |||
545 | clk->usage = (clkcon & clk->ctrlbit) ? 1 : 0; | ||
546 | } | ||
547 | |||
548 | /* add to the list of available clocks */ | 398 | /* add to the list of available clocks */ |
549 | 399 | ||
550 | mutex_lock(&clocks_mutex); | 400 | mutex_lock(&clocks_mutex); |
@@ -561,44 +411,18 @@ int __init s3c24xx_setup_clocks(unsigned long xtal, | |||
561 | unsigned long hclk, | 411 | unsigned long hclk, |
562 | unsigned long pclk) | 412 | unsigned long pclk) |
563 | { | 413 | { |
564 | unsigned long upllcon = __raw_readl(S3C2410_UPLLCON); | 414 | printk(KERN_INFO "S3C24XX Clocks, (c) 2004 Simtec Electronics\n"); |
565 | unsigned long clkslow = __raw_readl(S3C2410_CLKSLOW); | ||
566 | struct clk *clkp = init_clocks; | ||
567 | int ptr; | ||
568 | int ret; | ||
569 | |||
570 | printk(KERN_INFO "S3C2410 Clocks, (c) 2004 Simtec Electronics\n"); | ||
571 | 415 | ||
572 | /* initialise the main system clocks */ | 416 | /* initialise the main system clocks */ |
573 | 417 | ||
574 | clk_xtal.rate = xtal; | 418 | clk_xtal.rate = xtal; |
575 | clk_upll.rate = s3c2410_get_pll(upllcon, xtal); | 419 | clk_upll.rate = s3c2410_get_pll(__raw_readl(S3C2410_UPLLCON), xtal); |
576 | 420 | ||
421 | clk_mpll.rate = fclk; | ||
577 | clk_h.rate = hclk; | 422 | clk_h.rate = hclk; |
578 | clk_p.rate = pclk; | 423 | clk_p.rate = pclk; |
579 | clk_f.rate = fclk; | 424 | clk_f.rate = fclk; |
580 | 425 | ||
581 | /* We must be careful disabling the clocks we are not intending to | ||
582 | * be using at boot time, as subsytems such as the LCD which do | ||
583 | * their own DMA requests to the bus can cause the system to lockup | ||
584 | * if they where in the middle of requesting bus access. | ||
585 | * | ||
586 | * Disabling the LCD clock if the LCD is active is very dangerous, | ||
587 | * and therefore the bootloader should be careful to not enable | ||
588 | * the LCD clock if it is not needed. | ||
589 | */ | ||
590 | |||
591 | mutex_lock(&clocks_mutex); | ||
592 | |||
593 | s3c24xx_clk_enable(S3C2410_CLKCON_NAND, 0); | ||
594 | s3c24xx_clk_enable(S3C2410_CLKCON_USBH, 0); | ||
595 | s3c24xx_clk_enable(S3C2410_CLKCON_USBD, 0); | ||
596 | s3c24xx_clk_enable(S3C2410_CLKCON_ADC, 0); | ||
597 | s3c24xx_clk_enable(S3C2410_CLKCON_IIC, 0); | ||
598 | s3c24xx_clk_enable(S3C2410_CLKCON_SPI, 0); | ||
599 | |||
600 | mutex_unlock(&clocks_mutex); | ||
601 | |||
602 | /* assume uart clocks are correctly setup */ | 426 | /* assume uart clocks are correctly setup */ |
603 | 427 | ||
604 | /* register our clocks */ | 428 | /* register our clocks */ |
@@ -606,6 +430,9 @@ int __init s3c24xx_setup_clocks(unsigned long xtal, | |||
606 | if (s3c24xx_register_clock(&clk_xtal) < 0) | 430 | if (s3c24xx_register_clock(&clk_xtal) < 0) |
607 | printk(KERN_ERR "failed to register master xtal\n"); | 431 | printk(KERN_ERR "failed to register master xtal\n"); |
608 | 432 | ||
433 | if (s3c24xx_register_clock(&clk_mpll) < 0) | ||
434 | printk(KERN_ERR "failed to register mpll clock\n"); | ||
435 | |||
609 | if (s3c24xx_register_clock(&clk_upll) < 0) | 436 | if (s3c24xx_register_clock(&clk_upll) < 0) |
610 | printk(KERN_ERR "failed to register upll clock\n"); | 437 | printk(KERN_ERR "failed to register upll clock\n"); |
611 | 438 | ||
@@ -618,27 +445,5 @@ int __init s3c24xx_setup_clocks(unsigned long xtal, | |||
618 | if (s3c24xx_register_clock(&clk_p) < 0) | 445 | if (s3c24xx_register_clock(&clk_p) < 0) |
619 | printk(KERN_ERR "failed to register cpu pclk\n"); | 446 | printk(KERN_ERR "failed to register cpu pclk\n"); |
620 | 447 | ||
621 | |||
622 | if (s3c24xx_register_clock(&clk_usb_bus) < 0) | ||
623 | printk(KERN_ERR "failed to register usb bus clock\n"); | ||
624 | |||
625 | /* register clocks from clock array */ | ||
626 | |||
627 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks); ptr++, clkp++) { | ||
628 | ret = s3c24xx_register_clock(clkp); | ||
629 | if (ret < 0) { | ||
630 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
631 | clkp->name, ret); | ||
632 | } | ||
633 | } | ||
634 | |||
635 | /* show the clock-slow value */ | ||
636 | |||
637 | printk("CLOCK: Slow mode (%ld.%ld MHz), %s, MPLL %s, UPLL %s\n", | ||
638 | print_mhz(xtal / ( 2 * S3C2410_CLKSLOW_GET_SLOWVAL(clkslow))), | ||
639 | (clkslow & S3C2410_CLKSLOW_SLOW) ? "slow" : "fast", | ||
640 | (clkslow & S3C2410_CLKSLOW_MPLL_OFF) ? "off" : "on", | ||
641 | (clkslow & S3C2410_CLKSLOW_UCLK_OFF) ? "off" : "on"); | ||
642 | |||
643 | return 0; | 448 | return 0; |
644 | } | 449 | } |
diff --git a/arch/arm/mach-s3c2410/clock.h b/arch/arm/mach-s3c2410/clock.h index 01bb458bf8eb..7f0ea03e1d49 100644 --- a/arch/arm/mach-s3c2410/clock.h +++ b/arch/arm/mach-s3c2410/clock.h | |||
@@ -22,6 +22,7 @@ struct clk { | |||
22 | 22 | ||
23 | int (*enable)(struct clk *, int enable); | 23 | int (*enable)(struct clk *, int enable); |
24 | int (*set_rate)(struct clk *c, unsigned long rate); | 24 | int (*set_rate)(struct clk *c, unsigned long rate); |
25 | unsigned long (*get_rate)(struct clk *c); | ||
25 | unsigned long (*round_rate)(struct clk *c, unsigned long rate); | 26 | unsigned long (*round_rate)(struct clk *c, unsigned long rate); |
26 | int (*set_parent)(struct clk *c, struct clk *parent); | 27 | int (*set_parent)(struct clk *c, struct clk *parent); |
27 | }; | 28 | }; |
@@ -36,6 +37,15 @@ extern struct clk s3c24xx_uclk; | |||
36 | 37 | ||
37 | extern struct clk clk_usb_bus; | 38 | extern struct clk clk_usb_bus; |
38 | 39 | ||
40 | /* core clock support */ | ||
41 | |||
42 | extern struct clk clk_f; | ||
43 | extern struct clk clk_h; | ||
44 | extern struct clk clk_p; | ||
45 | extern struct clk clk_mpll; | ||
46 | extern struct clk clk_upll; | ||
47 | extern struct clk clk_xtal; | ||
48 | |||
39 | /* exports for arch/arm/mach-s3c2410 | 49 | /* exports for arch/arm/mach-s3c2410 |
40 | * | 50 | * |
41 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 | 51 | * Please DO NOT use these outside of arch/arm/mach-s3c2410 |
@@ -43,7 +53,8 @@ extern struct clk clk_usb_bus; | |||
43 | 53 | ||
44 | extern struct mutex clocks_mutex; | 54 | extern struct mutex clocks_mutex; |
45 | 55 | ||
46 | extern int s3c24xx_clkcon_enable(struct clk *clk, int enable); | 56 | extern int s3c2410_clkcon_enable(struct clk *clk, int enable); |
57 | |||
47 | extern int s3c24xx_register_clock(struct clk *clk); | 58 | extern int s3c24xx_register_clock(struct clk *clk); |
48 | 59 | ||
49 | extern int s3c24xx_setup_clocks(unsigned long xtal, | 60 | extern int s3c24xx_setup_clocks(unsigned long xtal, |
diff --git a/arch/arm/mach-s3c2410/common-smdk.c b/arch/arm/mach-s3c2410/common-smdk.c index c940890f621f..a40eaa656177 100644 --- a/arch/arm/mach-s3c2410/common-smdk.c +++ b/arch/arm/mach-s3c2410/common-smdk.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
35 | 35 | ||
36 | #include <asm/arch/regs-gpio.h> | 36 | #include <asm/arch/regs-gpio.h> |
37 | #include <asm/arch/leds-gpio.h> | ||
37 | 38 | ||
38 | #include <asm/arch/nand.h> | 39 | #include <asm/arch/nand.h> |
39 | 40 | ||
@@ -41,6 +42,66 @@ | |||
41 | #include "devs.h" | 42 | #include "devs.h" |
42 | #include "pm.h" | 43 | #include "pm.h" |
43 | 44 | ||
45 | /* LED devices */ | ||
46 | |||
47 | static struct s3c24xx_led_platdata smdk_pdata_led4 = { | ||
48 | .gpio = S3C2410_GPF4, | ||
49 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
50 | .name = "led4", | ||
51 | .def_trigger = "timer", | ||
52 | }; | ||
53 | |||
54 | static struct s3c24xx_led_platdata smdk_pdata_led5 = { | ||
55 | .gpio = S3C2410_GPF5, | ||
56 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
57 | .name = "led5", | ||
58 | .def_trigger = "nand-disk", | ||
59 | }; | ||
60 | |||
61 | static struct s3c24xx_led_platdata smdk_pdata_led6 = { | ||
62 | .gpio = S3C2410_GPF6, | ||
63 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
64 | .name = "led6", | ||
65 | }; | ||
66 | |||
67 | static struct s3c24xx_led_platdata smdk_pdata_led7 = { | ||
68 | .gpio = S3C2410_GPF7, | ||
69 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | ||
70 | .name = "led7", | ||
71 | }; | ||
72 | |||
73 | static struct platform_device smdk_led4 = { | ||
74 | .name = "s3c24xx_led", | ||
75 | .id = 0, | ||
76 | .dev = { | ||
77 | .platform_data = &smdk_pdata_led4, | ||
78 | }, | ||
79 | }; | ||
80 | |||
81 | static struct platform_device smdk_led5 = { | ||
82 | .name = "s3c24xx_led", | ||
83 | .id = 1, | ||
84 | .dev = { | ||
85 | .platform_data = &smdk_pdata_led5, | ||
86 | }, | ||
87 | }; | ||
88 | |||
89 | static struct platform_device smdk_led6 = { | ||
90 | .name = "s3c24xx_led", | ||
91 | .id = 2, | ||
92 | .dev = { | ||
93 | .platform_data = &smdk_pdata_led6, | ||
94 | }, | ||
95 | }; | ||
96 | |||
97 | static struct platform_device smdk_led7 = { | ||
98 | .name = "s3c24xx_led", | ||
99 | .id = 3, | ||
100 | .dev = { | ||
101 | .platform_data = &smdk_pdata_led7, | ||
102 | }, | ||
103 | }; | ||
104 | |||
44 | /* NAND parititon from 2.4.18-swl5 */ | 105 | /* NAND parititon from 2.4.18-swl5 */ |
45 | 106 | ||
46 | static struct mtd_partition smdk_default_nand_part[] = { | 107 | static struct mtd_partition smdk_default_nand_part[] = { |
@@ -111,6 +172,10 @@ static struct s3c2410_platform_nand smdk_nand_info = { | |||
111 | 172 | ||
112 | static struct platform_device __initdata *smdk_devs[] = { | 173 | static struct platform_device __initdata *smdk_devs[] = { |
113 | &s3c_device_nand, | 174 | &s3c_device_nand, |
175 | &smdk_led4, | ||
176 | &smdk_led5, | ||
177 | &smdk_led6, | ||
178 | &smdk_led7, | ||
114 | }; | 179 | }; |
115 | 180 | ||
116 | void __init smdk_machine_init(void) | 181 | void __init smdk_machine_init(void) |
diff --git a/arch/arm/mach-s3c2410/cpu.c b/arch/arm/mach-s3c2410/cpu.c index 70c34fcf7858..1c3c6adae6c4 100644 --- a/arch/arm/mach-s3c2410/cpu.c +++ b/arch/arm/mach-s3c2410/cpu.c | |||
@@ -37,12 +37,17 @@ | |||
37 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
38 | 38 | ||
39 | #include <asm/arch/regs-gpio.h> | 39 | #include <asm/arch/regs-gpio.h> |
40 | #include <asm/arch/regs-serial.h> | ||
40 | 41 | ||
41 | #include "cpu.h" | 42 | #include "cpu.h" |
43 | #include "devs.h" | ||
42 | #include "clock.h" | 44 | #include "clock.h" |
43 | #include "s3c2400.h" | 45 | #include "s3c2400.h" |
44 | #include "s3c2410.h" | 46 | #include "s3c2410.h" |
47 | #include "s3c2412.h" | ||
48 | #include "s3c244x.h" | ||
45 | #include "s3c2440.h" | 49 | #include "s3c2440.h" |
50 | #include "s3c2442.h" | ||
46 | 51 | ||
47 | struct cpu_table { | 52 | struct cpu_table { |
48 | unsigned long idcode; | 53 | unsigned long idcode; |
@@ -58,7 +63,9 @@ struct cpu_table { | |||
58 | 63 | ||
59 | static const char name_s3c2400[] = "S3C2400"; | 64 | static const char name_s3c2400[] = "S3C2400"; |
60 | static const char name_s3c2410[] = "S3C2410"; | 65 | static const char name_s3c2410[] = "S3C2410"; |
66 | static const char name_s3c2412[] = "S3C2412"; | ||
61 | static const char name_s3c2440[] = "S3C2440"; | 67 | static const char name_s3c2440[] = "S3C2440"; |
68 | static const char name_s3c2442[] = "S3C2442"; | ||
62 | static const char name_s3c2410a[] = "S3C2410A"; | 69 | static const char name_s3c2410a[] = "S3C2410A"; |
63 | static const char name_s3c2440a[] = "S3C2440A"; | 70 | static const char name_s3c2440a[] = "S3C2440A"; |
64 | 71 | ||
@@ -84,22 +91,40 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
84 | { | 91 | { |
85 | .idcode = 0x32440000, | 92 | .idcode = 0x32440000, |
86 | .idmask = 0xffffffff, | 93 | .idmask = 0xffffffff, |
87 | .map_io = s3c2440_map_io, | 94 | .map_io = s3c244x_map_io, |
88 | .init_clocks = s3c2440_init_clocks, | 95 | .init_clocks = s3c244x_init_clocks, |
89 | .init_uarts = s3c2440_init_uarts, | 96 | .init_uarts = s3c244x_init_uarts, |
90 | .init = s3c2440_init, | 97 | .init = s3c2440_init, |
91 | .name = name_s3c2440 | 98 | .name = name_s3c2440 |
92 | }, | 99 | }, |
93 | { | 100 | { |
94 | .idcode = 0x32440001, | 101 | .idcode = 0x32440001, |
95 | .idmask = 0xffffffff, | 102 | .idmask = 0xffffffff, |
96 | .map_io = s3c2440_map_io, | 103 | .map_io = s3c244x_map_io, |
97 | .init_clocks = s3c2440_init_clocks, | 104 | .init_clocks = s3c244x_init_clocks, |
98 | .init_uarts = s3c2440_init_uarts, | 105 | .init_uarts = s3c244x_init_uarts, |
99 | .init = s3c2440_init, | 106 | .init = s3c2440_init, |
100 | .name = name_s3c2440a | 107 | .name = name_s3c2440a |
101 | }, | 108 | }, |
102 | { | 109 | { |
110 | .idcode = 0x32440aaa, | ||
111 | .idmask = 0xffffffff, | ||
112 | .map_io = s3c244x_map_io, | ||
113 | .init_clocks = s3c244x_init_clocks, | ||
114 | .init_uarts = s3c244x_init_uarts, | ||
115 | .init = s3c2442_init, | ||
116 | .name = name_s3c2442 | ||
117 | }, | ||
118 | { | ||
119 | .idcode = 0x32412001, | ||
120 | .idmask = 0xffffffff, | ||
121 | .map_io = s3c2412_map_io, | ||
122 | .init_clocks = s3c2412_init_clocks, | ||
123 | .init_uarts = s3c2412_init_uarts, | ||
124 | .init = s3c2412_init, | ||
125 | .name = name_s3c2412, | ||
126 | }, | ||
127 | { | ||
103 | .idcode = 0x0, /* S3C2400 doesn't have an idcode */ | 128 | .idcode = 0x0, /* S3C2400 doesn't have an idcode */ |
104 | .idmask = 0xffffffff, | 129 | .idmask = 0xffffffff, |
105 | .map_io = s3c2400_map_io, | 130 | .map_io = s3c2400_map_io, |
@@ -157,6 +182,24 @@ void s3c24xx_set_board(struct s3c24xx_board *b) | |||
157 | 182 | ||
158 | static struct cpu_table *cpu; | 183 | static struct cpu_table *cpu; |
159 | 184 | ||
185 | static unsigned long s3c24xx_read_idcode_v5(void) | ||
186 | { | ||
187 | #if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413) | ||
188 | return __raw_readl(S3C2412_GSTATUS1); | ||
189 | #else | ||
190 | return 1UL; /* don't look like an 2400 */ | ||
191 | #endif | ||
192 | } | ||
193 | |||
194 | static unsigned long s3c24xx_read_idcode_v4(void) | ||
195 | { | ||
196 | #ifndef CONFIG_CPU_S3C2400 | ||
197 | return __raw_readl(S3C2410_GSTATUS1); | ||
198 | #else | ||
199 | return 0UL; | ||
200 | #endif | ||
201 | } | ||
202 | |||
160 | void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) | 203 | void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) |
161 | { | 204 | { |
162 | unsigned long idcode = 0x0; | 205 | unsigned long idcode = 0x0; |
@@ -164,9 +207,11 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) | |||
164 | /* initialise the io descriptors we need for initialisation */ | 207 | /* initialise the io descriptors we need for initialisation */ |
165 | iotable_init(s3c_iodesc, ARRAY_SIZE(s3c_iodesc)); | 208 | iotable_init(s3c_iodesc, ARRAY_SIZE(s3c_iodesc)); |
166 | 209 | ||
167 | #ifndef CONFIG_CPU_S3C2400 | 210 | if (cpu_architecture() >= CPU_ARCH_ARMv5) { |
168 | idcode = __raw_readl(S3C2410_GSTATUS1); | 211 | idcode = s3c24xx_read_idcode_v5(); |
169 | #endif | 212 | } else { |
213 | idcode = s3c24xx_read_idcode_v4(); | ||
214 | } | ||
170 | 215 | ||
171 | cpu = s3c_lookup_cpu(idcode); | 216 | cpu = s3c_lookup_cpu(idcode); |
172 | 217 | ||
@@ -175,13 +220,13 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size) | |||
175 | panic("Unknown S3C24XX CPU"); | 220 | panic("Unknown S3C24XX CPU"); |
176 | } | 221 | } |
177 | 222 | ||
223 | printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); | ||
224 | |||
178 | if (cpu->map_io == NULL || cpu->init == NULL) { | 225 | if (cpu->map_io == NULL || cpu->init == NULL) { |
179 | printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); | 226 | printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); |
180 | panic("Unsupported S3C24XX CPU"); | 227 | panic("Unsupported S3C24XX CPU"); |
181 | } | 228 | } |
182 | 229 | ||
183 | printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); | ||
184 | |||
185 | (cpu->map_io)(mach_desc, size); | 230 | (cpu->map_io)(mach_desc, size); |
186 | } | 231 | } |
187 | 232 | ||
@@ -208,6 +253,49 @@ void __init s3c24xx_init_clocks(int xtal) | |||
208 | (cpu->init_clocks)(xtal); | 253 | (cpu->init_clocks)(xtal); |
209 | } | 254 | } |
210 | 255 | ||
256 | /* uart management */ | ||
257 | |||
258 | static int nr_uarts __initdata = 0; | ||
259 | |||
260 | static struct s3c2410_uartcfg uart_cfgs[3]; | ||
261 | |||
262 | /* s3c24xx_init_uartdevs | ||
263 | * | ||
264 | * copy the specified platform data and configuration into our central | ||
265 | * set of devices, before the data is thrown away after the init process. | ||
266 | * | ||
267 | * This also fills in the array passed to the serial driver for the | ||
268 | * early initialisation of the console. | ||
269 | */ | ||
270 | |||
271 | void __init s3c24xx_init_uartdevs(char *name, | ||
272 | struct s3c24xx_uart_resources *res, | ||
273 | struct s3c2410_uartcfg *cfg, int no) | ||
274 | { | ||
275 | struct platform_device *platdev; | ||
276 | struct s3c2410_uartcfg *cfgptr = uart_cfgs; | ||
277 | struct s3c24xx_uart_resources *resp; | ||
278 | int uart; | ||
279 | |||
280 | memcpy(cfgptr, cfg, sizeof(struct s3c2410_uartcfg) * no); | ||
281 | |||
282 | for (uart = 0; uart < no; uart++, cfg++, cfgptr++) { | ||
283 | platdev = s3c24xx_uart_src[cfgptr->hwport]; | ||
284 | |||
285 | resp = res + cfgptr->hwport; | ||
286 | |||
287 | s3c24xx_uart_devs[uart] = platdev; | ||
288 | |||
289 | platdev->name = name; | ||
290 | platdev->resource = resp->resources; | ||
291 | platdev->num_resources = resp->nr_resources; | ||
292 | |||
293 | platdev->dev.platform_data = cfgptr; | ||
294 | } | ||
295 | |||
296 | nr_uarts = no; | ||
297 | } | ||
298 | |||
211 | void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 299 | void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
212 | { | 300 | { |
213 | if (cpu == NULL) | 301 | if (cpu == NULL) |
@@ -232,6 +320,10 @@ static int __init s3c_arch_init(void) | |||
232 | if (ret != 0) | 320 | if (ret != 0) |
233 | return ret; | 321 | return ret; |
234 | 322 | ||
323 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); | ||
324 | if (ret != 0) | ||
325 | return ret; | ||
326 | |||
235 | if (board != NULL) { | 327 | if (board != NULL) { |
236 | struct platform_device **ptr = board->devices; | 328 | struct platform_device **ptr = board->devices; |
237 | int i; | 329 | int i; |
diff --git a/arch/arm/mach-s3c2410/cpu.h b/arch/arm/mach-s3c2410/cpu.h index fc1067783f6d..b0ed9d2d141b 100644 --- a/arch/arm/mach-s3c2410/cpu.h +++ b/arch/arm/mach-s3c2410/cpu.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000) | 31 | #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000) |
32 | 32 | ||
33 | /* forward declaration */ | 33 | /* forward declaration */ |
34 | struct s3c24xx_uart_resources; | ||
35 | struct platform_device; | ||
34 | struct s3c2410_uartcfg; | 36 | struct s3c2410_uartcfg; |
35 | struct map_desc; | 37 | struct map_desc; |
36 | 38 | ||
@@ -44,6 +46,10 @@ extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |||
44 | 46 | ||
45 | extern void s3c24xx_init_clocks(int xtal); | 47 | extern void s3c24xx_init_clocks(int xtal); |
46 | 48 | ||
49 | extern void s3c24xx_init_uartdevs(char *name, | ||
50 | struct s3c24xx_uart_resources *res, | ||
51 | struct s3c2410_uartcfg *cfg, int no); | ||
52 | |||
47 | /* the board structure is used at first initialsation time | 53 | /* the board structure is used at first initialsation time |
48 | * to get info such as the devices to register for this | 54 | * to get info such as the devices to register for this |
49 | * board. This is done because platfrom_add_devices() cannot | 55 | * board. This is done because platfrom_add_devices() cannot |
@@ -67,4 +73,7 @@ extern struct sys_timer s3c24xx_timer; | |||
67 | 73 | ||
68 | /* system device classes */ | 74 | /* system device classes */ |
69 | 75 | ||
76 | extern struct sysdev_class s3c2410_sysclass; | ||
77 | extern struct sysdev_class s3c2412_sysclass; | ||
70 | extern struct sysdev_class s3c2440_sysclass; | 78 | extern struct sysdev_class s3c2440_sysclass; |
79 | extern struct sysdev_class s3c2442_sysclass; | ||
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index ca09ba516e4c..ad3845e329ba 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -38,10 +38,86 @@ | |||
38 | #include <asm/arch/regs-serial.h> | 38 | #include <asm/arch/regs-serial.h> |
39 | 39 | ||
40 | #include "devs.h" | 40 | #include "devs.h" |
41 | #include "cpu.h" | ||
41 | 42 | ||
42 | /* Serial port registrations */ | 43 | /* Serial port registrations */ |
43 | 44 | ||
44 | struct platform_device *s3c24xx_uart_devs[3]; | 45 | static struct resource s3c2410_uart0_resource[] = { |
46 | [0] = { | ||
47 | .start = S3C2410_PA_UART0, | ||
48 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
49 | .flags = IORESOURCE_MEM, | ||
50 | }, | ||
51 | [1] = { | ||
52 | .start = IRQ_S3CUART_RX0, | ||
53 | .end = IRQ_S3CUART_ERR0, | ||
54 | .flags = IORESOURCE_IRQ, | ||
55 | } | ||
56 | }; | ||
57 | |||
58 | static struct resource s3c2410_uart1_resource[] = { | ||
59 | [0] = { | ||
60 | .start = S3C2410_PA_UART1, | ||
61 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
62 | .flags = IORESOURCE_MEM, | ||
63 | }, | ||
64 | [1] = { | ||
65 | .start = IRQ_S3CUART_RX1, | ||
66 | .end = IRQ_S3CUART_ERR1, | ||
67 | .flags = IORESOURCE_IRQ, | ||
68 | } | ||
69 | }; | ||
70 | |||
71 | static struct resource s3c2410_uart2_resource[] = { | ||
72 | [0] = { | ||
73 | .start = S3C2410_PA_UART2, | ||
74 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
75 | .flags = IORESOURCE_MEM, | ||
76 | }, | ||
77 | [1] = { | ||
78 | .start = IRQ_S3CUART_RX2, | ||
79 | .end = IRQ_S3CUART_ERR2, | ||
80 | .flags = IORESOURCE_IRQ, | ||
81 | } | ||
82 | }; | ||
83 | |||
84 | struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { | ||
85 | [0] = { | ||
86 | .resources = s3c2410_uart0_resource, | ||
87 | .nr_resources = ARRAY_SIZE(s3c2410_uart0_resource), | ||
88 | }, | ||
89 | [1] = { | ||
90 | .resources = s3c2410_uart1_resource, | ||
91 | .nr_resources = ARRAY_SIZE(s3c2410_uart1_resource), | ||
92 | }, | ||
93 | [2] = { | ||
94 | .resources = s3c2410_uart2_resource, | ||
95 | .nr_resources = ARRAY_SIZE(s3c2410_uart2_resource), | ||
96 | }, | ||
97 | }; | ||
98 | |||
99 | /* yart devices */ | ||
100 | |||
101 | static struct platform_device s3c24xx_uart_device0 = { | ||
102 | .id = 0, | ||
103 | }; | ||
104 | |||
105 | static struct platform_device s3c24xx_uart_device1 = { | ||
106 | .id = 1, | ||
107 | }; | ||
108 | |||
109 | static struct platform_device s3c24xx_uart_device2 = { | ||
110 | .id = 2, | ||
111 | }; | ||
112 | |||
113 | struct platform_device *s3c24xx_uart_src[3] = { | ||
114 | &s3c24xx_uart_device0, | ||
115 | &s3c24xx_uart_device1, | ||
116 | &s3c24xx_uart_device2, | ||
117 | }; | ||
118 | |||
119 | struct platform_device *s3c24xx_uart_devs[3] = { | ||
120 | }; | ||
45 | 121 | ||
46 | /* USB Host Controller */ | 122 | /* USB Host Controller */ |
47 | 123 | ||
diff --git a/arch/arm/mach-s3c2410/devs.h b/arch/arm/mach-s3c2410/devs.h index 52c4bab5c761..fa124ed920e0 100644 --- a/arch/arm/mach-s3c2410/devs.h +++ b/arch/arm/mach-s3c2410/devs.h | |||
@@ -17,7 +17,15 @@ | |||
17 | #include <linux/config.h> | 17 | #include <linux/config.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | ||
20 | struct s3c24xx_uart_resources { | ||
21 | struct resource *resources; | ||
22 | unsigned long nr_resources; | ||
23 | }; | ||
24 | |||
25 | extern struct s3c24xx_uart_resources s3c2410_uart_resources[]; | ||
26 | |||
20 | extern struct platform_device *s3c24xx_uart_devs[]; | 27 | extern struct platform_device *s3c24xx_uart_devs[]; |
28 | extern struct platform_device *s3c24xx_uart_src[]; | ||
21 | 29 | ||
22 | extern struct platform_device s3c_device_usb; | 30 | extern struct platform_device s3c_device_usb; |
23 | extern struct platform_device s3c_device_lcd; | 31 | extern struct platform_device s3c_device_lcd; |
diff --git a/arch/arm/mach-s3c2410/irq.c b/arch/arm/mach-s3c2410/irq.c index 66d8c068e940..6822dc7f7799 100644 --- a/arch/arm/mach-s3c2410/irq.c +++ b/arch/arm/mach-s3c2410/irq.c | |||
@@ -191,13 +191,9 @@ static struct irqchip s3c_irq_chip = { | |||
191 | .ack = s3c_irq_ack, | 191 | .ack = s3c_irq_ack, |
192 | .mask = s3c_irq_mask, | 192 | .mask = s3c_irq_mask, |
193 | .unmask = s3c_irq_unmask, | 193 | .unmask = s3c_irq_unmask, |
194 | .set_wake = s3c_irq_wake | 194 | .set_wake = s3c_irq_wake |
195 | }; | 195 | }; |
196 | 196 | ||
197 | /* S3C2410_EINTMASK | ||
198 | * S3C2410_EINTPEND | ||
199 | */ | ||
200 | |||
201 | static void | 197 | static void |
202 | s3c_irqext_mask(unsigned int irqno) | 198 | s3c_irqext_mask(unsigned int irqno) |
203 | { | 199 | { |
@@ -205,9 +201,9 @@ s3c_irqext_mask(unsigned int irqno) | |||
205 | 201 | ||
206 | irqno -= EXTINT_OFF; | 202 | irqno -= EXTINT_OFF; |
207 | 203 | ||
208 | mask = __raw_readl(S3C2410_EINTMASK); | 204 | mask = __raw_readl(S3C24XX_EINTMASK); |
209 | mask |= ( 1UL << irqno); | 205 | mask |= ( 1UL << irqno); |
210 | __raw_writel(mask, S3C2410_EINTMASK); | 206 | __raw_writel(mask, S3C24XX_EINTMASK); |
211 | 207 | ||
212 | if (irqno <= (IRQ_EINT7 - EXTINT_OFF)) { | 208 | if (irqno <= (IRQ_EINT7 - EXTINT_OFF)) { |
213 | /* check to see if all need masking */ | 209 | /* check to see if all need masking */ |
@@ -232,11 +228,11 @@ s3c_irqext_ack(unsigned int irqno) | |||
232 | bit = 1UL << (irqno - EXTINT_OFF); | 228 | bit = 1UL << (irqno - EXTINT_OFF); |
233 | 229 | ||
234 | 230 | ||
235 | mask = __raw_readl(S3C2410_EINTMASK); | 231 | mask = __raw_readl(S3C24XX_EINTMASK); |
236 | 232 | ||
237 | __raw_writel(bit, S3C2410_EINTPEND); | 233 | __raw_writel(bit, S3C24XX_EINTPEND); |
238 | 234 | ||
239 | req = __raw_readl(S3C2410_EINTPEND); | 235 | req = __raw_readl(S3C24XX_EINTPEND); |
240 | req &= ~mask; | 236 | req &= ~mask; |
241 | 237 | ||
242 | /* not sure if we should be acking the parent irq... */ | 238 | /* not sure if we should be acking the parent irq... */ |
@@ -257,9 +253,9 @@ s3c_irqext_unmask(unsigned int irqno) | |||
257 | 253 | ||
258 | irqno -= EXTINT_OFF; | 254 | irqno -= EXTINT_OFF; |
259 | 255 | ||
260 | mask = __raw_readl(S3C2410_EINTMASK); | 256 | mask = __raw_readl(S3C24XX_EINTMASK); |
261 | mask &= ~( 1UL << irqno); | 257 | mask &= ~( 1UL << irqno); |
262 | __raw_writel(mask, S3C2410_EINTMASK); | 258 | __raw_writel(mask, S3C24XX_EINTMASK); |
263 | 259 | ||
264 | s3c_irq_unmask((irqno <= (IRQ_EINT7 - EXTINT_OFF)) ? IRQ_EINT4t7 : IRQ_EINT8t23); | 260 | s3c_irq_unmask((irqno <= (IRQ_EINT7 - EXTINT_OFF)) ? IRQ_EINT4t7 : IRQ_EINT8t23); |
265 | } | 261 | } |
@@ -275,28 +271,28 @@ s3c_irqext_type(unsigned int irq, unsigned int type) | |||
275 | if ((irq >= IRQ_EINT0) && (irq <= IRQ_EINT3)) | 271 | if ((irq >= IRQ_EINT0) && (irq <= IRQ_EINT3)) |
276 | { | 272 | { |
277 | gpcon_reg = S3C2410_GPFCON; | 273 | gpcon_reg = S3C2410_GPFCON; |
278 | extint_reg = S3C2410_EXTINT0; | 274 | extint_reg = S3C24XX_EXTINT0; |
279 | gpcon_offset = (irq - IRQ_EINT0) * 2; | 275 | gpcon_offset = (irq - IRQ_EINT0) * 2; |
280 | extint_offset = (irq - IRQ_EINT0) * 4; | 276 | extint_offset = (irq - IRQ_EINT0) * 4; |
281 | } | 277 | } |
282 | else if ((irq >= IRQ_EINT4) && (irq <= IRQ_EINT7)) | 278 | else if ((irq >= IRQ_EINT4) && (irq <= IRQ_EINT7)) |
283 | { | 279 | { |
284 | gpcon_reg = S3C2410_GPFCON; | 280 | gpcon_reg = S3C2410_GPFCON; |
285 | extint_reg = S3C2410_EXTINT0; | 281 | extint_reg = S3C24XX_EXTINT0; |
286 | gpcon_offset = (irq - (EXTINT_OFF)) * 2; | 282 | gpcon_offset = (irq - (EXTINT_OFF)) * 2; |
287 | extint_offset = (irq - (EXTINT_OFF)) * 4; | 283 | extint_offset = (irq - (EXTINT_OFF)) * 4; |
288 | } | 284 | } |
289 | else if ((irq >= IRQ_EINT8) && (irq <= IRQ_EINT15)) | 285 | else if ((irq >= IRQ_EINT8) && (irq <= IRQ_EINT15)) |
290 | { | 286 | { |
291 | gpcon_reg = S3C2410_GPGCON; | 287 | gpcon_reg = S3C2410_GPGCON; |
292 | extint_reg = S3C2410_EXTINT1; | 288 | extint_reg = S3C24XX_EXTINT1; |
293 | gpcon_offset = (irq - IRQ_EINT8) * 2; | 289 | gpcon_offset = (irq - IRQ_EINT8) * 2; |
294 | extint_offset = (irq - IRQ_EINT8) * 4; | 290 | extint_offset = (irq - IRQ_EINT8) * 4; |
295 | } | 291 | } |
296 | else if ((irq >= IRQ_EINT16) && (irq <= IRQ_EINT23)) | 292 | else if ((irq >= IRQ_EINT16) && (irq <= IRQ_EINT23)) |
297 | { | 293 | { |
298 | gpcon_reg = S3C2410_GPGCON; | 294 | gpcon_reg = S3C2410_GPGCON; |
299 | extint_reg = S3C2410_EXTINT2; | 295 | extint_reg = S3C24XX_EXTINT2; |
300 | gpcon_offset = (irq - IRQ_EINT8) * 2; | 296 | gpcon_offset = (irq - IRQ_EINT8) * 2; |
301 | extint_offset = (irq - IRQ_EINT16) * 4; | 297 | extint_offset = (irq - IRQ_EINT16) * 4; |
302 | } else | 298 | } else |
@@ -572,6 +568,23 @@ s3c_irq_demux_uart2(unsigned int irq, | |||
572 | s3c_irq_demux_uart(IRQ_S3CUART_RX2, regs); | 568 | s3c_irq_demux_uart(IRQ_S3CUART_RX2, regs); |
573 | } | 569 | } |
574 | 570 | ||
571 | static void | ||
572 | s3c_irq_demux_extint(unsigned int irq, | ||
573 | struct irqdesc *desc, | ||
574 | struct pt_regs *regs) | ||
575 | { | ||
576 | unsigned long eintpnd = __raw_readl(S3C24XX_EINTPEND); | ||
577 | unsigned long eintmsk = __raw_readl(S3C24XX_EINTMASK); | ||
578 | |||
579 | eintpnd &= ~eintmsk; | ||
580 | |||
581 | if (eintpnd) { | ||
582 | irq = fls(eintpnd); | ||
583 | irq += (IRQ_EINT4 - (4 + 1)); | ||
584 | |||
585 | desc_handle_irq(irq, irq_desc + irq, regs); | ||
586 | } | ||
587 | } | ||
575 | 588 | ||
576 | /* s3c24xx_init_irq | 589 | /* s3c24xx_init_irq |
577 | * | 590 | * |
@@ -591,12 +604,12 @@ void __init s3c24xx_init_irq(void) | |||
591 | 604 | ||
592 | last = 0; | 605 | last = 0; |
593 | for (i = 0; i < 4; i++) { | 606 | for (i = 0; i < 4; i++) { |
594 | pend = __raw_readl(S3C2410_EINTPEND); | 607 | pend = __raw_readl(S3C24XX_EINTPEND); |
595 | 608 | ||
596 | if (pend == 0 || pend == last) | 609 | if (pend == 0 || pend == last) |
597 | break; | 610 | break; |
598 | 611 | ||
599 | __raw_writel(pend, S3C2410_EINTPEND); | 612 | __raw_writel(pend, S3C24XX_EINTPEND); |
600 | printk("irq: clearing pending ext status %08x\n", (int)pend); | 613 | printk("irq: clearing pending ext status %08x\n", (int)pend); |
601 | last = pend; | 614 | last = pend; |
602 | } | 615 | } |
@@ -630,12 +643,14 @@ void __init s3c24xx_init_irq(void) | |||
630 | 643 | ||
631 | irqdbf("s3c2410_init_irq: registering s3c2410 interrupt handlers\n"); | 644 | irqdbf("s3c2410_init_irq: registering s3c2410 interrupt handlers\n"); |
632 | 645 | ||
633 | for (irqno = IRQ_BATT_FLT; irqno <= IRQ_ADCPARENT; irqno++) { | 646 | for (irqno = IRQ_EINT4t7; irqno <= IRQ_ADCPARENT; irqno++) { |
634 | /* set all the s3c2410 internal irqs */ | 647 | /* set all the s3c2410 internal irqs */ |
635 | 648 | ||
636 | switch (irqno) { | 649 | switch (irqno) { |
637 | /* deal with the special IRQs (cascaded) */ | 650 | /* deal with the special IRQs (cascaded) */ |
638 | 651 | ||
652 | case IRQ_EINT4t7: | ||
653 | case IRQ_EINT8t23: | ||
639 | case IRQ_UART0: | 654 | case IRQ_UART0: |
640 | case IRQ_UART1: | 655 | case IRQ_UART1: |
641 | case IRQ_UART2: | 656 | case IRQ_UART2: |
@@ -659,12 +674,14 @@ void __init s3c24xx_init_irq(void) | |||
659 | 674 | ||
660 | /* setup the cascade irq handlers */ | 675 | /* setup the cascade irq handlers */ |
661 | 676 | ||
677 | set_irq_chained_handler(IRQ_EINT4t7, s3c_irq_demux_extint); | ||
678 | set_irq_chained_handler(IRQ_EINT8t23, s3c_irq_demux_extint); | ||
679 | |||
662 | set_irq_chained_handler(IRQ_UART0, s3c_irq_demux_uart0); | 680 | set_irq_chained_handler(IRQ_UART0, s3c_irq_demux_uart0); |
663 | set_irq_chained_handler(IRQ_UART1, s3c_irq_demux_uart1); | 681 | set_irq_chained_handler(IRQ_UART1, s3c_irq_demux_uart1); |
664 | set_irq_chained_handler(IRQ_UART2, s3c_irq_demux_uart2); | 682 | set_irq_chained_handler(IRQ_UART2, s3c_irq_demux_uart2); |
665 | set_irq_chained_handler(IRQ_ADCPARENT, s3c_irq_demux_adc); | 683 | set_irq_chained_handler(IRQ_ADCPARENT, s3c_irq_demux_adc); |
666 | 684 | ||
667 | |||
668 | /* external interrupts */ | 685 | /* external interrupts */ |
669 | 686 | ||
670 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { | 687 | for (irqno = IRQ_EINT0; irqno <= IRQ_EINT3; irqno++) { |
diff --git a/arch/arm/mach-s3c2410/mach-anubis.c b/arch/arm/mach-s3c2410/mach-anubis.c index cc97fbf66291..4a92d6f92d6b 100644 --- a/arch/arm/mach-s3c2410/mach-anubis.c +++ b/arch/arm/mach-s3c2410/mach-anubis.c | |||
@@ -131,7 +131,7 @@ static struct s3c24xx_uart_clksrc anubis_serial_clocks[] = { | |||
131 | }; | 131 | }; |
132 | 132 | ||
133 | 133 | ||
134 | static struct s3c2410_uartcfg anubis_uartcfgs[] = { | 134 | static struct s3c2410_uartcfg anubis_uartcfgs[] __initdata = { |
135 | [0] = { | 135 | [0] = { |
136 | .hwport = 0, | 136 | .hwport = 0, |
137 | .flags = 0, | 137 | .flags = 0, |
@@ -239,6 +239,54 @@ static struct s3c2410_platform_nand anubis_nand_info = { | |||
239 | .select_chip = anubis_nand_select, | 239 | .select_chip = anubis_nand_select, |
240 | }; | 240 | }; |
241 | 241 | ||
242 | /* IDE channels */ | ||
243 | |||
244 | static struct resource anubis_ide0_resource[] = { | ||
245 | { | ||
246 | .start = S3C2410_CS3, | ||
247 | .end = S3C2410_CS3 + (8*32) - 1, | ||
248 | .flags = IORESOURCE_MEM, | ||
249 | }, { | ||
250 | .start = S3C2410_CS3 + (1<<26), | ||
251 | .end = S3C2410_CS3 + (1<<26) + (8*32) - 1, | ||
252 | .flags = IORESOURCE_MEM, | ||
253 | }, { | ||
254 | .start = IRQ_IDE0, | ||
255 | .end = IRQ_IDE0, | ||
256 | .flags = IORESOURCE_IRQ, | ||
257 | }, | ||
258 | }; | ||
259 | |||
260 | static struct platform_device anubis_device_ide0 = { | ||
261 | .name = "simtec-ide", | ||
262 | .id = 0, | ||
263 | .num_resources = ARRAY_SIZE(anubis_ide0_resource), | ||
264 | .resource = anubis_ide0_resource, | ||
265 | }; | ||
266 | |||
267 | static struct resource anubis_ide1_resource[] = { | ||
268 | { | ||
269 | .start = S3C2410_CS4, | ||
270 | .end = S3C2410_CS4 + (8*32) - 1, | ||
271 | .flags = IORESOURCE_MEM, | ||
272 | }, { | ||
273 | .start = S3C2410_CS4 + (1<<26), | ||
274 | .end = S3C2410_CS4 + (1<<26) + (8*32) - 1, | ||
275 | .flags = IORESOURCE_MEM, | ||
276 | }, { | ||
277 | .start = IRQ_IDE0, | ||
278 | .end = IRQ_IDE0, | ||
279 | .flags = IORESOURCE_IRQ, | ||
280 | }, | ||
281 | }; | ||
282 | |||
283 | |||
284 | static struct platform_device anubis_device_ide1 = { | ||
285 | .name = "simtec-ide", | ||
286 | .id = 1, | ||
287 | .num_resources = ARRAY_SIZE(anubis_ide1_resource), | ||
288 | .resource = anubis_ide1_resource, | ||
289 | }; | ||
242 | 290 | ||
243 | /* Standard Anubis devices */ | 291 | /* Standard Anubis devices */ |
244 | 292 | ||
@@ -249,6 +297,8 @@ static struct platform_device *anubis_devices[] __initdata = { | |||
249 | &s3c_device_i2c, | 297 | &s3c_device_i2c, |
250 | &s3c_device_rtc, | 298 | &s3c_device_rtc, |
251 | &s3c_device_nand, | 299 | &s3c_device_nand, |
300 | &anubis_device_ide0, | ||
301 | &anubis_device_ide1, | ||
252 | }; | 302 | }; |
253 | 303 | ||
254 | static struct clk *anubis_clocks[] = { | 304 | static struct clk *anubis_clocks[] = { |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 995bb8add331..947234df8160 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -208,7 +208,7 @@ static struct s3c24xx_uart_clksrc bast_serial_clocks[] = { | |||
208 | }; | 208 | }; |
209 | 209 | ||
210 | 210 | ||
211 | static struct s3c2410_uartcfg bast_uartcfgs[] = { | 211 | static struct s3c2410_uartcfg bast_uartcfgs[] __initdata = { |
212 | [0] = { | 212 | [0] = { |
213 | .hwport = 0, | 213 | .hwport = 0, |
214 | .flags = 0, | 214 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index 646a3a5d33a5..aec431b2830a 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -72,7 +72,7 @@ static struct map_desc h1940_iodesc[] __initdata = { | |||
72 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 72 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
73 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 73 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
74 | 74 | ||
75 | static struct s3c2410_uartcfg h1940_uartcfgs[] = { | 75 | static struct s3c2410_uartcfg h1940_uartcfgs[] __initdata = { |
76 | [0] = { | 76 | [0] = { |
77 | .hwport = 0, | 77 | .hwport = 0, |
78 | .flags = 0, | 78 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-nexcoder.c b/arch/arm/mach-s3c2410/mach-nexcoder.c index 07d09509a626..065a1d4e860b 100644 --- a/arch/arm/mach-s3c2410/mach-nexcoder.c +++ b/arch/arm/mach-s3c2410/mach-nexcoder.c | |||
@@ -51,7 +51,7 @@ static struct map_desc nexcoder_iodesc[] __initdata = { | |||
51 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 51 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
52 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE | 52 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE |
53 | 53 | ||
54 | static struct s3c2410_uartcfg nexcoder_uartcfgs[] = { | 54 | static struct s3c2410_uartcfg nexcoder_uartcfgs[] __initdata = { |
55 | [0] = { | 55 | [0] = { |
56 | .hwport = 0, | 56 | .hwport = 0, |
57 | .flags = 0, | 57 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-osiris.c b/arch/arm/mach-s3c2410/mach-osiris.c index ae0787557751..858fd03c6bc5 100644 --- a/arch/arm/mach-s3c2410/mach-osiris.c +++ b/arch/arm/mach-s3c2410/mach-osiris.c | |||
@@ -95,8 +95,7 @@ static struct s3c24xx_uart_clksrc osiris_serial_clocks[] = { | |||
95 | } | 95 | } |
96 | }; | 96 | }; |
97 | 97 | ||
98 | 98 | static struct s3c2410_uartcfg osiris_uartcfgs[] __initdata = { | |
99 | static struct s3c2410_uartcfg osiris_uartcfgs[] = { | ||
100 | [0] = { | 99 | [0] = { |
101 | .hwport = 0, | 100 | .hwport = 0, |
102 | .flags = 0, | 101 | .flags = 0, |
@@ -107,7 +106,7 @@ static struct s3c2410_uartcfg osiris_uartcfgs[] = { | |||
107 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks) | 106 | .clocks_size = ARRAY_SIZE(osiris_serial_clocks) |
108 | }, | 107 | }, |
109 | [1] = { | 108 | [1] = { |
110 | .hwport = 2, | 109 | .hwport = 1, |
111 | .flags = 0, | 110 | .flags = 0, |
112 | .ucon = UCON, | 111 | .ucon = UCON, |
113 | .ulcon = ULCON, | 112 | .ulcon = ULCON, |
diff --git a/arch/arm/mach-s3c2410/mach-otom.c b/arch/arm/mach-s3c2410/mach-otom.c index b39daedf93ca..c71673fd9955 100644 --- a/arch/arm/mach-s3c2410/mach-otom.c +++ b/arch/arm/mach-s3c2410/mach-otom.c | |||
@@ -45,7 +45,7 @@ static struct map_desc otom11_iodesc[] __initdata = { | |||
45 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 45 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
46 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE | 46 | #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE |
47 | 47 | ||
48 | static struct s3c2410_uartcfg otom11_uartcfgs[] = { | 48 | static struct s3c2410_uartcfg otom11_uartcfgs[] __initdata = { |
49 | [0] = { | 49 | [0] = { |
50 | .hwport = 0, | 50 | .hwport = 0, |
51 | .flags = 0, | 51 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index 2db932d72c5a..25f7e9f4dcee 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
@@ -65,7 +65,7 @@ static struct map_desc smdk2410_iodesc[] __initdata = { | |||
65 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 65 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
66 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 66 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
67 | 67 | ||
68 | static struct s3c2410_uartcfg smdk2410_uartcfgs[] = { | 68 | static struct s3c2410_uartcfg smdk2410_uartcfgs[] __initdata = { |
69 | [0] = { | 69 | [0] = { |
70 | .hwport = 0, | 70 | .hwport = 0, |
71 | .flags = 0, | 71 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-smdk2413.c b/arch/arm/mach-s3c2410/mach-smdk2413.c new file mode 100644 index 000000000000..b7ef7d3c54a9 --- /dev/null +++ b/arch/arm/mach-s3c2410/mach-smdk2413.c | |||
@@ -0,0 +1,126 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/mach-smdk2413.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Thanks to Dimity Andric (TomTom) and Steven Ryu (Samsung) for the | ||
7 | * loans of SMDK2413 to work with. | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/interrupt.h> | ||
17 | #include <linux/list.h> | ||
18 | #include <linux/timer.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | |||
22 | #include <asm/mach/arch.h> | ||
23 | #include <asm/mach/map.h> | ||
24 | #include <asm/mach/irq.h> | ||
25 | |||
26 | #include <asm/hardware.h> | ||
27 | #include <asm/hardware/iomd.h> | ||
28 | #include <asm/setup.h> | ||
29 | #include <asm/io.h> | ||
30 | #include <asm/irq.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | |||
33 | //#include <asm/debug-ll.h> | ||
34 | #include <asm/arch/regs-serial.h> | ||
35 | #include <asm/arch/regs-gpio.h> | ||
36 | #include <asm/arch/regs-lcd.h> | ||
37 | |||
38 | #include <asm/arch/idle.h> | ||
39 | #include <asm/arch/fb.h> | ||
40 | |||
41 | #include "s3c2410.h" | ||
42 | #include "s3c2412.h" | ||
43 | #include "clock.h" | ||
44 | #include "devs.h" | ||
45 | #include "cpu.h" | ||
46 | |||
47 | #include "common-smdk.h" | ||
48 | |||
49 | static struct map_desc smdk2413_iodesc[] __initdata = { | ||
50 | }; | ||
51 | |||
52 | static struct s3c2410_uartcfg smdk2413_uartcfgs[] __initdata = { | ||
53 | [0] = { | ||
54 | .hwport = 0, | ||
55 | .flags = 0, | ||
56 | .ucon = 0x3c5, | ||
57 | .ulcon = 0x03, | ||
58 | .ufcon = 0x51, | ||
59 | }, | ||
60 | [1] = { | ||
61 | .hwport = 1, | ||
62 | .flags = 0, | ||
63 | .ucon = 0x3c5, | ||
64 | .ulcon = 0x03, | ||
65 | .ufcon = 0x51, | ||
66 | }, | ||
67 | /* IR port */ | ||
68 | [2] = { | ||
69 | .hwport = 2, | ||
70 | .flags = 0, | ||
71 | .ucon = 0x3c5, | ||
72 | .ulcon = 0x43, | ||
73 | .ufcon = 0x51, | ||
74 | } | ||
75 | }; | ||
76 | |||
77 | static struct platform_device *smdk2413_devices[] __initdata = { | ||
78 | &s3c_device_usb, | ||
79 | //&s3c_device_lcd, | ||
80 | &s3c_device_wdt, | ||
81 | &s3c_device_i2c, | ||
82 | &s3c_device_iis, | ||
83 | }; | ||
84 | |||
85 | static struct s3c24xx_board smdk2413_board __initdata = { | ||
86 | .devices = smdk2413_devices, | ||
87 | .devices_count = ARRAY_SIZE(smdk2413_devices) | ||
88 | }; | ||
89 | |||
90 | static void __init smdk2413_fixup(struct machine_desc *desc, | ||
91 | struct tag *tags, char **cmdline, | ||
92 | struct meminfo *mi) | ||
93 | { | ||
94 | if (tags != phys_to_virt(S3C2410_SDRAM_PA + 0x100)) { | ||
95 | mi->nr_banks=1; | ||
96 | mi->bank[0].start = 0x30000000; | ||
97 | mi->bank[0].size = SZ_64M; | ||
98 | mi->bank[0].node = 0; | ||
99 | } | ||
100 | } | ||
101 | |||
102 | static void __init smdk2413_map_io(void) | ||
103 | { | ||
104 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); | ||
105 | s3c24xx_init_clocks(12000000); | ||
106 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); | ||
107 | s3c24xx_set_board(&smdk2413_board); | ||
108 | } | ||
109 | |||
110 | static void __init smdk2413_machine_init(void) | ||
111 | { | ||
112 | smdk_machine_init(); | ||
113 | } | ||
114 | |||
115 | MACHINE_START(S3C2413, "SMDK2413") | ||
116 | /* Maintainer: Ben Dooks <ben@fluff.org> */ | ||
117 | .phys_io = S3C2410_PA_UART, | ||
118 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | ||
119 | .boot_params = S3C2410_SDRAM_PA + 0x100, | ||
120 | |||
121 | .fixup = smdk2413_fixup, | ||
122 | .init_irq = s3c24xx_init_irq, | ||
123 | .map_io = smdk2413_map_io, | ||
124 | .init_machine = smdk2413_machine_init, | ||
125 | .timer = &s3c24xx_timer, | ||
126 | MACHINE_END | ||
diff --git a/arch/arm/mach-s3c2410/mach-smdk2440.c b/arch/arm/mach-s3c2410/mach-smdk2440.c index 5fffd1d51047..d661c6b7ff56 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2440.c +++ b/arch/arm/mach-s3c2410/mach-smdk2440.c | |||
@@ -86,7 +86,7 @@ static struct map_desc smdk2440_iodesc[] __initdata = { | |||
86 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB | 86 | #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB |
87 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE | 87 | #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE |
88 | 88 | ||
89 | static struct s3c2410_uartcfg smdk2440_uartcfgs[] = { | 89 | static struct s3c2410_uartcfg smdk2440_uartcfgs[] __initdata = { |
90 | [0] = { | 90 | [0] = { |
91 | .hwport = 0, | 91 | .hwport = 0, |
92 | .flags = 0, | 92 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 785fc9cdcf7c..d18efb279d3d 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
@@ -166,7 +166,7 @@ static struct s3c24xx_uart_clksrc vr1000_serial_clocks[] = { | |||
166 | } | 166 | } |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static struct s3c2410_uartcfg vr1000_uartcfgs[] = { | 169 | static struct s3c2410_uartcfg vr1000_uartcfgs[] __initdata = { |
170 | [0] = { | 170 | [0] = { |
171 | .hwport = 0, | 171 | .hwport = 0, |
172 | .flags = 0, | 172 | .flags = 0, |
diff --git a/arch/arm/mach-s3c2410/pm-simtec.c b/arch/arm/mach-s3c2410/pm-simtec.c index 4c7ccef6c207..7b244566a436 100644 --- a/arch/arm/mach-s3c2410/pm-simtec.c +++ b/arch/arm/mach-s3c2410/pm-simtec.c | |||
@@ -48,7 +48,8 @@ static __init int pm_simtec_init(void) | |||
48 | 48 | ||
49 | /* check which machine we are running on */ | 49 | /* check which machine we are running on */ |
50 | 50 | ||
51 | if (!machine_is_bast() && !machine_is_vr1000() && !machine_is_anubis()) | 51 | if (!machine_is_bast() && !machine_is_vr1000() && |
52 | !machine_is_anubis() && !machine_is_osiris()) | ||
52 | return 0; | 53 | return 0; |
53 | 54 | ||
54 | printk(KERN_INFO "Simtec Board Power Manangement" COPYRIGHT "\n"); | 55 | printk(KERN_INFO "Simtec Board Power Manangement" COPYRIGHT "\n"); |
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c index fe57d966a34d..43e9a550a203 100644 --- a/arch/arm/mach-s3c2410/pm.c +++ b/arch/arm/mach-s3c2410/pm.c | |||
@@ -58,7 +58,11 @@ unsigned long s3c_pm_flags; | |||
58 | 58 | ||
59 | /* cache functions from arch/arm/mm/proc-arm920.S */ | 59 | /* cache functions from arch/arm/mm/proc-arm920.S */ |
60 | 60 | ||
61 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
61 | extern void arm920_flush_kern_cache_all(void); | 62 | extern void arm920_flush_kern_cache_all(void); |
63 | #else | ||
64 | static void arm920_flush_kern_cache_all(void) { } | ||
65 | #endif | ||
62 | 66 | ||
63 | #define PFX "s3c24xx-pm: " | 67 | #define PFX "s3c24xx-pm: " |
64 | 68 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410-clock.c b/arch/arm/mach-s3c2410/s3c2410-clock.c new file mode 100644 index 000000000000..99718663318e --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2410-clock.c | |||
@@ -0,0 +1,271 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/clock.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * S3C2410,S3C2440,S3C2442 Clock control support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include <linux/init.h> | ||
24 | #include <linux/module.h> | ||
25 | #include <linux/kernel.h> | ||
26 | #include <linux/list.h> | ||
27 | #include <linux/errno.h> | ||
28 | #include <linux/err.h> | ||
29 | #include <linux/sysdev.h> | ||
30 | #include <linux/clk.h> | ||
31 | #include <linux/mutex.h> | ||
32 | #include <linux/delay.h> | ||
33 | |||
34 | #include <asm/hardware.h> | ||
35 | #include <asm/io.h> | ||
36 | |||
37 | #include <asm/arch/regs-clock.h> | ||
38 | #include <asm/arch/regs-gpio.h> | ||
39 | |||
40 | #include "clock.h" | ||
41 | #include "cpu.h" | ||
42 | |||
43 | int s3c2410_clkcon_enable(struct clk *clk, int enable) | ||
44 | { | ||
45 | unsigned int clocks = clk->ctrlbit; | ||
46 | unsigned long clkcon; | ||
47 | |||
48 | clkcon = __raw_readl(S3C2410_CLKCON); | ||
49 | |||
50 | if (enable) | ||
51 | clkcon |= clocks; | ||
52 | else | ||
53 | clkcon &= ~clocks; | ||
54 | |||
55 | /* ensure none of the special function bits set */ | ||
56 | clkcon &= ~(S3C2410_CLKCON_IDLE|S3C2410_CLKCON_POWER); | ||
57 | |||
58 | __raw_writel(clkcon, S3C2410_CLKCON); | ||
59 | |||
60 | return 0; | ||
61 | } | ||
62 | |||
63 | static int s3c2410_upll_enable(struct clk *clk, int enable) | ||
64 | { | ||
65 | unsigned long clkslow = __raw_readl(S3C2410_CLKSLOW); | ||
66 | unsigned long orig = clkslow; | ||
67 | |||
68 | if (enable) | ||
69 | clkslow &= ~S3C2410_CLKSLOW_UCLK_OFF; | ||
70 | else | ||
71 | clkslow |= S3C2410_CLKSLOW_UCLK_OFF; | ||
72 | |||
73 | __raw_writel(clkslow, S3C2410_CLKSLOW); | ||
74 | |||
75 | /* if we started the UPLL, then allow to settle */ | ||
76 | |||
77 | if (enable && (orig & S3C2410_CLKSLOW_UCLK_OFF)) | ||
78 | udelay(200); | ||
79 | |||
80 | return 0; | ||
81 | } | ||
82 | |||
83 | /* standard clock definitions */ | ||
84 | |||
85 | static struct clk init_clocks_disable[] = { | ||
86 | { | ||
87 | .name = "nand", | ||
88 | .id = -1, | ||
89 | .parent = &clk_h, | ||
90 | .enable = s3c2410_clkcon_enable, | ||
91 | .ctrlbit = S3C2410_CLKCON_NAND, | ||
92 | }, { | ||
93 | .name = "sdi", | ||
94 | .id = -1, | ||
95 | .parent = &clk_p, | ||
96 | .enable = s3c2410_clkcon_enable, | ||
97 | .ctrlbit = S3C2410_CLKCON_SDI, | ||
98 | }, { | ||
99 | .name = "adc", | ||
100 | .id = -1, | ||
101 | .parent = &clk_p, | ||
102 | .enable = s3c2410_clkcon_enable, | ||
103 | .ctrlbit = S3C2410_CLKCON_ADC, | ||
104 | }, { | ||
105 | .name = "i2c", | ||
106 | .id = -1, | ||
107 | .parent = &clk_p, | ||
108 | .enable = s3c2410_clkcon_enable, | ||
109 | .ctrlbit = S3C2410_CLKCON_IIC, | ||
110 | }, { | ||
111 | .name = "iis", | ||
112 | .id = -1, | ||
113 | .parent = &clk_p, | ||
114 | .enable = s3c2410_clkcon_enable, | ||
115 | .ctrlbit = S3C2410_CLKCON_IIS, | ||
116 | }, { | ||
117 | .name = "spi", | ||
118 | .id = -1, | ||
119 | .parent = &clk_p, | ||
120 | .enable = s3c2410_clkcon_enable, | ||
121 | .ctrlbit = S3C2410_CLKCON_SPI, | ||
122 | } | ||
123 | }; | ||
124 | |||
125 | static struct clk init_clocks[] = { | ||
126 | { | ||
127 | .name = "lcd", | ||
128 | .id = -1, | ||
129 | .parent = &clk_h, | ||
130 | .enable = s3c2410_clkcon_enable, | ||
131 | .ctrlbit = S3C2410_CLKCON_LCDC, | ||
132 | }, { | ||
133 | .name = "gpio", | ||
134 | .id = -1, | ||
135 | .parent = &clk_p, | ||
136 | .enable = s3c2410_clkcon_enable, | ||
137 | .ctrlbit = S3C2410_CLKCON_GPIO, | ||
138 | }, { | ||
139 | .name = "usb-host", | ||
140 | .id = -1, | ||
141 | .parent = &clk_h, | ||
142 | .enable = s3c2410_clkcon_enable, | ||
143 | .ctrlbit = S3C2410_CLKCON_USBH, | ||
144 | }, { | ||
145 | .name = "usb-device", | ||
146 | .id = -1, | ||
147 | .parent = &clk_h, | ||
148 | .enable = s3c2410_clkcon_enable, | ||
149 | .ctrlbit = S3C2410_CLKCON_USBD, | ||
150 | }, { | ||
151 | .name = "timers", | ||
152 | .id = -1, | ||
153 | .parent = &clk_p, | ||
154 | .enable = s3c2410_clkcon_enable, | ||
155 | .ctrlbit = S3C2410_CLKCON_PWMT, | ||
156 | }, { | ||
157 | .name = "uart", | ||
158 | .id = 0, | ||
159 | .parent = &clk_p, | ||
160 | .enable = s3c2410_clkcon_enable, | ||
161 | .ctrlbit = S3C2410_CLKCON_UART0, | ||
162 | }, { | ||
163 | .name = "uart", | ||
164 | .id = 1, | ||
165 | .parent = &clk_p, | ||
166 | .enable = s3c2410_clkcon_enable, | ||
167 | .ctrlbit = S3C2410_CLKCON_UART1, | ||
168 | }, { | ||
169 | .name = "uart", | ||
170 | .id = 2, | ||
171 | .parent = &clk_p, | ||
172 | .enable = s3c2410_clkcon_enable, | ||
173 | .ctrlbit = S3C2410_CLKCON_UART2, | ||
174 | }, { | ||
175 | .name = "rtc", | ||
176 | .id = -1, | ||
177 | .parent = &clk_p, | ||
178 | .enable = s3c2410_clkcon_enable, | ||
179 | .ctrlbit = S3C2410_CLKCON_RTC, | ||
180 | }, { | ||
181 | .name = "watchdog", | ||
182 | .id = -1, | ||
183 | .parent = &clk_p, | ||
184 | .ctrlbit = 0, | ||
185 | }, { | ||
186 | .name = "usb-bus-host", | ||
187 | .id = -1, | ||
188 | .parent = &clk_usb_bus, | ||
189 | }, { | ||
190 | .name = "usb-bus-gadget", | ||
191 | .id = -1, | ||
192 | .parent = &clk_usb_bus, | ||
193 | }, | ||
194 | }; | ||
195 | |||
196 | /* s3c2410_baseclk_add() | ||
197 | * | ||
198 | * Add all the clocks used by the s3c2410 or compatible CPUs | ||
199 | * such as the S3C2440 and S3C2442. | ||
200 | * | ||
201 | * We cannot use a system device as we are needed before any | ||
202 | * of the init-calls that initialise the devices are actually | ||
203 | * done. | ||
204 | */ | ||
205 | |||
206 | int __init s3c2410_baseclk_add(void) | ||
207 | { | ||
208 | unsigned long clkslow = __raw_readl(S3C2410_CLKSLOW); | ||
209 | unsigned long clkcon = __raw_readl(S3C2410_CLKCON); | ||
210 | struct clk *clkp; | ||
211 | struct clk *xtal; | ||
212 | int ret; | ||
213 | int ptr; | ||
214 | |||
215 | clk_upll.enable = s3c2410_upll_enable; | ||
216 | |||
217 | if (s3c24xx_register_clock(&clk_usb_bus) < 0) | ||
218 | printk(KERN_ERR "failed to register usb bus clock\n"); | ||
219 | |||
220 | /* register clocks from clock array */ | ||
221 | |||
222 | clkp = init_clocks; | ||
223 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks); ptr++, clkp++) { | ||
224 | /* ensure that we note the clock state */ | ||
225 | |||
226 | clkp->usage = clkcon & clkp->ctrlbit ? 1 : 0; | ||
227 | |||
228 | ret = s3c24xx_register_clock(clkp); | ||
229 | if (ret < 0) { | ||
230 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
231 | clkp->name, ret); | ||
232 | } | ||
233 | } | ||
234 | |||
235 | /* We must be careful disabling the clocks we are not intending to | ||
236 | * be using at boot time, as subsytems such as the LCD which do | ||
237 | * their own DMA requests to the bus can cause the system to lockup | ||
238 | * if they where in the middle of requesting bus access. | ||
239 | * | ||
240 | * Disabling the LCD clock if the LCD is active is very dangerous, | ||
241 | * and therefore the bootloader should be careful to not enable | ||
242 | * the LCD clock if it is not needed. | ||
243 | */ | ||
244 | |||
245 | /* install (and disable) the clocks we do not need immediately */ | ||
246 | |||
247 | clkp = init_clocks_disable; | ||
248 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { | ||
249 | |||
250 | ret = s3c24xx_register_clock(clkp); | ||
251 | if (ret < 0) { | ||
252 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
253 | clkp->name, ret); | ||
254 | } | ||
255 | |||
256 | s3c2410_clkcon_enable(clkp, 0); | ||
257 | } | ||
258 | |||
259 | /* show the clock-slow value */ | ||
260 | |||
261 | xtal = clk_get(NULL, "xtal"); | ||
262 | |||
263 | printk("CLOCK: Slow mode (%ld.%ld MHz), %s, MPLL %s, UPLL %s\n", | ||
264 | print_mhz(clk_get_rate(xtal) / | ||
265 | ( 2 * S3C2410_CLKSLOW_GET_SLOWVAL(clkslow))), | ||
266 | (clkslow & S3C2410_CLKSLOW_SLOW) ? "slow" : "fast", | ||
267 | (clkslow & S3C2410_CLKSLOW_MPLL_OFF) ? "off" : "on", | ||
268 | (clkslow & S3C2410_CLKSLOW_UCLK_OFF) ? "off" : "on"); | ||
269 | |||
270 | return 0; | ||
271 | } | ||
diff --git a/arch/arm/mach-s3c2410/s3c2410-gpio.c b/arch/arm/mach-s3c2410/s3c2410-gpio.c index d5e1caea1d23..471a71490010 100644 --- a/arch/arm/mach-s3c2410/s3c2410-gpio.c +++ b/arch/arm/mach-s3c2410/s3c2410-gpio.c | |||
@@ -18,9 +18,6 @@ | |||
18 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License |
19 | * along with this program; if not, write to the Free Software | 19 | * along with this program; if not, write to the Free Software |
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | * | ||
22 | * Changelog | ||
23 | * 15-Jan-2006 LCVR Splitted from gpio.c | ||
24 | */ | 21 | */ |
25 | 22 | ||
26 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
@@ -38,7 +35,7 @@ | |||
38 | int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, | 35 | int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, |
39 | unsigned int config) | 36 | unsigned int config) |
40 | { | 37 | { |
41 | void __iomem *reg = S3C2410_EINFLT0; | 38 | void __iomem *reg = S3C24XX_EINFLT0; |
42 | unsigned long flags; | 39 | unsigned long flags; |
43 | unsigned long val; | 40 | unsigned long val; |
44 | 41 | ||
@@ -47,7 +44,7 @@ int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, | |||
47 | 44 | ||
48 | config &= 0xff; | 45 | config &= 0xff; |
49 | 46 | ||
50 | pin -= S3C2410_GPG8_EINT16; | 47 | pin -= S3C2410_GPG8; |
51 | reg += pin & ~3; | 48 | reg += pin & ~3; |
52 | 49 | ||
53 | local_irq_save(flags); | 50 | local_irq_save(flags); |
@@ -61,10 +58,10 @@ int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, | |||
61 | 58 | ||
62 | /* update filter enable */ | 59 | /* update filter enable */ |
63 | 60 | ||
64 | val = __raw_readl(S3C2410_EXTINT2); | 61 | val = __raw_readl(S3C24XX_EXTINT2); |
65 | val &= ~(1 << ((pin * 4) + 3)); | 62 | val &= ~(1 << ((pin * 4) + 3)); |
66 | val |= on << ((pin * 4) + 3); | 63 | val |= on << ((pin * 4) + 3); |
67 | __raw_writel(val, S3C2410_EXTINT2); | 64 | __raw_writel(val, S3C24XX_EXTINT2); |
68 | 65 | ||
69 | local_irq_restore(flags); | 66 | local_irq_restore(flags); |
70 | 67 | ||
@@ -75,7 +72,7 @@ EXPORT_SYMBOL(s3c2410_gpio_irqfilter); | |||
75 | 72 | ||
76 | int s3c2410_gpio_getirq(unsigned int pin) | 73 | int s3c2410_gpio_getirq(unsigned int pin) |
77 | { | 74 | { |
78 | if (pin < S3C2410_GPF0 || pin > S3C2410_GPG15_EINT23) | 75 | if (pin < S3C2410_GPF0 || pin > S3C2410_GPG15) |
79 | return -1; /* not valid interrupts */ | 76 | return -1; /* not valid interrupts */ |
80 | 77 | ||
81 | if (pin < S3C2410_GPG0 && pin > S3C2410_GPF7) | 78 | if (pin < S3C2410_GPG0 && pin > S3C2410_GPF7) |
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c index 0a2013a76549..a110cff9cf6b 100644 --- a/arch/arm/mach-s3c2410/s3c2410.c +++ b/arch/arm/mach-s3c2410/s3c2410.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/list.h> | 27 | #include <linux/list.h> |
28 | #include <linux/timer.h> | 28 | #include <linux/timer.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/sysdev.h> | ||
30 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
31 | 32 | ||
32 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
@@ -42,6 +43,7 @@ | |||
42 | 43 | ||
43 | #include "s3c2410.h" | 44 | #include "s3c2410.h" |
44 | #include "cpu.h" | 45 | #include "cpu.h" |
46 | #include "devs.h" | ||
45 | #include "clock.h" | 47 | #include "clock.h" |
46 | 48 | ||
47 | /* Initial IO mappings */ | 49 | /* Initial IO mappings */ |
@@ -55,93 +57,13 @@ static struct map_desc s3c2410_iodesc[] __initdata = { | |||
55 | IODESC_ENT(WATCHDOG), | 57 | IODESC_ENT(WATCHDOG), |
56 | }; | 58 | }; |
57 | 59 | ||
58 | static struct resource s3c_uart0_resource[] = { | ||
59 | [0] = { | ||
60 | .start = S3C2410_PA_UART0, | ||
61 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
62 | .flags = IORESOURCE_MEM, | ||
63 | }, | ||
64 | [1] = { | ||
65 | .start = IRQ_S3CUART_RX0, | ||
66 | .end = IRQ_S3CUART_ERR0, | ||
67 | .flags = IORESOURCE_IRQ, | ||
68 | } | ||
69 | |||
70 | }; | ||
71 | |||
72 | static struct resource s3c_uart1_resource[] = { | ||
73 | [0] = { | ||
74 | .start = S3C2410_PA_UART1, | ||
75 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
76 | .flags = IORESOURCE_MEM, | ||
77 | }, | ||
78 | [1] = { | ||
79 | .start = IRQ_S3CUART_RX1, | ||
80 | .end = IRQ_S3CUART_ERR1, | ||
81 | .flags = IORESOURCE_IRQ, | ||
82 | } | ||
83 | }; | ||
84 | |||
85 | static struct resource s3c_uart2_resource[] = { | ||
86 | [0] = { | ||
87 | .start = S3C2410_PA_UART2, | ||
88 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
89 | .flags = IORESOURCE_MEM, | ||
90 | }, | ||
91 | [1] = { | ||
92 | .start = IRQ_S3CUART_RX2, | ||
93 | .end = IRQ_S3CUART_ERR2, | ||
94 | .flags = IORESOURCE_IRQ, | ||
95 | } | ||
96 | }; | ||
97 | |||
98 | /* our uart devices */ | 60 | /* our uart devices */ |
99 | 61 | ||
100 | static struct platform_device s3c_uart0 = { | ||
101 | .name = "s3c2410-uart", | ||
102 | .id = 0, | ||
103 | .num_resources = ARRAY_SIZE(s3c_uart0_resource), | ||
104 | .resource = s3c_uart0_resource, | ||
105 | }; | ||
106 | |||
107 | |||
108 | static struct platform_device s3c_uart1 = { | ||
109 | .name = "s3c2410-uart", | ||
110 | .id = 1, | ||
111 | .num_resources = ARRAY_SIZE(s3c_uart1_resource), | ||
112 | .resource = s3c_uart1_resource, | ||
113 | }; | ||
114 | |||
115 | static struct platform_device s3c_uart2 = { | ||
116 | .name = "s3c2410-uart", | ||
117 | .id = 2, | ||
118 | .num_resources = ARRAY_SIZE(s3c_uart2_resource), | ||
119 | .resource = s3c_uart2_resource, | ||
120 | }; | ||
121 | |||
122 | static struct platform_device *uart_devices[] __initdata = { | ||
123 | &s3c_uart0, | ||
124 | &s3c_uart1, | ||
125 | &s3c_uart2 | ||
126 | }; | ||
127 | |||
128 | static int s3c2410_uart_count = 0; | ||
129 | |||
130 | /* uart registration process */ | 62 | /* uart registration process */ |
131 | 63 | ||
132 | void __init s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 64 | void __init s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
133 | { | 65 | { |
134 | struct platform_device *platdev; | 66 | s3c24xx_init_uartdevs("s3c2410-uart", s3c2410_uart_resources, cfg, no); |
135 | int uart; | ||
136 | |||
137 | for (uart = 0; uart < no; uart++, cfg++) { | ||
138 | platdev = uart_devices[cfg->hwport]; | ||
139 | |||
140 | s3c24xx_uart_devs[uart] = platdev; | ||
141 | platdev->dev.platform_data = cfg; | ||
142 | } | ||
143 | |||
144 | s3c2410_uart_count = uart; | ||
145 | } | 67 | } |
146 | 68 | ||
147 | /* s3c2410_map_io | 69 | /* s3c2410_map_io |
@@ -187,11 +109,33 @@ void __init s3c2410_init_clocks(int xtal) | |||
187 | */ | 109 | */ |
188 | 110 | ||
189 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | 111 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); |
112 | s3c2410_baseclk_add(); | ||
190 | } | 113 | } |
191 | 114 | ||
115 | struct sysdev_class s3c2410_sysclass = { | ||
116 | set_kset_name("s3c2410-core"), | ||
117 | }; | ||
118 | |||
119 | static struct sys_device s3c2410_sysdev = { | ||
120 | .cls = &s3c2410_sysclass, | ||
121 | }; | ||
122 | |||
123 | /* need to register class before we actually register the device, and | ||
124 | * we also need to ensure that it has been initialised before any of the | ||
125 | * drivers even try to use it (even if not on an s3c2440 based system) | ||
126 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
127 | */ | ||
128 | |||
129 | static int __init s3c2410_core_init(void) | ||
130 | { | ||
131 | return sysdev_class_register(&s3c2410_sysclass); | ||
132 | } | ||
133 | |||
134 | core_initcall(s3c2410_core_init); | ||
135 | |||
192 | int __init s3c2410_init(void) | 136 | int __init s3c2410_init(void) |
193 | { | 137 | { |
194 | printk("S3C2410: Initialising architecture\n"); | 138 | printk("S3C2410: Initialising architecture\n"); |
195 | 139 | ||
196 | return platform_add_devices(s3c24xx_uart_devs, s3c2410_uart_count); | 140 | return sysdev_register(&s3c2410_sysdev); |
197 | } | 141 | } |
diff --git a/arch/arm/mach-s3c2410/s3c2410.h b/arch/arm/mach-s3c2410/s3c2410.h index 4d5312a48209..73f1a2474a61 100644 --- a/arch/arm/mach-s3c2410/s3c2410.h +++ b/arch/arm/mach-s3c2410/s3c2410.h | |||
@@ -29,6 +29,8 @@ extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |||
29 | 29 | ||
30 | extern void s3c2410_init_clocks(int xtal); | 30 | extern void s3c2410_init_clocks(int xtal); |
31 | 31 | ||
32 | extern int s3c2410_baseclk_add(void); | ||
33 | |||
32 | #else | 34 | #else |
33 | #define s3c2410_init_clocks NULL | 35 | #define s3c2410_init_clocks NULL |
34 | #define s3c2410_init_uarts NULL | 36 | #define s3c2410_init_uarts NULL |
diff --git a/arch/arm/mach-s3c2410/s3c2412-clock.c b/arch/arm/mach-s3c2410/s3c2412-clock.c new file mode 100644 index 000000000000..c95ed3e18580 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2412-clock.c | |||
@@ -0,0 +1,711 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2412-clock.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * S3C2412,S3C2413 Clock control support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include <linux/init.h> | ||
24 | #include <linux/module.h> | ||
25 | #include <linux/kernel.h> | ||
26 | #include <linux/list.h> | ||
27 | #include <linux/errno.h> | ||
28 | #include <linux/err.h> | ||
29 | #include <linux/sysdev.h> | ||
30 | #include <linux/clk.h> | ||
31 | #include <linux/mutex.h> | ||
32 | #include <linux/delay.h> | ||
33 | |||
34 | #include <asm/hardware.h> | ||
35 | #include <asm/io.h> | ||
36 | |||
37 | #include <asm/arch/regs-clock.h> | ||
38 | #include <asm/arch/regs-gpio.h> | ||
39 | |||
40 | #include "clock.h" | ||
41 | #include "cpu.h" | ||
42 | |||
43 | /* We currently have to assume that the system is running | ||
44 | * from the XTPll input, and that all ***REFCLKs are being | ||
45 | * fed from it, as we cannot read the state of OM[4] from | ||
46 | * software. | ||
47 | * | ||
48 | * It would be possible for each board initialisation to | ||
49 | * set the correct muxing at initialisation | ||
50 | */ | ||
51 | |||
52 | int s3c2412_clkcon_enable(struct clk *clk, int enable) | ||
53 | { | ||
54 | unsigned int clocks = clk->ctrlbit; | ||
55 | unsigned long clkcon; | ||
56 | |||
57 | clkcon = __raw_readl(S3C2410_CLKCON); | ||
58 | |||
59 | if (enable) | ||
60 | clkcon |= clocks; | ||
61 | else | ||
62 | clkcon &= ~clocks; | ||
63 | |||
64 | __raw_writel(clkcon, S3C2410_CLKCON); | ||
65 | |||
66 | return 0; | ||
67 | } | ||
68 | |||
69 | static int s3c2412_upll_enable(struct clk *clk, int enable) | ||
70 | { | ||
71 | unsigned long upllcon = __raw_readl(S3C2410_UPLLCON); | ||
72 | unsigned long orig = upllcon; | ||
73 | |||
74 | if (!enable) | ||
75 | upllcon |= S3C2412_PLLCON_OFF; | ||
76 | else | ||
77 | upllcon &= ~S3C2412_PLLCON_OFF; | ||
78 | |||
79 | __raw_writel(upllcon, S3C2410_UPLLCON); | ||
80 | |||
81 | /* allow ~150uS for the PLL to settle and lock */ | ||
82 | |||
83 | if (enable && (orig & S3C2412_PLLCON_OFF)) | ||
84 | udelay(150); | ||
85 | |||
86 | return 0; | ||
87 | } | ||
88 | |||
89 | /* clock selections */ | ||
90 | |||
91 | /* CPU EXTCLK input */ | ||
92 | static struct clk clk_ext = { | ||
93 | .name = "extclk", | ||
94 | .id = -1, | ||
95 | }; | ||
96 | |||
97 | static struct clk clk_erefclk = { | ||
98 | .name = "erefclk", | ||
99 | .id = -1, | ||
100 | }; | ||
101 | |||
102 | static struct clk clk_urefclk = { | ||
103 | .name = "urefclk", | ||
104 | .id = -1, | ||
105 | }; | ||
106 | |||
107 | static int s3c2412_setparent_usysclk(struct clk *clk, struct clk *parent) | ||
108 | { | ||
109 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
110 | |||
111 | if (parent == &clk_urefclk) | ||
112 | clksrc &= ~S3C2412_CLKSRC_USYSCLK_UPLL; | ||
113 | else if (parent == &clk_upll) | ||
114 | clksrc |= S3C2412_CLKSRC_USYSCLK_UPLL; | ||
115 | else | ||
116 | return -EINVAL; | ||
117 | |||
118 | clk->parent = parent; | ||
119 | |||
120 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
121 | return 0; | ||
122 | } | ||
123 | |||
124 | static struct clk clk_usysclk = { | ||
125 | .name = "usysclk", | ||
126 | .id = -1, | ||
127 | .parent = &clk_xtal, | ||
128 | .set_parent = s3c2412_setparent_usysclk, | ||
129 | }; | ||
130 | |||
131 | static struct clk clk_mrefclk = { | ||
132 | .name = "mrefclk", | ||
133 | .parent = &clk_xtal, | ||
134 | .id = -1, | ||
135 | }; | ||
136 | |||
137 | static struct clk clk_mdivclk = { | ||
138 | .name = "mdivclk", | ||
139 | .parent = &clk_xtal, | ||
140 | .id = -1, | ||
141 | }; | ||
142 | |||
143 | static int s3c2412_setparent_usbsrc(struct clk *clk, struct clk *parent) | ||
144 | { | ||
145 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
146 | |||
147 | if (parent == &clk_usysclk) | ||
148 | clksrc &= ~S3C2412_CLKSRC_USBCLK_HCLK; | ||
149 | else if (parent == &clk_h) | ||
150 | clksrc |= S3C2412_CLKSRC_USBCLK_HCLK; | ||
151 | else | ||
152 | return -EINVAL; | ||
153 | |||
154 | clk->parent = parent; | ||
155 | |||
156 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
157 | return 0; | ||
158 | } | ||
159 | |||
160 | static unsigned long s3c2412_roundrate_usbsrc(struct clk *clk, | ||
161 | unsigned long rate) | ||
162 | { | ||
163 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
164 | int div; | ||
165 | |||
166 | if (rate > parent_rate) | ||
167 | return parent_rate; | ||
168 | |||
169 | div = parent_rate / rate; | ||
170 | if (div > 2) | ||
171 | div = 2; | ||
172 | |||
173 | return parent_rate / div; | ||
174 | } | ||
175 | |||
176 | static unsigned long s3c2412_getrate_usbsrc(struct clk *clk) | ||
177 | { | ||
178 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
179 | unsigned long div = __raw_readl(S3C2410_CLKDIVN); | ||
180 | |||
181 | return parent_rate / ((div & S3C2412_CLKDIVN_USB48DIV) ? 2 : 1); | ||
182 | } | ||
183 | |||
184 | static int s3c2412_setrate_usbsrc(struct clk *clk, unsigned long rate) | ||
185 | { | ||
186 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
187 | unsigned long clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
188 | |||
189 | rate = s3c2412_roundrate_usbsrc(clk, rate); | ||
190 | |||
191 | if ((parent_rate / rate) == 2) | ||
192 | clkdivn |= S3C2412_CLKDIVN_USB48DIV; | ||
193 | else | ||
194 | clkdivn &= ~S3C2412_CLKDIVN_USB48DIV; | ||
195 | |||
196 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
197 | return 0; | ||
198 | } | ||
199 | |||
200 | static struct clk clk_usbsrc = { | ||
201 | .name = "usbsrc", | ||
202 | .id = -1, | ||
203 | .get_rate = s3c2412_getrate_usbsrc, | ||
204 | .set_rate = s3c2412_setrate_usbsrc, | ||
205 | .round_rate = s3c2412_roundrate_usbsrc, | ||
206 | .set_parent = s3c2412_setparent_usbsrc, | ||
207 | }; | ||
208 | |||
209 | static int s3c2412_setparent_msysclk(struct clk *clk, struct clk *parent) | ||
210 | { | ||
211 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
212 | |||
213 | if (parent == &clk_mdivclk) | ||
214 | clksrc &= ~S3C2412_CLKSRC_MSYSCLK_MPLL; | ||
215 | else if (parent == &clk_upll) | ||
216 | clksrc |= S3C2412_CLKSRC_MSYSCLK_MPLL; | ||
217 | else | ||
218 | return -EINVAL; | ||
219 | |||
220 | clk->parent = parent; | ||
221 | |||
222 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
223 | return 0; | ||
224 | } | ||
225 | |||
226 | static struct clk clk_msysclk = { | ||
227 | .name = "msysclk", | ||
228 | .id = -1, | ||
229 | .set_parent = s3c2412_setparent_msysclk, | ||
230 | }; | ||
231 | |||
232 | /* these next clocks have an divider immediately after them, | ||
233 | * so we can register them with their divider and leave out the | ||
234 | * intermediate clock stage | ||
235 | */ | ||
236 | static unsigned long s3c2412_roundrate_clksrc(struct clk *clk, | ||
237 | unsigned long rate) | ||
238 | { | ||
239 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
240 | int div; | ||
241 | |||
242 | if (rate > parent_rate) | ||
243 | return parent_rate; | ||
244 | |||
245 | /* note, we remove the +/- 1 calculations as they cancel out */ | ||
246 | |||
247 | div = (rate / parent_rate); | ||
248 | |||
249 | if (div < 1) | ||
250 | div = 1; | ||
251 | else if (div > 16) | ||
252 | div = 16; | ||
253 | |||
254 | return parent_rate / div; | ||
255 | } | ||
256 | |||
257 | static int s3c2412_setparent_uart(struct clk *clk, struct clk *parent) | ||
258 | { | ||
259 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
260 | |||
261 | if (parent == &clk_erefclk) | ||
262 | clksrc &= ~S3C2412_CLKSRC_UARTCLK_MPLL; | ||
263 | else if (parent == &clk_mpll) | ||
264 | clksrc |= S3C2412_CLKSRC_UARTCLK_MPLL; | ||
265 | else | ||
266 | return -EINVAL; | ||
267 | |||
268 | clk->parent = parent; | ||
269 | |||
270 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
271 | return 0; | ||
272 | } | ||
273 | |||
274 | static unsigned long s3c2412_getrate_uart(struct clk *clk) | ||
275 | { | ||
276 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
277 | unsigned long div = __raw_readl(S3C2410_CLKDIVN); | ||
278 | |||
279 | div &= S3C2412_CLKDIVN_UARTDIV_MASK; | ||
280 | div >>= S3C2412_CLKDIVN_UARTDIV_SHIFT; | ||
281 | |||
282 | return parent_rate / (div + 1); | ||
283 | } | ||
284 | |||
285 | static int s3c2412_setrate_uart(struct clk *clk, unsigned long rate) | ||
286 | { | ||
287 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
288 | unsigned long clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
289 | |||
290 | rate = s3c2412_roundrate_clksrc(clk, rate); | ||
291 | |||
292 | clkdivn &= ~S3C2412_CLKDIVN_UARTDIV_MASK; | ||
293 | clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_UARTDIV_SHIFT; | ||
294 | |||
295 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
296 | return 0; | ||
297 | } | ||
298 | |||
299 | static struct clk clk_uart = { | ||
300 | .name = "uartclk", | ||
301 | .id = -1, | ||
302 | .get_rate = s3c2412_getrate_uart, | ||
303 | .set_rate = s3c2412_setrate_uart, | ||
304 | .set_parent = s3c2412_setparent_uart, | ||
305 | .round_rate = s3c2412_roundrate_clksrc, | ||
306 | }; | ||
307 | |||
308 | static int s3c2412_setparent_i2s(struct clk *clk, struct clk *parent) | ||
309 | { | ||
310 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
311 | |||
312 | if (parent == &clk_erefclk) | ||
313 | clksrc &= ~S3C2412_CLKSRC_I2SCLK_MPLL; | ||
314 | else if (parent == &clk_mpll) | ||
315 | clksrc |= S3C2412_CLKSRC_I2SCLK_MPLL; | ||
316 | else | ||
317 | return -EINVAL; | ||
318 | |||
319 | clk->parent = parent; | ||
320 | |||
321 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
322 | return 0; | ||
323 | } | ||
324 | |||
325 | static unsigned long s3c2412_getrate_i2s(struct clk *clk) | ||
326 | { | ||
327 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
328 | unsigned long div = __raw_readl(S3C2410_CLKDIVN); | ||
329 | |||
330 | div &= S3C2412_CLKDIVN_I2SDIV_MASK; | ||
331 | div >>= S3C2412_CLKDIVN_I2SDIV_SHIFT; | ||
332 | |||
333 | return parent_rate / (div + 1); | ||
334 | } | ||
335 | |||
336 | static int s3c2412_setrate_i2s(struct clk *clk, unsigned long rate) | ||
337 | { | ||
338 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
339 | unsigned long clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
340 | |||
341 | rate = s3c2412_roundrate_clksrc(clk, rate); | ||
342 | |||
343 | clkdivn &= ~S3C2412_CLKDIVN_I2SDIV_MASK; | ||
344 | clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_I2SDIV_SHIFT; | ||
345 | |||
346 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
347 | return 0; | ||
348 | } | ||
349 | |||
350 | static struct clk clk_i2s = { | ||
351 | .name = "i2sclk", | ||
352 | .id = -1, | ||
353 | .get_rate = s3c2412_getrate_i2s, | ||
354 | .set_rate = s3c2412_setrate_i2s, | ||
355 | .set_parent = s3c2412_setparent_i2s, | ||
356 | .round_rate = s3c2412_roundrate_clksrc, | ||
357 | }; | ||
358 | |||
359 | static int s3c2412_setparent_cam(struct clk *clk, struct clk *parent) | ||
360 | { | ||
361 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
362 | |||
363 | if (parent == &clk_usysclk) | ||
364 | clksrc &= ~S3C2412_CLKSRC_CAMCLK_HCLK; | ||
365 | else if (parent == &clk_h) | ||
366 | clksrc |= S3C2412_CLKSRC_CAMCLK_HCLK; | ||
367 | else | ||
368 | return -EINVAL; | ||
369 | |||
370 | clk->parent = parent; | ||
371 | |||
372 | __raw_writel(clksrc, S3C2412_CLKSRC); | ||
373 | return 0; | ||
374 | } | ||
375 | static unsigned long s3c2412_getrate_cam(struct clk *clk) | ||
376 | { | ||
377 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
378 | unsigned long div = __raw_readl(S3C2410_CLKDIVN); | ||
379 | |||
380 | div &= S3C2412_CLKDIVN_CAMDIV_MASK; | ||
381 | div >>= S3C2412_CLKDIVN_CAMDIV_SHIFT; | ||
382 | |||
383 | return parent_rate / (div + 1); | ||
384 | } | ||
385 | |||
386 | static int s3c2412_setrate_cam(struct clk *clk, unsigned long rate) | ||
387 | { | ||
388 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
389 | unsigned long clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
390 | |||
391 | rate = s3c2412_roundrate_clksrc(clk, rate); | ||
392 | |||
393 | clkdivn &= ~S3C2412_CLKDIVN_CAMDIV_MASK; | ||
394 | clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_CAMDIV_SHIFT; | ||
395 | |||
396 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
397 | return 0; | ||
398 | } | ||
399 | |||
400 | static struct clk clk_cam = { | ||
401 | .name = "camif-upll", /* same as 2440 name */ | ||
402 | .id = -1, | ||
403 | .get_rate = s3c2412_getrate_cam, | ||
404 | .set_rate = s3c2412_setrate_cam, | ||
405 | .set_parent = s3c2412_setparent_cam, | ||
406 | .round_rate = s3c2412_roundrate_clksrc, | ||
407 | }; | ||
408 | |||
409 | /* standard clock definitions */ | ||
410 | |||
411 | static struct clk init_clocks_disable[] = { | ||
412 | { | ||
413 | .name = "nand", | ||
414 | .id = -1, | ||
415 | .parent = &clk_h, | ||
416 | .enable = s3c2412_clkcon_enable, | ||
417 | .ctrlbit = S3C2412_CLKCON_NAND, | ||
418 | }, { | ||
419 | .name = "sdi", | ||
420 | .id = -1, | ||
421 | .parent = &clk_p, | ||
422 | .enable = s3c2412_clkcon_enable, | ||
423 | .ctrlbit = S3C2412_CLKCON_SDI, | ||
424 | }, { | ||
425 | .name = "adc", | ||
426 | .id = -1, | ||
427 | .parent = &clk_p, | ||
428 | .enable = s3c2412_clkcon_enable, | ||
429 | .ctrlbit = S3C2412_CLKCON_ADC, | ||
430 | }, { | ||
431 | .name = "i2c", | ||
432 | .id = -1, | ||
433 | .parent = &clk_p, | ||
434 | .enable = s3c2412_clkcon_enable, | ||
435 | .ctrlbit = S3C2412_CLKCON_IIC, | ||
436 | }, { | ||
437 | .name = "iis", | ||
438 | .id = -1, | ||
439 | .parent = &clk_p, | ||
440 | .enable = s3c2412_clkcon_enable, | ||
441 | .ctrlbit = S3C2412_CLKCON_IIS, | ||
442 | }, { | ||
443 | .name = "spi", | ||
444 | .id = -1, | ||
445 | .parent = &clk_p, | ||
446 | .enable = s3c2412_clkcon_enable, | ||
447 | .ctrlbit = S3C2412_CLKCON_SPI, | ||
448 | } | ||
449 | }; | ||
450 | |||
451 | static struct clk init_clocks[] = { | ||
452 | { | ||
453 | .name = "dma", | ||
454 | .id = 0, | ||
455 | .parent = &clk_h, | ||
456 | .enable = s3c2412_clkcon_enable, | ||
457 | .ctrlbit = S3C2412_CLKCON_DMA0, | ||
458 | }, { | ||
459 | .name = "dma", | ||
460 | .id = 1, | ||
461 | .parent = &clk_h, | ||
462 | .enable = s3c2412_clkcon_enable, | ||
463 | .ctrlbit = S3C2412_CLKCON_DMA1, | ||
464 | }, { | ||
465 | .name = "dma", | ||
466 | .id = 2, | ||
467 | .parent = &clk_h, | ||
468 | .enable = s3c2412_clkcon_enable, | ||
469 | .ctrlbit = S3C2412_CLKCON_DMA2, | ||
470 | }, { | ||
471 | .name = "dma", | ||
472 | .id = 3, | ||
473 | .parent = &clk_h, | ||
474 | .enable = s3c2412_clkcon_enable, | ||
475 | .ctrlbit = S3C2412_CLKCON_DMA3, | ||
476 | }, { | ||
477 | .name = "lcd", | ||
478 | .id = -1, | ||
479 | .parent = &clk_h, | ||
480 | .enable = s3c2412_clkcon_enable, | ||
481 | .ctrlbit = S3C2412_CLKCON_LCDC, | ||
482 | }, { | ||
483 | .name = "gpio", | ||
484 | .id = -1, | ||
485 | .parent = &clk_p, | ||
486 | .enable = s3c2412_clkcon_enable, | ||
487 | .ctrlbit = S3C2412_CLKCON_GPIO, | ||
488 | }, { | ||
489 | .name = "usb-host", | ||
490 | .id = -1, | ||
491 | .parent = &clk_h, | ||
492 | .enable = s3c2412_clkcon_enable, | ||
493 | .ctrlbit = S3C2412_CLKCON_USBH, | ||
494 | }, { | ||
495 | .name = "usb-device", | ||
496 | .id = -1, | ||
497 | .parent = &clk_h, | ||
498 | .enable = s3c2412_clkcon_enable, | ||
499 | .ctrlbit = S3C2412_CLKCON_USBD, | ||
500 | }, { | ||
501 | .name = "timers", | ||
502 | .id = -1, | ||
503 | .parent = &clk_p, | ||
504 | .enable = s3c2412_clkcon_enable, | ||
505 | .ctrlbit = S3C2412_CLKCON_PWMT, | ||
506 | }, { | ||
507 | .name = "uart", | ||
508 | .id = 0, | ||
509 | .parent = &clk_p, | ||
510 | .enable = s3c2412_clkcon_enable, | ||
511 | .ctrlbit = S3C2412_CLKCON_UART0, | ||
512 | }, { | ||
513 | .name = "uart", | ||
514 | .id = 1, | ||
515 | .parent = &clk_p, | ||
516 | .enable = s3c2412_clkcon_enable, | ||
517 | .ctrlbit = S3C2412_CLKCON_UART1, | ||
518 | }, { | ||
519 | .name = "uart", | ||
520 | .id = 2, | ||
521 | .parent = &clk_p, | ||
522 | .enable = s3c2412_clkcon_enable, | ||
523 | .ctrlbit = S3C2412_CLKCON_UART2, | ||
524 | }, { | ||
525 | .name = "rtc", | ||
526 | .id = -1, | ||
527 | .parent = &clk_p, | ||
528 | .enable = s3c2412_clkcon_enable, | ||
529 | .ctrlbit = S3C2412_CLKCON_RTC, | ||
530 | }, { | ||
531 | .name = "watchdog", | ||
532 | .id = -1, | ||
533 | .parent = &clk_p, | ||
534 | .ctrlbit = 0, | ||
535 | }, { | ||
536 | .name = "usb-bus-gadget", | ||
537 | .id = -1, | ||
538 | .parent = &clk_usb_bus, | ||
539 | .enable = s3c2412_clkcon_enable, | ||
540 | .ctrlbit = S3C2412_CLKCON_USB_DEV48, | ||
541 | }, { | ||
542 | .name = "usb-bus-host", | ||
543 | .id = -1, | ||
544 | .parent = &clk_usb_bus, | ||
545 | .enable = s3c2412_clkcon_enable, | ||
546 | .ctrlbit = S3C2412_CLKCON_USB_HOST48, | ||
547 | } | ||
548 | }; | ||
549 | |||
550 | /* clocks to add where we need to check their parentage */ | ||
551 | |||
552 | struct clk_init { | ||
553 | struct clk *clk; | ||
554 | unsigned int bit; | ||
555 | struct clk *src_0; | ||
556 | struct clk *src_1; | ||
557 | }; | ||
558 | |||
559 | struct clk_init clks_src[] __initdata = { | ||
560 | { | ||
561 | .clk = &clk_usysclk, | ||
562 | .bit = S3C2412_CLKSRC_USBCLK_HCLK, | ||
563 | .src_0 = &clk_urefclk, | ||
564 | .src_1 = &clk_upll, | ||
565 | }, { | ||
566 | .clk = &clk_i2s, | ||
567 | .bit = S3C2412_CLKSRC_I2SCLK_MPLL, | ||
568 | .src_0 = &clk_erefclk, | ||
569 | .src_1 = &clk_mpll, | ||
570 | }, { | ||
571 | .clk = &clk_cam, | ||
572 | .bit = S3C2412_CLKSRC_CAMCLK_HCLK, | ||
573 | .src_0 = &clk_usysclk, | ||
574 | .src_1 = &clk_h, | ||
575 | }, { | ||
576 | .clk = &clk_msysclk, | ||
577 | .bit = S3C2412_CLKSRC_MSYSCLK_MPLL, | ||
578 | .src_0 = &clk_mdivclk, | ||
579 | .src_1 = &clk_mpll, | ||
580 | }, { | ||
581 | .clk = &clk_uart, | ||
582 | .bit = S3C2412_CLKSRC_UARTCLK_MPLL, | ||
583 | .src_0 = &clk_erefclk, | ||
584 | .src_1 = &clk_mpll, | ||
585 | }, { | ||
586 | .clk = &clk_usbsrc, | ||
587 | .bit = S3C2412_CLKSRC_USBCLK_HCLK, | ||
588 | .src_0 = &clk_usysclk, | ||
589 | .src_1 = &clk_h, | ||
590 | }, | ||
591 | }; | ||
592 | |||
593 | /* s3c2412_clk_initparents | ||
594 | * | ||
595 | * Initialise the parents for the clocks that we get at start-time | ||
596 | */ | ||
597 | |||
598 | static void __init s3c2412_clk_initparents(void) | ||
599 | { | ||
600 | unsigned long clksrc = __raw_readl(S3C2412_CLKSRC); | ||
601 | struct clk_init *cip = clks_src; | ||
602 | struct clk *src; | ||
603 | int ptr; | ||
604 | int ret; | ||
605 | |||
606 | for (ptr = 0; ptr < ARRAY_SIZE(clks_src); ptr++, cip++) { | ||
607 | ret = s3c24xx_register_clock(cip->clk); | ||
608 | if (ret < 0) { | ||
609 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
610 | cip->clk->name, ret); | ||
611 | } | ||
612 | |||
613 | src = (clksrc & cip->bit) ? cip->src_1 : cip->src_0; | ||
614 | |||
615 | printk(KERN_INFO "%s: parent %s\n", cip->clk->name, src->name); | ||
616 | clk_set_parent(cip->clk, src); | ||
617 | } | ||
618 | } | ||
619 | |||
620 | /* clocks to add straight away */ | ||
621 | |||
622 | struct clk *clks[] __initdata = { | ||
623 | &clk_ext, | ||
624 | &clk_usb_bus, | ||
625 | &clk_erefclk, | ||
626 | &clk_urefclk, | ||
627 | &clk_mrefclk, | ||
628 | }; | ||
629 | |||
630 | int __init s3c2412_baseclk_add(void) | ||
631 | { | ||
632 | unsigned long clkcon = __raw_readl(S3C2410_CLKCON); | ||
633 | struct clk *clkp; | ||
634 | int ret; | ||
635 | int ptr; | ||
636 | |||
637 | clk_upll.enable = s3c2412_upll_enable; | ||
638 | clk_usb_bus.parent = &clk_usbsrc; | ||
639 | clk_usb_bus.rate = 0x0; | ||
640 | |||
641 | s3c2412_clk_initparents(); | ||
642 | |||
643 | for (ptr = 0; ptr < ARRAY_SIZE(clks); ptr++) { | ||
644 | clkp = clks[ptr]; | ||
645 | |||
646 | ret = s3c24xx_register_clock(clkp); | ||
647 | if (ret < 0) { | ||
648 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
649 | clkp->name, ret); | ||
650 | } | ||
651 | } | ||
652 | |||
653 | /* ensure usb bus clock is within correct rate of 48MHz */ | ||
654 | |||
655 | if (clk_get_rate(&clk_usb_bus) != (48 * 1000 * 1000)) { | ||
656 | printk(KERN_INFO "Warning: USB bus clock not at 48MHz\n"); | ||
657 | |||
658 | /* for the moment, let's use the UPLL, and see if we can | ||
659 | * get 48MHz */ | ||
660 | |||
661 | clk_set_parent(&clk_usysclk, &clk_upll); | ||
662 | clk_set_parent(&clk_usbsrc, &clk_usysclk); | ||
663 | clk_set_rate(&clk_usbsrc, 48*1000*1000); | ||
664 | } | ||
665 | |||
666 | printk("S3C2412: upll %s, %ld.%03ld MHz, usb-bus %ld.%03ld MHz\n", | ||
667 | (__raw_readl(S3C2410_UPLLCON) & S3C2412_PLLCON_OFF) ? "off":"on", | ||
668 | print_mhz(clk_get_rate(&clk_upll)), | ||
669 | print_mhz(clk_get_rate(&clk_usb_bus))); | ||
670 | |||
671 | /* register clocks from clock array */ | ||
672 | |||
673 | clkp = init_clocks; | ||
674 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks); ptr++, clkp++) { | ||
675 | /* ensure that we note the clock state */ | ||
676 | |||
677 | clkp->usage = clkcon & clkp->ctrlbit ? 1 : 0; | ||
678 | |||
679 | ret = s3c24xx_register_clock(clkp); | ||
680 | if (ret < 0) { | ||
681 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
682 | clkp->name, ret); | ||
683 | } | ||
684 | } | ||
685 | |||
686 | /* We must be careful disabling the clocks we are not intending to | ||
687 | * be using at boot time, as subsytems such as the LCD which do | ||
688 | * their own DMA requests to the bus can cause the system to lockup | ||
689 | * if they where in the middle of requesting bus access. | ||
690 | * | ||
691 | * Disabling the LCD clock if the LCD is active is very dangerous, | ||
692 | * and therefore the bootloader should be careful to not enable | ||
693 | * the LCD clock if it is not needed. | ||
694 | */ | ||
695 | |||
696 | /* install (and disable) the clocks we do not need immediately */ | ||
697 | |||
698 | clkp = init_clocks_disable; | ||
699 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { | ||
700 | |||
701 | ret = s3c24xx_register_clock(clkp); | ||
702 | if (ret < 0) { | ||
703 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
704 | clkp->name, ret); | ||
705 | } | ||
706 | |||
707 | s3c2412_clkcon_enable(clkp, 0); | ||
708 | } | ||
709 | |||
710 | return 0; | ||
711 | } | ||
diff --git a/arch/arm/mach-s3c2410/s3c2412.c b/arch/arm/mach-s3c2410/s3c2412.c new file mode 100644 index 000000000000..e24ffd5e478b --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2412.c | |||
@@ -0,0 +1,195 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2412.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * http://armlinux.simtec.co.uk/. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | * Modifications: | ||
13 | * 16-May-2003 BJD Created initial version | ||
14 | * 16-Aug-2003 BJD Fixed header files and copyright, added URL | ||
15 | * 05-Sep-2003 BJD Moved to kernel v2.6 | ||
16 | * 18-Jan-2004 BJD Added serial port configuration | ||
17 | * 21-Aug-2004 BJD Added new struct s3c2410_board handler | ||
18 | * 28-Sep-2004 BJD Updates for new serial port bits | ||
19 | * 04-Nov-2004 BJD Updated UART configuration process | ||
20 | * 10-Jan-2005 BJD Removed s3c2410_clock_tick_rate | ||
21 | * 13-Aug-2005 DA Removed UART from initial I/O mappings | ||
22 | */ | ||
23 | |||
24 | #include <linux/kernel.h> | ||
25 | #include <linux/types.h> | ||
26 | #include <linux/interrupt.h> | ||
27 | #include <linux/list.h> | ||
28 | #include <linux/timer.h> | ||
29 | #include <linux/init.h> | ||
30 | #include <linux/sysdev.h> | ||
31 | #include <linux/platform_device.h> | ||
32 | |||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | #include <asm/mach/irq.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | #include <asm/io.h> | ||
39 | #include <asm/irq.h> | ||
40 | |||
41 | #include <asm/arch/regs-clock.h> | ||
42 | #include <asm/arch/regs-serial.h> | ||
43 | #include <asm/arch/regs-gpio.h> | ||
44 | #include <asm/arch/regs-gpioj.h> | ||
45 | #include <asm/arch/regs-dsc.h> | ||
46 | |||
47 | #include "s3c2412.h" | ||
48 | #include "cpu.h" | ||
49 | #include "devs.h" | ||
50 | #include "clock.h" | ||
51 | #include "pm.h" | ||
52 | |||
53 | #ifndef CONFIG_CPU_S3C2412_ONLY | ||
54 | void __iomem *s3c24xx_va_gpio2 = S3C24XX_VA_GPIO; | ||
55 | #endif | ||
56 | |||
57 | /* Initial IO mappings */ | ||
58 | |||
59 | static struct map_desc s3c2412_iodesc[] __initdata = { | ||
60 | IODESC_ENT(CLKPWR), | ||
61 | IODESC_ENT(LCD), | ||
62 | IODESC_ENT(TIMER), | ||
63 | IODESC_ENT(ADC), | ||
64 | IODESC_ENT(WATCHDOG), | ||
65 | }; | ||
66 | |||
67 | /* uart registration process */ | ||
68 | |||
69 | void __init s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
70 | { | ||
71 | s3c24xx_init_uartdevs("s3c2412-uart", s3c2410_uart_resources, cfg, no); | ||
72 | |||
73 | /* rename devices that are s3c2412/s3c2413 specific */ | ||
74 | s3c_device_sdi.name = "s3c2412-sdi"; | ||
75 | s3c_device_nand.name = "s3c2412-nand"; | ||
76 | } | ||
77 | |||
78 | /* s3c2412_map_io | ||
79 | * | ||
80 | * register the standard cpu IO areas, and any passed in from the | ||
81 | * machine specific initialisation. | ||
82 | */ | ||
83 | |||
84 | void __init s3c2412_map_io(struct map_desc *mach_desc, int mach_size) | ||
85 | { | ||
86 | /* move base of IO */ | ||
87 | |||
88 | s3c24xx_va_gpio2 = S3C24XX_VA_GPIO + 0x10; | ||
89 | |||
90 | /* register our io-tables */ | ||
91 | |||
92 | iotable_init(s3c2412_iodesc, ARRAY_SIZE(s3c2412_iodesc)); | ||
93 | iotable_init(mach_desc, mach_size); | ||
94 | } | ||
95 | |||
96 | void __init s3c2412_init_clocks(int xtal) | ||
97 | { | ||
98 | unsigned long tmp; | ||
99 | unsigned long fclk; | ||
100 | unsigned long hclk; | ||
101 | unsigned long pclk; | ||
102 | |||
103 | /* now we've got our machine bits initialised, work out what | ||
104 | * clocks we've got */ | ||
105 | |||
106 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal*2); | ||
107 | |||
108 | tmp = __raw_readl(S3C2410_CLKDIVN); | ||
109 | |||
110 | /* work out clock scalings */ | ||
111 | |||
112 | hclk = fclk / ((tmp & S3C2412_CLKDIVN_HDIVN_MASK) + 1); | ||
113 | hclk /= ((tmp & S3C2421_CLKDIVN_ARMDIVN) ? 2 : 1); | ||
114 | pclk = hclk / ((tmp & S3C2412_CLKDIVN_PDIVN) ? 2 : 1); | ||
115 | |||
116 | /* print brieft summary of clocks, etc */ | ||
117 | |||
118 | printk("S3C2412: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n", | ||
119 | print_mhz(fclk), print_mhz(hclk), print_mhz(pclk)); | ||
120 | |||
121 | /* initialise the clocks here, to allow other things like the | ||
122 | * console to use them | ||
123 | */ | ||
124 | |||
125 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | ||
126 | s3c2412_baseclk_add(); | ||
127 | } | ||
128 | |||
129 | /* need to register class before we actually register the device, and | ||
130 | * we also need to ensure that it has been initialised before any of the | ||
131 | * drivers even try to use it (even if not on an s3c2412 based system) | ||
132 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
133 | */ | ||
134 | |||
135 | #ifdef CONFIG_PM | ||
136 | static struct sleep_save s3c2412_sleep[] = { | ||
137 | SAVE_ITEM(S3C2412_DSC0), | ||
138 | SAVE_ITEM(S3C2412_DSC1), | ||
139 | SAVE_ITEM(S3C2413_GPJDAT), | ||
140 | SAVE_ITEM(S3C2413_GPJCON), | ||
141 | SAVE_ITEM(S3C2413_GPJUP), | ||
142 | |||
143 | /* save the sleep configuration anyway, just in case these | ||
144 | * get damaged during wakeup */ | ||
145 | |||
146 | SAVE_ITEM(S3C2412_GPBSLPCON), | ||
147 | SAVE_ITEM(S3C2412_GPCSLPCON), | ||
148 | SAVE_ITEM(S3C2412_GPDSLPCON), | ||
149 | SAVE_ITEM(S3C2412_GPESLPCON), | ||
150 | SAVE_ITEM(S3C2412_GPFSLPCON), | ||
151 | SAVE_ITEM(S3C2412_GPGSLPCON), | ||
152 | SAVE_ITEM(S3C2412_GPHSLPCON), | ||
153 | SAVE_ITEM(S3C2413_GPJSLPCON), | ||
154 | }; | ||
155 | |||
156 | static int s3c2412_suspend(struct sys_device *dev, pm_message_t state) | ||
157 | { | ||
158 | s3c2410_pm_do_save(s3c2412_sleep, ARRAY_SIZE(s3c2412_sleep)); | ||
159 | return 0; | ||
160 | } | ||
161 | |||
162 | static int s3c2412_resume(struct sys_device *dev) | ||
163 | { | ||
164 | s3c2410_pm_do_restore(s3c2412_sleep, ARRAY_SIZE(s3c2412_sleep)); | ||
165 | return 0; | ||
166 | } | ||
167 | |||
168 | #else | ||
169 | #define s3c2412_suspend NULL | ||
170 | #define s3c2412_resume NULL | ||
171 | #endif | ||
172 | |||
173 | struct sysdev_class s3c2412_sysclass = { | ||
174 | set_kset_name("s3c2412-core"), | ||
175 | .suspend = s3c2412_suspend, | ||
176 | .resume = s3c2412_resume | ||
177 | }; | ||
178 | |||
179 | static int __init s3c2412_core_init(void) | ||
180 | { | ||
181 | return sysdev_class_register(&s3c2412_sysclass); | ||
182 | } | ||
183 | |||
184 | core_initcall(s3c2412_core_init); | ||
185 | |||
186 | static struct sys_device s3c2412_sysdev = { | ||
187 | .cls = &s3c2412_sysclass, | ||
188 | }; | ||
189 | |||
190 | int __init s3c2412_init(void) | ||
191 | { | ||
192 | printk("S3C2412: Initialising architecture\n"); | ||
193 | |||
194 | return sysdev_register(&s3c2412_sysdev); | ||
195 | } | ||
diff --git a/arch/arm/mach-s3c2410/s3c2412.h b/arch/arm/mach-s3c2410/s3c2412.h new file mode 100644 index 000000000000..c6e56032a6e7 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2412.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* arch/arm/mach-s3c2410/s3c2412.h | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for s3c2412 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifdef CONFIG_CPU_S3C2412 | ||
14 | |||
15 | extern int s3c2412_init(void); | ||
16 | |||
17 | extern void s3c2412_map_io(struct map_desc *mach_desc, int size); | ||
18 | |||
19 | extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
20 | |||
21 | extern void s3c2412_init_clocks(int xtal); | ||
22 | |||
23 | extern int s3c2412_baseclk_add(void); | ||
24 | #else | ||
25 | #define s3c2412_init_clocks NULL | ||
26 | #define s3c2412_init_uarts NULL | ||
27 | #define s3c2412_map_io NULL | ||
28 | #define s3c2412_init NULL | ||
29 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440-clock.c b/arch/arm/mach-s3c2410/s3c2440-clock.c index d7a30ed6c327..15796864d010 100644 --- a/arch/arm/mach-s3c2410/s3c2440-clock.c +++ b/arch/arm/mach-s3c2410/s3c2440-clock.c | |||
@@ -91,7 +91,7 @@ static int s3c2440_camif_upll_setrate(struct clk *clk, unsigned long rate) | |||
91 | static struct clk s3c2440_clk_cam = { | 91 | static struct clk s3c2440_clk_cam = { |
92 | .name = "camif", | 92 | .name = "camif", |
93 | .id = -1, | 93 | .id = -1, |
94 | .enable = s3c24xx_clkcon_enable, | 94 | .enable = s3c2410_clkcon_enable, |
95 | .ctrlbit = S3C2440_CLKCON_CAMERA, | 95 | .ctrlbit = S3C2440_CLKCON_CAMERA, |
96 | }; | 96 | }; |
97 | 97 | ||
@@ -105,7 +105,7 @@ static struct clk s3c2440_clk_cam_upll = { | |||
105 | static struct clk s3c2440_clk_ac97 = { | 105 | static struct clk s3c2440_clk_ac97 = { |
106 | .name = "ac97", | 106 | .name = "ac97", |
107 | .id = -1, | 107 | .id = -1, |
108 | .enable = s3c24xx_clkcon_enable, | 108 | .enable = s3c2410_clkcon_enable, |
109 | .ctrlbit = S3C2440_CLKCON_CAMERA, | 109 | .ctrlbit = S3C2440_CLKCON_CAMERA, |
110 | }; | 110 | }; |
111 | 111 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440-irq.c b/arch/arm/mach-s3c2410/s3c2440-irq.c index 278d0044c85d..acfe3870727b 100644 --- a/arch/arm/mach-s3c2410/s3c2440-irq.c +++ b/arch/arm/mach-s3c2410/s3c2440-irq.c | |||
@@ -100,73 +100,12 @@ static struct irqchip s3c_irq_wdtac97 = { | |||
100 | .ack = s3c_irq_wdtac97_ack, | 100 | .ack = s3c_irq_wdtac97_ack, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | /* camera irq */ | ||
104 | |||
105 | static void s3c_irq_demux_cam(unsigned int irq, | ||
106 | struct irqdesc *desc, | ||
107 | struct pt_regs *regs) | ||
108 | { | ||
109 | unsigned int subsrc, submsk; | ||
110 | struct irqdesc *mydesc; | ||
111 | |||
112 | /* read the current pending interrupts, and the mask | ||
113 | * for what it is available */ | ||
114 | |||
115 | subsrc = __raw_readl(S3C2410_SUBSRCPND); | ||
116 | submsk = __raw_readl(S3C2410_INTSUBMSK); | ||
117 | |||
118 | subsrc &= ~submsk; | ||
119 | subsrc >>= 11; | ||
120 | subsrc &= 3; | ||
121 | |||
122 | if (subsrc != 0) { | ||
123 | if (subsrc & 1) { | ||
124 | mydesc = irq_desc + IRQ_S3C2440_CAM_C; | ||
125 | desc_handle_irq(IRQ_S3C2440_CAM_C, mydesc, regs); | ||
126 | } | ||
127 | if (subsrc & 2) { | ||
128 | mydesc = irq_desc + IRQ_S3C2440_CAM_P; | ||
129 | desc_handle_irq(IRQ_S3C2440_CAM_P, mydesc, regs); | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | |||
134 | #define INTMSK_CAM (1UL << (IRQ_CAM - IRQ_EINT0)) | ||
135 | |||
136 | static void | ||
137 | s3c_irq_cam_mask(unsigned int irqno) | ||
138 | { | ||
139 | s3c_irqsub_mask(irqno, INTMSK_CAM, 3<<11); | ||
140 | } | ||
141 | |||
142 | static void | ||
143 | s3c_irq_cam_unmask(unsigned int irqno) | ||
144 | { | ||
145 | s3c_irqsub_unmask(irqno, INTMSK_CAM); | ||
146 | } | ||
147 | |||
148 | static void | ||
149 | s3c_irq_cam_ack(unsigned int irqno) | ||
150 | { | ||
151 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); | ||
152 | } | ||
153 | |||
154 | static struct irqchip s3c_irq_cam = { | ||
155 | .mask = s3c_irq_cam_mask, | ||
156 | .unmask = s3c_irq_cam_unmask, | ||
157 | .ack = s3c_irq_cam_ack, | ||
158 | }; | ||
159 | |||
160 | static int s3c2440_irq_add(struct sys_device *sysdev) | 103 | static int s3c2440_irq_add(struct sys_device *sysdev) |
161 | { | 104 | { |
162 | unsigned int irqno; | 105 | unsigned int irqno; |
163 | 106 | ||
164 | printk("S3C2440: IRQ Support\n"); | 107 | printk("S3C2440: IRQ Support\n"); |
165 | 108 | ||
166 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); | ||
167 | set_irq_handler(IRQ_NFCON, do_level_IRQ); | ||
168 | set_irq_flags(IRQ_NFCON, IRQF_VALID); | ||
169 | |||
170 | /* add new chained handler for wdt, ac7 */ | 109 | /* add new chained handler for wdt, ac7 */ |
171 | 110 | ||
172 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); | 111 | set_irq_chip(IRQ_WDT, &s3c_irq_level_chip); |
@@ -179,18 +118,6 @@ static int s3c2440_irq_add(struct sys_device *sysdev) | |||
179 | set_irq_flags(irqno, IRQF_VALID); | 118 | set_irq_flags(irqno, IRQF_VALID); |
180 | } | 119 | } |
181 | 120 | ||
182 | /* add chained handler for camera */ | ||
183 | |||
184 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); | ||
185 | set_irq_handler(IRQ_CAM, do_level_IRQ); | ||
186 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); | ||
187 | |||
188 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { | ||
189 | set_irq_chip(irqno, &s3c_irq_cam); | ||
190 | set_irq_handler(irqno, do_level_IRQ); | ||
191 | set_irq_flags(irqno, IRQF_VALID); | ||
192 | } | ||
193 | |||
194 | return 0; | 121 | return 0; |
195 | } | 122 | } |
196 | 123 | ||
@@ -198,10 +125,10 @@ static struct sysdev_driver s3c2440_irq_driver = { | |||
198 | .add = s3c2440_irq_add, | 125 | .add = s3c2440_irq_add, |
199 | }; | 126 | }; |
200 | 127 | ||
201 | static int s3c24xx_irq_driver(void) | 128 | static int s3c2440_irq_init(void) |
202 | { | 129 | { |
203 | return sysdev_driver_register(&s3c2440_sysclass, &s3c2440_irq_driver); | 130 | return sysdev_driver_register(&s3c2440_sysclass, &s3c2440_irq_driver); |
204 | } | 131 | } |
205 | 132 | ||
206 | arch_initcall(s3c24xx_irq_driver); | 133 | arch_initcall(s3c2440_irq_init); |
207 | 134 | ||
diff --git a/arch/arm/mach-s3c2410/s3c2440.c b/arch/arm/mach-s3c2410/s3c2440.c index b7fe6d9453fb..0ab50f44f318 100644 --- a/arch/arm/mach-s3c2410/s3c2440.c +++ b/arch/arm/mach-s3c2410/s3c2440.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c |
2 | * | 2 | * |
3 | * Copyright (c) 2004-2005 Simtec Electronics | 3 | * Copyright (c) 2004-2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Samsung S3C2440 Mobile CPU support | 6 | * Samsung S3C2440 Mobile CPU support |
@@ -8,16 +8,6 @@ | |||
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | ||
12 | * Modifications: | ||
13 | * 24-Aug-2004 BJD Start of s3c2440 support | ||
14 | * 12-Oct-2004 BJD Moved clock info out to clock.c | ||
15 | * 01-Nov-2004 BJD Fixed clock build code | ||
16 | * 09-Nov-2004 BJD Added sysdev for power management | ||
17 | * 04-Nov-2004 BJD New serial registration | ||
18 | * 15-Nov-2004 BJD Rename the i2c device for the s3c2440 | ||
19 | * 14-Jan-2005 BJD Moved clock init code into seperate function | ||
20 | * 14-Jan-2005 BJD Removed un-used clock bits | ||
21 | */ | 11 | */ |
22 | 12 | ||
23 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
@@ -50,234 +40,20 @@ | |||
50 | #include "cpu.h" | 40 | #include "cpu.h" |
51 | #include "pm.h" | 41 | #include "pm.h" |
52 | 42 | ||
53 | |||
54 | static struct map_desc s3c2440_iodesc[] __initdata = { | ||
55 | IODESC_ENT(USBHOST), | ||
56 | IODESC_ENT(CLKPWR), | ||
57 | IODESC_ENT(LCD), | ||
58 | IODESC_ENT(TIMER), | ||
59 | IODESC_ENT(ADC), | ||
60 | IODESC_ENT(WATCHDOG), | ||
61 | }; | ||
62 | |||
63 | static struct resource s3c_uart0_resource[] = { | ||
64 | [0] = { | ||
65 | .start = S3C2410_PA_UART0, | ||
66 | .end = S3C2410_PA_UART0 + 0x3fff, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, | ||
69 | [1] = { | ||
70 | .start = IRQ_S3CUART_RX0, | ||
71 | .end = IRQ_S3CUART_ERR0, | ||
72 | .flags = IORESOURCE_IRQ, | ||
73 | } | ||
74 | |||
75 | }; | ||
76 | |||
77 | static struct resource s3c_uart1_resource[] = { | ||
78 | [0] = { | ||
79 | .start = S3C2410_PA_UART1, | ||
80 | .end = S3C2410_PA_UART1 + 0x3fff, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | }, | ||
83 | [1] = { | ||
84 | .start = IRQ_S3CUART_RX1, | ||
85 | .end = IRQ_S3CUART_ERR1, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | } | ||
88 | }; | ||
89 | |||
90 | static struct resource s3c_uart2_resource[] = { | ||
91 | [0] = { | ||
92 | .start = S3C2410_PA_UART2, | ||
93 | .end = S3C2410_PA_UART2 + 0x3fff, | ||
94 | .flags = IORESOURCE_MEM, | ||
95 | }, | ||
96 | [1] = { | ||
97 | .start = IRQ_S3CUART_RX2, | ||
98 | .end = IRQ_S3CUART_ERR2, | ||
99 | .flags = IORESOURCE_IRQ, | ||
100 | } | ||
101 | }; | ||
102 | |||
103 | /* our uart devices */ | ||
104 | |||
105 | static struct platform_device s3c_uart0 = { | ||
106 | .name = "s3c2440-uart", | ||
107 | .id = 0, | ||
108 | .num_resources = ARRAY_SIZE(s3c_uart0_resource), | ||
109 | .resource = s3c_uart0_resource, | ||
110 | }; | ||
111 | |||
112 | static struct platform_device s3c_uart1 = { | ||
113 | .name = "s3c2440-uart", | ||
114 | .id = 1, | ||
115 | .num_resources = ARRAY_SIZE(s3c_uart1_resource), | ||
116 | .resource = s3c_uart1_resource, | ||
117 | }; | ||
118 | |||
119 | static struct platform_device s3c_uart2 = { | ||
120 | .name = "s3c2440-uart", | ||
121 | .id = 2, | ||
122 | .num_resources = ARRAY_SIZE(s3c_uart2_resource), | ||
123 | .resource = s3c_uart2_resource, | ||
124 | }; | ||
125 | |||
126 | static struct platform_device *uart_devices[] __initdata = { | ||
127 | &s3c_uart0, | ||
128 | &s3c_uart1, | ||
129 | &s3c_uart2 | ||
130 | }; | ||
131 | |||
132 | /* uart initialisation */ | ||
133 | |||
134 | static int __initdata s3c2440_uart_count; | ||
135 | |||
136 | void __init s3c2440_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
137 | { | ||
138 | struct platform_device *platdev; | ||
139 | int uart; | ||
140 | |||
141 | for (uart = 0; uart < no; uart++, cfg++) { | ||
142 | platdev = uart_devices[cfg->hwport]; | ||
143 | |||
144 | s3c24xx_uart_devs[uart] = platdev; | ||
145 | platdev->dev.platform_data = cfg; | ||
146 | } | ||
147 | |||
148 | s3c2440_uart_count = uart; | ||
149 | } | ||
150 | |||
151 | |||
152 | #ifdef CONFIG_PM | ||
153 | |||
154 | static struct sleep_save s3c2440_sleep[] = { | ||
155 | SAVE_ITEM(S3C2440_DSC0), | ||
156 | SAVE_ITEM(S3C2440_DSC1), | ||
157 | SAVE_ITEM(S3C2440_GPJDAT), | ||
158 | SAVE_ITEM(S3C2440_GPJCON), | ||
159 | SAVE_ITEM(S3C2440_GPJUP) | ||
160 | }; | ||
161 | |||
162 | static int s3c2440_suspend(struct sys_device *dev, pm_message_t state) | ||
163 | { | ||
164 | s3c2410_pm_do_save(s3c2440_sleep, ARRAY_SIZE(s3c2440_sleep)); | ||
165 | return 0; | ||
166 | } | ||
167 | |||
168 | static int s3c2440_resume(struct sys_device *dev) | ||
169 | { | ||
170 | s3c2410_pm_do_restore(s3c2440_sleep, ARRAY_SIZE(s3c2440_sleep)); | ||
171 | return 0; | ||
172 | } | ||
173 | |||
174 | #else | ||
175 | #define s3c2440_suspend NULL | ||
176 | #define s3c2440_resume NULL | ||
177 | #endif | ||
178 | |||
179 | struct sysdev_class s3c2440_sysclass = { | ||
180 | set_kset_name("s3c2440-core"), | ||
181 | .suspend = s3c2440_suspend, | ||
182 | .resume = s3c2440_resume | ||
183 | }; | ||
184 | |||
185 | static struct sys_device s3c2440_sysdev = { | 43 | static struct sys_device s3c2440_sysdev = { |
186 | .cls = &s3c2440_sysclass, | 44 | .cls = &s3c2440_sysclass, |
187 | }; | 45 | }; |
188 | 46 | ||
189 | void __init s3c2440_map_io(struct map_desc *mach_desc, int size) | 47 | int __init s3c2440_init(void) |
190 | { | 48 | { |
191 | /* register our io-tables */ | 49 | printk("S3C2440: Initialising architecture\n"); |
192 | |||
193 | iotable_init(s3c2440_iodesc, ARRAY_SIZE(s3c2440_iodesc)); | ||
194 | iotable_init(mach_desc, size); | ||
195 | |||
196 | /* rename any peripherals used differing from the s3c2410 */ | ||
197 | |||
198 | s3c_device_i2c.name = "s3c2440-i2c"; | ||
199 | s3c_device_nand.name = "s3c2440-nand"; | ||
200 | 50 | ||
201 | /* change irq for watchdog */ | 51 | /* change irq for watchdog */ |
202 | 52 | ||
203 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; | 53 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; |
204 | s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT; | 54 | s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT; |
205 | } | ||
206 | |||
207 | void __init s3c2440_init_clocks(int xtal) | ||
208 | { | ||
209 | unsigned long clkdiv; | ||
210 | unsigned long camdiv; | ||
211 | unsigned long hclk, fclk, pclk; | ||
212 | int hdiv = 1; | ||
213 | |||
214 | /* now we've got our machine bits initialised, work out what | ||
215 | * clocks we've got */ | ||
216 | |||
217 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; | ||
218 | |||
219 | clkdiv = __raw_readl(S3C2410_CLKDIVN); | ||
220 | camdiv = __raw_readl(S3C2440_CAMDIVN); | ||
221 | |||
222 | /* work out clock scalings */ | ||
223 | |||
224 | switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { | ||
225 | case S3C2440_CLKDIVN_HDIVN_1: | ||
226 | hdiv = 1; | ||
227 | break; | ||
228 | |||
229 | case S3C2440_CLKDIVN_HDIVN_2: | ||
230 | hdiv = 2; | ||
231 | break; | ||
232 | |||
233 | case S3C2440_CLKDIVN_HDIVN_4_8: | ||
234 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4; | ||
235 | break; | ||
236 | |||
237 | case S3C2440_CLKDIVN_HDIVN_3_6: | ||
238 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3; | ||
239 | break; | ||
240 | } | ||
241 | |||
242 | hclk = fclk / hdiv; | ||
243 | pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN)? 2:1); | ||
244 | |||
245 | /* print brief summary of clocks, etc */ | ||
246 | |||
247 | printk("S3C2440: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n", | ||
248 | print_mhz(fclk), print_mhz(hclk), print_mhz(pclk)); | ||
249 | |||
250 | /* initialise the clocks here, to allow other things like the | ||
251 | * console to use them, and to add new ones after the initialisation | ||
252 | */ | ||
253 | |||
254 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | ||
255 | } | ||
256 | |||
257 | /* need to register class before we actually register the device, and | ||
258 | * we also need to ensure that it has been initialised before any of the | ||
259 | * drivers even try to use it (even if not on an s3c2440 based system) | ||
260 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
261 | */ | ||
262 | |||
263 | static int __init s3c2440_core_init(void) | ||
264 | { | ||
265 | return sysdev_class_register(&s3c2440_sysclass); | ||
266 | } | ||
267 | |||
268 | core_initcall(s3c2440_core_init); | ||
269 | |||
270 | int __init s3c2440_init(void) | ||
271 | { | ||
272 | int ret; | ||
273 | |||
274 | printk("S3C2440: Initialising architecture\n"); | ||
275 | 55 | ||
276 | ret = sysdev_register(&s3c2440_sysdev); | 56 | /* register our system device for everything else */ |
277 | if (ret != 0) | ||
278 | printk(KERN_ERR "failed to register sysdev for s3c2440\n"); | ||
279 | else | ||
280 | ret = platform_add_devices(s3c24xx_uart_devs, s3c2440_uart_count); | ||
281 | 57 | ||
282 | return ret; | 58 | return sysdev_register(&s3c2440_sysdev); |
283 | } | 59 | } |
diff --git a/arch/arm/mach-s3c2410/s3c2442-clock.c b/arch/arm/mach-s3c2410/s3c2442-clock.c new file mode 100644 index 000000000000..d9f54b5cab7f --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442-clock.c | |||
@@ -0,0 +1,171 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2442-clock.c | ||
2 | * | ||
3 | * Copyright (c) 2004-2005 Simtec Electronics | ||
4 | * http://armlinux.simtec.co.uk/ | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * | ||
7 | * S3C2442 Clock support | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | |||
24 | #include <linux/init.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/list.h> | ||
28 | #include <linux/errno.h> | ||
29 | #include <linux/err.h> | ||
30 | #include <linux/device.h> | ||
31 | #include <linux/sysdev.h> | ||
32 | #include <linux/interrupt.h> | ||
33 | #include <linux/ioport.h> | ||
34 | #include <linux/mutex.h> | ||
35 | #include <linux/clk.h> | ||
36 | |||
37 | #include <asm/hardware.h> | ||
38 | #include <asm/atomic.h> | ||
39 | #include <asm/irq.h> | ||
40 | #include <asm/io.h> | ||
41 | |||
42 | #include <asm/arch/regs-clock.h> | ||
43 | |||
44 | #include "clock.h" | ||
45 | #include "cpu.h" | ||
46 | |||
47 | /* S3C2442 extended clock support */ | ||
48 | |||
49 | static unsigned long s3c2442_camif_upll_round(struct clk *clk, | ||
50 | unsigned long rate) | ||
51 | { | ||
52 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
53 | int div; | ||
54 | |||
55 | if (rate > parent_rate) | ||
56 | return parent_rate; | ||
57 | |||
58 | div = parent_rate / rate; | ||
59 | |||
60 | if (div == 3) | ||
61 | return parent_rate / 3; | ||
62 | |||
63 | /* note, we remove the +/- 1 calculations for the divisor */ | ||
64 | |||
65 | div /= 2; | ||
66 | |||
67 | if (div < 1) | ||
68 | div = 1; | ||
69 | else if (div > 16) | ||
70 | div = 16; | ||
71 | |||
72 | return parent_rate / (div * 2); | ||
73 | } | ||
74 | |||
75 | static int s3c2442_camif_upll_setrate(struct clk *clk, unsigned long rate) | ||
76 | { | ||
77 | unsigned long parent_rate = clk_get_rate(clk->parent); | ||
78 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | ||
79 | |||
80 | rate = s3c2442_camif_upll_round(clk, rate); | ||
81 | |||
82 | camdivn &= ~S3C2442_CAMDIVN_CAMCLK_DIV3; | ||
83 | |||
84 | if (rate == parent_rate) { | ||
85 | camdivn &= ~S3C2440_CAMDIVN_CAMCLK_SEL; | ||
86 | } else if ((parent_rate / rate) == 3) { | ||
87 | camdivn |= S3C2440_CAMDIVN_CAMCLK_SEL; | ||
88 | camdivn |= S3C2442_CAMDIVN_CAMCLK_DIV3; | ||
89 | } else { | ||
90 | camdivn &= ~S3C2440_CAMDIVN_CAMCLK_MASK; | ||
91 | camdivn |= S3C2440_CAMDIVN_CAMCLK_SEL; | ||
92 | camdivn |= (((parent_rate / rate) / 2) - 1); | ||
93 | } | ||
94 | |||
95 | __raw_writel(camdivn, S3C2440_CAMDIVN); | ||
96 | |||
97 | return 0; | ||
98 | } | ||
99 | |||
100 | /* Extra S3C2442 clocks */ | ||
101 | |||
102 | static struct clk s3c2442_clk_cam = { | ||
103 | .name = "camif", | ||
104 | .id = -1, | ||
105 | .enable = s3c2410_clkcon_enable, | ||
106 | .ctrlbit = S3C2440_CLKCON_CAMERA, | ||
107 | }; | ||
108 | |||
109 | static struct clk s3c2442_clk_cam_upll = { | ||
110 | .name = "camif-upll", | ||
111 | .id = -1, | ||
112 | .set_rate = s3c2442_camif_upll_setrate, | ||
113 | .round_rate = s3c2442_camif_upll_round, | ||
114 | }; | ||
115 | |||
116 | static int s3c2442_clk_add(struct sys_device *sysdev) | ||
117 | { | ||
118 | unsigned long camdivn = __raw_readl(S3C2440_CAMDIVN); | ||
119 | unsigned long clkdivn; | ||
120 | struct clk *clk_h; | ||
121 | struct clk *clk_p; | ||
122 | struct clk *clk_upll; | ||
123 | |||
124 | printk("S3C2442: Clock Support, DVS %s\n", | ||
125 | (camdivn & S3C2440_CAMDIVN_DVSEN) ? "on" : "off"); | ||
126 | |||
127 | clk_p = clk_get(NULL, "pclk"); | ||
128 | clk_h = clk_get(NULL, "hclk"); | ||
129 | clk_upll = clk_get(NULL, "upll"); | ||
130 | |||
131 | if (IS_ERR(clk_p) || IS_ERR(clk_h) || IS_ERR(clk_upll)) { | ||
132 | printk(KERN_ERR "S3C2442: Failed to get parent clocks\n"); | ||
133 | return -EINVAL; | ||
134 | } | ||
135 | |||
136 | /* check rate of UPLL, and if it is near 96MHz, then change | ||
137 | * to using half the UPLL rate for the system */ | ||
138 | |||
139 | if (clk_get_rate(clk_upll) > (94 * MHZ)) { | ||
140 | clk_usb_bus.rate = clk_get_rate(clk_upll) / 2; | ||
141 | |||
142 | mutex_lock(&clocks_mutex); | ||
143 | |||
144 | clkdivn = __raw_readl(S3C2410_CLKDIVN); | ||
145 | clkdivn |= S3C2440_CLKDIVN_UCLK; | ||
146 | __raw_writel(clkdivn, S3C2410_CLKDIVN); | ||
147 | |||
148 | mutex_unlock(&clocks_mutex); | ||
149 | } | ||
150 | |||
151 | s3c2442_clk_cam.parent = clk_h; | ||
152 | s3c2442_clk_cam_upll.parent = clk_upll; | ||
153 | |||
154 | s3c24xx_register_clock(&s3c2442_clk_cam); | ||
155 | s3c24xx_register_clock(&s3c2442_clk_cam_upll); | ||
156 | |||
157 | clk_disable(&s3c2442_clk_cam); | ||
158 | |||
159 | return 0; | ||
160 | } | ||
161 | |||
162 | static struct sysdev_driver s3c2442_clk_driver = { | ||
163 | .add = s3c2442_clk_add, | ||
164 | }; | ||
165 | |||
166 | static __init int s3c2442_clk_init(void) | ||
167 | { | ||
168 | return sysdev_driver_register(&s3c2442_sysclass, &s3c2442_clk_driver); | ||
169 | } | ||
170 | |||
171 | arch_initcall(s3c2442_clk_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c2442.c b/arch/arm/mach-s3c2410/s3c2442.c new file mode 100644 index 000000000000..debae2430557 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442.c | |||
@@ -0,0 +1,52 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Samsung S3C2442 Mobile CPU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/list.h> | ||
17 | #include <linux/timer.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/sysdev.h> | ||
21 | #include <linux/clk.h> | ||
22 | |||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/mach/irq.h> | ||
26 | |||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/irq.h> | ||
30 | |||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | |||
37 | #include "s3c2442.h" | ||
38 | #include "clock.h" | ||
39 | #include "devs.h" | ||
40 | #include "cpu.h" | ||
41 | #include "pm.h" | ||
42 | |||
43 | static struct sys_device s3c2442_sysdev = { | ||
44 | .cls = &s3c2442_sysclass, | ||
45 | }; | ||
46 | |||
47 | int __init s3c2442_init(void) | ||
48 | { | ||
49 | printk("S3C2442: Initialising architecture\n"); | ||
50 | |||
51 | return sysdev_register(&s3c2442_sysdev); | ||
52 | } | ||
diff --git a/arch/arm/mach-s3c2410/s3c2442.h b/arch/arm/mach-s3c2410/s3c2442.h new file mode 100644 index 000000000000..0ae37d24866c --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c2442.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* arch/arm/mach-s3c2410/s3c2442.h | ||
2 | * | ||
3 | * Copyright (c) 2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for s3c2442 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifdef CONFIG_CPU_S3C2442 | ||
14 | extern int s3c2442_init(void); | ||
15 | #else | ||
16 | #define s3c2442_init NULL | ||
17 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x-irq.c b/arch/arm/mach-s3c2410/s3c244x-irq.c new file mode 100644 index 000000000000..2aadca1ce7eb --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x-irq.c | |||
@@ -0,0 +1,142 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2440-irq.c | ||
2 | * | ||
3 | * Copyright (c) 2003,2004 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | * Changelog: | ||
21 | * 25-Jul-2005 BJD Split from irq.c | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #include <linux/init.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/interrupt.h> | ||
28 | #include <linux/ioport.h> | ||
29 | #include <linux/ptrace.h> | ||
30 | #include <linux/sysdev.h> | ||
31 | |||
32 | #include <asm/hardware.h> | ||
33 | #include <asm/irq.h> | ||
34 | #include <asm/io.h> | ||
35 | |||
36 | #include <asm/mach/irq.h> | ||
37 | |||
38 | #include <asm/arch/regs-irq.h> | ||
39 | #include <asm/arch/regs-gpio.h> | ||
40 | |||
41 | #include "cpu.h" | ||
42 | #include "pm.h" | ||
43 | #include "irq.h" | ||
44 | |||
45 | /* camera irq */ | ||
46 | |||
47 | static void s3c_irq_demux_cam(unsigned int irq, | ||
48 | struct irqdesc *desc, | ||
49 | struct pt_regs *regs) | ||
50 | { | ||
51 | unsigned int subsrc, submsk; | ||
52 | struct irqdesc *mydesc; | ||
53 | |||
54 | /* read the current pending interrupts, and the mask | ||
55 | * for what it is available */ | ||
56 | |||
57 | subsrc = __raw_readl(S3C2410_SUBSRCPND); | ||
58 | submsk = __raw_readl(S3C2410_INTSUBMSK); | ||
59 | |||
60 | subsrc &= ~submsk; | ||
61 | subsrc >>= 11; | ||
62 | subsrc &= 3; | ||
63 | |||
64 | if (subsrc != 0) { | ||
65 | if (subsrc & 1) { | ||
66 | mydesc = irq_desc + IRQ_S3C2440_CAM_C; | ||
67 | desc_handle_irq(IRQ_S3C2440_CAM_C, mydesc, regs); | ||
68 | } | ||
69 | if (subsrc & 2) { | ||
70 | mydesc = irq_desc + IRQ_S3C2440_CAM_P; | ||
71 | desc_handle_irq(IRQ_S3C2440_CAM_P, mydesc, regs); | ||
72 | } | ||
73 | } | ||
74 | } | ||
75 | |||
76 | #define INTMSK_CAM (1UL << (IRQ_CAM - IRQ_EINT0)) | ||
77 | |||
78 | static void | ||
79 | s3c_irq_cam_mask(unsigned int irqno) | ||
80 | { | ||
81 | s3c_irqsub_mask(irqno, INTMSK_CAM, 3<<11); | ||
82 | } | ||
83 | |||
84 | static void | ||
85 | s3c_irq_cam_unmask(unsigned int irqno) | ||
86 | { | ||
87 | s3c_irqsub_unmask(irqno, INTMSK_CAM); | ||
88 | } | ||
89 | |||
90 | static void | ||
91 | s3c_irq_cam_ack(unsigned int irqno) | ||
92 | { | ||
93 | s3c_irqsub_maskack(irqno, INTMSK_CAM, 3<<11); | ||
94 | } | ||
95 | |||
96 | static struct irqchip s3c_irq_cam = { | ||
97 | .mask = s3c_irq_cam_mask, | ||
98 | .unmask = s3c_irq_cam_unmask, | ||
99 | .ack = s3c_irq_cam_ack, | ||
100 | }; | ||
101 | |||
102 | static int s3c244x_irq_add(struct sys_device *sysdev) | ||
103 | { | ||
104 | unsigned int irqno; | ||
105 | |||
106 | set_irq_chip(IRQ_NFCON, &s3c_irq_level_chip); | ||
107 | set_irq_handler(IRQ_NFCON, do_level_IRQ); | ||
108 | set_irq_flags(IRQ_NFCON, IRQF_VALID); | ||
109 | |||
110 | /* add chained handler for camera */ | ||
111 | |||
112 | set_irq_chip(IRQ_CAM, &s3c_irq_level_chip); | ||
113 | set_irq_handler(IRQ_CAM, do_level_IRQ); | ||
114 | set_irq_chained_handler(IRQ_CAM, s3c_irq_demux_cam); | ||
115 | |||
116 | for (irqno = IRQ_S3C2440_CAM_C; irqno <= IRQ_S3C2440_CAM_P; irqno++) { | ||
117 | set_irq_chip(irqno, &s3c_irq_cam); | ||
118 | set_irq_handler(irqno, do_level_IRQ); | ||
119 | set_irq_flags(irqno, IRQF_VALID); | ||
120 | } | ||
121 | |||
122 | return 0; | ||
123 | } | ||
124 | |||
125 | static struct sysdev_driver s3c244x_irq_driver = { | ||
126 | .add = s3c244x_irq_add, | ||
127 | }; | ||
128 | |||
129 | static int s3c2440_irq_init(void) | ||
130 | { | ||
131 | return sysdev_driver_register(&s3c2440_sysclass, &s3c244x_irq_driver); | ||
132 | } | ||
133 | |||
134 | arch_initcall(s3c2440_irq_init); | ||
135 | |||
136 | |||
137 | static int s3c2442_irq_init(void) | ||
138 | { | ||
139 | return sysdev_driver_register(&s3c2442_sysclass, &s3c244x_irq_driver); | ||
140 | } | ||
141 | |||
142 | arch_initcall(s3c2442_irq_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x.c b/arch/arm/mach-s3c2410/s3c244x.c new file mode 100644 index 000000000000..838bc525e836 --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x.c | |||
@@ -0,0 +1,184 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c244x.c | ||
2 | * | ||
3 | * Copyright (c) 2004-2006 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Samsung S3C2440 and S3C2442 Mobile CPU support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/list.h> | ||
17 | #include <linux/timer.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/sysdev.h> | ||
21 | #include <linux/clk.h> | ||
22 | |||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/mach/map.h> | ||
25 | #include <asm/mach/irq.h> | ||
26 | |||
27 | #include <asm/hardware.h> | ||
28 | #include <asm/io.h> | ||
29 | #include <asm/irq.h> | ||
30 | |||
31 | #include <asm/arch/regs-clock.h> | ||
32 | #include <asm/arch/regs-serial.h> | ||
33 | #include <asm/arch/regs-gpio.h> | ||
34 | #include <asm/arch/regs-gpioj.h> | ||
35 | #include <asm/arch/regs-dsc.h> | ||
36 | |||
37 | #include "s3c2410.h" | ||
38 | #include "s3c2440.h" | ||
39 | #include "s3c244x.h" | ||
40 | #include "clock.h" | ||
41 | #include "devs.h" | ||
42 | #include "cpu.h" | ||
43 | #include "pm.h" | ||
44 | |||
45 | static struct map_desc s3c244x_iodesc[] __initdata = { | ||
46 | IODESC_ENT(CLKPWR), | ||
47 | IODESC_ENT(TIMER), | ||
48 | IODESC_ENT(WATCHDOG), | ||
49 | IODESC_ENT(LCD), | ||
50 | IODESC_ENT(ADC), | ||
51 | IODESC_ENT(USBHOST), | ||
52 | }; | ||
53 | |||
54 | /* uart initialisation */ | ||
55 | |||
56 | void __init s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
57 | { | ||
58 | s3c24xx_init_uartdevs("s3c2440-uart", s3c2410_uart_resources, cfg, no); | ||
59 | } | ||
60 | |||
61 | void __init s3c244x_map_io(struct map_desc *mach_desc, int size) | ||
62 | { | ||
63 | /* register our io-tables */ | ||
64 | |||
65 | iotable_init(s3c244x_iodesc, ARRAY_SIZE(s3c244x_iodesc)); | ||
66 | iotable_init(mach_desc, size); | ||
67 | |||
68 | /* rename any peripherals used differing from the s3c2410 */ | ||
69 | |||
70 | s3c_device_i2c.name = "s3c2440-i2c"; | ||
71 | s3c_device_nand.name = "s3c2440-nand"; | ||
72 | } | ||
73 | |||
74 | void __init s3c244x_init_clocks(int xtal) | ||
75 | { | ||
76 | unsigned long clkdiv; | ||
77 | unsigned long camdiv; | ||
78 | unsigned long hclk, fclk, pclk; | ||
79 | int hdiv = 1; | ||
80 | |||
81 | /* now we've got our machine bits initialised, work out what | ||
82 | * clocks we've got */ | ||
83 | |||
84 | fclk = s3c2410_get_pll(__raw_readl(S3C2410_MPLLCON), xtal) * 2; | ||
85 | |||
86 | clkdiv = __raw_readl(S3C2410_CLKDIVN); | ||
87 | camdiv = __raw_readl(S3C2440_CAMDIVN); | ||
88 | |||
89 | /* work out clock scalings */ | ||
90 | |||
91 | switch (clkdiv & S3C2440_CLKDIVN_HDIVN_MASK) { | ||
92 | case S3C2440_CLKDIVN_HDIVN_1: | ||
93 | hdiv = 1; | ||
94 | break; | ||
95 | |||
96 | case S3C2440_CLKDIVN_HDIVN_2: | ||
97 | hdiv = 2; | ||
98 | break; | ||
99 | |||
100 | case S3C2440_CLKDIVN_HDIVN_4_8: | ||
101 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK4_HALF) ? 8 : 4; | ||
102 | break; | ||
103 | |||
104 | case S3C2440_CLKDIVN_HDIVN_3_6: | ||
105 | hdiv = (camdiv & S3C2440_CAMDIVN_HCLK3_HALF) ? 6 : 3; | ||
106 | break; | ||
107 | } | ||
108 | |||
109 | hclk = fclk / hdiv; | ||
110 | pclk = hclk / ((clkdiv & S3C2440_CLKDIVN_PDIVN)? 2:1); | ||
111 | |||
112 | /* print brief summary of clocks, etc */ | ||
113 | |||
114 | printk("S3C244X: core %ld.%03ld MHz, memory %ld.%03ld MHz, peripheral %ld.%03ld MHz\n", | ||
115 | print_mhz(fclk), print_mhz(hclk), print_mhz(pclk)); | ||
116 | |||
117 | /* initialise the clocks here, to allow other things like the | ||
118 | * console to use them, and to add new ones after the initialisation | ||
119 | */ | ||
120 | |||
121 | s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); | ||
122 | s3c2410_baseclk_add(); | ||
123 | } | ||
124 | |||
125 | #ifdef CONFIG_PM | ||
126 | |||
127 | static struct sleep_save s3c244x_sleep[] = { | ||
128 | SAVE_ITEM(S3C2440_DSC0), | ||
129 | SAVE_ITEM(S3C2440_DSC1), | ||
130 | SAVE_ITEM(S3C2440_GPJDAT), | ||
131 | SAVE_ITEM(S3C2440_GPJCON), | ||
132 | SAVE_ITEM(S3C2440_GPJUP) | ||
133 | }; | ||
134 | |||
135 | static int s3c244x_suspend(struct sys_device *dev, pm_message_t state) | ||
136 | { | ||
137 | s3c2410_pm_do_save(s3c244x_sleep, ARRAY_SIZE(s3c244x_sleep)); | ||
138 | return 0; | ||
139 | } | ||
140 | |||
141 | static int s3c244x_resume(struct sys_device *dev) | ||
142 | { | ||
143 | s3c2410_pm_do_restore(s3c244x_sleep, ARRAY_SIZE(s3c244x_sleep)); | ||
144 | return 0; | ||
145 | } | ||
146 | |||
147 | #else | ||
148 | #define s3c244x_suspend NULL | ||
149 | #define s3c244x_resume NULL | ||
150 | #endif | ||
151 | |||
152 | /* Since the S3C2442 and S3C2440 share items, put both sysclasses here */ | ||
153 | |||
154 | struct sysdev_class s3c2440_sysclass = { | ||
155 | set_kset_name("s3c2440-core"), | ||
156 | .suspend = s3c244x_suspend, | ||
157 | .resume = s3c244x_resume | ||
158 | }; | ||
159 | |||
160 | struct sysdev_class s3c2442_sysclass = { | ||
161 | set_kset_name("s3c2442-core"), | ||
162 | .suspend = s3c244x_suspend, | ||
163 | .resume = s3c244x_resume | ||
164 | }; | ||
165 | |||
166 | /* need to register class before we actually register the device, and | ||
167 | * we also need to ensure that it has been initialised before any of the | ||
168 | * drivers even try to use it (even if not on an s3c2440 based system) | ||
169 | * as a driver which may support both 2410 and 2440 may try and use it. | ||
170 | */ | ||
171 | |||
172 | static int __init s3c2440_core_init(void) | ||
173 | { | ||
174 | return sysdev_class_register(&s3c2440_sysclass); | ||
175 | } | ||
176 | |||
177 | core_initcall(s3c2440_core_init); | ||
178 | |||
179 | static int __init s3c2442_core_init(void) | ||
180 | { | ||
181 | return sysdev_class_register(&s3c2442_sysclass); | ||
182 | } | ||
183 | |||
184 | core_initcall(s3c2442_core_init); | ||
diff --git a/arch/arm/mach-s3c2410/s3c244x.h b/arch/arm/mach-s3c2410/s3c244x.h new file mode 100644 index 000000000000..3e7f5f75134d --- /dev/null +++ b/arch/arm/mach-s3c2410/s3c244x.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* arch/arm/mach-s3c2410/s3c2440.h | ||
2 | * | ||
3 | * Copyright (c) 2004-2005 Simtec Electronics | ||
4 | * Ben Dooks <ben@simtec.co.uk> | ||
5 | * | ||
6 | * Header file for S3C2440 and S3C2442 cpu support | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) | ||
14 | |||
15 | extern void s3c244x_map_io(struct map_desc *mach_desc, int size); | ||
16 | |||
17 | extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no); | ||
18 | |||
19 | extern void s3c244x_init_clocks(int xtal); | ||
20 | |||
21 | #else | ||
22 | #define s3c244x_init_clocks NULL | ||
23 | #define s3c244x_init_uarts NULL | ||
24 | #define s3c244x_map_io NULL | ||
25 | #endif | ||
diff --git a/arch/arm/mach-s3c2410/sleep.S b/arch/arm/mach-s3c2410/sleep.S index 73de2eaca22a..5f6761ed96b2 100644 --- a/arch/arm/mach-s3c2410/sleep.S +++ b/arch/arm/mach-s3c2410/sleep.S | |||
@@ -66,7 +66,9 @@ ENTRY(s3c2410_cpu_suspend) | |||
66 | @@ flush the caches to ensure everything is back out to | 66 | @@ flush the caches to ensure everything is back out to |
67 | @@ SDRAM before the core powers down | 67 | @@ SDRAM before the core powers down |
68 | 68 | ||
69 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | ||
69 | bl arm920_flush_kern_cache_all | 70 | bl arm920_flush_kern_cache_all |
71 | #endif | ||
70 | 72 | ||
71 | @@ prepare cpu to sleep | 73 | @@ prepare cpu to sleep |
72 | 74 | ||
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index c55b739e10ba..ecf5e232a6fc 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -61,9 +61,9 @@ config CPU_ARM720T | |||
61 | 61 | ||
62 | # ARM920T | 62 | # ARM920T |
63 | config CPU_ARM920T | 63 | config CPU_ARM920T |
64 | bool "Support ARM920T processor" if !ARCH_S3C2410 | 64 | bool "Support ARM920T processor" |
65 | depends on ARCH_EP93XX || ARCH_INTEGRATOR || ARCH_S3C2410 || ARCH_IMX || ARCH_AAEC2000 || ARCH_AT91RM9200 | 65 | depends on ARCH_EP93XX || ARCH_INTEGRATOR || CPU_S3C2410 || CPU_S3C2440 || CPU_S3C2442 || ARCH_IMX || ARCH_AAEC2000 || ARCH_AT91RM9200 |
66 | default y if ARCH_S3C2410 || ARCH_AT91RM9200 | 66 | default y if CPU_S3C2410 || CPU_S3C2440 || CPU_S3C2442 || ARCH_AT91RM9200 |
67 | select CPU_32v4 | 67 | select CPU_32v4 |
68 | select CPU_ABRT_EV4T | 68 | select CPU_ABRT_EV4T |
69 | select CPU_CACHE_V4WT | 69 | select CPU_CACHE_V4WT |
@@ -121,8 +121,8 @@ config CPU_ARM925T | |||
121 | # ARM926T | 121 | # ARM926T |
122 | config CPU_ARM926T | 122 | config CPU_ARM926T |
123 | bool "Support ARM926T processor" | 123 | bool "Support ARM926T processor" |
124 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB | 124 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 |
125 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX | 125 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 |
126 | select CPU_32v5 | 126 | select CPU_32v5 |
127 | select CPU_ABRT_EV5TJ | 127 | select CPU_ABRT_EV5TJ |
128 | select CPU_CACHE_VIVT | 128 | select CPU_CACHE_VIVT |
diff --git a/arch/arm/nwfpe/fpmodule.c b/arch/arm/nwfpe/fpmodule.c index 2dfe1ac42ee8..7d977d23f026 100644 --- a/arch/arm/nwfpe/fpmodule.c +++ b/arch/arm/nwfpe/fpmodule.c | |||
@@ -33,7 +33,8 @@ | |||
33 | #include <linux/signal.h> | 33 | #include <linux/signal.h> |
34 | #include <linux/sched.h> | 34 | #include <linux/sched.h> |
35 | #include <linux/init.h> | 35 | #include <linux/init.h> |
36 | /* XXX */ | 36 | |
37 | #include <asm/thread_notify.h> | ||
37 | 38 | ||
38 | #include "softfloat.h" | 39 | #include "softfloat.h" |
39 | #include "fpopcode.h" | 40 | #include "fpopcode.h" |
@@ -56,16 +57,28 @@ void fp_send_sig(unsigned long sig, struct task_struct *p, int priv); | |||
56 | extern char fpe_type[]; | 57 | extern char fpe_type[]; |
57 | #endif | 58 | #endif |
58 | 59 | ||
60 | static int nwfpe_notify(struct notifier_block *self, unsigned long cmd, void *v) | ||
61 | { | ||
62 | struct thread_info *thread = v; | ||
63 | |||
64 | if (cmd == THREAD_NOTIFY_FLUSH) | ||
65 | nwfpe_init_fpa(&thread->fpstate); | ||
66 | |||
67 | return NOTIFY_DONE; | ||
68 | } | ||
69 | |||
70 | static struct notifier_block nwfpe_notifier_block = { | ||
71 | .notifier_call = nwfpe_notify, | ||
72 | }; | ||
73 | |||
59 | /* kernel function prototypes required */ | 74 | /* kernel function prototypes required */ |
60 | void fp_setup(void); | 75 | void fp_setup(void); |
61 | 76 | ||
62 | /* external declarations for saved kernel symbols */ | 77 | /* external declarations for saved kernel symbols */ |
63 | extern void (*kern_fp_enter)(void); | 78 | extern void (*kern_fp_enter)(void); |
64 | extern void (*fp_init)(union fp_state *); | ||
65 | 79 | ||
66 | /* Original value of fp_enter from kernel before patched by fpe_init. */ | 80 | /* Original value of fp_enter from kernel before patched by fpe_init. */ |
67 | static void (*orig_fp_enter)(void); | 81 | static void (*orig_fp_enter)(void); |
68 | static void (*orig_fp_init)(union fp_state *); | ||
69 | 82 | ||
70 | /* forward declarations */ | 83 | /* forward declarations */ |
71 | extern void nwfpe_enter(void); | 84 | extern void nwfpe_enter(void); |
@@ -88,20 +101,20 @@ static int __init fpe_init(void) | |||
88 | printk(KERN_WARNING "NetWinder Floating Point Emulator V0.97 (" | 101 | printk(KERN_WARNING "NetWinder Floating Point Emulator V0.97 (" |
89 | NWFPE_BITS " precision)\n"); | 102 | NWFPE_BITS " precision)\n"); |
90 | 103 | ||
104 | thread_register_notifier(&nwfpe_notifier_block); | ||
105 | |||
91 | /* Save pointer to the old FP handler and then patch ourselves in */ | 106 | /* Save pointer to the old FP handler and then patch ourselves in */ |
92 | orig_fp_enter = kern_fp_enter; | 107 | orig_fp_enter = kern_fp_enter; |
93 | orig_fp_init = fp_init; | ||
94 | kern_fp_enter = nwfpe_enter; | 108 | kern_fp_enter = nwfpe_enter; |
95 | fp_init = nwfpe_init_fpa; | ||
96 | 109 | ||
97 | return 0; | 110 | return 0; |
98 | } | 111 | } |
99 | 112 | ||
100 | static void __exit fpe_exit(void) | 113 | static void __exit fpe_exit(void) |
101 | { | 114 | { |
115 | thread_unregister_notifier(&nwfpe_notifier_block); | ||
102 | /* Restore the values we saved earlier. */ | 116 | /* Restore the values we saved earlier. */ |
103 | kern_fp_enter = orig_fp_enter; | 117 | kern_fp_enter = orig_fp_enter; |
104 | fp_init = orig_fp_init; | ||
105 | } | 118 | } |
106 | 119 | ||
107 | /* | 120 | /* |
diff --git a/arch/arm/plat-omap/timer32k.c b/arch/arm/plat-omap/timer32k.c index b2a943bf11ef..3461a6c9665c 100644 --- a/arch/arm/plat-omap/timer32k.c +++ b/arch/arm/plat-omap/timer32k.c | |||
@@ -210,7 +210,8 @@ static irqreturn_t omap_32k_timer_interrupt(int irq, void *dev_id, | |||
210 | 210 | ||
211 | now = omap_32k_sync_timer_read(); | 211 | now = omap_32k_sync_timer_read(); |
212 | 212 | ||
213 | while (now - omap_32k_last_tick >= OMAP_32K_TICKS_PER_HZ) { | 213 | while ((signed long)(now - omap_32k_last_tick) |
214 | >= OMAP_32K_TICKS_PER_HZ) { | ||
214 | omap_32k_last_tick += OMAP_32K_TICKS_PER_HZ; | 215 | omap_32k_last_tick += OMAP_32K_TICKS_PER_HZ; |
215 | timer_tick(regs); | 216 | timer_tick(regs); |
216 | } | 217 | } |
diff --git a/arch/arm/vfp/Makefile b/arch/arm/vfp/Makefile index afabac31dd1d..7e136e77971a 100644 --- a/arch/arm/vfp/Makefile +++ b/arch/arm/vfp/Makefile | |||
@@ -7,6 +7,9 @@ | |||
7 | # EXTRA_CFLAGS := -DDEBUG | 7 | # EXTRA_CFLAGS := -DDEBUG |
8 | # EXTRA_AFLAGS := -DDEBUG | 8 | # EXTRA_AFLAGS := -DDEBUG |
9 | 9 | ||
10 | AFLAGS :=$(AFLAGS:-msoft-float=-Wa,-mfpu=softvfp+vfp) | ||
11 | LDFLAGS +=--no-warn-mismatch | ||
12 | |||
10 | obj-y += vfp.o | 13 | obj-y += vfp.o |
11 | 14 | ||
12 | vfp-$(CONFIG_VFP) += entry.o vfpmodule.o vfphw.o vfpsingle.o vfpdouble.o | 15 | vfp-$(CONFIG_VFP) += vfpmodule.o entry.o vfphw.o vfpsingle.o vfpdouble.o |
diff --git a/arch/arm/vfp/vfphw.S b/arch/arm/vfp/vfphw.S index a3f65b47aea9..eb683cd77163 100644 --- a/arch/arm/vfp/vfphw.S +++ b/arch/arm/vfp/vfphw.S | |||
@@ -192,7 +192,7 @@ vfp_get_double: | |||
192 | add pc, pc, r0, lsl #3 | 192 | add pc, pc, r0, lsl #3 |
193 | mov r0, r0 | 193 | mov r0, r0 |
194 | .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 | 194 | .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |
195 | mrrc p11, 1, r0, r1, c\dr @ fmrrd r0, r1, d\dr | 195 | fmrrd r0, r1, d\dr |
196 | mov pc, lr | 196 | mov pc, lr |
197 | .endr | 197 | .endr |
198 | 198 | ||
@@ -206,6 +206,6 @@ vfp_put_double: | |||
206 | add pc, pc, r0, lsl #3 | 206 | add pc, pc, r0, lsl #3 |
207 | mov r0, r0 | 207 | mov r0, r0 |
208 | .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 | 208 | .irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |
209 | mcrr p11, 1, r1, r2, c\dr @ fmdrr r1, r2, d\dr | 209 | fmdrr d\dr, r1, r2 |
210 | mov pc, lr | 210 | mov pc, lr |
211 | .endr | 211 | .endr |
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 03486be04193..2476f4c2e760 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/signal.h> | 15 | #include <linux/signal.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | |||
19 | #include <asm/thread_notify.h> | ||
18 | #include <asm/vfp.h> | 20 | #include <asm/vfp.h> |
19 | 21 | ||
20 | #include "vfpinstr.h" | 22 | #include "vfpinstr.h" |
@@ -36,38 +38,55 @@ union vfp_state *last_VFP_context; | |||
36 | */ | 38 | */ |
37 | unsigned int VFP_arch; | 39 | unsigned int VFP_arch; |
38 | 40 | ||
39 | /* | 41 | static int vfp_notifier(struct notifier_block *self, unsigned long cmd, void *v) |
40 | * Per-thread VFP initialisation. | ||
41 | */ | ||
42 | void vfp_flush_thread(union vfp_state *vfp) | ||
43 | { | 42 | { |
44 | memset(vfp, 0, sizeof(union vfp_state)); | 43 | struct thread_info *thread = v; |
44 | union vfp_state *vfp = &thread->vfpstate; | ||
45 | 45 | ||
46 | vfp->hard.fpexc = FPEXC_ENABLE; | 46 | switch (cmd) { |
47 | vfp->hard.fpscr = FPSCR_ROUND_NEAREST; | 47 | case THREAD_NOTIFY_FLUSH: |
48 | /* | ||
49 | * Per-thread VFP initialisation. | ||
50 | */ | ||
51 | memset(vfp, 0, sizeof(union vfp_state)); | ||
48 | 52 | ||
49 | /* | 53 | vfp->hard.fpexc = FPEXC_ENABLE; |
50 | * Disable VFP to ensure we initialise it first. | 54 | vfp->hard.fpscr = FPSCR_ROUND_NEAREST; |
51 | */ | ||
52 | fmxr(FPEXC, fmrx(FPEXC) & ~FPEXC_ENABLE); | ||
53 | 55 | ||
54 | /* | 56 | /* |
55 | * Ensure we don't try to overwrite our newly initialised | 57 | * Disable VFP to ensure we initialise it first. |
56 | * state information on the first fault. | 58 | */ |
57 | */ | 59 | fmxr(FPEXC, fmrx(FPEXC) & ~FPEXC_ENABLE); |
58 | if (last_VFP_context == vfp) | ||
59 | last_VFP_context = NULL; | ||
60 | } | ||
61 | 60 | ||
62 | /* | 61 | /* |
63 | * Per-thread VFP cleanup. | 62 | * FALLTHROUGH: Ensure we don't try to overwrite our newly |
64 | */ | 63 | * initialised state information on the first fault. |
65 | void vfp_release_thread(union vfp_state *vfp) | 64 | */ |
66 | { | 65 | |
67 | if (last_VFP_context == vfp) | 66 | case THREAD_NOTIFY_RELEASE: |
68 | last_VFP_context = NULL; | 67 | /* |
68 | * Per-thread VFP cleanup. | ||
69 | */ | ||
70 | if (last_VFP_context == vfp) | ||
71 | last_VFP_context = NULL; | ||
72 | break; | ||
73 | |||
74 | case THREAD_NOTIFY_SWITCH: | ||
75 | /* | ||
76 | * Always disable VFP so we can lazily save/restore the | ||
77 | * old state. | ||
78 | */ | ||
79 | fmxr(FPEXC, fmrx(FPEXC) & ~FPEXC_ENABLE); | ||
80 | break; | ||
81 | } | ||
82 | |||
83 | return NOTIFY_DONE; | ||
69 | } | 84 | } |
70 | 85 | ||
86 | static struct notifier_block vfp_notifier_block = { | ||
87 | .notifier_call = vfp_notifier, | ||
88 | }; | ||
89 | |||
71 | /* | 90 | /* |
72 | * Raise a SIGFPE for the current process. | 91 | * Raise a SIGFPE for the current process. |
73 | * sicode describes the signal being raised. | 92 | * sicode describes the signal being raised. |
@@ -281,6 +300,8 @@ static int __init vfp_init(void) | |||
281 | (vfpsid & FPSID_VARIANT_MASK) >> FPSID_VARIANT_BIT, | 300 | (vfpsid & FPSID_VARIANT_MASK) >> FPSID_VARIANT_BIT, |
282 | (vfpsid & FPSID_REV_MASK) >> FPSID_REV_BIT); | 301 | (vfpsid & FPSID_REV_MASK) >> FPSID_REV_BIT); |
283 | vfp_vector = vfp_support_entry; | 302 | vfp_vector = vfp_support_entry; |
303 | |||
304 | thread_register_notifier(&vfp_notifier_block); | ||
284 | } | 305 | } |
285 | return 0; | 306 | return 0; |
286 | } | 307 | } |