diff options
-rw-r--r-- | arch/arm/configs/at91sam9rlek_defconfig | 957 | ||||
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 14 | ||||
-rw-r--r-- | arch/arm/mach-at91/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-sam9rlek.c | 204 |
4 files changed, 1178 insertions, 0 deletions
diff --git a/arch/arm/configs/at91sam9rlek_defconfig b/arch/arm/configs/at91sam9rlek_defconfig new file mode 100644 index 000000000000..fbe8b3049343 --- /dev/null +++ b/arch/arm/configs/at91sam9rlek_defconfig | |||
@@ -0,0 +1,957 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.21 | ||
4 | # Mon May 7 16:30:40 2007 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | # CONFIG_GENERIC_TIME is not set | ||
10 | CONFIG_MMU=y | ||
11 | # CONFIG_NO_IOPORT is not set | ||
12 | CONFIG_GENERIC_HARDIRQS=y | ||
13 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
14 | CONFIG_HARDIRQS_SW_RESEND=y | ||
15 | CONFIG_GENERIC_IRQ_PROBE=y | ||
16 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
17 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
18 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
19 | CONFIG_GENERIC_HWEIGHT=y | ||
20 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
21 | CONFIG_ZONE_DMA=y | ||
22 | CONFIG_VECTORS_BASE=0xffff0000 | ||
23 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
24 | |||
25 | # | ||
26 | # Code maturity level options | ||
27 | # | ||
28 | CONFIG_EXPERIMENTAL=y | ||
29 | CONFIG_BROKEN_ON_SMP=y | ||
30 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
31 | |||
32 | # | ||
33 | # General setup | ||
34 | # | ||
35 | CONFIG_LOCALVERSION="" | ||
36 | # CONFIG_LOCALVERSION_AUTO is not set | ||
37 | # CONFIG_SWAP is not set | ||
38 | CONFIG_SYSVIPC=y | ||
39 | # CONFIG_IPC_NS is not set | ||
40 | CONFIG_SYSVIPC_SYSCTL=y | ||
41 | # CONFIG_POSIX_MQUEUE is not set | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | # CONFIG_TASKSTATS is not set | ||
44 | # CONFIG_UTS_NS is not set | ||
45 | # CONFIG_AUDIT is not set | ||
46 | # CONFIG_IKCONFIG is not set | ||
47 | CONFIG_SYSFS_DEPRECATED=y | ||
48 | # CONFIG_RELAY is not set | ||
49 | CONFIG_BLK_DEV_INITRD=y | ||
50 | CONFIG_INITRAMFS_SOURCE="" | ||
51 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
52 | CONFIG_SYSCTL=y | ||
53 | # CONFIG_EMBEDDED is not set | ||
54 | CONFIG_UID16=y | ||
55 | CONFIG_SYSCTL_SYSCALL=y | ||
56 | CONFIG_KALLSYMS=y | ||
57 | # CONFIG_KALLSYMS_ALL is not set | ||
58 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
59 | CONFIG_HOTPLUG=y | ||
60 | CONFIG_PRINTK=y | ||
61 | CONFIG_BUG=y | ||
62 | CONFIG_ELF_CORE=y | ||
63 | CONFIG_BASE_FULL=y | ||
64 | CONFIG_FUTEX=y | ||
65 | CONFIG_EPOLL=y | ||
66 | CONFIG_SHMEM=y | ||
67 | CONFIG_SLAB=y | ||
68 | CONFIG_VM_EVENT_COUNTERS=y | ||
69 | CONFIG_RT_MUTEXES=y | ||
70 | # CONFIG_TINY_SHMEM is not set | ||
71 | CONFIG_BASE_SMALL=0 | ||
72 | # CONFIG_SLOB is not set | ||
73 | |||
74 | # | ||
75 | # Loadable module support | ||
76 | # | ||
77 | CONFIG_MODULES=y | ||
78 | CONFIG_MODULE_UNLOAD=y | ||
79 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
80 | # CONFIG_MODVERSIONS is not set | ||
81 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
82 | CONFIG_KMOD=y | ||
83 | |||
84 | # | ||
85 | # Block layer | ||
86 | # | ||
87 | CONFIG_BLOCK=y | ||
88 | # CONFIG_LBD is not set | ||
89 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
90 | # CONFIG_LSF is not set | ||
91 | |||
92 | # | ||
93 | # IO Schedulers | ||
94 | # | ||
95 | CONFIG_IOSCHED_NOOP=y | ||
96 | CONFIG_IOSCHED_AS=y | ||
97 | # CONFIG_IOSCHED_DEADLINE is not set | ||
98 | # CONFIG_IOSCHED_CFQ is not set | ||
99 | CONFIG_DEFAULT_AS=y | ||
100 | # CONFIG_DEFAULT_DEADLINE is not set | ||
101 | # CONFIG_DEFAULT_CFQ is not set | ||
102 | # CONFIG_DEFAULT_NOOP is not set | ||
103 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
104 | |||
105 | # | ||
106 | # System Type | ||
107 | # | ||
108 | # CONFIG_ARCH_AAEC2000 is not set | ||
109 | # CONFIG_ARCH_INTEGRATOR is not set | ||
110 | # CONFIG_ARCH_REALVIEW is not set | ||
111 | # CONFIG_ARCH_VERSATILE is not set | ||
112 | CONFIG_ARCH_AT91=y | ||
113 | # CONFIG_ARCH_CLPS7500 is not set | ||
114 | # CONFIG_ARCH_CLPS711X is not set | ||
115 | # CONFIG_ARCH_CO285 is not set | ||
116 | # CONFIG_ARCH_EBSA110 is not set | ||
117 | # CONFIG_ARCH_EP93XX is not set | ||
118 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
119 | # CONFIG_ARCH_NETX is not set | ||
120 | # CONFIG_ARCH_H720X is not set | ||
121 | # CONFIG_ARCH_IMX is not set | ||
122 | # CONFIG_ARCH_IOP32X is not set | ||
123 | # CONFIG_ARCH_IOP33X is not set | ||
124 | # CONFIG_ARCH_IOP13XX is not set | ||
125 | # CONFIG_ARCH_IXP4XX is not set | ||
126 | # CONFIG_ARCH_IXP2000 is not set | ||
127 | # CONFIG_ARCH_IXP23XX is not set | ||
128 | # CONFIG_ARCH_L7200 is not set | ||
129 | # CONFIG_ARCH_NS9XXX is not set | ||
130 | # CONFIG_ARCH_PNX4008 is not set | ||
131 | # CONFIG_ARCH_PXA is not set | ||
132 | # CONFIG_ARCH_RPC is not set | ||
133 | # CONFIG_ARCH_SA1100 is not set | ||
134 | # CONFIG_ARCH_S3C2410 is not set | ||
135 | # CONFIG_ARCH_SHARK is not set | ||
136 | # CONFIG_ARCH_LH7A40X is not set | ||
137 | # CONFIG_ARCH_OMAP is not set | ||
138 | |||
139 | # | ||
140 | # Atmel AT91 System-on-Chip | ||
141 | # | ||
142 | # CONFIG_ARCH_AT91RM9200 is not set | ||
143 | # CONFIG_ARCH_AT91SAM9260 is not set | ||
144 | # CONFIG_ARCH_AT91SAM9261 is not set | ||
145 | # CONFIG_ARCH_AT91SAM9263 is not set | ||
146 | CONFIG_ARCH_AT91SAM9RL=y | ||
147 | |||
148 | # | ||
149 | # AT91SAM9RL Board Type | ||
150 | # | ||
151 | CONFIG_MACH_AT91SAM9RLEK=y | ||
152 | |||
153 | # | ||
154 | # AT91 Board Options | ||
155 | # | ||
156 | |||
157 | # | ||
158 | # AT91 Feature Selections | ||
159 | # | ||
160 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
161 | |||
162 | # | ||
163 | # Processor Type | ||
164 | # | ||
165 | CONFIG_CPU_32=y | ||
166 | CONFIG_CPU_ARM926T=y | ||
167 | CONFIG_CPU_32v5=y | ||
168 | CONFIG_CPU_ABRT_EV5TJ=y | ||
169 | CONFIG_CPU_CACHE_VIVT=y | ||
170 | CONFIG_CPU_COPY_V4WB=y | ||
171 | CONFIG_CPU_TLB_V4WBI=y | ||
172 | CONFIG_CPU_CP15=y | ||
173 | CONFIG_CPU_CP15_MMU=y | ||
174 | |||
175 | # | ||
176 | # Processor Features | ||
177 | # | ||
178 | # CONFIG_ARM_THUMB is not set | ||
179 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
180 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
181 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
182 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
183 | # CONFIG_OUTER_CACHE is not set | ||
184 | |||
185 | # | ||
186 | # Bus support | ||
187 | # | ||
188 | |||
189 | # | ||
190 | # PCCARD (PCMCIA/CardBus) support | ||
191 | # | ||
192 | # CONFIG_PCCARD is not set | ||
193 | |||
194 | # | ||
195 | # Kernel Features | ||
196 | # | ||
197 | # CONFIG_PREEMPT is not set | ||
198 | # CONFIG_NO_IDLE_HZ is not set | ||
199 | CONFIG_HZ=100 | ||
200 | # CONFIG_AEABI is not set | ||
201 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
202 | CONFIG_SELECT_MEMORY_MODEL=y | ||
203 | CONFIG_FLATMEM_MANUAL=y | ||
204 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
205 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
206 | CONFIG_FLATMEM=y | ||
207 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
208 | # CONFIG_SPARSEMEM_STATIC is not set | ||
209 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
210 | # CONFIG_RESOURCES_64BIT is not set | ||
211 | CONFIG_ZONE_DMA_FLAG=1 | ||
212 | # CONFIG_LEDS is not set | ||
213 | CONFIG_ALIGNMENT_TRAP=y | ||
214 | |||
215 | # | ||
216 | # Boot options | ||
217 | # | ||
218 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
219 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
220 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,17105363 root=/dev/ram0 rw" | ||
221 | # CONFIG_XIP_KERNEL is not set | ||
222 | # CONFIG_KEXEC is not set | ||
223 | |||
224 | # | ||
225 | # Floating point emulation | ||
226 | # | ||
227 | |||
228 | # | ||
229 | # At least one emulation must be selected | ||
230 | # | ||
231 | CONFIG_FPE_NWFPE=y | ||
232 | # CONFIG_FPE_NWFPE_XP is not set | ||
233 | # CONFIG_FPE_FASTFPE is not set | ||
234 | # CONFIG_VFP is not set | ||
235 | |||
236 | # | ||
237 | # Userspace binary formats | ||
238 | # | ||
239 | CONFIG_BINFMT_ELF=y | ||
240 | # CONFIG_BINFMT_AOUT is not set | ||
241 | # CONFIG_BINFMT_MISC is not set | ||
242 | # CONFIG_ARTHUR is not set | ||
243 | |||
244 | # | ||
245 | # Power management options | ||
246 | # | ||
247 | # CONFIG_PM is not set | ||
248 | |||
249 | # | ||
250 | # Networking | ||
251 | # | ||
252 | CONFIG_NET=y | ||
253 | |||
254 | # | ||
255 | # Networking options | ||
256 | # | ||
257 | # CONFIG_NETDEBUG is not set | ||
258 | # CONFIG_PACKET is not set | ||
259 | CONFIG_UNIX=y | ||
260 | # CONFIG_NET_KEY is not set | ||
261 | # CONFIG_INET is not set | ||
262 | # CONFIG_NETWORK_SECMARK is not set | ||
263 | # CONFIG_NETFILTER is not set | ||
264 | # CONFIG_ATM is not set | ||
265 | # CONFIG_BRIDGE is not set | ||
266 | # CONFIG_VLAN_8021Q is not set | ||
267 | # CONFIG_DECNET is not set | ||
268 | # CONFIG_LLC2 is not set | ||
269 | # CONFIG_IPX is not set | ||
270 | # CONFIG_ATALK is not set | ||
271 | # CONFIG_X25 is not set | ||
272 | # CONFIG_LAPB is not set | ||
273 | # CONFIG_WAN_ROUTER is not set | ||
274 | |||
275 | # | ||
276 | # QoS and/or fair queueing | ||
277 | # | ||
278 | # CONFIG_NET_SCHED is not set | ||
279 | |||
280 | # | ||
281 | # Network testing | ||
282 | # | ||
283 | # CONFIG_NET_PKTGEN is not set | ||
284 | # CONFIG_HAMRADIO is not set | ||
285 | # CONFIG_IRDA is not set | ||
286 | # CONFIG_BT is not set | ||
287 | # CONFIG_IEEE80211 is not set | ||
288 | |||
289 | # | ||
290 | # Device Drivers | ||
291 | # | ||
292 | |||
293 | # | ||
294 | # Generic Driver Options | ||
295 | # | ||
296 | CONFIG_STANDALONE=y | ||
297 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
298 | # CONFIG_FW_LOADER is not set | ||
299 | # CONFIG_DEBUG_DRIVER is not set | ||
300 | # CONFIG_DEBUG_DEVRES is not set | ||
301 | # CONFIG_SYS_HYPERVISOR is not set | ||
302 | |||
303 | # | ||
304 | # Connector - unified userspace <-> kernelspace linker | ||
305 | # | ||
306 | # CONFIG_CONNECTOR is not set | ||
307 | |||
308 | # | ||
309 | # Memory Technology Devices (MTD) | ||
310 | # | ||
311 | CONFIG_MTD=y | ||
312 | # CONFIG_MTD_DEBUG is not set | ||
313 | CONFIG_MTD_CONCAT=y | ||
314 | CONFIG_MTD_PARTITIONS=y | ||
315 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
316 | CONFIG_MTD_CMDLINE_PARTS=y | ||
317 | # CONFIG_MTD_AFS_PARTS is not set | ||
318 | |||
319 | # | ||
320 | # User Modules And Translation Layers | ||
321 | # | ||
322 | CONFIG_MTD_CHAR=y | ||
323 | CONFIG_MTD_BLKDEVS=y | ||
324 | CONFIG_MTD_BLOCK=y | ||
325 | # CONFIG_FTL is not set | ||
326 | # CONFIG_NFTL is not set | ||
327 | # CONFIG_INFTL is not set | ||
328 | # CONFIG_RFD_FTL is not set | ||
329 | # CONFIG_SSFDC is not set | ||
330 | |||
331 | # | ||
332 | # RAM/ROM/Flash chip drivers | ||
333 | # | ||
334 | # CONFIG_MTD_CFI is not set | ||
335 | # CONFIG_MTD_JEDECPROBE is not set | ||
336 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
337 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
338 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
339 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
340 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
341 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
342 | CONFIG_MTD_CFI_I1=y | ||
343 | CONFIG_MTD_CFI_I2=y | ||
344 | # CONFIG_MTD_CFI_I4 is not set | ||
345 | # CONFIG_MTD_CFI_I8 is not set | ||
346 | # CONFIG_MTD_RAM is not set | ||
347 | # CONFIG_MTD_ROM is not set | ||
348 | # CONFIG_MTD_ABSENT is not set | ||
349 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
350 | |||
351 | # | ||
352 | # Mapping drivers for chip access | ||
353 | # | ||
354 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
355 | # CONFIG_MTD_PLATRAM is not set | ||
356 | |||
357 | # | ||
358 | # Self-contained MTD device drivers | ||
359 | # | ||
360 | CONFIG_MTD_DATAFLASH=y | ||
361 | # CONFIG_MTD_M25P80 is not set | ||
362 | # CONFIG_MTD_SLRAM is not set | ||
363 | # CONFIG_MTD_PHRAM is not set | ||
364 | # CONFIG_MTD_MTDRAM is not set | ||
365 | # CONFIG_MTD_BLOCK2MTD is not set | ||
366 | |||
367 | # | ||
368 | # Disk-On-Chip Device Drivers | ||
369 | # | ||
370 | # CONFIG_MTD_DOC2000 is not set | ||
371 | # CONFIG_MTD_DOC2001 is not set | ||
372 | # CONFIG_MTD_DOC2001PLUS is not set | ||
373 | |||
374 | # | ||
375 | # NAND Flash Device Drivers | ||
376 | # | ||
377 | CONFIG_MTD_NAND=y | ||
378 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
379 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
380 | CONFIG_MTD_NAND_IDS=y | ||
381 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
382 | CONFIG_MTD_NAND_AT91=y | ||
383 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
384 | |||
385 | # | ||
386 | # OneNAND Flash Device Drivers | ||
387 | # | ||
388 | # CONFIG_MTD_ONENAND is not set | ||
389 | |||
390 | # | ||
391 | # Parallel port support | ||
392 | # | ||
393 | # CONFIG_PARPORT is not set | ||
394 | |||
395 | # | ||
396 | # Plug and Play support | ||
397 | # | ||
398 | # CONFIG_PNPACPI is not set | ||
399 | |||
400 | # | ||
401 | # Block devices | ||
402 | # | ||
403 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
404 | CONFIG_BLK_DEV_LOOP=y | ||
405 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
406 | # CONFIG_BLK_DEV_NBD is not set | ||
407 | CONFIG_BLK_DEV_RAM=y | ||
408 | CONFIG_BLK_DEV_RAM_COUNT=4 | ||
409 | CONFIG_BLK_DEV_RAM_SIZE=24576 | ||
410 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
411 | # CONFIG_CDROM_PKTCDVD is not set | ||
412 | # CONFIG_ATA_OVER_ETH is not set | ||
413 | |||
414 | # | ||
415 | # SCSI device support | ||
416 | # | ||
417 | # CONFIG_RAID_ATTRS is not set | ||
418 | CONFIG_SCSI=y | ||
419 | # CONFIG_SCSI_TGT is not set | ||
420 | # CONFIG_SCSI_NETLINK is not set | ||
421 | CONFIG_SCSI_PROC_FS=y | ||
422 | |||
423 | # | ||
424 | # SCSI support type (disk, tape, CD-ROM) | ||
425 | # | ||
426 | CONFIG_BLK_DEV_SD=y | ||
427 | # CONFIG_CHR_DEV_ST is not set | ||
428 | # CONFIG_CHR_DEV_OSST is not set | ||
429 | # CONFIG_BLK_DEV_SR is not set | ||
430 | # CONFIG_CHR_DEV_SG is not set | ||
431 | # CONFIG_CHR_DEV_SCH is not set | ||
432 | |||
433 | # | ||
434 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
435 | # | ||
436 | CONFIG_SCSI_MULTI_LUN=y | ||
437 | # CONFIG_SCSI_CONSTANTS is not set | ||
438 | # CONFIG_SCSI_LOGGING is not set | ||
439 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
440 | |||
441 | # | ||
442 | # SCSI Transports | ||
443 | # | ||
444 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
445 | # CONFIG_SCSI_FC_ATTRS is not set | ||
446 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
447 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
448 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
449 | |||
450 | # | ||
451 | # SCSI low-level drivers | ||
452 | # | ||
453 | # CONFIG_SCSI_DEBUG is not set | ||
454 | |||
455 | # | ||
456 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
457 | # | ||
458 | # CONFIG_ATA is not set | ||
459 | |||
460 | # | ||
461 | # Multi-device support (RAID and LVM) | ||
462 | # | ||
463 | # CONFIG_MD is not set | ||
464 | |||
465 | # | ||
466 | # Fusion MPT device support | ||
467 | # | ||
468 | # CONFIG_FUSION is not set | ||
469 | |||
470 | # | ||
471 | # IEEE 1394 (FireWire) support | ||
472 | # | ||
473 | |||
474 | # | ||
475 | # I2O device support | ||
476 | # | ||
477 | |||
478 | # | ||
479 | # Network device support | ||
480 | # | ||
481 | # CONFIG_NETDEVICES 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 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
495 | |||
496 | # | ||
497 | # Userland interfaces | ||
498 | # | ||
499 | CONFIG_INPUT_MOUSEDEV=y | ||
500 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
501 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=320 | ||
502 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=240 | ||
503 | # CONFIG_INPUT_JOYDEV is not set | ||
504 | # CONFIG_INPUT_TSDEV is not set | ||
505 | CONFIG_INPUT_EVDEV=y | ||
506 | # CONFIG_INPUT_EVBUG is not set | ||
507 | |||
508 | # | ||
509 | # Input Device Drivers | ||
510 | # | ||
511 | # CONFIG_INPUT_KEYBOARD is not set | ||
512 | # CONFIG_INPUT_MOUSE is not set | ||
513 | # CONFIG_INPUT_JOYSTICK is not set | ||
514 | CONFIG_INPUT_TOUCHSCREEN=y | ||
515 | # CONFIG_TOUCHSCREEN_ADS7846 is not set | ||
516 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
517 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
518 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
519 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
520 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
521 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
522 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
523 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
524 | # CONFIG_INPUT_MISC is not set | ||
525 | |||
526 | # | ||
527 | # Hardware I/O ports | ||
528 | # | ||
529 | # CONFIG_SERIO is not set | ||
530 | # CONFIG_GAMEPORT is not set | ||
531 | |||
532 | # | ||
533 | # Character devices | ||
534 | # | ||
535 | CONFIG_VT=y | ||
536 | CONFIG_VT_CONSOLE=y | ||
537 | CONFIG_HW_CONSOLE=y | ||
538 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
539 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
540 | |||
541 | # | ||
542 | # Serial drivers | ||
543 | # | ||
544 | # CONFIG_SERIAL_8250 is not set | ||
545 | |||
546 | # | ||
547 | # Non-8250 serial port support | ||
548 | # | ||
549 | CONFIG_SERIAL_ATMEL=y | ||
550 | CONFIG_SERIAL_ATMEL_CONSOLE=y | ||
551 | # CONFIG_SERIAL_ATMEL_TTYAT is not set | ||
552 | CONFIG_SERIAL_CORE=y | ||
553 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
554 | CONFIG_UNIX98_PTYS=y | ||
555 | CONFIG_LEGACY_PTYS=y | ||
556 | CONFIG_LEGACY_PTY_COUNT=256 | ||
557 | |||
558 | # | ||
559 | # IPMI | ||
560 | # | ||
561 | # CONFIG_IPMI_HANDLER is not set | ||
562 | |||
563 | # | ||
564 | # Watchdog Cards | ||
565 | # | ||
566 | CONFIG_WATCHDOG=y | ||
567 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
568 | |||
569 | # | ||
570 | # Watchdog Device Drivers | ||
571 | # | ||
572 | # CONFIG_SOFT_WATCHDOG is not set | ||
573 | CONFIG_HW_RANDOM=y | ||
574 | # CONFIG_NVRAM is not set | ||
575 | # CONFIG_DTLK is not set | ||
576 | # CONFIG_R3964 is not set | ||
577 | # CONFIG_RAW_DRIVER is not set | ||
578 | |||
579 | # | ||
580 | # TPM devices | ||
581 | # | ||
582 | # CONFIG_TCG_TPM is not set | ||
583 | |||
584 | # | ||
585 | # I2C support | ||
586 | # | ||
587 | # CONFIG_I2C is not set | ||
588 | |||
589 | # | ||
590 | # SPI support | ||
591 | # | ||
592 | CONFIG_SPI=y | ||
593 | # CONFIG_SPI_DEBUG is not set | ||
594 | CONFIG_SPI_MASTER=y | ||
595 | |||
596 | # | ||
597 | # SPI Master Controller Drivers | ||
598 | # | ||
599 | CONFIG_SPI_ATMEL=y | ||
600 | # CONFIG_SPI_BITBANG is not set | ||
601 | |||
602 | # | ||
603 | # SPI Protocol Masters | ||
604 | # | ||
605 | # CONFIG_SPI_AT25 is not set | ||
606 | |||
607 | # | ||
608 | # Dallas's 1-wire bus | ||
609 | # | ||
610 | # CONFIG_W1 is not set | ||
611 | |||
612 | # | ||
613 | # Hardware Monitoring support | ||
614 | # | ||
615 | # CONFIG_HWMON is not set | ||
616 | # CONFIG_HWMON_VID is not set | ||
617 | |||
618 | # | ||
619 | # Misc devices | ||
620 | # | ||
621 | |||
622 | # | ||
623 | # Multifunction device drivers | ||
624 | # | ||
625 | # CONFIG_MFD_SM501 is not set | ||
626 | |||
627 | # | ||
628 | # LED devices | ||
629 | # | ||
630 | # CONFIG_NEW_LEDS is not set | ||
631 | |||
632 | # | ||
633 | # LED drivers | ||
634 | # | ||
635 | |||
636 | # | ||
637 | # LED Triggers | ||
638 | # | ||
639 | |||
640 | # | ||
641 | # Multimedia devices | ||
642 | # | ||
643 | # CONFIG_VIDEO_DEV is not set | ||
644 | |||
645 | # | ||
646 | # Digital Video Broadcasting Devices | ||
647 | # | ||
648 | |||
649 | # | ||
650 | # Graphics support | ||
651 | # | ||
652 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
653 | CONFIG_FB=y | ||
654 | # CONFIG_FIRMWARE_EDID is not set | ||
655 | # CONFIG_FB_DDC is not set | ||
656 | CONFIG_FB_CFB_FILLRECT=y | ||
657 | CONFIG_FB_CFB_COPYAREA=y | ||
658 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
659 | # CONFIG_FB_SVGALIB is not set | ||
660 | # CONFIG_FB_MACMODES is not set | ||
661 | # CONFIG_FB_BACKLIGHT is not set | ||
662 | # CONFIG_FB_MODE_HELPERS is not set | ||
663 | # CONFIG_FB_TILEBLITTING is not set | ||
664 | |||
665 | # | ||
666 | # Frame buffer hardware drivers | ||
667 | # | ||
668 | # CONFIG_FB_S1D13XXX is not set | ||
669 | CONFIG_FB_ATMEL=y | ||
670 | # CONFIG_FB_VIRTUAL is not set | ||
671 | |||
672 | # | ||
673 | # Console display driver support | ||
674 | # | ||
675 | # CONFIG_VGA_CONSOLE is not set | ||
676 | CONFIG_DUMMY_CONSOLE=y | ||
677 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
678 | |||
679 | # | ||
680 | # Logo configuration | ||
681 | # | ||
682 | # CONFIG_LOGO is not set | ||
683 | |||
684 | # | ||
685 | # Sound | ||
686 | # | ||
687 | CONFIG_SOUND=y | ||
688 | |||
689 | # | ||
690 | # Advanced Linux Sound Architecture | ||
691 | # | ||
692 | CONFIG_SND=y | ||
693 | CONFIG_SND_TIMER=y | ||
694 | CONFIG_SND_PCM=y | ||
695 | CONFIG_SND_SEQUENCER=y | ||
696 | CONFIG_SND_SEQ_DUMMY=y | ||
697 | CONFIG_SND_OSSEMUL=y | ||
698 | CONFIG_SND_MIXER_OSS=y | ||
699 | CONFIG_SND_PCM_OSS=y | ||
700 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
701 | CONFIG_SND_SEQUENCER_OSS=y | ||
702 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
703 | CONFIG_SND_SUPPORT_OLD_API=y | ||
704 | CONFIG_SND_VERBOSE_PROCFS=y | ||
705 | CONFIG_SND_VERBOSE_PRINTK=y | ||
706 | CONFIG_SND_DEBUG=y | ||
707 | CONFIG_SND_DEBUG_DETECT=y | ||
708 | # CONFIG_SND_PCM_XRUN_DEBUG is not set | ||
709 | |||
710 | # | ||
711 | # Generic devices | ||
712 | # | ||
713 | # CONFIG_SND_DUMMY is not set | ||
714 | # CONFIG_SND_VIRMIDI is not set | ||
715 | # CONFIG_SND_MTPAV is not set | ||
716 | # CONFIG_SND_SERIAL_U16550 is not set | ||
717 | # CONFIG_SND_MPU401 is not set | ||
718 | |||
719 | # | ||
720 | # ALSA ARM devices | ||
721 | # | ||
722 | |||
723 | # | ||
724 | # SoC audio support | ||
725 | # | ||
726 | # CONFIG_SND_SOC is not set | ||
727 | |||
728 | # | ||
729 | # Open Sound System | ||
730 | # | ||
731 | # CONFIG_SOUND_PRIME is not set | ||
732 | |||
733 | # | ||
734 | # HID Devices | ||
735 | # | ||
736 | CONFIG_HID=y | ||
737 | # CONFIG_HID_DEBUG is not set | ||
738 | |||
739 | # | ||
740 | # USB support | ||
741 | # | ||
742 | CONFIG_USB_ARCH_HAS_HCD=y | ||
743 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
744 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
745 | # CONFIG_USB is not set | ||
746 | |||
747 | # | ||
748 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
749 | # | ||
750 | |||
751 | # | ||
752 | # USB Gadget Support | ||
753 | # | ||
754 | # CONFIG_USB_GADGET is not set | ||
755 | |||
756 | # | ||
757 | # MMC/SD Card support | ||
758 | # | ||
759 | CONFIG_MMC=y | ||
760 | # CONFIG_MMC_DEBUG is not set | ||
761 | CONFIG_MMC_BLOCK=y | ||
762 | CONFIG_MMC_AT91=y | ||
763 | |||
764 | # | ||
765 | # Real Time Clock | ||
766 | # | ||
767 | CONFIG_RTC_LIB=y | ||
768 | # CONFIG_RTC_CLASS is not set | ||
769 | |||
770 | # | ||
771 | # File systems | ||
772 | # | ||
773 | CONFIG_EXT2_FS=y | ||
774 | # CONFIG_EXT2_FS_XATTR is not set | ||
775 | # CONFIG_EXT2_FS_XIP is not set | ||
776 | # CONFIG_EXT3_FS is not set | ||
777 | # CONFIG_EXT4DEV_FS is not set | ||
778 | # CONFIG_REISERFS_FS is not set | ||
779 | # CONFIG_JFS_FS is not set | ||
780 | # CONFIG_FS_POSIX_ACL is not set | ||
781 | # CONFIG_XFS_FS is not set | ||
782 | # CONFIG_GFS2_FS is not set | ||
783 | # CONFIG_OCFS2_FS is not set | ||
784 | # CONFIG_MINIX_FS is not set | ||
785 | # CONFIG_ROMFS_FS is not set | ||
786 | CONFIG_INOTIFY=y | ||
787 | CONFIG_INOTIFY_USER=y | ||
788 | # CONFIG_QUOTA is not set | ||
789 | CONFIG_DNOTIFY=y | ||
790 | # CONFIG_AUTOFS_FS is not set | ||
791 | # CONFIG_AUTOFS4_FS is not set | ||
792 | # CONFIG_FUSE_FS is not set | ||
793 | |||
794 | # | ||
795 | # CD-ROM/DVD Filesystems | ||
796 | # | ||
797 | # CONFIG_ISO9660_FS is not set | ||
798 | # CONFIG_UDF_FS is not set | ||
799 | |||
800 | # | ||
801 | # DOS/FAT/NT Filesystems | ||
802 | # | ||
803 | CONFIG_FAT_FS=y | ||
804 | CONFIG_MSDOS_FS=y | ||
805 | CONFIG_VFAT_FS=y | ||
806 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
807 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
808 | # CONFIG_NTFS_FS is not set | ||
809 | |||
810 | # | ||
811 | # Pseudo filesystems | ||
812 | # | ||
813 | CONFIG_PROC_FS=y | ||
814 | CONFIG_PROC_SYSCTL=y | ||
815 | CONFIG_SYSFS=y | ||
816 | CONFIG_TMPFS=y | ||
817 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
818 | # CONFIG_HUGETLB_PAGE is not set | ||
819 | CONFIG_RAMFS=y | ||
820 | # CONFIG_CONFIGFS_FS is not set | ||
821 | |||
822 | # | ||
823 | # Miscellaneous filesystems | ||
824 | # | ||
825 | # CONFIG_ADFS_FS is not set | ||
826 | # CONFIG_AFFS_FS is not set | ||
827 | # CONFIG_HFS_FS is not set | ||
828 | # CONFIG_HFSPLUS_FS is not set | ||
829 | # CONFIG_BEFS_FS is not set | ||
830 | # CONFIG_BFS_FS is not set | ||
831 | # CONFIG_EFS_FS is not set | ||
832 | # CONFIG_JFFS2_FS is not set | ||
833 | CONFIG_CRAMFS=y | ||
834 | # CONFIG_VXFS_FS is not set | ||
835 | # CONFIG_HPFS_FS is not set | ||
836 | # CONFIG_QNX4FS_FS is not set | ||
837 | # CONFIG_SYSV_FS is not set | ||
838 | # CONFIG_UFS_FS is not set | ||
839 | |||
840 | # | ||
841 | # Network File Systems | ||
842 | # | ||
843 | |||
844 | # | ||
845 | # Partition Types | ||
846 | # | ||
847 | # CONFIG_PARTITION_ADVANCED is not set | ||
848 | CONFIG_MSDOS_PARTITION=y | ||
849 | |||
850 | # | ||
851 | # Native Language Support | ||
852 | # | ||
853 | CONFIG_NLS=y | ||
854 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
855 | CONFIG_NLS_CODEPAGE_437=y | ||
856 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
857 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
858 | CONFIG_NLS_CODEPAGE_850=y | ||
859 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
860 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
861 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
862 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
863 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
864 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
865 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
866 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
867 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
868 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
869 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
870 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
871 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
872 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
873 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
874 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
875 | # CONFIG_NLS_ISO8859_8 is not set | ||
876 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
877 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
878 | # CONFIG_NLS_ASCII is not set | ||
879 | CONFIG_NLS_ISO8859_1=y | ||
880 | # CONFIG_NLS_ISO8859_2 is not set | ||
881 | # CONFIG_NLS_ISO8859_3 is not set | ||
882 | # CONFIG_NLS_ISO8859_4 is not set | ||
883 | # CONFIG_NLS_ISO8859_5 is not set | ||
884 | # CONFIG_NLS_ISO8859_6 is not set | ||
885 | # CONFIG_NLS_ISO8859_7 is not set | ||
886 | # CONFIG_NLS_ISO8859_9 is not set | ||
887 | # CONFIG_NLS_ISO8859_13 is not set | ||
888 | # CONFIG_NLS_ISO8859_14 is not set | ||
889 | CONFIG_NLS_ISO8859_15=y | ||
890 | # CONFIG_NLS_KOI8_R is not set | ||
891 | # CONFIG_NLS_KOI8_U is not set | ||
892 | CONFIG_NLS_UTF8=y | ||
893 | |||
894 | # | ||
895 | # Profiling support | ||
896 | # | ||
897 | # CONFIG_PROFILING is not set | ||
898 | |||
899 | # | ||
900 | # Kernel hacking | ||
901 | # | ||
902 | # CONFIG_PRINTK_TIME is not set | ||
903 | CONFIG_ENABLE_MUST_CHECK=y | ||
904 | # CONFIG_MAGIC_SYSRQ is not set | ||
905 | # CONFIG_UNUSED_SYMBOLS is not set | ||
906 | # CONFIG_DEBUG_FS is not set | ||
907 | # CONFIG_HEADERS_CHECK is not set | ||
908 | CONFIG_DEBUG_KERNEL=y | ||
909 | # CONFIG_DEBUG_SHIRQ is not set | ||
910 | CONFIG_LOG_BUF_SHIFT=14 | ||
911 | CONFIG_DETECT_SOFTLOCKUP=y | ||
912 | # CONFIG_SCHEDSTATS is not set | ||
913 | # CONFIG_TIMER_STATS is not set | ||
914 | # CONFIG_DEBUG_SLAB is not set | ||
915 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
916 | # CONFIG_RT_MUTEX_TESTER is not set | ||
917 | # CONFIG_DEBUG_SPINLOCK is not set | ||
918 | # CONFIG_DEBUG_MUTEXES is not set | ||
919 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
920 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
921 | # CONFIG_DEBUG_KOBJECT is not set | ||
922 | CONFIG_DEBUG_BUGVERBOSE=y | ||
923 | CONFIG_DEBUG_INFO=y | ||
924 | # CONFIG_DEBUG_VM is not set | ||
925 | # CONFIG_DEBUG_LIST is not set | ||
926 | CONFIG_FRAME_POINTER=y | ||
927 | CONFIG_FORCED_INLINING=y | ||
928 | # CONFIG_RCU_TORTURE_TEST is not set | ||
929 | # CONFIG_FAULT_INJECTION is not set | ||
930 | CONFIG_DEBUG_USER=y | ||
931 | # CONFIG_DEBUG_ERRORS is not set | ||
932 | CONFIG_DEBUG_LL=y | ||
933 | # CONFIG_DEBUG_ICEDCC is not set | ||
934 | |||
935 | # | ||
936 | # Security options | ||
937 | # | ||
938 | # CONFIG_KEYS is not set | ||
939 | # CONFIG_SECURITY is not set | ||
940 | |||
941 | # | ||
942 | # Cryptographic options | ||
943 | # | ||
944 | # CONFIG_CRYPTO is not set | ||
945 | |||
946 | # | ||
947 | # Library routines | ||
948 | # | ||
949 | CONFIG_BITREVERSE=y | ||
950 | # CONFIG_CRC_CCITT is not set | ||
951 | # CONFIG_CRC16 is not set | ||
952 | CONFIG_CRC32=y | ||
953 | # CONFIG_LIBCRC32C is not set | ||
954 | CONFIG_ZLIB_INFLATE=y | ||
955 | CONFIG_PLIST=y | ||
956 | CONFIG_HAS_IOMEM=y | ||
957 | CONFIG_HAS_IOPORT=y | ||
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 1ba120c5cd0c..a31157f1655a 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -155,6 +155,20 @@ endif | |||
155 | 155 | ||
156 | # ---------------------------------------------------------- | 156 | # ---------------------------------------------------------- |
157 | 157 | ||
158 | if ARCH_AT91SAM9RL | ||
159 | |||
160 | comment "AT91SAM9RL Board Type" | ||
161 | |||
162 | config MACH_AT91SAM9RLEK | ||
163 | bool "Atmel AT91SAM9RL-EK Evaluation Kit" | ||
164 | depends on ARCH_AT91SAM9RL | ||
165 | help | ||
166 | Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit. | ||
167 | |||
168 | endif | ||
169 | |||
170 | # ---------------------------------------------------------- | ||
171 | |||
158 | comment "AT91 Board Options" | 172 | comment "AT91 Board Options" |
159 | 173 | ||
160 | config MTD_AT91_DATAFLASH_CARD | 174 | config MTD_AT91_DATAFLASH_CARD |
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 66d79e6c68a3..56b0d06c764b 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
@@ -37,6 +37,9 @@ obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o | |||
37 | # AT91SAM9263 board-specific support | 37 | # AT91SAM9263 board-specific support |
38 | obj-$(CONFIG_MACH_AT91SAM9263EK) += board-sam9263ek.o | 38 | obj-$(CONFIG_MACH_AT91SAM9263EK) += board-sam9263ek.o |
39 | 39 | ||
40 | # AT91SAM9RL board-specific support | ||
41 | obj-$(CONFIG_MACH_AT91SAM9RLEK) += board-sam9rlek.o | ||
42 | |||
40 | # LEDs support | 43 | # LEDs support |
41 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o | 44 | led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o |
42 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o | 45 | led-$(CONFIG_MACH_AT91RM9200EK) += leds.o |
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c new file mode 100644 index 000000000000..30c79aca84d4 --- /dev/null +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -0,0 +1,204 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2005 SAN People | ||
3 | * Copyright (C) 2007 Atmel Corporation | ||
4 | * | ||
5 | * This file is subject to the terms and conditions of the GNU General Public | ||
6 | * License. See the file COPYING in the main directory of this archive for | ||
7 | * more details. | ||
8 | */ | ||
9 | |||
10 | #include <linux/types.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/mm.h> | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | #include <linux/spi/spi.h> | ||
16 | #include <linux/fb.h> | ||
17 | #include <linux/clk.h> | ||
18 | |||
19 | #include <video/atmel_lcdc.h> | ||
20 | |||
21 | #include <asm/hardware.h> | ||
22 | #include <asm/setup.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/irq.h> | ||
25 | |||
26 | #include <asm/mach/arch.h> | ||
27 | #include <asm/mach/map.h> | ||
28 | #include <asm/mach/irq.h> | ||
29 | |||
30 | #include <asm/arch/board.h> | ||
31 | #include <asm/arch/gpio.h> | ||
32 | #include <asm/arch/at91sam926x_mc.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | |||
36 | |||
37 | /* | ||
38 | * Serial port configuration. | ||
39 | * 0 .. 3 = USART0 .. USART3 | ||
40 | * 4 = DBGU | ||
41 | */ | ||
42 | static struct at91_uart_config __initdata ek_uart_config = { | ||
43 | .console_tty = 0, /* ttyS0 */ | ||
44 | .nr_tty = 2, | ||
45 | .tty_map = { 4, 0, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
46 | }; | ||
47 | |||
48 | static void __init ek_map_io(void) | ||
49 | { | ||
50 | /* Initialize processor: 12.000 MHz crystal */ | ||
51 | at91sam9rl_initialize(12000000); | ||
52 | |||
53 | /* Setup the serial ports and console */ | ||
54 | at91_init_serial(&ek_uart_config); | ||
55 | } | ||
56 | |||
57 | static void __init ek_init_irq(void) | ||
58 | { | ||
59 | at91sam9rl_init_interrupts(NULL); | ||
60 | } | ||
61 | |||
62 | |||
63 | /* | ||
64 | * MCI (SD/MMC) | ||
65 | */ | ||
66 | static struct at91_mmc_data __initdata ek_mmc_data = { | ||
67 | .wire4 = 1, | ||
68 | .det_pin = AT91_PIN_PA15, | ||
69 | // .wp_pin = ... not connected | ||
70 | // .vcc_pin = ... not connected | ||
71 | }; | ||
72 | |||
73 | |||
74 | /* | ||
75 | * NAND flash | ||
76 | */ | ||
77 | static struct mtd_partition __initdata ek_nand_partition[] = { | ||
78 | { | ||
79 | .name = "Partition 1", | ||
80 | .offset = 0, | ||
81 | .size = 256 * 1024, | ||
82 | }, | ||
83 | { | ||
84 | .name = "Partition 2", | ||
85 | .offset = 256 * 1024 , | ||
86 | .size = MTDPART_SIZ_FULL, | ||
87 | }, | ||
88 | }; | ||
89 | |||
90 | static struct mtd_partition *nand_partitions(int size, int *num_partitions) | ||
91 | { | ||
92 | *num_partitions = ARRAY_SIZE(ek_nand_partition); | ||
93 | return ek_nand_partition; | ||
94 | } | ||
95 | |||
96 | static struct at91_nand_data __initdata ek_nand_data = { | ||
97 | .ale = 21, | ||
98 | .cle = 22, | ||
99 | // .det_pin = ... not connected | ||
100 | .rdy_pin = AT91_PIN_PD17, | ||
101 | .enable_pin = AT91_PIN_PB6, | ||
102 | .partition_info = nand_partitions, | ||
103 | .bus_width_16 = 0, | ||
104 | }; | ||
105 | |||
106 | |||
107 | /* | ||
108 | * SPI devices | ||
109 | */ | ||
110 | static struct spi_board_info ek_spi_devices[] = { | ||
111 | { /* DataFlash chip */ | ||
112 | .modalias = "mtd_dataflash", | ||
113 | .chip_select = 0, | ||
114 | .max_speed_hz = 15 * 1000 * 1000, | ||
115 | .bus_num = 0, | ||
116 | }, | ||
117 | }; | ||
118 | |||
119 | |||
120 | /* | ||
121 | * LCD Controller | ||
122 | */ | ||
123 | #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE) | ||
124 | static struct fb_videomode at91_tft_vga_modes[] = { | ||
125 | { | ||
126 | .name = "TX09D50VM1CCA @ 60", | ||
127 | .refresh = 60, | ||
128 | .xres = 240, .yres = 320, | ||
129 | .pixclock = KHZ2PICOS(4965), | ||
130 | |||
131 | .left_margin = 1, .right_margin = 33, | ||
132 | .upper_margin = 1, .lower_margin = 0, | ||
133 | .hsync_len = 5, .vsync_len = 1, | ||
134 | |||
135 | .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | ||
136 | .vmode = FB_VMODE_NONINTERLACED, | ||
137 | }, | ||
138 | }; | ||
139 | |||
140 | static struct fb_monspecs at91fb_default_monspecs = { | ||
141 | .manufacturer = "HIT", | ||
142 | .monitor = "TX09D50VM1CCA", | ||
143 | |||
144 | .modedb = at91_tft_vga_modes, | ||
145 | .modedb_len = ARRAY_SIZE(at91_tft_vga_modes), | ||
146 | .hfmin = 15000, | ||
147 | .hfmax = 64000, | ||
148 | .vfmin = 50, | ||
149 | .vfmax = 150, | ||
150 | }; | ||
151 | |||
152 | #define AT91SAM9RL_DEFAULT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \ | ||
153 | | ATMEL_LCDC_DISTYPE_TFT \ | ||
154 | | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE) | ||
155 | |||
156 | static void at91_lcdc_power_control(int on) | ||
157 | { | ||
158 | if (on) | ||
159 | at91_set_gpio_value(AT91_PIN_PA30, 0); /* power up */ | ||
160 | else | ||
161 | at91_set_gpio_value(AT91_PIN_PA30, 1); /* power down */ | ||
162 | } | ||
163 | |||
164 | /* Driver datas */ | ||
165 | static struct atmel_lcdfb_info __initdata ek_lcdc_data = { | ||
166 | .default_bpp = 16, | ||
167 | .default_dmacon = ATMEL_LCDC_DMAEN, | ||
168 | .default_lcdcon2 = AT91SAM9RL_DEFAULT_LCDCON2, | ||
169 | .default_monspecs = &at91fb_default_monspecs, | ||
170 | .atmel_lcdfb_power_control = at91_lcdc_power_control, | ||
171 | .guard_time = 1, | ||
172 | }; | ||
173 | |||
174 | #else | ||
175 | static struct atmel_lcdfb_info __initdata ek_lcdc_data; | ||
176 | #endif | ||
177 | |||
178 | |||
179 | static void __init ek_board_init(void) | ||
180 | { | ||
181 | /* Serial */ | ||
182 | at91_add_device_serial(); | ||
183 | /* I2C */ | ||
184 | at91_add_device_i2c(); | ||
185 | /* NAND */ | ||
186 | at91_add_device_nand(&ek_nand_data); | ||
187 | /* SPI */ | ||
188 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | ||
189 | /* MMC */ | ||
190 | at91_add_device_mmc(0, &ek_mmc_data); | ||
191 | /* LCD Controller */ | ||
192 | at91_add_device_lcdc(&ek_lcdc_data); | ||
193 | } | ||
194 | |||
195 | MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK") | ||
196 | /* Maintainer: Atmel */ | ||
197 | .phys_io = AT91_BASE_SYS, | ||
198 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
199 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
200 | .timer = &at91sam926x_timer, | ||
201 | .map_io = ek_map_io, | ||
202 | .init_irq = ek_init_irq, | ||
203 | .init_machine = ek_board_init, | ||
204 | MACHINE_END | ||