diff options
author | Steve Birtles <arm_kernel_development@micromark.net.cn> | 2008-02-08 22:49:55 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-03-28 13:37:07 -0400 |
commit | 3ad0920d7b11a88379ec4db186be3eee667c4278 (patch) | |
tree | bb122eab3a9db8e1f3f2b4b6f1417a167f7ac942 | |
parent | 05dda977f2574c3341abef9b74c27d2b362e1e3a (diff) |
[ARM] 4825/1: adds support for YL9200 board
1. Configuration file for YL9200
2. Board file fro YL9200
Adds support for the UCdragon YL9200 board available widly in China
Signed-off-by: steve birtles <arm_kernel_development@micromark.net.cn>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/configs/yl9200_defconfig | 1216 | ||||
-rwxr-xr-x | arch/arm/mach-at91/board-yl-9200.c | 683 |
2 files changed, 1899 insertions, 0 deletions
diff --git a/arch/arm/configs/yl9200_defconfig b/arch/arm/configs/yl9200_defconfig new file mode 100644 index 000000000000..26de37f74686 --- /dev/null +++ b/arch/arm/configs/yl9200_defconfig | |||
@@ -0,0 +1,1216 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.24-rc6 | ||
4 | # Fri Jan 11 09:53:59 2008 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_SUPPORT=y | ||
15 | CONFIG_LOCKDEP_SUPPORT=y | ||
16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | ||
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
24 | CONFIG_ZONE_DMA=y | ||
25 | CONFIG_VECTORS_BASE=0xffff0000 | ||
26 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
27 | |||
28 | # | ||
29 | # General setup | ||
30 | # | ||
31 | # CONFIG_EXPERIMENTAL is not set | ||
32 | CONFIG_BROKEN_ON_SMP=y | ||
33 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
34 | CONFIG_LOCALVERSION="" | ||
35 | CONFIG_LOCALVERSION_AUTO=y | ||
36 | # CONFIG_SWAP is not set | ||
37 | CONFIG_SYSVIPC=y | ||
38 | CONFIG_SYSVIPC_SYSCTL=y | ||
39 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
40 | # CONFIG_TASKSTATS is not set | ||
41 | # CONFIG_AUDIT is not set | ||
42 | # CONFIG_IKCONFIG is not set | ||
43 | CONFIG_LOG_BUF_SHIFT=14 | ||
44 | # CONFIG_CGROUPS is not set | ||
45 | CONFIG_FAIR_GROUP_SCHED=y | ||
46 | CONFIG_FAIR_USER_SCHED=y | ||
47 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
48 | # CONFIG_SYSFS_DEPRECATED is not set | ||
49 | # CONFIG_RELAY is not set | ||
50 | CONFIG_BLK_DEV_INITRD=y | ||
51 | CONFIG_INITRAMFS_SOURCE="" | ||
52 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
53 | CONFIG_SYSCTL=y | ||
54 | # CONFIG_EMBEDDED is not set | ||
55 | CONFIG_UID16=y | ||
56 | CONFIG_SYSCTL_SYSCALL=y | ||
57 | CONFIG_KALLSYMS=y | ||
58 | # CONFIG_KALLSYMS_ALL is not set | ||
59 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
60 | CONFIG_HOTPLUG=y | ||
61 | CONFIG_PRINTK=y | ||
62 | CONFIG_BUG=y | ||
63 | CONFIG_ELF_CORE=y | ||
64 | CONFIG_BASE_FULL=y | ||
65 | CONFIG_FUTEX=y | ||
66 | CONFIG_ANON_INODES=y | ||
67 | CONFIG_EPOLL=y | ||
68 | CONFIG_SIGNALFD=y | ||
69 | CONFIG_EVENTFD=y | ||
70 | CONFIG_SHMEM=y | ||
71 | CONFIG_VM_EVENT_COUNTERS=y | ||
72 | CONFIG_SLUB_DEBUG=y | ||
73 | # CONFIG_SLAB is not set | ||
74 | CONFIG_SLUB=y | ||
75 | # CONFIG_SLOB is not set | ||
76 | CONFIG_RT_MUTEXES=y | ||
77 | # CONFIG_TINY_SHMEM is not set | ||
78 | CONFIG_BASE_SMALL=0 | ||
79 | CONFIG_MODULES=y | ||
80 | CONFIG_MODULE_UNLOAD=y | ||
81 | # CONFIG_MODVERSIONS is not set | ||
82 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
83 | CONFIG_KMOD=y | ||
84 | CONFIG_BLOCK=y | ||
85 | # CONFIG_LBD is not set | ||
86 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
87 | # CONFIG_LSF is not set | ||
88 | |||
89 | # | ||
90 | # IO Schedulers | ||
91 | # | ||
92 | CONFIG_IOSCHED_NOOP=y | ||
93 | # CONFIG_IOSCHED_AS is not set | ||
94 | # CONFIG_IOSCHED_DEADLINE is not set | ||
95 | # CONFIG_IOSCHED_CFQ is not set | ||
96 | # CONFIG_DEFAULT_AS is not set | ||
97 | # CONFIG_DEFAULT_DEADLINE is not set | ||
98 | # CONFIG_DEFAULT_CFQ is not set | ||
99 | CONFIG_DEFAULT_NOOP=y | ||
100 | CONFIG_DEFAULT_IOSCHED="noop" | ||
101 | |||
102 | # | ||
103 | # System Type | ||
104 | # | ||
105 | # CONFIG_ARCH_AAEC2000 is not set | ||
106 | # CONFIG_ARCH_INTEGRATOR is not set | ||
107 | # CONFIG_ARCH_REALVIEW is not set | ||
108 | # CONFIG_ARCH_VERSATILE is not set | ||
109 | CONFIG_ARCH_AT91=y | ||
110 | # CONFIG_ARCH_CLPS7500 is not set | ||
111 | # CONFIG_ARCH_CLPS711X is not set | ||
112 | # CONFIG_ARCH_CO285 is not set | ||
113 | # CONFIG_ARCH_EBSA110 is not set | ||
114 | # CONFIG_ARCH_EP93XX is not set | ||
115 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
116 | # CONFIG_ARCH_NETX is not set | ||
117 | # CONFIG_ARCH_H720X is not set | ||
118 | # CONFIG_ARCH_IMX is not set | ||
119 | # CONFIG_ARCH_IOP13XX is not set | ||
120 | # CONFIG_ARCH_IOP32X is not set | ||
121 | # CONFIG_ARCH_IOP33X is not set | ||
122 | # CONFIG_ARCH_IXP23XX is not set | ||
123 | # CONFIG_ARCH_IXP2000 is not set | ||
124 | # CONFIG_ARCH_IXP4XX is not set | ||
125 | # CONFIG_ARCH_L7200 is not set | ||
126 | # CONFIG_ARCH_KS8695 is not set | ||
127 | # CONFIG_ARCH_NS9XXX is not set | ||
128 | # CONFIG_ARCH_MXC is not set | ||
129 | # CONFIG_ARCH_PNX4008 is not set | ||
130 | # CONFIG_ARCH_PXA is not set | ||
131 | # CONFIG_ARCH_RPC is not set | ||
132 | # CONFIG_ARCH_SA1100 is not set | ||
133 | # CONFIG_ARCH_S3C2410 is not set | ||
134 | # CONFIG_ARCH_SHARK is not set | ||
135 | # CONFIG_ARCH_LH7A40X is not set | ||
136 | # CONFIG_ARCH_DAVINCI is not set | ||
137 | # CONFIG_ARCH_OMAP is not set | ||
138 | |||
139 | # | ||
140 | # Boot options | ||
141 | # | ||
142 | |||
143 | # | ||
144 | # Power management | ||
145 | # | ||
146 | |||
147 | # | ||
148 | # Atmel AT91 System-on-Chip | ||
149 | # | ||
150 | CONFIG_ARCH_AT91RM9200=y | ||
151 | # CONFIG_ARCH_AT91SAM9260 is not set | ||
152 | # CONFIG_ARCH_AT91SAM9261 is not set | ||
153 | # CONFIG_ARCH_AT91SAM9263 is not set | ||
154 | # CONFIG_ARCH_AT91SAM9RL is not set | ||
155 | # CONFIG_ARCH_AT91X40 is not set | ||
156 | CONFIG_AT91_PMC_UNIT=y | ||
157 | |||
158 | # | ||
159 | # AT91RM9200 Board Type | ||
160 | # | ||
161 | # CONFIG_MACH_ONEARM is not set | ||
162 | CONFIG_ARCH_AT91RM9200DK=y | ||
163 | # CONFIG_MACH_AT91RM9200EK is not set | ||
164 | # CONFIG_MACH_CSB337 is not set | ||
165 | # CONFIG_MACH_CSB637 is not set | ||
166 | # CONFIG_MACH_CARMEVA is not set | ||
167 | # CONFIG_MACH_ATEB9200 is not set | ||
168 | # CONFIG_MACH_KB9200 is not set | ||
169 | # CONFIG_MACH_PICOTUX2XX is not set | ||
170 | # CONFIG_MACH_KAFA is not set | ||
171 | CONFIG_MACH_YL9200=y | ||
172 | |||
173 | # | ||
174 | # AT91 Board Options | ||
175 | # | ||
176 | # CONFIG_MTD_AT91_DATAFLASH_CARD is not set | ||
177 | |||
178 | # | ||
179 | # AT91 Feature Selections | ||
180 | # | ||
181 | # CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set | ||
182 | |||
183 | # | ||
184 | # Processor Type | ||
185 | # | ||
186 | CONFIG_CPU_32=y | ||
187 | CONFIG_CPU_ARM920T=y | ||
188 | CONFIG_CPU_32v4T=y | ||
189 | CONFIG_CPU_ABRT_EV4T=y | ||
190 | CONFIG_CPU_CACHE_V4WT=y | ||
191 | CONFIG_CPU_CACHE_VIVT=y | ||
192 | CONFIG_CPU_COPY_V4WB=y | ||
193 | CONFIG_CPU_TLB_V4WBI=y | ||
194 | CONFIG_CPU_CP15=y | ||
195 | CONFIG_CPU_CP15_MMU=y | ||
196 | |||
197 | # | ||
198 | # Processor Features | ||
199 | # | ||
200 | # CONFIG_ARM_THUMB is not set | ||
201 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
202 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
203 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
204 | # CONFIG_OUTER_CACHE is not set | ||
205 | |||
206 | # | ||
207 | # Bus support | ||
208 | # | ||
209 | # CONFIG_PCI_SYSCALL is not set | ||
210 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
211 | # CONFIG_PCCARD is not set | ||
212 | |||
213 | # | ||
214 | # Kernel Features | ||
215 | # | ||
216 | # CONFIG_TICK_ONESHOT is not set | ||
217 | # CONFIG_NO_HZ is not set | ||
218 | # CONFIG_HIGH_RES_TIMERS is not set | ||
219 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
220 | CONFIG_HZ=100 | ||
221 | # CONFIG_AEABI is not set | ||
222 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
223 | CONFIG_FLATMEM=y | ||
224 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
225 | # CONFIG_SPARSEMEM_STATIC is not set | ||
226 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
227 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
228 | # CONFIG_RESOURCES_64BIT is not set | ||
229 | CONFIG_ZONE_DMA_FLAG=1 | ||
230 | CONFIG_BOUNCE=y | ||
231 | CONFIG_VIRT_TO_BUS=y | ||
232 | # CONFIG_LEDS is not set | ||
233 | CONFIG_ALIGNMENT_TRAP=y | ||
234 | |||
235 | # | ||
236 | # Boot options | ||
237 | # | ||
238 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
239 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
240 | CONFIG_CMDLINE="mem=32M console=ttyS0,115200 initrd=0x20410000,3145728 root=/dev/ram0 rw" | ||
241 | # CONFIG_XIP_KERNEL is not set | ||
242 | |||
243 | # | ||
244 | # Floating point emulation | ||
245 | # | ||
246 | |||
247 | # | ||
248 | # At least one emulation must be selected | ||
249 | # | ||
250 | CONFIG_FPE_NWFPE=y | ||
251 | # CONFIG_FPE_NWFPE_XP is not set | ||
252 | |||
253 | # | ||
254 | # Userspace binary formats | ||
255 | # | ||
256 | CONFIG_BINFMT_ELF=y | ||
257 | # CONFIG_BINFMT_AOUT is not set | ||
258 | # CONFIG_BINFMT_MISC is not set | ||
259 | # CONFIG_ARTHUR is not set | ||
260 | |||
261 | # | ||
262 | # Power management options | ||
263 | # | ||
264 | # CONFIG_PM is not set | ||
265 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
266 | |||
267 | # | ||
268 | # Networking | ||
269 | # | ||
270 | CONFIG_NET=y | ||
271 | |||
272 | # | ||
273 | # Networking options | ||
274 | # | ||
275 | CONFIG_PACKET=y | ||
276 | # CONFIG_PACKET_MMAP is not set | ||
277 | CONFIG_UNIX=y | ||
278 | # CONFIG_NET_KEY is not set | ||
279 | CONFIG_INET=y | ||
280 | # CONFIG_IP_MULTICAST is not set | ||
281 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
282 | CONFIG_IP_FIB_HASH=y | ||
283 | CONFIG_IP_PNP=y | ||
284 | CONFIG_IP_PNP_DHCP=y | ||
285 | # CONFIG_IP_PNP_BOOTP is not set | ||
286 | # CONFIG_IP_PNP_RARP is not set | ||
287 | # CONFIG_NET_IPIP is not set | ||
288 | # CONFIG_NET_IPGRE is not set | ||
289 | # CONFIG_SYN_COOKIES is not set | ||
290 | # CONFIG_INET_AH is not set | ||
291 | # CONFIG_INET_ESP is not set | ||
292 | # CONFIG_INET_IPCOMP is not set | ||
293 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
294 | # CONFIG_INET_TUNNEL is not set | ||
295 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
296 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
297 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
298 | # CONFIG_INET_LRO is not set | ||
299 | # CONFIG_INET_DIAG is not set | ||
300 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
301 | CONFIG_TCP_CONG_CUBIC=y | ||
302 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
303 | # CONFIG_IPV6 is not set | ||
304 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
305 | # CONFIG_INET6_TUNNEL is not set | ||
306 | # CONFIG_NETWORK_SECMARK is not set | ||
307 | # CONFIG_NETFILTER is not set | ||
308 | # CONFIG_BRIDGE is not set | ||
309 | # CONFIG_VLAN_8021Q is not set | ||
310 | # CONFIG_DECNET is not set | ||
311 | # CONFIG_LLC2 is not set | ||
312 | # CONFIG_IPX is not set | ||
313 | # CONFIG_ATALK is not set | ||
314 | # CONFIG_NET_SCHED is not set | ||
315 | |||
316 | # | ||
317 | # Network testing | ||
318 | # | ||
319 | # CONFIG_NET_PKTGEN is not set | ||
320 | # CONFIG_HAMRADIO is not set | ||
321 | # CONFIG_IRDA is not set | ||
322 | # CONFIG_BT is not set | ||
323 | |||
324 | # | ||
325 | # Wireless | ||
326 | # | ||
327 | # CONFIG_CFG80211 is not set | ||
328 | # CONFIG_WIRELESS_EXT is not set | ||
329 | # CONFIG_IEEE80211 is not set | ||
330 | # CONFIG_RFKILL is not set | ||
331 | |||
332 | # | ||
333 | # Device Drivers | ||
334 | # | ||
335 | |||
336 | # | ||
337 | # Generic Driver Options | ||
338 | # | ||
339 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
340 | CONFIG_STANDALONE=y | ||
341 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
342 | CONFIG_FW_LOADER=y | ||
343 | # CONFIG_DEBUG_DRIVER is not set | ||
344 | # CONFIG_DEBUG_DEVRES is not set | ||
345 | # CONFIG_SYS_HYPERVISOR is not set | ||
346 | # CONFIG_CONNECTOR is not set | ||
347 | CONFIG_MTD=y | ||
348 | # CONFIG_MTD_DEBUG is not set | ||
349 | CONFIG_MTD_CONCAT=y | ||
350 | CONFIG_MTD_PARTITIONS=y | ||
351 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
352 | CONFIG_MTD_CMDLINE_PARTS=y | ||
353 | # CONFIG_MTD_AFS_PARTS is not set | ||
354 | |||
355 | # | ||
356 | # User Modules And Translation Layers | ||
357 | # | ||
358 | CONFIG_MTD_CHAR=y | ||
359 | CONFIG_MTD_BLKDEVS=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 | # CONFIG_SSFDC is not set | ||
366 | # CONFIG_MTD_OOPS is not set | ||
367 | |||
368 | # | ||
369 | # RAM/ROM/Flash chip drivers | ||
370 | # | ||
371 | CONFIG_MTD_CFI=y | ||
372 | CONFIG_MTD_JEDECPROBE=y | ||
373 | CONFIG_MTD_GEN_PROBE=y | ||
374 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
375 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
376 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
377 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
378 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
379 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
380 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
381 | CONFIG_MTD_CFI_I1=y | ||
382 | CONFIG_MTD_CFI_I2=y | ||
383 | # CONFIG_MTD_CFI_I4 is not set | ||
384 | # CONFIG_MTD_CFI_I8 is not set | ||
385 | CONFIG_MTD_CFI_INTELEXT=y | ||
386 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
387 | # CONFIG_MTD_CFI_STAA is not set | ||
388 | CONFIG_MTD_CFI_UTIL=y | ||
389 | CONFIG_MTD_RAM=y | ||
390 | # CONFIG_MTD_ROM is not set | ||
391 | # CONFIG_MTD_ABSENT is not set | ||
392 | |||
393 | # | ||
394 | # Mapping drivers for chip access | ||
395 | # | ||
396 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
397 | CONFIG_MTD_PHYSMAP=y | ||
398 | CONFIG_MTD_PHYSMAP_START=0x0000000 | ||
399 | CONFIG_MTD_PHYSMAP_LEN=0 | ||
400 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
401 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
402 | # CONFIG_MTD_IMPA7 is not set | ||
403 | CONFIG_MTD_PLATRAM=y | ||
404 | |||
405 | # | ||
406 | # Self-contained MTD device drivers | ||
407 | # | ||
408 | # CONFIG_MTD_SLRAM is not set | ||
409 | # CONFIG_MTD_PHRAM is not set | ||
410 | # CONFIG_MTD_MTDRAM is not set | ||
411 | # CONFIG_MTD_BLOCK2MTD is not set | ||
412 | |||
413 | # | ||
414 | # Disk-On-Chip Device Drivers | ||
415 | # | ||
416 | # CONFIG_MTD_DOC2000 is not set | ||
417 | # CONFIG_MTD_DOC2001 is not set | ||
418 | # CONFIG_MTD_DOC2001PLUS is not set | ||
419 | CONFIG_MTD_NAND=y | ||
420 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
421 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
422 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
423 | CONFIG_MTD_NAND_IDS=y | ||
424 | CONFIG_MTD_NAND_AT91=y | ||
425 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
426 | CONFIG_MTD_NAND_PLATFORM=y | ||
427 | # CONFIG_MTD_ALAUDA is not set | ||
428 | # CONFIG_MTD_ONENAND is not set | ||
429 | |||
430 | # | ||
431 | # UBI - Unsorted block images | ||
432 | # | ||
433 | # CONFIG_MTD_UBI is not set | ||
434 | # CONFIG_PARPORT is not set | ||
435 | CONFIG_BLK_DEV=y | ||
436 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
437 | CONFIG_BLK_DEV_LOOP=y | ||
438 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
439 | # CONFIG_BLK_DEV_NBD is not set | ||
440 | # CONFIG_BLK_DEV_UB is not set | ||
441 | CONFIG_BLK_DEV_RAM=y | ||
442 | CONFIG_BLK_DEV_RAM_COUNT=3 | ||
443 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
444 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
445 | # CONFIG_CDROM_PKTCDVD is not set | ||
446 | # CONFIG_ATA_OVER_ETH is not set | ||
447 | # CONFIG_MISC_DEVICES is not set | ||
448 | |||
449 | # | ||
450 | # SCSI device support | ||
451 | # | ||
452 | # CONFIG_RAID_ATTRS is not set | ||
453 | CONFIG_SCSI=y | ||
454 | CONFIG_SCSI_DMA=y | ||
455 | # CONFIG_SCSI_NETLINK is not set | ||
456 | CONFIG_SCSI_PROC_FS=y | ||
457 | |||
458 | # | ||
459 | # SCSI support type (disk, tape, CD-ROM) | ||
460 | # | ||
461 | CONFIG_BLK_DEV_SD=y | ||
462 | # CONFIG_CHR_DEV_ST is not set | ||
463 | # CONFIG_CHR_DEV_OSST is not set | ||
464 | # CONFIG_BLK_DEV_SR is not set | ||
465 | # CONFIG_CHR_DEV_SG is not set | ||
466 | # CONFIG_CHR_DEV_SCH is not set | ||
467 | |||
468 | # | ||
469 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
470 | # | ||
471 | # CONFIG_SCSI_MULTI_LUN is not set | ||
472 | # CONFIG_SCSI_CONSTANTS is not set | ||
473 | # CONFIG_SCSI_LOGGING is not set | ||
474 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
475 | CONFIG_SCSI_WAIT_SCAN=m | ||
476 | |||
477 | # | ||
478 | # SCSI Transports | ||
479 | # | ||
480 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
481 | # CONFIG_SCSI_FC_ATTRS is not set | ||
482 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
483 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
484 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
485 | CONFIG_SCSI_LOWLEVEL=y | ||
486 | # CONFIG_ISCSI_TCP is not set | ||
487 | # CONFIG_SCSI_DEBUG is not set | ||
488 | CONFIG_ATA=y | ||
489 | # CONFIG_ATA_NONSTANDARD is not set | ||
490 | # CONFIG_MD is not set | ||
491 | CONFIG_NETDEVICES=y | ||
492 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
493 | # CONFIG_DUMMY is not set | ||
494 | # CONFIG_BONDING is not set | ||
495 | # CONFIG_EQUALIZER is not set | ||
496 | # CONFIG_TUN is not set | ||
497 | # CONFIG_VETH is not set | ||
498 | CONFIG_PHYLIB=y | ||
499 | |||
500 | # | ||
501 | # MII PHY device drivers | ||
502 | # | ||
503 | # CONFIG_MARVELL_PHY is not set | ||
504 | CONFIG_DAVICOM_PHY=y | ||
505 | # CONFIG_QSEMI_PHY is not set | ||
506 | # CONFIG_LXT_PHY is not set | ||
507 | # CONFIG_CICADA_PHY is not set | ||
508 | # CONFIG_VITESSE_PHY is not set | ||
509 | # CONFIG_SMSC_PHY is not set | ||
510 | # CONFIG_BROADCOM_PHY is not set | ||
511 | # CONFIG_ICPLUS_PHY is not set | ||
512 | # CONFIG_FIXED_PHY is not set | ||
513 | # CONFIG_MDIO_BITBANG is not set | ||
514 | CONFIG_NET_ETHERNET=y | ||
515 | CONFIG_MII=y | ||
516 | CONFIG_ARM_AT91_ETHER=y | ||
517 | # CONFIG_AX88796 is not set | ||
518 | # CONFIG_SMC91X is not set | ||
519 | # CONFIG_DM9000 is not set | ||
520 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
521 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
522 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
523 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
524 | # CONFIG_B44 is not set | ||
525 | # CONFIG_NETDEV_1000 is not set | ||
526 | # CONFIG_NETDEV_10000 is not set | ||
527 | |||
528 | # | ||
529 | # Wireless LAN | ||
530 | # | ||
531 | # CONFIG_WLAN_PRE80211 is not set | ||
532 | # CONFIG_WLAN_80211 is not set | ||
533 | |||
534 | # | ||
535 | # USB Network Adapters | ||
536 | # | ||
537 | # CONFIG_USB_KAWETH is not set | ||
538 | # CONFIG_USB_PEGASUS is not set | ||
539 | # CONFIG_USB_USBNET is not set | ||
540 | # CONFIG_WAN is not set | ||
541 | # CONFIG_PPP is not set | ||
542 | # CONFIG_SLIP is not set | ||
543 | # CONFIG_NETPOLL is not set | ||
544 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
545 | # CONFIG_ISDN is not set | ||
546 | |||
547 | # | ||
548 | # Input device support | ||
549 | # | ||
550 | CONFIG_INPUT=y | ||
551 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
552 | # CONFIG_INPUT_POLLDEV is not set | ||
553 | |||
554 | # | ||
555 | # Userland interfaces | ||
556 | # | ||
557 | CONFIG_INPUT_MOUSEDEV=y | ||
558 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
559 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=640 | ||
560 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=480 | ||
561 | # CONFIG_INPUT_JOYDEV is not set | ||
562 | CONFIG_INPUT_EVDEV=y | ||
563 | # CONFIG_INPUT_EVBUG is not set | ||
564 | |||
565 | # | ||
566 | # Input Device Drivers | ||
567 | # | ||
568 | CONFIG_INPUT_KEYBOARD=y | ||
569 | # CONFIG_KEYBOARD_ATKBD is not set | ||
570 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
571 | # CONFIG_KEYBOARD_LKKBD is not set | ||
572 | # CONFIG_KEYBOARD_XTKBD is not set | ||
573 | # CONFIG_KEYBOARD_NEWTON is not set | ||
574 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
575 | CONFIG_KEYBOARD_GPIO=y | ||
576 | CONFIG_INPUT_MOUSE=y | ||
577 | CONFIG_MOUSE_PS2=y | ||
578 | CONFIG_MOUSE_PS2_ALPS=y | ||
579 | CONFIG_MOUSE_PS2_LOGIPS2PP=y | ||
580 | CONFIG_MOUSE_PS2_SYNAPTICS=y | ||
581 | CONFIG_MOUSE_PS2_LIFEBOOK=y | ||
582 | CONFIG_MOUSE_PS2_TRACKPOINT=y | ||
583 | # CONFIG_MOUSE_PS2_TOUCHKIT is not set | ||
584 | # CONFIG_MOUSE_SERIAL is not set | ||
585 | # CONFIG_MOUSE_APPLETOUCH is not set | ||
586 | # CONFIG_MOUSE_VSXXXAA is not set | ||
587 | # CONFIG_MOUSE_GPIO is not set | ||
588 | # CONFIG_INPUT_JOYSTICK is not set | ||
589 | # CONFIG_INPUT_TABLET is not set | ||
590 | CONFIG_INPUT_TOUCHSCREEN=y | ||
591 | CONFIG_TOUCHSCREEN_ADS7846=y | ||
592 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
593 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
594 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
595 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
596 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
597 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
598 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
599 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
600 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
601 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
602 | # CONFIG_INPUT_MISC is not set | ||
603 | |||
604 | # | ||
605 | # Hardware I/O ports | ||
606 | # | ||
607 | CONFIG_SERIO=y | ||
608 | # CONFIG_SERIO_SERPORT is not set | ||
609 | CONFIG_SERIO_LIBPS2=y | ||
610 | # CONFIG_SERIO_RAW is not set | ||
611 | # CONFIG_GAMEPORT is not set | ||
612 | |||
613 | # | ||
614 | # Character devices | ||
615 | # | ||
616 | CONFIG_VT=y | ||
617 | CONFIG_VT_CONSOLE=y | ||
618 | CONFIG_HW_CONSOLE=y | ||
619 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
620 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
621 | |||
622 | # | ||
623 | # Serial drivers | ||
624 | # | ||
625 | # CONFIG_SERIAL_8250 is not set | ||
626 | |||
627 | # | ||
628 | # Non-8250 serial port support | ||
629 | # | ||
630 | CONFIG_SERIAL_ATMEL=y | ||
631 | CONFIG_SERIAL_ATMEL_CONSOLE=y | ||
632 | # CONFIG_SERIAL_ATMEL_TTYAT is not set | ||
633 | CONFIG_SERIAL_CORE=y | ||
634 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
635 | CONFIG_UNIX98_PTYS=y | ||
636 | CONFIG_LEGACY_PTYS=y | ||
637 | CONFIG_LEGACY_PTY_COUNT=256 | ||
638 | # CONFIG_IPMI_HANDLER is not set | ||
639 | # CONFIG_HW_RANDOM is not set | ||
640 | # CONFIG_NVRAM is not set | ||
641 | # CONFIG_R3964 is not set | ||
642 | # CONFIG_RAW_DRIVER is not set | ||
643 | CONFIG_I2C=y | ||
644 | CONFIG_I2C_BOARDINFO=y | ||
645 | # CONFIG_I2C_CHARDEV is not set | ||
646 | |||
647 | # | ||
648 | # I2C Algorithms | ||
649 | # | ||
650 | # CONFIG_I2C_ALGOBIT is not set | ||
651 | # CONFIG_I2C_ALGOPCF is not set | ||
652 | # CONFIG_I2C_ALGOPCA is not set | ||
653 | |||
654 | # | ||
655 | # I2C Hardware Bus support | ||
656 | # | ||
657 | # CONFIG_I2C_GPIO is not set | ||
658 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
659 | # CONFIG_I2C_SIMTEC is not set | ||
660 | # CONFIG_I2C_TINY_USB is not set | ||
661 | |||
662 | # | ||
663 | # Miscellaneous I2C Chip support | ||
664 | # | ||
665 | # CONFIG_I2C_DEBUG_CORE is not set | ||
666 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
667 | # CONFIG_I2C_DEBUG_BUS is not set | ||
668 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
669 | |||
670 | # | ||
671 | # SPI support | ||
672 | # | ||
673 | CONFIG_SPI=y | ||
674 | CONFIG_SPI_DEBUG=y | ||
675 | CONFIG_SPI_MASTER=y | ||
676 | |||
677 | # | ||
678 | # SPI Master Controller Drivers | ||
679 | # | ||
680 | CONFIG_SPI_ATMEL=y | ||
681 | |||
682 | # | ||
683 | # SPI Protocol Masters | ||
684 | # | ||
685 | # CONFIG_SPI_AT25 is not set | ||
686 | # CONFIG_SPI_TLE62X0 is not set | ||
687 | # CONFIG_W1 is not set | ||
688 | # CONFIG_POWER_SUPPLY is not set | ||
689 | CONFIG_HWMON=y | ||
690 | # CONFIG_HWMON_VID is not set | ||
691 | # CONFIG_SENSORS_ADM1021 is not set | ||
692 | # CONFIG_SENSORS_ADM1025 is not set | ||
693 | # CONFIG_SENSORS_DS1621 is not set | ||
694 | # CONFIG_SENSORS_GL518SM is not set | ||
695 | # CONFIG_SENSORS_GL520SM is not set | ||
696 | # CONFIG_SENSORS_IT87 is not set | ||
697 | # CONFIG_SENSORS_LM63 is not set | ||
698 | # CONFIG_SENSORS_LM75 is not set | ||
699 | # CONFIG_SENSORS_LM77 is not set | ||
700 | # CONFIG_SENSORS_LM78 is not set | ||
701 | # CONFIG_SENSORS_LM83 is not set | ||
702 | # CONFIG_SENSORS_LM87 is not set | ||
703 | # CONFIG_SENSORS_LM90 is not set | ||
704 | # CONFIG_SENSORS_LM92 is not set | ||
705 | # CONFIG_SENSORS_LM93 is not set | ||
706 | # CONFIG_SENSORS_MAX1619 is not set | ||
707 | # CONFIG_SENSORS_PC87360 is not set | ||
708 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
709 | # CONFIG_SENSORS_W83781D is not set | ||
710 | # CONFIG_SENSORS_W83627HF is not set | ||
711 | # CONFIG_SENSORS_W83627EHF is not set | ||
712 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
713 | # CONFIG_WATCHDOG is not set | ||
714 | |||
715 | # | ||
716 | # Sonics Silicon Backplane | ||
717 | # | ||
718 | CONFIG_SSB_POSSIBLE=y | ||
719 | # CONFIG_SSB is not set | ||
720 | |||
721 | # | ||
722 | # Multifunction device drivers | ||
723 | # | ||
724 | # CONFIG_MFD_SM501 is not set | ||
725 | |||
726 | # | ||
727 | # Multimedia devices | ||
728 | # | ||
729 | # CONFIG_VIDEO_DEV is not set | ||
730 | # CONFIG_DVB_CORE is not set | ||
731 | # CONFIG_DAB is not set | ||
732 | |||
733 | # | ||
734 | # Graphics support | ||
735 | # | ||
736 | # CONFIG_VGASTATE is not set | ||
737 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
738 | CONFIG_FB=y | ||
739 | # CONFIG_FIRMWARE_EDID is not set | ||
740 | # CONFIG_FB_DDC is not set | ||
741 | CONFIG_FB_CFB_FILLRECT=y | ||
742 | CONFIG_FB_CFB_COPYAREA=y | ||
743 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
744 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
745 | # CONFIG_FB_SYS_FILLRECT is not set | ||
746 | # CONFIG_FB_SYS_COPYAREA is not set | ||
747 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
748 | # CONFIG_FB_SYS_FOPS is not set | ||
749 | CONFIG_FB_DEFERRED_IO=y | ||
750 | # CONFIG_FB_SVGALIB is not set | ||
751 | # CONFIG_FB_MACMODES is not set | ||
752 | # CONFIG_FB_BACKLIGHT is not set | ||
753 | # CONFIG_FB_MODE_HELPERS is not set | ||
754 | # CONFIG_FB_TILEBLITTING is not set | ||
755 | |||
756 | # | ||
757 | # Frame buffer hardware drivers | ||
758 | # | ||
759 | # CONFIG_FB_S1D13XXX is not set | ||
760 | CONFIG_FB_S1D135XX=y | ||
761 | # CONFIG_FB_VIRTUAL is not set | ||
762 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
763 | CONFIG_LCD_CLASS_DEVICE=y | ||
764 | # CONFIG_LCD_LTV350QV is not set | ||
765 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
766 | # CONFIG_BACKLIGHT_CORGI is not set | ||
767 | |||
768 | # | ||
769 | # Display device support | ||
770 | # | ||
771 | CONFIG_DISPLAY_SUPPORT=y | ||
772 | |||
773 | # | ||
774 | # Display hardware drivers | ||
775 | # | ||
776 | |||
777 | # | ||
778 | # Console display driver support | ||
779 | # | ||
780 | # CONFIG_VGA_CONSOLE is not set | ||
781 | CONFIG_DUMMY_CONSOLE=y | ||
782 | # CONFIG_FRAMEBUFFER_CONSOLE is not set | ||
783 | CONFIG_LOGO=y | ||
784 | # CONFIG_LOGO_LINUX_MONO is not set | ||
785 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
786 | CONFIG_LOGO_LINUX_CLUT224=y | ||
787 | |||
788 | # | ||
789 | # Sound | ||
790 | # | ||
791 | # CONFIG_SOUND is not set | ||
792 | CONFIG_HID_SUPPORT=y | ||
793 | CONFIG_HID=y | ||
794 | CONFIG_HID_DEBUG=y | ||
795 | # CONFIG_HIDRAW is not set | ||
796 | |||
797 | # | ||
798 | # USB Input Devices | ||
799 | # | ||
800 | CONFIG_USB_HID=y | ||
801 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
802 | # CONFIG_USB_HIDDEV is not set | ||
803 | CONFIG_USB_SUPPORT=y | ||
804 | CONFIG_USB_ARCH_HAS_HCD=y | ||
805 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
806 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
807 | CONFIG_USB=y | ||
808 | CONFIG_USB_DEBUG=y | ||
809 | |||
810 | # | ||
811 | # Miscellaneous USB options | ||
812 | # | ||
813 | CONFIG_USB_DEVICEFS=y | ||
814 | # CONFIG_USB_DEVICE_CLASS is not set | ||
815 | |||
816 | # | ||
817 | # USB Host Controller Drivers | ||
818 | # | ||
819 | # CONFIG_USB_ISP116X_HCD is not set | ||
820 | CONFIG_USB_OHCI_HCD=y | ||
821 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
822 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
823 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
824 | # CONFIG_USB_SL811_HCD is not set | ||
825 | # CONFIG_USB_R8A66597_HCD is not set | ||
826 | |||
827 | # | ||
828 | # USB Device Class drivers | ||
829 | # | ||
830 | # CONFIG_USB_ACM is not set | ||
831 | # CONFIG_USB_PRINTER is not set | ||
832 | |||
833 | # | ||
834 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
835 | # | ||
836 | |||
837 | # | ||
838 | # may also be needed; see USB_STORAGE Help for more information | ||
839 | # | ||
840 | CONFIG_USB_STORAGE=y | ||
841 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
842 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
843 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
844 | # CONFIG_USB_STORAGE_DPCM is not set | ||
845 | # CONFIG_USB_STORAGE_KARMA is not set | ||
846 | # CONFIG_USB_LIBUSUAL is not set | ||
847 | |||
848 | # | ||
849 | # USB Imaging devices | ||
850 | # | ||
851 | # CONFIG_USB_MICROTEK is not set | ||
852 | CONFIG_USB_MON=y | ||
853 | |||
854 | # | ||
855 | # USB port drivers | ||
856 | # | ||
857 | |||
858 | # | ||
859 | # USB Serial Converter support | ||
860 | # | ||
861 | # CONFIG_USB_SERIAL is not set | ||
862 | |||
863 | # | ||
864 | # USB Miscellaneous drivers | ||
865 | # | ||
866 | # CONFIG_USB_EMI62 is not set | ||
867 | # CONFIG_USB_EMI26 is not set | ||
868 | # CONFIG_USB_LCD is not set | ||
869 | # CONFIG_USB_BERRY_CHARGE is not set | ||
870 | # CONFIG_USB_LED is not set | ||
871 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
872 | # CONFIG_USB_CYTHERM is not set | ||
873 | # CONFIG_USB_PHIDGET is not set | ||
874 | # CONFIG_USB_IDMOUSE is not set | ||
875 | # CONFIG_USB_FTDI_ELAN is not set | ||
876 | # CONFIG_USB_APPLEDISPLAY is not set | ||
877 | # CONFIG_USB_LD is not set | ||
878 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
879 | # CONFIG_USB_IOWARRIOR is not set | ||
880 | |||
881 | # | ||
882 | # USB DSL modem support | ||
883 | # | ||
884 | |||
885 | # | ||
886 | # USB Gadget Support | ||
887 | # | ||
888 | CONFIG_USB_GADGET=y | ||
889 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
890 | # CONFIG_USB_GADGET_DEBUG_FS is not set | ||
891 | CONFIG_USB_GADGET_SELECTED=y | ||
892 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
893 | # CONFIG_USB_GADGET_ATMEL_USBA is not set | ||
894 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
895 | # CONFIG_USB_GADGET_NET2280 is not set | ||
896 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
897 | CONFIG_USB_GADGET_M66592=y | ||
898 | CONFIG_USB_M66592=y | ||
899 | # CONFIG_USB_GADGET_GOKU is not set | ||
900 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
901 | # CONFIG_USB_GADGET_OMAP is not set | ||
902 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
903 | # CONFIG_USB_GADGET_AT91 is not set | ||
904 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
905 | CONFIG_USB_GADGET_DUALSPEED=y | ||
906 | # CONFIG_USB_ZERO is not set | ||
907 | # CONFIG_USB_ETH is not set | ||
908 | # CONFIG_USB_GADGETFS is not set | ||
909 | CONFIG_USB_FILE_STORAGE=y | ||
910 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
911 | # CONFIG_USB_G_SERIAL is not set | ||
912 | # CONFIG_USB_MIDI_GADGET is not set | ||
913 | CONFIG_MMC=y | ||
914 | CONFIG_MMC_DEBUG=y | ||
915 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
916 | |||
917 | # | ||
918 | # MMC/SD Card Drivers | ||
919 | # | ||
920 | CONFIG_MMC_BLOCK=y | ||
921 | # CONFIG_MMC_BLOCK_BOUNCE is not set | ||
922 | # CONFIG_SDIO_UART is not set | ||
923 | |||
924 | # | ||
925 | # MMC/SD Host Controller Drivers | ||
926 | # | ||
927 | CONFIG_MMC_AT91=y | ||
928 | CONFIG_NEW_LEDS=y | ||
929 | CONFIG_LEDS_CLASS=y | ||
930 | |||
931 | # | ||
932 | # LED drivers | ||
933 | # | ||
934 | CONFIG_LEDS_GPIO=y | ||
935 | |||
936 | # | ||
937 | # LED Triggers | ||
938 | # | ||
939 | CONFIG_LEDS_TRIGGERS=y | ||
940 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
941 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
942 | CONFIG_RTC_LIB=y | ||
943 | CONFIG_RTC_CLASS=y | ||
944 | CONFIG_RTC_HCTOSYS=y | ||
945 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
946 | # CONFIG_RTC_DEBUG is not set | ||
947 | |||
948 | # | ||
949 | # RTC interfaces | ||
950 | # | ||
951 | CONFIG_RTC_INTF_SYSFS=y | ||
952 | CONFIG_RTC_INTF_PROC=y | ||
953 | CONFIG_RTC_INTF_DEV=y | ||
954 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
955 | # CONFIG_RTC_DRV_TEST is not set | ||
956 | |||
957 | # | ||
958 | # I2C RTC drivers | ||
959 | # | ||
960 | # CONFIG_RTC_DRV_DS1307 is not set | ||
961 | # CONFIG_RTC_DRV_DS1374 is not set | ||
962 | # CONFIG_RTC_DRV_DS1672 is not set | ||
963 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
964 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
965 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
966 | # CONFIG_RTC_DRV_X1205 is not set | ||
967 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
968 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
969 | # CONFIG_RTC_DRV_M41T80 is not set | ||
970 | |||
971 | # | ||
972 | # SPI RTC drivers | ||
973 | # | ||
974 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
975 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
976 | |||
977 | # | ||
978 | # Platform RTC drivers | ||
979 | # | ||
980 | # CONFIG_RTC_DRV_CMOS is not set | ||
981 | # CONFIG_RTC_DRV_DS1553 is not set | ||
982 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
983 | # CONFIG_RTC_DRV_DS1742 is not set | ||
984 | # CONFIG_RTC_DRV_M48T86 is not set | ||
985 | # CONFIG_RTC_DRV_M48T59 is not set | ||
986 | # CONFIG_RTC_DRV_V3020 is not set | ||
987 | |||
988 | # | ||
989 | # on-CPU RTC drivers | ||
990 | # | ||
991 | CONFIG_RTC_DRV_AT91RM9200=y | ||
992 | |||
993 | # | ||
994 | # File systems | ||
995 | # | ||
996 | CONFIG_EXT2_FS=y | ||
997 | CONFIG_EXT2_FS_XATTR=y | ||
998 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
999 | # CONFIG_EXT2_FS_SECURITY is not set | ||
1000 | # CONFIG_EXT2_FS_XIP is not set | ||
1001 | CONFIG_EXT3_FS=y | ||
1002 | CONFIG_EXT3_FS_XATTR=y | ||
1003 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1004 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1005 | CONFIG_JBD=y | ||
1006 | # CONFIG_JBD_DEBUG is not set | ||
1007 | CONFIG_FS_MBCACHE=y | ||
1008 | CONFIG_REISERFS_FS=y | ||
1009 | # CONFIG_REISERFS_CHECK is not set | ||
1010 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1011 | # CONFIG_REISERFS_FS_XATTR is not set | ||
1012 | # CONFIG_JFS_FS is not set | ||
1013 | # CONFIG_FS_POSIX_ACL is not set | ||
1014 | # CONFIG_XFS_FS is not set | ||
1015 | # CONFIG_OCFS2_FS is not set | ||
1016 | # CONFIG_MINIX_FS is not set | ||
1017 | # CONFIG_ROMFS_FS is not set | ||
1018 | CONFIG_INOTIFY=y | ||
1019 | CONFIG_INOTIFY_USER=y | ||
1020 | # CONFIG_QUOTA is not set | ||
1021 | CONFIG_DNOTIFY=y | ||
1022 | # CONFIG_AUTOFS_FS is not set | ||
1023 | # CONFIG_AUTOFS4_FS is not set | ||
1024 | # CONFIG_FUSE_FS is not set | ||
1025 | |||
1026 | # | ||
1027 | # CD-ROM/DVD Filesystems | ||
1028 | # | ||
1029 | CONFIG_ISO9660_FS=y | ||
1030 | CONFIG_JOLIET=y | ||
1031 | CONFIG_ZISOFS=y | ||
1032 | CONFIG_UDF_FS=y | ||
1033 | CONFIG_UDF_NLS=y | ||
1034 | |||
1035 | # | ||
1036 | # DOS/FAT/NT Filesystems | ||
1037 | # | ||
1038 | CONFIG_FAT_FS=y | ||
1039 | CONFIG_MSDOS_FS=y | ||
1040 | CONFIG_VFAT_FS=y | ||
1041 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1042 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1043 | # CONFIG_NTFS_FS is not set | ||
1044 | |||
1045 | # | ||
1046 | # Pseudo filesystems | ||
1047 | # | ||
1048 | CONFIG_PROC_FS=y | ||
1049 | CONFIG_PROC_SYSCTL=y | ||
1050 | CONFIG_SYSFS=y | ||
1051 | CONFIG_TMPFS=y | ||
1052 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1053 | # CONFIG_HUGETLB_PAGE is not set | ||
1054 | |||
1055 | # | ||
1056 | # Miscellaneous filesystems | ||
1057 | # | ||
1058 | # CONFIG_HFSPLUS_FS is not set | ||
1059 | CONFIG_JFFS2_FS=y | ||
1060 | CONFIG_JFFS2_FS_DEBUG=1 | ||
1061 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1062 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1063 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
1064 | CONFIG_JFFS2_ZLIB=y | ||
1065 | # CONFIG_JFFS2_LZO is not set | ||
1066 | CONFIG_JFFS2_RTIME=y | ||
1067 | CONFIG_JFFS2_RUBIN=y | ||
1068 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
1069 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
1070 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
1071 | # CONFIG_JFFS2_CMODE_FAVOURLZO is not set | ||
1072 | CONFIG_CRAMFS=y | ||
1073 | # CONFIG_VXFS_FS is not set | ||
1074 | # CONFIG_HPFS_FS is not set | ||
1075 | # CONFIG_QNX4FS_FS is not set | ||
1076 | # CONFIG_SYSV_FS is not set | ||
1077 | # CONFIG_UFS_FS is not set | ||
1078 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1079 | # CONFIG_NFS_FS is not set | ||
1080 | # CONFIG_NFSD is not set | ||
1081 | # CONFIG_SMB_FS is not set | ||
1082 | # CONFIG_CIFS is not set | ||
1083 | # CONFIG_NCP_FS is not set | ||
1084 | # CONFIG_CODA_FS is not set | ||
1085 | |||
1086 | # | ||
1087 | # Partition Types | ||
1088 | # | ||
1089 | CONFIG_PARTITION_ADVANCED=y | ||
1090 | # CONFIG_ACORN_PARTITION is not set | ||
1091 | # CONFIG_OSF_PARTITION is not set | ||
1092 | # CONFIG_AMIGA_PARTITION is not set | ||
1093 | # CONFIG_ATARI_PARTITION is not set | ||
1094 | CONFIG_MAC_PARTITION=y | ||
1095 | CONFIG_MSDOS_PARTITION=y | ||
1096 | # CONFIG_BSD_DISKLABEL is not set | ||
1097 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1098 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1099 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1100 | # CONFIG_LDM_PARTITION is not set | ||
1101 | # CONFIG_SGI_PARTITION is not set | ||
1102 | # CONFIG_ULTRIX_PARTITION is not set | ||
1103 | # CONFIG_SUN_PARTITION is not set | ||
1104 | # CONFIG_KARMA_PARTITION is not set | ||
1105 | # CONFIG_EFI_PARTITION is not set | ||
1106 | # CONFIG_SYSV68_PARTITION is not set | ||
1107 | CONFIG_NLS=y | ||
1108 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1109 | CONFIG_NLS_CODEPAGE_437=y | ||
1110 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1111 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1112 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1113 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1114 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1115 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1116 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1117 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1118 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1119 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1120 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1121 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1122 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1123 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1124 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1125 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1126 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1127 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1128 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1129 | # CONFIG_NLS_ISO8859_8 is not set | ||
1130 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1131 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1132 | # CONFIG_NLS_ASCII is not set | ||
1133 | CONFIG_NLS_ISO8859_1=y | ||
1134 | # CONFIG_NLS_ISO8859_2 is not set | ||
1135 | # CONFIG_NLS_ISO8859_3 is not set | ||
1136 | # CONFIG_NLS_ISO8859_4 is not set | ||
1137 | # CONFIG_NLS_ISO8859_5 is not set | ||
1138 | # CONFIG_NLS_ISO8859_6 is not set | ||
1139 | # CONFIG_NLS_ISO8859_7 is not set | ||
1140 | # CONFIG_NLS_ISO8859_9 is not set | ||
1141 | # CONFIG_NLS_ISO8859_13 is not set | ||
1142 | # CONFIG_NLS_ISO8859_14 is not set | ||
1143 | # CONFIG_NLS_ISO8859_15 is not set | ||
1144 | # CONFIG_NLS_KOI8_R is not set | ||
1145 | # CONFIG_NLS_KOI8_U is not set | ||
1146 | # CONFIG_NLS_UTF8 is not set | ||
1147 | CONFIG_INSTRUMENTATION=y | ||
1148 | # CONFIG_PROFILING is not set | ||
1149 | # CONFIG_MARKERS is not set | ||
1150 | |||
1151 | # | ||
1152 | # Kernel hacking | ||
1153 | # | ||
1154 | # CONFIG_PRINTK_TIME is not set | ||
1155 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1156 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
1157 | # CONFIG_MAGIC_SYSRQ is not set | ||
1158 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1159 | CONFIG_DEBUG_FS=y | ||
1160 | # CONFIG_HEADERS_CHECK is not set | ||
1161 | CONFIG_DEBUG_KERNEL=y | ||
1162 | # CONFIG_DEBUG_SHIRQ is not set | ||
1163 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1164 | CONFIG_SCHED_DEBUG=y | ||
1165 | # CONFIG_SCHEDSTATS is not set | ||
1166 | # CONFIG_TIMER_STATS is not set | ||
1167 | CONFIG_SLUB_DEBUG_ON=y | ||
1168 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1169 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1170 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1171 | # CONFIG_DEBUG_MUTEXES is not set | ||
1172 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1173 | # CONFIG_PROVE_LOCKING is not set | ||
1174 | # CONFIG_LOCK_STAT is not set | ||
1175 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1176 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1177 | CONFIG_DEBUG_KOBJECT=y | ||
1178 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1179 | CONFIG_DEBUG_INFO=y | ||
1180 | # CONFIG_DEBUG_VM is not set | ||
1181 | CONFIG_DEBUG_LIST=y | ||
1182 | # CONFIG_DEBUG_SG is not set | ||
1183 | CONFIG_FRAME_POINTER=y | ||
1184 | CONFIG_FORCED_INLINING=y | ||
1185 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1186 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1187 | # CONFIG_FAULT_INJECTION is not set | ||
1188 | # CONFIG_SAMPLES is not set | ||
1189 | CONFIG_DEBUG_USER=y | ||
1190 | CONFIG_DEBUG_ERRORS=y | ||
1191 | CONFIG_DEBUG_LL=y | ||
1192 | # CONFIG_DEBUG_ICEDCC is not set | ||
1193 | |||
1194 | # | ||
1195 | # Security options | ||
1196 | # | ||
1197 | # CONFIG_KEYS is not set | ||
1198 | # CONFIG_SECURITY is not set | ||
1199 | # CONFIG_CRYPTO is not set | ||
1200 | |||
1201 | # | ||
1202 | # Library routines | ||
1203 | # | ||
1204 | CONFIG_BITREVERSE=y | ||
1205 | # CONFIG_CRC_CCITT is not set | ||
1206 | # CONFIG_CRC16 is not set | ||
1207 | # CONFIG_CRC_ITU_T is not set | ||
1208 | CONFIG_CRC32=y | ||
1209 | # CONFIG_CRC7 is not set | ||
1210 | # CONFIG_LIBCRC32C is not set | ||
1211 | CONFIG_ZLIB_INFLATE=y | ||
1212 | CONFIG_ZLIB_DEFLATE=y | ||
1213 | CONFIG_PLIST=y | ||
1214 | CONFIG_HAS_IOMEM=y | ||
1215 | CONFIG_HAS_IOPORT=y | ||
1216 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/mach-at91/board-yl-9200.c b/arch/arm/mach-at91/board-yl-9200.c new file mode 100755 index 000000000000..b5717108991d --- /dev/null +++ b/arch/arm/mach-at91/board-yl-9200.c | |||
@@ -0,0 +1,683 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91/board-yl-9200.c | ||
3 | * | ||
4 | * Adapted from: | ||
5 | *various board files in | ||
6 | * /arch/arm/mach-at91 | ||
7 | * modifications to convert to YL-9200 platform | ||
8 | * Copyright (C) 2007 S.Birtles | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | */ | ||
24 | |||
25 | #include <linux/types.h> | ||
26 | #include <linux/init.h> | ||
27 | #include <linux/mm.h> | ||
28 | #include <linux/module.h> | ||
29 | #include <linux/platform_device.h> | ||
30 | #include <linux/spi/spi.h> | ||
31 | /*#include <linux/can_bus/candata.h>*/ | ||
32 | #include <linux/spi/ads7846.h> | ||
33 | #include <linux/mtd/physmap.h> | ||
34 | |||
35 | /*#include <sound/gpio_sounder.h>*/ | ||
36 | #include <asm/hardware.h> | ||
37 | #include <asm/setup.h> | ||
38 | #include <asm/mach-types.h> | ||
39 | #include <asm/irq.h> | ||
40 | |||
41 | #include <asm/mach/arch.h> | ||
42 | #include <asm/mach/map.h> | ||
43 | #include <asm/mach/irq.h> | ||
44 | |||
45 | #include <asm/arch/board.h> | ||
46 | #include <asm/arch/gpio.h> | ||
47 | #include <asm/arch/at91rm9200_mc.h> | ||
48 | #include <linux/gpio_keys.h> | ||
49 | #include <linux/input.h> | ||
50 | |||
51 | #include "generic.h" | ||
52 | #include <asm/arch/at91_pio.h> | ||
53 | |||
54 | #define YL_9200_FLASH_BASE AT91_CHIPSELECT_0 | ||
55 | #define YL_9200_FLASH_SIZE 0x800000 | ||
56 | |||
57 | /* | ||
58 | * Serial port configuration. | ||
59 | * 0 .. 3 = USART0 .. USART3 | ||
60 | * 4 = DBGU | ||
61 | *atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL | ||
62 | *atmel_usart.1: ttyS1 at MMIO 0xfffc0000 (irq = 6) is a ATMEL_SERIAL | ||
63 | *atmel_usart.2: ttyS2 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL | ||
64 | *atmel_usart.3: ttyS3 at MMIO 0xfffc8000 (irq = 8) is a ATMEL_SERIAL | ||
65 | *atmel_usart.4: ttyS4 at MMIO 0xfffcc000 (irq = 9) is a ATMEL_SERIAL | ||
66 | * on the YL-9200 we are sitting at the following | ||
67 | *ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL | ||
68 | *ttyS1 at MMIO 0xfefc4000 (irq = 7) is a AT91_SERIAL | ||
69 | */ | ||
70 | |||
71 | /* extern void __init yl_9200_add_device_sounder(struct gpio_sounder *sounders, int nr);*/ | ||
72 | |||
73 | static struct at91_uart_config __initdata yl_9200_uart_config = { | ||
74 | .console_tty = 0, /* ttyS0 */ | ||
75 | .nr_tty = 3, | ||
76 | .tty_map = { 4, 1, 0, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
77 | }; | ||
78 | |||
79 | static void __init yl_9200_map_io(void) | ||
80 | { | ||
81 | /* Initialize processor: 18.432 MHz crystal */ | ||
82 | /*Also initialises register clocks & gpio*/ | ||
83 | at91rm9200_initialize(18432000, AT91RM9200_PQFP); /*we have a 3 bank system*/ | ||
84 | |||
85 | /* Setup the serial ports and console */ | ||
86 | at91_init_serial(&yl_9200_uart_config); | ||
87 | |||
88 | /* Setup the LEDs D2=PB17,D3=PB16 */ | ||
89 | at91_init_leds(AT91_PIN_PB16,AT91_PIN_PB17); /*cpu-led,timer-led*/ | ||
90 | } | ||
91 | |||
92 | static void __init yl_9200_init_irq(void) | ||
93 | { | ||
94 | at91rm9200_init_interrupts(NULL); | ||
95 | } | ||
96 | |||
97 | static struct at91_eth_data __initdata yl_9200_eth_data = { | ||
98 | .phy_irq_pin = AT91_PIN_PB28, | ||
99 | .is_rmii = 1, | ||
100 | }; | ||
101 | |||
102 | static struct at91_usbh_data __initdata yl_9200_usbh_data = { | ||
103 | .ports = 1, /* this should be 1 not 2 for the Yl9200*/ | ||
104 | }; | ||
105 | |||
106 | static struct at91_udc_data __initdata yl_9200_udc_data = { | ||
107 | /*on sheet 7 Schemitic rev 1.0*/ | ||
108 | .pullup_pin = AT91_PIN_PC4, | ||
109 | .vbus_pin= AT91_PIN_PC5, | ||
110 | .pullup_active_low = 1, /*ACTIVE LOW!! due to PNP transistor on page 7*/ | ||
111 | |||
112 | }; | ||
113 | /* | ||
114 | static struct at91_cf_data __initdata yl_9200_cf_data = { | ||
115 | TODO S.BIRTLES | ||
116 | .det_pin = AT91_PIN_xxx, | ||
117 | .rst_pin = AT91_PIN_xxx, | ||
118 | .irq_pin = ... not connected | ||
119 | .vcc_pin = ... always powered | ||
120 | |||
121 | }; | ||
122 | */ | ||
123 | static struct at91_mmc_data __initdata yl_9200_mmc_data = { | ||
124 | .det_pin = AT91_PIN_PB9, /*THIS LOOKS CORRECT SHEET7*/ | ||
125 | /* .wp_pin = ... not connected SHEET7*/ | ||
126 | .slot_b = 0, | ||
127 | .wire4 = 1, | ||
128 | |||
129 | }; | ||
130 | |||
131 | /* -------------------------------------------------------------------- | ||
132 | * Touch screen | ||
133 | * -------------------------------------------------------------------- */ | ||
134 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | ||
135 | static int ads7843_pendown_state(void) | ||
136 | { | ||
137 | return !at91_get_gpio_value(AT91_PIN_PB11); /* Touchscreen PENIRQ */ | ||
138 | } | ||
139 | |||
140 | static void __init at91_init_device_ts(void) | ||
141 | { | ||
142 | /*IMPORTANT NOTE THE SPI INTERFACE IS ALREADY CONFIGURED BY XXX_DEVICES.C | ||
143 | THAT IS TO SAY THAT MISO,MOSI,SPCK AND CS are already configured | ||
144 | we only need to enable the other datapins which are: | ||
145 | PB10/RK1 BUSY | ||
146 | */ | ||
147 | /* Touchscreen BUSY signal , pin,use pullup ( TODO not currently used in the ADS7843/6.c driver)*/ | ||
148 | at91_set_gpio_input(AT91_PIN_PB10, 1); | ||
149 | } | ||
150 | |||
151 | #else | ||
152 | static void __init at91_init_device_ts(void) {} | ||
153 | #endif | ||
154 | |||
155 | static struct ads7846_platform_data ads_info = { | ||
156 | .model = 7843, | ||
157 | .x_min = 150, | ||
158 | .x_max = 3830, | ||
159 | .y_min = 190, | ||
160 | .y_max = 3830, | ||
161 | .vref_delay_usecs = 100, | ||
162 | /* for a 8" touch screen*/ | ||
163 | //.x_plate_ohms = 603, //= 450, S.Birtles TODO | ||
164 | //.y_plate_ohms = 332, //= 250, S.Birtles TODO | ||
165 | /*for a 10.4" touch screen*/ | ||
166 | //.x_plate_ohms =611, | ||
167 | //.y_plate_ohms =325, | ||
168 | |||
169 | .x_plate_ohms = 576, | ||
170 | .y_plate_ohms = 366, | ||
171 | // | ||
172 | .pressure_max = 15000, /*generally nonsense on the 7843*/ | ||
173 | /*number of times to send query to chip in a given run 0 equals one time (do not set to 0!! ,there is a bug in ADS 7846 code)*/ | ||
174 | .debounce_max = 1, | ||
175 | .debounce_rep = 0, | ||
176 | .debounce_tol = (~0), | ||
177 | .get_pendown_state = ads7843_pendown_state, | ||
178 | }; | ||
179 | |||
180 | /*static struct canbus_platform_data can_info = { | ||
181 | .model = 2510, | ||
182 | }; | ||
183 | */ | ||
184 | |||
185 | static struct spi_board_info yl_9200_spi_devices[] = { | ||
186 | /*this sticks it at: | ||
187 | /sys/devices/platform/atmel_spi.0/spi0.0 | ||
188 | /sys/bus/platform/devices/ | ||
189 | Documentation/spi IIRC*/ | ||
190 | |||
191 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | ||
192 | /*(this IS correct 04-NOV-2007)*/ | ||
193 | { | ||
194 | .modalias = "ads7846", /* because the driver is called ads7846*/ | ||
195 | .chip_select = 0, /*THIS MUST BE AN INDEX INTO AN ARRAY OF pins */ | ||
196 | /*this is ONLY TO BE USED if chipselect above is not used, it passes a pin directly for the chip select*/ | ||
197 | /*.controller_data =AT91_PIN_PA3 ,*/ | ||
198 | .max_speed_hz = 5000*26, /*(4700 * 26)-125000 * 26, (max sample rate @ 3V) * (cmd + data + overhead) */ | ||
199 | .bus_num = 0, | ||
200 | .platform_data = &ads_info, | ||
201 | .irq = AT91_PIN_PB11, | ||
202 | }, | ||
203 | #endif | ||
204 | /*we need to put our CAN driver data here!!*/ | ||
205 | /*THIS IS ALL DUMMY DATA*/ | ||
206 | /* { | ||
207 | .modalias = "mcp2510", //DUMMY for MCP2510 chip | ||
208 | .chip_select = 1,*/ /*THIS MUST BE AN INDEX INTO AN ARRAY OF pins */ | ||
209 | /*this is ONLY TO BE USED if chipselect above is not used, it passes a pin directly for the chip select */ | ||
210 | /* .controller_data =AT91_PIN_PA4 , | ||
211 | .max_speed_hz = 25000 * 26, | ||
212 | .bus_num = 0, | ||
213 | .platform_data = &can_info, | ||
214 | .irq = AT91_PIN_PC0, | ||
215 | }, | ||
216 | */ | ||
217 | //max SPI chip needs to go here | ||
218 | }; | ||
219 | |||
220 | static struct mtd_partition __initdata yl_9200_nand_partition[] = { | ||
221 | { | ||
222 | .name = "AT91 NAND partition 1, boot", | ||
223 | .offset = 0, | ||
224 | .size = 1 * SZ_256K | ||
225 | }, | ||
226 | { | ||
227 | .name = "AT91 NAND partition 2, kernel", | ||
228 | .offset = 1 * SZ_256K, | ||
229 | .size = 2 * SZ_1M - 1 * SZ_256K | ||
230 | }, | ||
231 | { | ||
232 | .name = "AT91 NAND partition 3, filesystem", | ||
233 | .offset = 2 * SZ_1M, | ||
234 | .size = 14 * SZ_1M | ||
235 | }, | ||
236 | { | ||
237 | .name = "AT91 NAND partition 4, storage", | ||
238 | .offset = 16 * SZ_1M, | ||
239 | .size = 16 * SZ_1M | ||
240 | }, | ||
241 | { | ||
242 | .name = "AT91 NAND partition 5, ext-fs", | ||
243 | .offset = 32 * SZ_1M, | ||
244 | .size = 32 * SZ_1M | ||
245 | }, | ||
246 | }; | ||
247 | |||
248 | static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) | ||
249 | { | ||
250 | *num_partitions = ARRAY_SIZE(yl_9200_nand_partition); | ||
251 | return yl_9200_nand_partition; | ||
252 | } | ||
253 | |||
254 | static struct at91_nand_data __initdata yl_9200_nand_data = { | ||
255 | .ale= 6, | ||
256 | .cle= 7, | ||
257 | /*.det_pin = AT91_PIN_PCxx,*/ /*we don't have a det pin because NandFlash is fixed to board*/ | ||
258 | .rdy_pin = AT91_PIN_PC14, /*R/!B Sheet10*/ | ||
259 | .enable_pin = AT91_PIN_PC15, /*!CE Sheet10 */ | ||
260 | .partition_info = nand_partitions, | ||
261 | }; | ||
262 | |||
263 | |||
264 | |||
265 | /* | ||
266 | TODO S.Birtles | ||
267 | potentially a problem with the size above | ||
268 | physmap platform flash device: 00800000 at 10000000 | ||
269 | physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank | ||
270 | NOR chip too large to fit in mapping. Attempting to cope... | ||
271 | Intel/Sharp Extended Query Table at 0x0031 | ||
272 | Using buffer write method | ||
273 | cfi_cmdset_0001: Erase suspend on write enabled | ||
274 | Reducing visibility of 16384KiB chip to 8192KiB | ||
275 | */ | ||
276 | |||
277 | static struct mtd_partition yl_9200_flash_partitions[] = { | ||
278 | { | ||
279 | .name = "Bootloader", | ||
280 | .size = 0x00040000, | ||
281 | .offset = 0, | ||
282 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
283 | },{ | ||
284 | .name = "Kernel", | ||
285 | .size = 0x001C0000, | ||
286 | .offset = 0x00040000, | ||
287 | },{ | ||
288 | .name = "Filesystem", | ||
289 | .size = MTDPART_SIZ_FULL, | ||
290 | .offset = 0x00200000 | ||
291 | } | ||
292 | |||
293 | }; | ||
294 | |||
295 | static struct physmap_flash_data yl_9200_flash_data = { | ||
296 | .width = 2, | ||
297 | .parts = yl_9200_flash_partitions, | ||
298 | .nr_parts = ARRAY_SIZE(yl_9200_flash_partitions), | ||
299 | }; | ||
300 | |||
301 | static struct resource yl_9200_flash_resources[] = { | ||
302 | { | ||
303 | .start = YL_9200_FLASH_BASE, | ||
304 | .end = YL_9200_FLASH_BASE + YL_9200_FLASH_SIZE - 1, | ||
305 | .flags = IORESOURCE_MEM, | ||
306 | } | ||
307 | }; | ||
308 | |||
309 | static struct platform_device yl_9200_flash = { | ||
310 | .name = "physmap-flash", | ||
311 | .id = 0, | ||
312 | .dev = { | ||
313 | .platform_data = &yl_9200_flash_data, | ||
314 | }, | ||
315 | .resource = yl_9200_flash_resources, | ||
316 | .num_resources = ARRAY_SIZE(yl_9200_flash_resources), | ||
317 | }; | ||
318 | |||
319 | |||
320 | static struct gpio_led yl_9200_leds[] = { | ||
321 | /*D2 &D3 are passed directly in via at91_init_leds*/ | ||
322 | { | ||
323 | .name = "led4", /*D4*/ | ||
324 | .gpio = AT91_PIN_PB15, | ||
325 | .active_low = 1, | ||
326 | .default_trigger = "heartbeat", | ||
327 | /*.default_trigger = "timer",*/ | ||
328 | }, | ||
329 | { | ||
330 | .name = "led5", /*D5*/ | ||
331 | .gpio = AT91_PIN_PB8, | ||
332 | .active_low = 1, | ||
333 | .default_trigger = "heartbeat", | ||
334 | } | ||
335 | }; | ||
336 | |||
337 | //static struct gpio_sounder yl_9200_sounder[] = {*/ | ||
338 | /*This is a simple speaker attached to a gpo line*/ | ||
339 | |||
340 | // { | ||
341 | // .name = "Speaker", /*LS1*/ | ||
342 | // .gpio = AT91_PIN_PA22, | ||
343 | // .active_low = 0, | ||
344 | // .default_trigger = "heartbeat", | ||
345 | /*.default_trigger = "timer",*/ | ||
346 | // }, | ||
347 | //}; | ||
348 | |||
349 | |||
350 | |||
351 | static struct i2c_board_info __initdata yl_9200_i2c_devices[] = { | ||
352 | { | ||
353 | /*TODO*/ | ||
354 | I2C_BOARD_INFO("CS4334", 0x00), | ||
355 | } | ||
356 | }; | ||
357 | |||
358 | |||
359 | /* | ||
360 | * GPIO Buttons | ||
361 | */ | ||
362 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
363 | static struct gpio_keys_button yl_9200_buttons[] = { | ||
364 | { | ||
365 | .gpio = AT91_PIN_PA24, | ||
366 | .code = BTN_2, | ||
367 | .desc = "SW2", | ||
368 | .active_low = 1, | ||
369 | .wakeup = 1, | ||
370 | }, | ||
371 | { | ||
372 | .gpio = AT91_PIN_PB1, | ||
373 | .code = BTN_3, | ||
374 | .desc = "SW3", | ||
375 | .active_low = 1, | ||
376 | .wakeup = 1, | ||
377 | }, | ||
378 | { | ||
379 | .gpio = AT91_PIN_PB2, | ||
380 | .code = BTN_4, | ||
381 | .desc = "SW4", | ||
382 | .active_low = 1, | ||
383 | .wakeup = 1, | ||
384 | }, | ||
385 | { | ||
386 | .gpio = AT91_PIN_PB6, | ||
387 | .code = BTN_5, | ||
388 | .desc = "SW5", | ||
389 | .active_low = 1, | ||
390 | .wakeup = 1, | ||
391 | }, | ||
392 | |||
393 | }; | ||
394 | |||
395 | static struct gpio_keys_platform_data yl_9200_button_data = { | ||
396 | .buttons = yl_9200_buttons, | ||
397 | .nbuttons = ARRAY_SIZE(yl_9200_buttons), | ||
398 | }; | ||
399 | |||
400 | static struct platform_device yl_9200_button_device = { | ||
401 | .name = "gpio-keys", | ||
402 | .id = -1, | ||
403 | .num_resources = 0, | ||
404 | .dev = { | ||
405 | .platform_data = &yl_9200_button_data, | ||
406 | } | ||
407 | }; | ||
408 | |||
409 | static void __init yl_9200_add_device_buttons(void) | ||
410 | { | ||
411 | //SW2 | ||
412 | at91_set_gpio_input(AT91_PIN_PA24, 0); | ||
413 | at91_set_deglitch(AT91_PIN_PA24, 1); | ||
414 | |||
415 | //SW3 | ||
416 | at91_set_gpio_input(AT91_PIN_PB1, 0); | ||
417 | at91_set_deglitch(AT91_PIN_PB1, 1); | ||
418 | //SW4 | ||
419 | at91_set_gpio_input(AT91_PIN_PB2, 0); | ||
420 | at91_set_deglitch(AT91_PIN_PB2, 1); | ||
421 | |||
422 | //SW5 | ||
423 | at91_set_gpio_input(AT91_PIN_PB6, 0); | ||
424 | at91_set_deglitch(AT91_PIN_PB6, 1); | ||
425 | |||
426 | |||
427 | at91_set_gpio_output(AT91_PIN_PB7, 1); /* #TURN BUTTONS ON, SHEET 5 of schematics */ | ||
428 | platform_device_register(&yl_9200_button_device); | ||
429 | } | ||
430 | #else | ||
431 | static void __init yl_9200_add_device_buttons(void) {} | ||
432 | #endif | ||
433 | |||
434 | #if defined(CONFIG_FB_S1D135XX) || defined(CONFIG_FB_S1D13XXX_MODULE) | ||
435 | #include <video/s1d13xxxfb.h> | ||
436 | |||
437 | /* EPSON S1D13806 FB (discontinued chip)*/ | ||
438 | /* EPSON S1D13506 FB */ | ||
439 | |||
440 | #define AT91_FB_REG_BASE 0x80000000L | ||
441 | #define AT91_FB_REG_SIZE 0x200 | ||
442 | #define AT91_FB_VMEM_BASE 0x80200000L | ||
443 | #define AT91_FB_VMEM_SIZE 0x200000L | ||
444 | |||
445 | /*#define S1D_DISPLAY_WIDTH 640*/ | ||
446 | /*#define S1D_DISPLAY_HEIGHT 480*/ | ||
447 | |||
448 | |||
449 | static void __init yl_9200_init_video(void) | ||
450 | { | ||
451 | at91_sys_write(AT91_PIOC + PIO_ASR,AT91_PIN_PC6); | ||
452 | at91_sys_write(AT91_PIOC + PIO_BSR,0); | ||
453 | at91_sys_write(AT91_PIOC + PIO_ASR,AT91_PIN_PC6); | ||
454 | |||
455 | at91_sys_write( AT91_SMC_CSR(2), | ||
456 | AT91_SMC_NWS_(0x4) | | ||
457 | AT91_SMC_WSEN | | ||
458 | AT91_SMC_TDF_(0x100) | | ||
459 | AT91_SMC_DBW | ||
460 | ); | ||
461 | |||
462 | |||
463 | |||
464 | } | ||
465 | |||
466 | |||
467 | static struct s1d13xxxfb_regval yl_9200_s1dfb_initregs[] = | ||
468 | { | ||
469 | {S1DREG_MISC, 0x00}, /* Miscellaneous Register*/ | ||
470 | {S1DREG_COM_DISP_MODE, 0x01}, /* Display Mode Register, LCD only*/ | ||
471 | {S1DREG_GPIO_CNF0, 0x00}, /* General IO Pins Configuration Register*/ | ||
472 | {S1DREG_GPIO_CTL0, 0x00}, /* General IO Pins Control Register*/ | ||
473 | {S1DREG_CLK_CNF, 0x11}, /* Memory Clock Configuration Register*/ | ||
474 | {S1DREG_LCD_CLK_CNF, 0x10}, /* LCD Pixel Clock Configuration Register*/ | ||
475 | {S1DREG_CRT_CLK_CNF, 0x12}, /* CRT/TV Pixel Clock Configuration Register*/ | ||
476 | {S1DREG_MPLUG_CLK_CNF, 0x01}, /* MediaPlug Clock Configuration Register*/ | ||
477 | {S1DREG_CPU2MEM_WST_SEL, 0x02}, /* CPU To Memory Wait State Select Register*/ | ||
478 | {S1DREG_MEM_CNF, 0x00}, /* Memory Configuration Register*/ | ||
479 | {S1DREG_SDRAM_REF_RATE, 0x04}, /* DRAM Refresh Rate Register, MCLK source*/ | ||
480 | {S1DREG_SDRAM_TC0, 0x12}, /* DRAM Timings Control Register 0*/ | ||
481 | {S1DREG_SDRAM_TC1, 0x02}, /* DRAM Timings Control Register 1*/ | ||
482 | {S1DREG_PANEL_TYPE, 0x25}, /* Panel Type Register*/ | ||
483 | {S1DREG_MOD_RATE, 0x00}, /* MOD Rate Register*/ | ||
484 | {S1DREG_LCD_DISP_HWIDTH, 0x4F}, /* LCD Horizontal Display Width Register*/ | ||
485 | {S1DREG_LCD_NDISP_HPER, 0x13}, /* LCD Horizontal Non-Display Period Register*/ | ||
486 | {S1DREG_TFT_FPLINE_START, 0x01}, /* TFT FPLINE Start Position Register*/ | ||
487 | {S1DREG_TFT_FPLINE_PWIDTH, 0x0c}, /* TFT FPLINE Pulse Width Register*/ | ||
488 | {S1DREG_LCD_DISP_VHEIGHT0, 0xDF}, /* LCD Vertical Display Height Register 0*/ | ||
489 | {S1DREG_LCD_DISP_VHEIGHT1, 0x01}, /* LCD Vertical Display Height Register 1*/ | ||
490 | {S1DREG_LCD_NDISP_VPER, 0x2c}, /* LCD Vertical Non-Display Period Register*/ | ||
491 | {S1DREG_TFT_FPFRAME_START, 0x0a}, /* TFT FPFRAME Start Position Register*/ | ||
492 | {S1DREG_TFT_FPFRAME_PWIDTH, 0x02}, /* TFT FPFRAME Pulse Width Register*/ | ||
493 | {S1DREG_LCD_DISP_MODE, 0x05}, /* LCD Display Mode Register*/ | ||
494 | {S1DREG_LCD_MISC, 0x01}, /* LCD Miscellaneous Register*/ | ||
495 | {S1DREG_LCD_DISP_START0, 0x00}, /* LCD Display Start Address Register 0*/ | ||
496 | {S1DREG_LCD_DISP_START1, 0x00}, /* LCD Display Start Address Register 1*/ | ||
497 | {S1DREG_LCD_DISP_START2, 0x00}, /* LCD Display Start Address Register 2*/ | ||
498 | {S1DREG_LCD_MEM_OFF0, 0x80}, /* LCD Memory Address Offset Register 0*/ | ||
499 | {S1DREG_LCD_MEM_OFF1, 0x02}, /* LCD Memory Address Offset Register 1*/ | ||
500 | {S1DREG_LCD_PIX_PAN, 0x03}, /* LCD Pixel Panning Register*/ | ||
501 | {S1DREG_LCD_DISP_FIFO_HTC, 0x00}, /* LCD Display FIFO High Threshold Control Register*/ | ||
502 | {S1DREG_LCD_DISP_FIFO_LTC, 0x00}, /* LCD Display FIFO Low Threshold Control Register*/ | ||
503 | {S1DREG_CRT_DISP_HWIDTH, 0x4F}, /* CRT/TV Horizontal Display Width Register*/ | ||
504 | {S1DREG_CRT_NDISP_HPER, 0x13}, /* CRT/TV Horizontal Non-Display Period Register*/ | ||
505 | {S1DREG_CRT_HRTC_START, 0x01}, /* CRT/TV HRTC Start Position Register*/ | ||
506 | {S1DREG_CRT_HRTC_PWIDTH, 0x0B}, /* CRT/TV HRTC Pulse Width Register*/ | ||
507 | {S1DREG_CRT_DISP_VHEIGHT0, 0xDF}, /* CRT/TV Vertical Display Height Register 0*/ | ||
508 | {S1DREG_CRT_DISP_VHEIGHT1, 0x01}, /* CRT/TV Vertical Display Height Register 1*/ | ||
509 | {S1DREG_CRT_NDISP_VPER, 0x2B}, /* CRT/TV Vertical Non-Display Period Register*/ | ||
510 | {S1DREG_CRT_VRTC_START, 0x09}, /* CRT/TV VRTC Start Position Register*/ | ||
511 | {S1DREG_CRT_VRTC_PWIDTH, 0x01}, /* CRT/TV VRTC Pulse Width Register*/ | ||
512 | {S1DREG_TV_OUT_CTL, 0x18}, /* TV Output Control Register */ | ||
513 | {S1DREG_CRT_DISP_MODE, 0x05}, /* CRT/TV Display Mode Register, 16BPP*/ | ||
514 | {S1DREG_CRT_DISP_START0, 0x00}, /* CRT/TV Display Start Address Register 0*/ | ||
515 | {S1DREG_CRT_DISP_START1, 0x00}, /* CRT/TV Display Start Address Register 1*/ | ||
516 | {S1DREG_CRT_DISP_START2, 0x00}, /* CRT/TV Display Start Address Register 2*/ | ||
517 | {S1DREG_CRT_MEM_OFF0, 0x80}, /* CRT/TV Memory Address Offset Register 0*/ | ||
518 | {S1DREG_CRT_MEM_OFF1, 0x02}, /* CRT/TV Memory Address Offset Register 1*/ | ||
519 | {S1DREG_CRT_PIX_PAN, 0x00}, /* CRT/TV Pixel Panning Register*/ | ||
520 | {S1DREG_CRT_DISP_FIFO_HTC, 0x00}, /* CRT/TV Display FIFO High Threshold Control Register*/ | ||
521 | {S1DREG_CRT_DISP_FIFO_LTC, 0x00}, /* CRT/TV Display FIFO Low Threshold Control Register*/ | ||
522 | {S1DREG_LCD_CUR_CTL, 0x00}, /* LCD Ink/Cursor Control Register*/ | ||
523 | {S1DREG_LCD_CUR_START, 0x01}, /* LCD Ink/Cursor Start Address Register*/ | ||
524 | {S1DREG_LCD_CUR_XPOS0, 0x00}, /* LCD Cursor X Position Register 0*/ | ||
525 | {S1DREG_LCD_CUR_XPOS1, 0x00}, /* LCD Cursor X Position Register 1*/ | ||
526 | {S1DREG_LCD_CUR_YPOS0, 0x00}, /* LCD Cursor Y Position Register 0*/ | ||
527 | {S1DREG_LCD_CUR_YPOS1, 0x00}, /* LCD Cursor Y Position Register 1*/ | ||
528 | {S1DREG_LCD_CUR_BCTL0, 0x00}, /* LCD Ink/Cursor Blue Color 0 Register*/ | ||
529 | {S1DREG_LCD_CUR_GCTL0, 0x00}, /* LCD Ink/Cursor Green Color 0 Register*/ | ||
530 | {S1DREG_LCD_CUR_RCTL0, 0x00}, /* LCD Ink/Cursor Red Color 0 Register*/ | ||
531 | {S1DREG_LCD_CUR_BCTL1, 0x1F}, /* LCD Ink/Cursor Blue Color 1 Register*/ | ||
532 | {S1DREG_LCD_CUR_GCTL1, 0x3F}, /* LCD Ink/Cursor Green Color 1 Register*/ | ||
533 | {S1DREG_LCD_CUR_RCTL1, 0x1F}, /* LCD Ink/Cursor Red Color 1 Register*/ | ||
534 | {S1DREG_LCD_CUR_FIFO_HTC, 0x00}, /* LCD Ink/Cursor FIFO Threshold Register*/ | ||
535 | {S1DREG_CRT_CUR_CTL, 0x00}, /* CRT/TV Ink/Cursor Control Register*/ | ||
536 | {S1DREG_CRT_CUR_START, 0x01}, /* CRT/TV Ink/Cursor Start Address Register*/ | ||
537 | {S1DREG_CRT_CUR_XPOS0, 0x00}, /* CRT/TV Cursor X Position Register 0*/ | ||
538 | {S1DREG_CRT_CUR_XPOS1, 0x00}, /* CRT/TV Cursor X Position Register 1*/ | ||
539 | {S1DREG_CRT_CUR_YPOS0, 0x00}, /* CRT/TV Cursor Y Position Register 0*/ | ||
540 | {S1DREG_CRT_CUR_YPOS1, 0x00}, /* CRT/TV Cursor Y Position Register 1*/ | ||
541 | {S1DREG_CRT_CUR_BCTL0, 0x00}, /* CRT/TV Ink/Cursor Blue Color 0 Register*/ | ||
542 | {S1DREG_CRT_CUR_GCTL0, 0x00}, /* CRT/TV Ink/Cursor Green Color 0 Register*/ | ||
543 | {S1DREG_CRT_CUR_RCTL0, 0x00}, /* CRT/TV Ink/Cursor Red Color 0 Register*/ | ||
544 | {S1DREG_CRT_CUR_BCTL1, 0x1F}, /* CRT/TV Ink/Cursor Blue Color 1 Register*/ | ||
545 | {S1DREG_CRT_CUR_GCTL1, 0x3F}, /* CRT/TV Ink/Cursor Green Color 1 Register*/ | ||
546 | {S1DREG_CRT_CUR_RCTL1, 0x1F}, /* CRT/TV Ink/Cursor Red Color 1 Register*/ | ||
547 | {S1DREG_CRT_CUR_FIFO_HTC, 0x00}, /* CRT/TV Ink/Cursor FIFO Threshold Register*/ | ||
548 | {S1DREG_BBLT_CTL0, 0x00}, /* BitBlt Control Register 0*/ | ||
549 | {S1DREG_BBLT_CTL1, 0x01}, /* BitBlt Control Register 1*/ | ||
550 | {S1DREG_BBLT_CC_EXP, 0x00}, /* BitBlt ROP Code/Color Expansion Register*/ | ||
551 | {S1DREG_BBLT_OP, 0x00}, /* BitBlt Operation Register*/ | ||
552 | {S1DREG_BBLT_SRC_START0, 0x00}, /* BitBlt Source Start Address Register 0*/ | ||
553 | {S1DREG_BBLT_SRC_START1, 0x00}, /* BitBlt Source Start Address Register 1*/ | ||
554 | {S1DREG_BBLT_SRC_START2, 0x00}, /* BitBlt Source Start Address Register 2*/ | ||
555 | {S1DREG_BBLT_DST_START0, 0x00}, /* BitBlt Destination Start Address Register 0*/ | ||
556 | {S1DREG_BBLT_DST_START1, 0x00}, /* BitBlt Destination Start Address Register 1*/ | ||
557 | {S1DREG_BBLT_DST_START2, 0x00}, /* BitBlt Destination Start Address Register 2*/ | ||
558 | {S1DREG_BBLT_MEM_OFF0, 0x00}, /* BitBlt Memory Address Offset Register 0*/ | ||
559 | {S1DREG_BBLT_MEM_OFF1, 0x00}, /* BitBlt Memory Address Offset Register 1*/ | ||
560 | {S1DREG_BBLT_WIDTH0, 0x00}, /* BitBlt Width Register 0*/ | ||
561 | {S1DREG_BBLT_WIDTH1, 0x00}, /* BitBlt Width Register 1*/ | ||
562 | {S1DREG_BBLT_HEIGHT0, 0x00}, /* BitBlt Height Register 0*/ | ||
563 | {S1DREG_BBLT_HEIGHT1, 0x00}, /* BitBlt Height Register 1*/ | ||
564 | {S1DREG_BBLT_BGC0, 0x00}, /* BitBlt Background Color Register 0*/ | ||
565 | {S1DREG_BBLT_BGC1, 0x00}, /* BitBlt Background Color Register 1*/ | ||
566 | {S1DREG_BBLT_FGC0, 0x00}, /* BitBlt Foreground Color Register 0*/ | ||
567 | {S1DREG_BBLT_FGC1, 0x00}, /* BitBlt Foreground Color Register 1*/ | ||
568 | {S1DREG_LKUP_MODE, 0x00}, /* Look-Up Table Mode Register*/ | ||
569 | {S1DREG_LKUP_ADDR, 0x00}, /* Look-Up Table Address Register*/ | ||
570 | {S1DREG_PS_CNF, 0x00}, /* Power Save Configuration Register*/ | ||
571 | {S1DREG_PS_STATUS, 0x00}, /* Power Save Status Register*/ | ||
572 | {S1DREG_CPU2MEM_WDOGT, 0x00}, /* CPU-to-Memory Access Watchdog Timer Register*/ | ||
573 | {S1DREG_COM_DISP_MODE, 0x01}, /* Display Mode Register, LCD only*/ | ||
574 | }; | ||
575 | |||
576 | static u64 s1dfb_dmamask = 0xffffffffUL; | ||
577 | |||
578 | static struct s1d13xxxfb_pdata yl_9200_s1dfb_pdata = { | ||
579 | .initregs = yl_9200_s1dfb_initregs, | ||
580 | .initregssize = ARRAY_SIZE(yl_9200_s1dfb_initregs), | ||
581 | .platform_init_video = yl_9200_init_video, | ||
582 | }; | ||
583 | |||
584 | static struct resource yl_9200_s1dfb_resource[] = { | ||
585 | [0] = { /* video mem */ | ||
586 | .name = "s1d13xxxfb memory", | ||
587 | /* .name = "s1d13806 memory",*/ | ||
588 | .start = AT91_FB_VMEM_BASE, | ||
589 | .end = AT91_FB_VMEM_BASE + AT91_FB_VMEM_SIZE -1, | ||
590 | .flags = IORESOURCE_MEM, | ||
591 | }, | ||
592 | [1] = { /* video registers */ | ||
593 | .name = "s1d13xxxfb registers", | ||
594 | /* .name = "s1d13806 registers",*/ | ||
595 | .start = AT91_FB_REG_BASE, | ||
596 | .end = AT91_FB_REG_BASE + AT91_FB_REG_SIZE -1, | ||
597 | .flags = IORESOURCE_MEM, | ||
598 | }, | ||
599 | }; | ||
600 | |||
601 | static struct platform_device yl_9200_s1dfb_device = { | ||
602 | /*TODO S.Birtles , really we need the chip revision in here as well*/ | ||
603 | .name = "s1d13806fb", | ||
604 | /* .name = "s1d13506fb",*/ | ||
605 | .id = -1, | ||
606 | .dev = { | ||
607 | /*TODO theres a waring here!!*/ | ||
608 | /*WARNING: vmlinux.o(.data+0x2dbc): Section mismatch: reference to .init.text: (between 'yl_9200_s1dfb_pdata' and 's1dfb_dmamask')*/ | ||
609 | .dma_mask = &s1dfb_dmamask, | ||
610 | .coherent_dma_mask = 0xffffffff, | ||
611 | .platform_data = &yl_9200_s1dfb_pdata, | ||
612 | }, | ||
613 | .resource = yl_9200_s1dfb_resource, | ||
614 | .num_resources = ARRAY_SIZE(yl_9200_s1dfb_resource), | ||
615 | }; | ||
616 | |||
617 | void __init yl_9200_add_device_video(void) | ||
618 | { | ||
619 | platform_device_register(&yl_9200_s1dfb_device); | ||
620 | } | ||
621 | #else | ||
622 | void __init yl_9200_add_device_video(void) {} | ||
623 | #endif | ||
624 | |||
625 | /*this is not called first , yl_9200_map_io is called first*/ | ||
626 | static void __init yl_9200_board_init(void) | ||
627 | { | ||
628 | /* Serial */ | ||
629 | at91_add_device_serial(); | ||
630 | /* Ethernet */ | ||
631 | at91_add_device_eth(&yl_9200_eth_data); | ||
632 | /* USB Host */ | ||
633 | at91_add_device_usbh(&yl_9200_usbh_data); | ||
634 | /* USB Device */ | ||
635 | at91_add_device_udc(&yl_9200_udc_data); | ||
636 | /* pullup_pin it is actually active low, but this is not needed, driver sets it up */ | ||
637 | /*at91_set_multi_drive(yl_9200_udc_data.pullup_pin, 0);*/ | ||
638 | |||
639 | /* Compact Flash */ | ||
640 | /*at91_add_device_cf(&yl_9200_cf_data);*/ | ||
641 | |||
642 | /* I2C */ | ||
643 | at91_add_device_i2c(yl_9200_i2c_devices, ARRAY_SIZE(yl_9200_i2c_devices)); | ||
644 | /* SPI */ | ||
645 | /*TODO YL9200 we have 2 spi interfaces touch screen & CAN*/ | ||
646 | /* AT91_PIN_PA5, AT91_PIN_PA6 , are used on the max 485 NOT SPI*/ | ||
647 | |||
648 | /*touch screen and CAN*/ | ||
649 | at91_add_device_spi(yl_9200_spi_devices, ARRAY_SIZE(yl_9200_spi_devices)); | ||
650 | |||
651 | /*Basically the TS uses PB11 & PB10 , PB11 is configured by the SPI system BP10 IS NOT USED!!*/ | ||
652 | /* we need this incase the board is running without a touch screen*/ | ||
653 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | ||
654 | at91_init_device_ts(); /*init the touch screen device*/ | ||
655 | #endif | ||
656 | /* DataFlash card */ | ||
657 | at91_add_device_mmc(0, &yl_9200_mmc_data); | ||
658 | /* NAND */ | ||
659 | at91_add_device_nand(&yl_9200_nand_data); | ||
660 | /* NOR Flash */ | ||
661 | platform_device_register(&yl_9200_flash); | ||
662 | /* LEDs. Note!! this does not include the led's we passed for the processor status */ | ||
663 | at91_gpio_leds(yl_9200_leds, ARRAY_SIZE(yl_9200_leds)); | ||
664 | /* VGA */ | ||
665 | /*this is self registered by including the s1d13xxx chip in the kernel build*/ | ||
666 | yl_9200_add_device_video(); | ||
667 | /* Push Buttons */ | ||
668 | yl_9200_add_device_buttons(); | ||
669 | /*TODO fixup the Sounder */ | ||
670 | // yl_9200_add_device_sounder(yl_9200_sounder,ARRAY_SIZE(yl_9200_sounder)); | ||
671 | |||
672 | } | ||
673 | |||
674 | MACHINE_START(YL9200, "uCdragon YL-9200") | ||
675 | /* Maintainer: S.Birtles*/ | ||
676 | .phys_io = AT91_BASE_SYS, | ||
677 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
678 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
679 | .timer = &at91rm9200_timer, | ||
680 | .map_io = yl_9200_map_io, | ||
681 | .init_irq = yl_9200_init_irq, | ||
682 | .init_machine = yl_9200_board_init, | ||
683 | MACHINE_END | ||