diff options
Diffstat (limited to 'arch/arm')
43 files changed, 2319 insertions, 124 deletions
diff --git a/arch/arm/configs/afeb9260_defconfig b/arch/arm/configs/afeb9260_defconfig new file mode 100644 index 000000000000..ce909586a34f --- /dev/null +++ b/arch/arm/configs/afeb9260_defconfig | |||
@@ -0,0 +1,1259 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.27-rc2 | ||
4 | # Tue Aug 12 22:30:16 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_HAVE_LATENCYTOP_SUPPORT=y | ||
16 | CONFIG_LOCKDEP_SUPPORT=y | ||
17 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
18 | CONFIG_HARDIRQS_SW_RESEND=y | ||
19 | CONFIG_GENERIC_IRQ_PROBE=y | ||
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
22 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
23 | CONFIG_GENERIC_HWEIGHT=y | ||
24 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
25 | CONFIG_ARCH_SUPPORTS_AOUT=y | ||
26 | CONFIG_ZONE_DMA=y | ||
27 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
28 | CONFIG_VECTORS_BASE=0xffff0000 | ||
29 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
30 | |||
31 | # | ||
32 | # General setup | ||
33 | # | ||
34 | CONFIG_EXPERIMENTAL=y | ||
35 | CONFIG_BROKEN_ON_SMP=y | ||
36 | CONFIG_LOCK_KERNEL=y | ||
37 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
38 | CONFIG_LOCALVERSION="" | ||
39 | # CONFIG_LOCALVERSION_AUTO is not set | ||
40 | CONFIG_SWAP=y | ||
41 | CONFIG_SYSVIPC=y | ||
42 | CONFIG_SYSVIPC_SYSCTL=y | ||
43 | # CONFIG_POSIX_MQUEUE is not set | ||
44 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
45 | # CONFIG_TASKSTATS is not set | ||
46 | # CONFIG_AUDIT is not set | ||
47 | # CONFIG_IKCONFIG is not set | ||
48 | CONFIG_LOG_BUF_SHIFT=14 | ||
49 | # CONFIG_CGROUPS is not set | ||
50 | # CONFIG_GROUP_SCHED is not set | ||
51 | CONFIG_SYSFS_DEPRECATED=y | ||
52 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
53 | # CONFIG_RELAY is not set | ||
54 | CONFIG_NAMESPACES=y | ||
55 | # CONFIG_UTS_NS is not set | ||
56 | # CONFIG_IPC_NS is not set | ||
57 | # CONFIG_USER_NS is not set | ||
58 | # CONFIG_PID_NS is not set | ||
59 | CONFIG_BLK_DEV_INITRD=y | ||
60 | CONFIG_INITRAMFS_SOURCE="" | ||
61 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
62 | CONFIG_SYSCTL=y | ||
63 | # CONFIG_EMBEDDED is not set | ||
64 | CONFIG_UID16=y | ||
65 | CONFIG_SYSCTL_SYSCALL=y | ||
66 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
67 | CONFIG_KALLSYMS=y | ||
68 | # CONFIG_KALLSYMS_ALL is not set | ||
69 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
70 | CONFIG_HOTPLUG=y | ||
71 | CONFIG_PRINTK=y | ||
72 | CONFIG_BUG=y | ||
73 | CONFIG_ELF_CORE=y | ||
74 | CONFIG_COMPAT_BRK=y | ||
75 | CONFIG_BASE_FULL=y | ||
76 | CONFIG_FUTEX=y | ||
77 | CONFIG_ANON_INODES=y | ||
78 | CONFIG_EPOLL=y | ||
79 | CONFIG_SIGNALFD=y | ||
80 | CONFIG_TIMERFD=y | ||
81 | CONFIG_EVENTFD=y | ||
82 | CONFIG_SHMEM=y | ||
83 | CONFIG_VM_EVENT_COUNTERS=y | ||
84 | CONFIG_SLAB=y | ||
85 | # CONFIG_SLUB is not set | ||
86 | # CONFIG_SLOB is not set | ||
87 | # CONFIG_PROFILING is not set | ||
88 | # CONFIG_MARKERS is not set | ||
89 | CONFIG_HAVE_OPROFILE=y | ||
90 | # CONFIG_KPROBES is not set | ||
91 | # CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is not set | ||
92 | # CONFIG_HAVE_IOREMAP_PROT is not set | ||
93 | CONFIG_HAVE_KPROBES=y | ||
94 | CONFIG_HAVE_KRETPROBES=y | ||
95 | # CONFIG_HAVE_ARCH_TRACEHOOK is not set | ||
96 | # CONFIG_HAVE_DMA_ATTRS is not set | ||
97 | # CONFIG_USE_GENERIC_SMP_HELPERS is not set | ||
98 | CONFIG_HAVE_CLK=y | ||
99 | CONFIG_PROC_PAGE_MONITOR=y | ||
100 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
101 | CONFIG_SLABINFO=y | ||
102 | CONFIG_RT_MUTEXES=y | ||
103 | # CONFIG_TINY_SHMEM is not set | ||
104 | CONFIG_BASE_SMALL=0 | ||
105 | CONFIG_MODULES=y | ||
106 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
107 | CONFIG_MODULE_UNLOAD=y | ||
108 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
109 | # CONFIG_MODVERSIONS is not set | ||
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
111 | CONFIG_KMOD=y | ||
112 | CONFIG_BLOCK=y | ||
113 | # CONFIG_LBD is not set | ||
114 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
115 | # CONFIG_LSF is not set | ||
116 | # CONFIG_BLK_DEV_BSG is not set | ||
117 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
118 | |||
119 | # | ||
120 | # IO Schedulers | ||
121 | # | ||
122 | CONFIG_IOSCHED_NOOP=y | ||
123 | CONFIG_IOSCHED_AS=y | ||
124 | # CONFIG_IOSCHED_DEADLINE is not set | ||
125 | # CONFIG_IOSCHED_CFQ is not set | ||
126 | CONFIG_DEFAULT_AS=y | ||
127 | # CONFIG_DEFAULT_DEADLINE is not set | ||
128 | # CONFIG_DEFAULT_CFQ is not set | ||
129 | # CONFIG_DEFAULT_NOOP is not set | ||
130 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
131 | CONFIG_CLASSIC_RCU=y | ||
132 | |||
133 | # | ||
134 | # System Type | ||
135 | # | ||
136 | # CONFIG_ARCH_AAEC2000 is not set | ||
137 | # CONFIG_ARCH_INTEGRATOR is not set | ||
138 | # CONFIG_ARCH_REALVIEW is not set | ||
139 | # CONFIG_ARCH_VERSATILE is not set | ||
140 | CONFIG_ARCH_AT91=y | ||
141 | # CONFIG_ARCH_CLPS7500 is not set | ||
142 | # CONFIG_ARCH_CLPS711X is not set | ||
143 | # CONFIG_ARCH_EBSA110 is not set | ||
144 | # CONFIG_ARCH_EP93XX is not set | ||
145 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
146 | # CONFIG_ARCH_NETX is not set | ||
147 | # CONFIG_ARCH_H720X is not set | ||
148 | # CONFIG_ARCH_IMX is not set | ||
149 | # CONFIG_ARCH_IOP13XX is not set | ||
150 | # CONFIG_ARCH_IOP32X is not set | ||
151 | # CONFIG_ARCH_IOP33X is not set | ||
152 | # CONFIG_ARCH_IXP23XX is not set | ||
153 | # CONFIG_ARCH_IXP2000 is not set | ||
154 | # CONFIG_ARCH_IXP4XX is not set | ||
155 | # CONFIG_ARCH_L7200 is not set | ||
156 | # CONFIG_ARCH_KIRKWOOD is not set | ||
157 | # CONFIG_ARCH_KS8695 is not set | ||
158 | # CONFIG_ARCH_NS9XXX is not set | ||
159 | # CONFIG_ARCH_LOKI is not set | ||
160 | # CONFIG_ARCH_MV78XX0 is not set | ||
161 | # CONFIG_ARCH_MXC is not set | ||
162 | # CONFIG_ARCH_ORION5X is not set | ||
163 | # CONFIG_ARCH_PNX4008 is not set | ||
164 | # CONFIG_ARCH_PXA is not set | ||
165 | # CONFIG_ARCH_RPC is not set | ||
166 | # CONFIG_ARCH_SA1100 is not set | ||
167 | # CONFIG_ARCH_S3C2410 is not set | ||
168 | # CONFIG_ARCH_SHARK is not set | ||
169 | # CONFIG_ARCH_LH7A40X is not set | ||
170 | # CONFIG_ARCH_DAVINCI is not set | ||
171 | # CONFIG_ARCH_OMAP is not set | ||
172 | # CONFIG_ARCH_MSM7X00A is not set | ||
173 | |||
174 | # | ||
175 | # Boot options | ||
176 | # | ||
177 | |||
178 | # | ||
179 | # Power management | ||
180 | # | ||
181 | |||
182 | # | ||
183 | # Atmel AT91 System-on-Chip | ||
184 | # | ||
185 | # CONFIG_ARCH_AT91RM9200 is not set | ||
186 | CONFIG_ARCH_AT91SAM9260=y | ||
187 | # CONFIG_ARCH_AT91SAM9261 is not set | ||
188 | # CONFIG_ARCH_AT91SAM9263 is not set | ||
189 | # CONFIG_ARCH_AT91SAM9RL is not set | ||
190 | # CONFIG_ARCH_AT91SAM9G20 is not set | ||
191 | # CONFIG_ARCH_AT91CAP9 is not set | ||
192 | # CONFIG_ARCH_AT91X40 is not set | ||
193 | CONFIG_AT91_PMC_UNIT=y | ||
194 | |||
195 | # | ||
196 | # AT91SAM9260 Variants | ||
197 | # | ||
198 | # CONFIG_ARCH_AT91SAM9260_SAM9XE is not set | ||
199 | |||
200 | # | ||
201 | # AT91SAM9260 / AT91SAM9XE Board Type | ||
202 | # | ||
203 | # CONFIG_MACH_AT91SAM9260EK is not set | ||
204 | # CONFIG_MACH_CAM60 is not set | ||
205 | # CONFIG_MACH_SAM9_L9260 is not set | ||
206 | CONFIG_MACH_AFEB9260=y | ||
207 | # CONFIG_MACH_USB_A9260 is not set | ||
208 | # CONFIG_MACH_QIL_A9260 is not set | ||
209 | |||
210 | # | ||
211 | # AT91 Board Options | ||
212 | # | ||
213 | |||
214 | # | ||
215 | # AT91 Feature Selections | ||
216 | # | ||
217 | CONFIG_AT91_PROGRAMMABLE_CLOCKS=y | ||
218 | CONFIG_AT91_TIMER_HZ=100 | ||
219 | CONFIG_AT91_EARLY_DBGU=y | ||
220 | # CONFIG_AT91_EARLY_USART0 is not set | ||
221 | # CONFIG_AT91_EARLY_USART1 is not set | ||
222 | # CONFIG_AT91_EARLY_USART2 is not set | ||
223 | # CONFIG_AT91_EARLY_USART3 is not set | ||
224 | # CONFIG_AT91_EARLY_USART4 is not set | ||
225 | # CONFIG_AT91_EARLY_USART5 is not set | ||
226 | |||
227 | # | ||
228 | # Processor Type | ||
229 | # | ||
230 | CONFIG_CPU_32=y | ||
231 | CONFIG_CPU_ARM926T=y | ||
232 | CONFIG_CPU_32v5=y | ||
233 | CONFIG_CPU_ABRT_EV5TJ=y | ||
234 | CONFIG_CPU_PABRT_NOIFAR=y | ||
235 | CONFIG_CPU_CACHE_VIVT=y | ||
236 | CONFIG_CPU_COPY_V4WB=y | ||
237 | CONFIG_CPU_TLB_V4WBI=y | ||
238 | CONFIG_CPU_CP15=y | ||
239 | CONFIG_CPU_CP15_MMU=y | ||
240 | |||
241 | # | ||
242 | # Processor Features | ||
243 | # | ||
244 | CONFIG_ARM_THUMB=y | ||
245 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
246 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
247 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
248 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
249 | # CONFIG_OUTER_CACHE is not set | ||
250 | |||
251 | # | ||
252 | # Bus support | ||
253 | # | ||
254 | # CONFIG_PCI_SYSCALL is not set | ||
255 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
256 | # CONFIG_PCCARD is not set | ||
257 | |||
258 | # | ||
259 | # Kernel Features | ||
260 | # | ||
261 | # CONFIG_TICK_ONESHOT is not set | ||
262 | # CONFIG_NO_HZ is not set | ||
263 | # CONFIG_HIGH_RES_TIMERS is not set | ||
264 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
265 | CONFIG_PREEMPT=y | ||
266 | CONFIG_HZ=100 | ||
267 | CONFIG_AEABI=y | ||
268 | CONFIG_OABI_COMPAT=y | ||
269 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
270 | CONFIG_SELECT_MEMORY_MODEL=y | ||
271 | CONFIG_FLATMEM_MANUAL=y | ||
272 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
273 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
274 | CONFIG_FLATMEM=y | ||
275 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
276 | # CONFIG_SPARSEMEM_STATIC is not set | ||
277 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
278 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
279 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
280 | # CONFIG_RESOURCES_64BIT is not set | ||
281 | CONFIG_ZONE_DMA_FLAG=1 | ||
282 | CONFIG_BOUNCE=y | ||
283 | CONFIG_VIRT_TO_BUS=y | ||
284 | # CONFIG_LEDS is not set | ||
285 | CONFIG_ALIGNMENT_TRAP=y | ||
286 | |||
287 | # | ||
288 | # Boot options | ||
289 | # | ||
290 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
291 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
292 | CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" | ||
293 | # CONFIG_XIP_KERNEL is not set | ||
294 | # CONFIG_KEXEC is not set | ||
295 | |||
296 | # | ||
297 | # Floating point emulation | ||
298 | # | ||
299 | |||
300 | # | ||
301 | # At least one emulation must be selected | ||
302 | # | ||
303 | CONFIG_FPE_NWFPE=y | ||
304 | # CONFIG_FPE_NWFPE_XP is not set | ||
305 | # CONFIG_FPE_FASTFPE is not set | ||
306 | # CONFIG_VFP is not set | ||
307 | |||
308 | # | ||
309 | # Userspace binary formats | ||
310 | # | ||
311 | CONFIG_BINFMT_ELF=y | ||
312 | # CONFIG_BINFMT_AOUT is not set | ||
313 | # CONFIG_BINFMT_MISC is not set | ||
314 | |||
315 | # | ||
316 | # Power management options | ||
317 | # | ||
318 | # CONFIG_PM is not set | ||
319 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
320 | CONFIG_NET=y | ||
321 | |||
322 | # | ||
323 | # Networking options | ||
324 | # | ||
325 | CONFIG_PACKET=y | ||
326 | # CONFIG_PACKET_MMAP is not set | ||
327 | CONFIG_UNIX=y | ||
328 | # CONFIG_NET_KEY is not set | ||
329 | CONFIG_INET=y | ||
330 | # CONFIG_IP_MULTICAST is not set | ||
331 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
332 | CONFIG_IP_FIB_HASH=y | ||
333 | CONFIG_IP_PNP=y | ||
334 | # CONFIG_IP_PNP_DHCP is not set | ||
335 | CONFIG_IP_PNP_BOOTP=y | ||
336 | # CONFIG_IP_PNP_RARP is not set | ||
337 | # CONFIG_NET_IPIP is not set | ||
338 | # CONFIG_NET_IPGRE is not set | ||
339 | # CONFIG_ARPD is not set | ||
340 | # CONFIG_SYN_COOKIES is not set | ||
341 | # CONFIG_INET_AH is not set | ||
342 | # CONFIG_INET_ESP is not set | ||
343 | # CONFIG_INET_IPCOMP is not set | ||
344 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
345 | # CONFIG_INET_TUNNEL is not set | ||
346 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
347 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
348 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
349 | # CONFIG_INET_LRO is not set | ||
350 | CONFIG_INET_DIAG=y | ||
351 | CONFIG_INET_TCP_DIAG=y | ||
352 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
353 | CONFIG_TCP_CONG_CUBIC=y | ||
354 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
355 | # CONFIG_TCP_MD5SIG is not set | ||
356 | # CONFIG_IPV6 is not set | ||
357 | # CONFIG_NETWORK_SECMARK is not set | ||
358 | # CONFIG_NETFILTER is not set | ||
359 | # CONFIG_IP_DCCP is not set | ||
360 | # CONFIG_IP_SCTP is not set | ||
361 | # CONFIG_TIPC is not set | ||
362 | # CONFIG_ATM is not set | ||
363 | # CONFIG_BRIDGE is not set | ||
364 | # CONFIG_VLAN_8021Q is not set | ||
365 | # CONFIG_DECNET is not set | ||
366 | # CONFIG_LLC2 is not set | ||
367 | # CONFIG_IPX is not set | ||
368 | # CONFIG_ATALK is not set | ||
369 | # CONFIG_X25 is not set | ||
370 | # CONFIG_LAPB is not set | ||
371 | # CONFIG_ECONET is not set | ||
372 | # CONFIG_WAN_ROUTER is not set | ||
373 | # CONFIG_NET_SCHED is not set | ||
374 | |||
375 | # | ||
376 | # Network testing | ||
377 | # | ||
378 | # CONFIG_NET_PKTGEN is not set | ||
379 | # CONFIG_HAMRADIO is not set | ||
380 | # CONFIG_CAN is not set | ||
381 | # CONFIG_IRDA is not set | ||
382 | # CONFIG_BT is not set | ||
383 | # CONFIG_AF_RXRPC is not set | ||
384 | |||
385 | # | ||
386 | # Wireless | ||
387 | # | ||
388 | # CONFIG_CFG80211 is not set | ||
389 | # CONFIG_WIRELESS_EXT is not set | ||
390 | # CONFIG_MAC80211 is not set | ||
391 | # CONFIG_IEEE80211 is not set | ||
392 | # CONFIG_RFKILL is not set | ||
393 | # CONFIG_NET_9P is not set | ||
394 | |||
395 | # | ||
396 | # Device Drivers | ||
397 | # | ||
398 | |||
399 | # | ||
400 | # Generic Driver Options | ||
401 | # | ||
402 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
403 | CONFIG_STANDALONE=y | ||
404 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
405 | CONFIG_FW_LOADER=y | ||
406 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
407 | CONFIG_EXTRA_FIRMWARE="" | ||
408 | # CONFIG_DEBUG_DRIVER is not set | ||
409 | # CONFIG_DEBUG_DEVRES is not set | ||
410 | # CONFIG_SYS_HYPERVISOR is not set | ||
411 | # CONFIG_CONNECTOR is not set | ||
412 | CONFIG_MTD=y | ||
413 | # CONFIG_MTD_DEBUG is not set | ||
414 | # CONFIG_MTD_CONCAT is not set | ||
415 | CONFIG_MTD_PARTITIONS=y | ||
416 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
417 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
418 | # CONFIG_MTD_AFS_PARTS is not set | ||
419 | # CONFIG_MTD_AR7_PARTS is not set | ||
420 | |||
421 | # | ||
422 | # User Modules And Translation Layers | ||
423 | # | ||
424 | CONFIG_MTD_CHAR=y | ||
425 | CONFIG_MTD_BLKDEVS=y | ||
426 | CONFIG_MTD_BLOCK=y | ||
427 | # CONFIG_FTL is not set | ||
428 | # CONFIG_NFTL is not set | ||
429 | # CONFIG_INFTL is not set | ||
430 | # CONFIG_RFD_FTL is not set | ||
431 | # CONFIG_SSFDC is not set | ||
432 | # CONFIG_MTD_OOPS is not set | ||
433 | |||
434 | # | ||
435 | # RAM/ROM/Flash chip drivers | ||
436 | # | ||
437 | # CONFIG_MTD_CFI is not set | ||
438 | # CONFIG_MTD_JEDECPROBE is not set | ||
439 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
440 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
441 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
442 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
443 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
444 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
445 | CONFIG_MTD_CFI_I1=y | ||
446 | CONFIG_MTD_CFI_I2=y | ||
447 | # CONFIG_MTD_CFI_I4 is not set | ||
448 | # CONFIG_MTD_CFI_I8 is not set | ||
449 | # CONFIG_MTD_RAM is not set | ||
450 | # CONFIG_MTD_ROM is not set | ||
451 | # CONFIG_MTD_ABSENT is not set | ||
452 | |||
453 | # | ||
454 | # Mapping drivers for chip access | ||
455 | # | ||
456 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
457 | # CONFIG_MTD_PLATRAM is not set | ||
458 | |||
459 | # | ||
460 | # Self-contained MTD device drivers | ||
461 | # | ||
462 | CONFIG_MTD_DATAFLASH=y | ||
463 | # CONFIG_MTD_M25P80 is not set | ||
464 | # CONFIG_MTD_SLRAM is not set | ||
465 | # CONFIG_MTD_PHRAM is not set | ||
466 | # CONFIG_MTD_MTDRAM is not set | ||
467 | # CONFIG_MTD_BLOCK2MTD is not set | ||
468 | |||
469 | # | ||
470 | # Disk-On-Chip Device Drivers | ||
471 | # | ||
472 | # CONFIG_MTD_DOC2000 is not set | ||
473 | # CONFIG_MTD_DOC2001 is not set | ||
474 | # CONFIG_MTD_DOC2001PLUS is not set | ||
475 | CONFIG_MTD_NAND=y | ||
476 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
477 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
478 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
479 | CONFIG_MTD_NAND_IDS=y | ||
480 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
481 | CONFIG_MTD_NAND_ATMEL=y | ||
482 | # CONFIG_MTD_NAND_ATMEL_ECC_HW is not set | ||
483 | CONFIG_MTD_NAND_ATMEL_ECC_SOFT=y | ||
484 | # CONFIG_MTD_NAND_ATMEL_ECC_NONE is not set | ||
485 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
486 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
487 | # CONFIG_MTD_ALAUDA is not set | ||
488 | # CONFIG_MTD_ONENAND is not set | ||
489 | |||
490 | # | ||
491 | # UBI - Unsorted block images | ||
492 | # | ||
493 | # CONFIG_MTD_UBI is not set | ||
494 | # CONFIG_PARPORT is not set | ||
495 | CONFIG_BLK_DEV=y | ||
496 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
497 | # CONFIG_BLK_DEV_LOOP is not set | ||
498 | # CONFIG_BLK_DEV_NBD is not set | ||
499 | # CONFIG_BLK_DEV_UB is not set | ||
500 | CONFIG_BLK_DEV_RAM=y | ||
501 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
502 | CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
503 | # CONFIG_BLK_DEV_XIP is not set | ||
504 | # CONFIG_CDROM_PKTCDVD is not set | ||
505 | # CONFIG_ATA_OVER_ETH is not set | ||
506 | CONFIG_MISC_DEVICES=y | ||
507 | # CONFIG_ATMEL_PWM is not set | ||
508 | # CONFIG_ATMEL_TCLIB is not set | ||
509 | # CONFIG_EEPROM_93CX6 is not set | ||
510 | CONFIG_ATMEL_SSC=y | ||
511 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
512 | CONFIG_HAVE_IDE=y | ||
513 | # CONFIG_IDE is not set | ||
514 | |||
515 | # | ||
516 | # SCSI device support | ||
517 | # | ||
518 | # CONFIG_RAID_ATTRS is not set | ||
519 | CONFIG_SCSI=y | ||
520 | CONFIG_SCSI_DMA=y | ||
521 | # CONFIG_SCSI_TGT is not set | ||
522 | # CONFIG_SCSI_NETLINK is not set | ||
523 | CONFIG_SCSI_PROC_FS=y | ||
524 | |||
525 | # | ||
526 | # SCSI support type (disk, tape, CD-ROM) | ||
527 | # | ||
528 | CONFIG_BLK_DEV_SD=y | ||
529 | # CONFIG_CHR_DEV_ST is not set | ||
530 | # CONFIG_CHR_DEV_OSST is not set | ||
531 | # CONFIG_BLK_DEV_SR is not set | ||
532 | # CONFIG_CHR_DEV_SG is not set | ||
533 | # CONFIG_CHR_DEV_SCH is not set | ||
534 | |||
535 | # | ||
536 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
537 | # | ||
538 | CONFIG_SCSI_MULTI_LUN=y | ||
539 | # CONFIG_SCSI_CONSTANTS is not set | ||
540 | # CONFIG_SCSI_LOGGING is not set | ||
541 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
542 | CONFIG_SCSI_WAIT_SCAN=m | ||
543 | |||
544 | # | ||
545 | # SCSI Transports | ||
546 | # | ||
547 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
548 | # CONFIG_SCSI_FC_ATTRS is not set | ||
549 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
550 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
551 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
552 | CONFIG_SCSI_LOWLEVEL=y | ||
553 | # CONFIG_ISCSI_TCP is not set | ||
554 | # CONFIG_SCSI_DEBUG is not set | ||
555 | # CONFIG_SCSI_DH is not set | ||
556 | # CONFIG_ATA is not set | ||
557 | # CONFIG_MD is not set | ||
558 | CONFIG_NETDEVICES=y | ||
559 | # CONFIG_DUMMY is not set | ||
560 | # CONFIG_BONDING is not set | ||
561 | # CONFIG_MACVLAN is not set | ||
562 | # CONFIG_EQUALIZER is not set | ||
563 | # CONFIG_TUN is not set | ||
564 | # CONFIG_VETH is not set | ||
565 | CONFIG_PHYLIB=y | ||
566 | |||
567 | # | ||
568 | # MII PHY device drivers | ||
569 | # | ||
570 | # CONFIG_MARVELL_PHY is not set | ||
571 | # CONFIG_DAVICOM_PHY is not set | ||
572 | # CONFIG_QSEMI_PHY is not set | ||
573 | # CONFIG_LXT_PHY is not set | ||
574 | # CONFIG_CICADA_PHY is not set | ||
575 | # CONFIG_VITESSE_PHY is not set | ||
576 | # CONFIG_SMSC_PHY is not set | ||
577 | # CONFIG_BROADCOM_PHY is not set | ||
578 | # CONFIG_ICPLUS_PHY is not set | ||
579 | # CONFIG_REALTEK_PHY is not set | ||
580 | # CONFIG_FIXED_PHY is not set | ||
581 | # CONFIG_MDIO_BITBANG is not set | ||
582 | CONFIG_NET_ETHERNET=y | ||
583 | CONFIG_MII=y | ||
584 | CONFIG_MACB=y | ||
585 | # CONFIG_AX88796 is not set | ||
586 | # CONFIG_SMC91X is not set | ||
587 | # CONFIG_DM9000 is not set | ||
588 | # CONFIG_ENC28J60 is not set | ||
589 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
590 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
591 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
592 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
593 | # CONFIG_B44 is not set | ||
594 | # CONFIG_NETDEV_1000 is not set | ||
595 | # CONFIG_NETDEV_10000 is not set | ||
596 | |||
597 | # | ||
598 | # Wireless LAN | ||
599 | # | ||
600 | # CONFIG_WLAN_PRE80211 is not set | ||
601 | # CONFIG_WLAN_80211 is not set | ||
602 | # CONFIG_IWLWIFI_LEDS is not set | ||
603 | |||
604 | # | ||
605 | # USB Network Adapters | ||
606 | # | ||
607 | # CONFIG_USB_CATC is not set | ||
608 | # CONFIG_USB_KAWETH is not set | ||
609 | # CONFIG_USB_PEGASUS is not set | ||
610 | # CONFIG_USB_RTL8150 is not set | ||
611 | # CONFIG_USB_USBNET is not set | ||
612 | # CONFIG_WAN is not set | ||
613 | # CONFIG_PPP is not set | ||
614 | # CONFIG_SLIP is not set | ||
615 | # CONFIG_NETCONSOLE is not set | ||
616 | # CONFIG_NETPOLL is not set | ||
617 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
618 | # CONFIG_ISDN is not set | ||
619 | |||
620 | # | ||
621 | # Input device support | ||
622 | # | ||
623 | CONFIG_INPUT=y | ||
624 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
625 | # CONFIG_INPUT_POLLDEV is not set | ||
626 | |||
627 | # | ||
628 | # Userland interfaces | ||
629 | # | ||
630 | CONFIG_INPUT_MOUSEDEV=y | ||
631 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
632 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
633 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
634 | # CONFIG_INPUT_JOYDEV is not set | ||
635 | # CONFIG_INPUT_EVDEV is not set | ||
636 | # CONFIG_INPUT_EVBUG is not set | ||
637 | |||
638 | # | ||
639 | # Input Device Drivers | ||
640 | # | ||
641 | # CONFIG_INPUT_KEYBOARD is not set | ||
642 | # CONFIG_INPUT_MOUSE is not set | ||
643 | # CONFIG_INPUT_JOYSTICK is not set | ||
644 | # CONFIG_INPUT_TABLET is not set | ||
645 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
646 | # CONFIG_INPUT_MISC is not set | ||
647 | |||
648 | # | ||
649 | # Hardware I/O ports | ||
650 | # | ||
651 | # CONFIG_SERIO is not set | ||
652 | # CONFIG_GAMEPORT is not set | ||
653 | |||
654 | # | ||
655 | # Character devices | ||
656 | # | ||
657 | CONFIG_VT=y | ||
658 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
659 | CONFIG_VT_CONSOLE=y | ||
660 | CONFIG_HW_CONSOLE=y | ||
661 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
662 | CONFIG_DEVKMEM=y | ||
663 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
664 | |||
665 | # | ||
666 | # Serial drivers | ||
667 | # | ||
668 | # CONFIG_SERIAL_8250 is not set | ||
669 | |||
670 | # | ||
671 | # Non-8250 serial port support | ||
672 | # | ||
673 | CONFIG_SERIAL_ATMEL=y | ||
674 | CONFIG_SERIAL_ATMEL_CONSOLE=y | ||
675 | CONFIG_SERIAL_ATMEL_PDC=y | ||
676 | # CONFIG_SERIAL_ATMEL_TTYAT is not set | ||
677 | CONFIG_SERIAL_CORE=y | ||
678 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
679 | CONFIG_UNIX98_PTYS=y | ||
680 | CONFIG_LEGACY_PTYS=y | ||
681 | CONFIG_LEGACY_PTY_COUNT=256 | ||
682 | # CONFIG_IPMI_HANDLER is not set | ||
683 | # CONFIG_HW_RANDOM is not set | ||
684 | # CONFIG_NVRAM is not set | ||
685 | # CONFIG_R3964 is not set | ||
686 | # CONFIG_RAW_DRIVER is not set | ||
687 | # CONFIG_TCG_TPM is not set | ||
688 | CONFIG_I2C=y | ||
689 | CONFIG_I2C_BOARDINFO=y | ||
690 | CONFIG_I2C_CHARDEV=y | ||
691 | CONFIG_I2C_HELPER_AUTO=y | ||
692 | CONFIG_I2C_ALGOBIT=y | ||
693 | |||
694 | # | ||
695 | # I2C Hardware Bus support | ||
696 | # | ||
697 | |||
698 | # | ||
699 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
700 | # | ||
701 | CONFIG_I2C_GPIO=y | ||
702 | # CONFIG_I2C_OCORES is not set | ||
703 | # CONFIG_I2C_SIMTEC is not set | ||
704 | |||
705 | # | ||
706 | # External I2C/SMBus adapter drivers | ||
707 | # | ||
708 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
709 | # CONFIG_I2C_TAOS_EVM is not set | ||
710 | # CONFIG_I2C_TINY_USB is not set | ||
711 | |||
712 | # | ||
713 | # Other I2C/SMBus bus drivers | ||
714 | # | ||
715 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
716 | # CONFIG_I2C_STUB is not set | ||
717 | |||
718 | # | ||
719 | # Miscellaneous I2C Chip support | ||
720 | # | ||
721 | # CONFIG_DS1682 is not set | ||
722 | CONFIG_AT24=y | ||
723 | # CONFIG_SENSORS_EEPROM is not set | ||
724 | # CONFIG_SENSORS_PCF8574 is not set | ||
725 | # CONFIG_PCF8575 is not set | ||
726 | # CONFIG_SENSORS_PCA9539 is not set | ||
727 | # CONFIG_SENSORS_PCF8591 is not set | ||
728 | # CONFIG_SENSORS_MAX6875 is not set | ||
729 | # CONFIG_SENSORS_TSL2550 is not set | ||
730 | # CONFIG_I2C_DEBUG_CORE is not set | ||
731 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
732 | # CONFIG_I2C_DEBUG_BUS is not set | ||
733 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
734 | CONFIG_SPI=y | ||
735 | CONFIG_SPI_DEBUG=y | ||
736 | CONFIG_SPI_MASTER=y | ||
737 | |||
738 | # | ||
739 | # SPI Master Controller Drivers | ||
740 | # | ||
741 | CONFIG_SPI_ATMEL=y | ||
742 | # CONFIG_SPI_BITBANG is not set | ||
743 | |||
744 | # | ||
745 | # SPI Protocol Masters | ||
746 | # | ||
747 | # CONFIG_SPI_AT25 is not set | ||
748 | CONFIG_SPI_SPIDEV=y | ||
749 | # CONFIG_SPI_TLE62X0 is not set | ||
750 | # CONFIG_W1 is not set | ||
751 | # CONFIG_POWER_SUPPLY is not set | ||
752 | # CONFIG_HWMON is not set | ||
753 | CONFIG_WATCHDOG=y | ||
754 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
755 | |||
756 | # | ||
757 | # Watchdog Device Drivers | ||
758 | # | ||
759 | # CONFIG_SOFT_WATCHDOG is not set | ||
760 | |||
761 | # | ||
762 | # USB-based Watchdog Cards | ||
763 | # | ||
764 | # CONFIG_USBPCWATCHDOG is not set | ||
765 | |||
766 | # | ||
767 | # Sonics Silicon Backplane | ||
768 | # | ||
769 | CONFIG_SSB_POSSIBLE=y | ||
770 | # CONFIG_SSB is not set | ||
771 | |||
772 | # | ||
773 | # Multifunction device drivers | ||
774 | # | ||
775 | # CONFIG_MFD_CORE is not set | ||
776 | # CONFIG_MFD_SM501 is not set | ||
777 | # CONFIG_HTC_PASIC3 is not set | ||
778 | # CONFIG_MFD_TMIO is not set | ||
779 | # CONFIG_MFD_T7L66XB is not set | ||
780 | # CONFIG_MFD_TC6387XB is not set | ||
781 | |||
782 | # | ||
783 | # Multimedia devices | ||
784 | # | ||
785 | |||
786 | # | ||
787 | # Multimedia core support | ||
788 | # | ||
789 | # CONFIG_VIDEO_DEV is not set | ||
790 | # CONFIG_DVB_CORE is not set | ||
791 | # CONFIG_VIDEO_MEDIA is not set | ||
792 | |||
793 | # | ||
794 | # Multimedia drivers | ||
795 | # | ||
796 | # CONFIG_DAB is not set | ||
797 | |||
798 | # | ||
799 | # Graphics support | ||
800 | # | ||
801 | # CONFIG_VGASTATE is not set | ||
802 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
803 | # CONFIG_FB is not set | ||
804 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
805 | |||
806 | # | ||
807 | # Display device support | ||
808 | # | ||
809 | # CONFIG_DISPLAY_SUPPORT is not set | ||
810 | |||
811 | # | ||
812 | # Console display driver support | ||
813 | # | ||
814 | # CONFIG_VGA_CONSOLE is not set | ||
815 | CONFIG_DUMMY_CONSOLE=y | ||
816 | # CONFIG_SOUND is not set | ||
817 | CONFIG_HID_SUPPORT=y | ||
818 | CONFIG_HID=y | ||
819 | # CONFIG_HID_DEBUG is not set | ||
820 | # CONFIG_HIDRAW is not set | ||
821 | |||
822 | # | ||
823 | # USB Input Devices | ||
824 | # | ||
825 | # CONFIG_USB_HID is not set | ||
826 | |||
827 | # | ||
828 | # USB HID Boot Protocol drivers | ||
829 | # | ||
830 | # CONFIG_USB_KBD is not set | ||
831 | # CONFIG_USB_MOUSE is not set | ||
832 | CONFIG_USB_SUPPORT=y | ||
833 | CONFIG_USB_ARCH_HAS_HCD=y | ||
834 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
835 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
836 | CONFIG_USB=y | ||
837 | # CONFIG_USB_DEBUG is not set | ||
838 | # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set | ||
839 | |||
840 | # | ||
841 | # Miscellaneous USB options | ||
842 | # | ||
843 | CONFIG_USB_DEVICEFS=y | ||
844 | CONFIG_USB_DEVICE_CLASS=y | ||
845 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
846 | # CONFIG_USB_OTG is not set | ||
847 | |||
848 | # | ||
849 | # USB Host Controller Drivers | ||
850 | # | ||
851 | # CONFIG_USB_C67X00_HCD is not set | ||
852 | # CONFIG_USB_ISP116X_HCD is not set | ||
853 | # CONFIG_USB_ISP1760_HCD is not set | ||
854 | CONFIG_USB_OHCI_HCD=y | ||
855 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
856 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
857 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
858 | # CONFIG_USB_SL811_HCD is not set | ||
859 | # CONFIG_USB_R8A66597_HCD is not set | ||
860 | |||
861 | # | ||
862 | # USB Device Class drivers | ||
863 | # | ||
864 | # CONFIG_USB_ACM is not set | ||
865 | # CONFIG_USB_PRINTER is not set | ||
866 | # CONFIG_USB_WDM is not set | ||
867 | |||
868 | # | ||
869 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
870 | # | ||
871 | |||
872 | # | ||
873 | # may also be needed; see USB_STORAGE Help for more information | ||
874 | # | ||
875 | CONFIG_USB_STORAGE=y | ||
876 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
877 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
878 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
879 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
880 | # CONFIG_USB_STORAGE_DPCM is not set | ||
881 | # CONFIG_USB_STORAGE_USBAT is not set | ||
882 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
883 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
884 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
885 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
886 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
887 | # CONFIG_USB_STORAGE_KARMA is not set | ||
888 | # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set | ||
889 | # CONFIG_USB_LIBUSUAL is not set | ||
890 | |||
891 | # | ||
892 | # USB Imaging devices | ||
893 | # | ||
894 | # CONFIG_USB_MDC800 is not set | ||
895 | # CONFIG_USB_MICROTEK is not set | ||
896 | CONFIG_USB_MON=y | ||
897 | |||
898 | # | ||
899 | # USB port drivers | ||
900 | # | ||
901 | # CONFIG_USB_SERIAL is not set | ||
902 | |||
903 | # | ||
904 | # USB Miscellaneous drivers | ||
905 | # | ||
906 | # CONFIG_USB_EMI62 is not set | ||
907 | # CONFIG_USB_EMI26 is not set | ||
908 | # CONFIG_USB_ADUTUX is not set | ||
909 | # CONFIG_USB_AUERSWALD is not set | ||
910 | # CONFIG_USB_RIO500 is not set | ||
911 | # CONFIG_USB_LEGOTOWER is not set | ||
912 | # CONFIG_USB_LCD is not set | ||
913 | # CONFIG_USB_BERRY_CHARGE is not set | ||
914 | # CONFIG_USB_LED is not set | ||
915 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
916 | # CONFIG_USB_CYTHERM is not set | ||
917 | # CONFIG_USB_PHIDGET is not set | ||
918 | # CONFIG_USB_IDMOUSE is not set | ||
919 | # CONFIG_USB_FTDI_ELAN is not set | ||
920 | # CONFIG_USB_APPLEDISPLAY is not set | ||
921 | # CONFIG_USB_LD is not set | ||
922 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
923 | # CONFIG_USB_IOWARRIOR is not set | ||
924 | # CONFIG_USB_TEST is not set | ||
925 | # CONFIG_USB_ISIGHTFW is not set | ||
926 | CONFIG_USB_GADGET=y | ||
927 | # CONFIG_USB_GADGET_DEBUG is not set | ||
928 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
929 | CONFIG_USB_GADGET_SELECTED=y | ||
930 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
931 | # CONFIG_USB_GADGET_ATMEL_USBA is not set | ||
932 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
933 | # CONFIG_USB_GADGET_NET2280 is not set | ||
934 | # CONFIG_USB_GADGET_PXA25X is not set | ||
935 | # CONFIG_USB_GADGET_M66592 is not set | ||
936 | # CONFIG_USB_GADGET_PXA27X is not set | ||
937 | # CONFIG_USB_GADGET_GOKU is not set | ||
938 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
939 | # CONFIG_USB_GADGET_OMAP is not set | ||
940 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
941 | CONFIG_USB_GADGET_AT91=y | ||
942 | CONFIG_USB_AT91=y | ||
943 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
944 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
945 | CONFIG_USB_ZERO=m | ||
946 | # CONFIG_USB_ETH is not set | ||
947 | CONFIG_USB_GADGETFS=m | ||
948 | CONFIG_USB_FILE_STORAGE=m | ||
949 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
950 | CONFIG_USB_G_SERIAL=m | ||
951 | # CONFIG_USB_MIDI_GADGET is not set | ||
952 | # CONFIG_USB_G_PRINTER is not set | ||
953 | # CONFIG_USB_CDC_COMPOSITE is not set | ||
954 | # CONFIG_MMC is not set | ||
955 | # CONFIG_NEW_LEDS is not set | ||
956 | CONFIG_RTC_LIB=y | ||
957 | CONFIG_RTC_CLASS=y | ||
958 | CONFIG_RTC_HCTOSYS=y | ||
959 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
960 | CONFIG_RTC_DEBUG=y | ||
961 | |||
962 | # | ||
963 | # RTC interfaces | ||
964 | # | ||
965 | CONFIG_RTC_INTF_SYSFS=y | ||
966 | CONFIG_RTC_INTF_PROC=y | ||
967 | CONFIG_RTC_INTF_DEV=y | ||
968 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
969 | # CONFIG_RTC_DRV_TEST is not set | ||
970 | |||
971 | # | ||
972 | # I2C RTC drivers | ||
973 | # | ||
974 | # CONFIG_RTC_DRV_DS1307 is not set | ||
975 | # CONFIG_RTC_DRV_DS1374 is not set | ||
976 | # CONFIG_RTC_DRV_DS1672 is not set | ||
977 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
978 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
979 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
980 | # CONFIG_RTC_DRV_X1205 is not set | ||
981 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
982 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
983 | # CONFIG_RTC_DRV_M41T80 is not set | ||
984 | # CONFIG_RTC_DRV_S35390A is not set | ||
985 | CONFIG_RTC_DRV_FM3130=y | ||
986 | |||
987 | # | ||
988 | # SPI RTC drivers | ||
989 | # | ||
990 | # CONFIG_RTC_DRV_M41T94 is not set | ||
991 | # CONFIG_RTC_DRV_DS1305 is not set | ||
992 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
993 | # CONFIG_RTC_DRV_R9701 is not set | ||
994 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
995 | |||
996 | # | ||
997 | # Platform RTC drivers | ||
998 | # | ||
999 | # CONFIG_RTC_DRV_CMOS is not set | ||
1000 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1001 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1002 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1003 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1004 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1005 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1006 | # CONFIG_RTC_DRV_V3020 is not set | ||
1007 | |||
1008 | # | ||
1009 | # on-CPU RTC drivers | ||
1010 | # | ||
1011 | # CONFIG_RTC_DRV_AT91SAM9 is not set | ||
1012 | # CONFIG_DMADEVICES is not set | ||
1013 | |||
1014 | # | ||
1015 | # Voltage and Current regulators | ||
1016 | # | ||
1017 | # CONFIG_REGULATOR is not set | ||
1018 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
1019 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
1020 | # CONFIG_REGULATOR_BQ24022 is not set | ||
1021 | # CONFIG_UIO is not set | ||
1022 | |||
1023 | # | ||
1024 | # File systems | ||
1025 | # | ||
1026 | CONFIG_EXT2_FS=y | ||
1027 | # CONFIG_EXT2_FS_XATTR is not set | ||
1028 | # CONFIG_EXT2_FS_XIP is not set | ||
1029 | CONFIG_EXT3_FS=y | ||
1030 | CONFIG_EXT3_FS_XATTR=y | ||
1031 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1032 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1033 | # CONFIG_EXT4DEV_FS is not set | ||
1034 | CONFIG_JBD=y | ||
1035 | CONFIG_FS_MBCACHE=y | ||
1036 | # CONFIG_REISERFS_FS is not set | ||
1037 | # CONFIG_JFS_FS is not set | ||
1038 | # CONFIG_FS_POSIX_ACL is not set | ||
1039 | # CONFIG_XFS_FS is not set | ||
1040 | # CONFIG_OCFS2_FS is not set | ||
1041 | CONFIG_DNOTIFY=y | ||
1042 | CONFIG_INOTIFY=y | ||
1043 | CONFIG_INOTIFY_USER=y | ||
1044 | # CONFIG_QUOTA is not set | ||
1045 | # CONFIG_AUTOFS_FS is not set | ||
1046 | # CONFIG_AUTOFS4_FS is not set | ||
1047 | # CONFIG_FUSE_FS is not set | ||
1048 | |||
1049 | # | ||
1050 | # CD-ROM/DVD Filesystems | ||
1051 | # | ||
1052 | # CONFIG_ISO9660_FS is not set | ||
1053 | # CONFIG_UDF_FS is not set | ||
1054 | |||
1055 | # | ||
1056 | # DOS/FAT/NT Filesystems | ||
1057 | # | ||
1058 | CONFIG_FAT_FS=y | ||
1059 | # CONFIG_MSDOS_FS is not set | ||
1060 | CONFIG_VFAT_FS=y | ||
1061 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1062 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1063 | # CONFIG_NTFS_FS is not set | ||
1064 | |||
1065 | # | ||
1066 | # Pseudo filesystems | ||
1067 | # | ||
1068 | CONFIG_PROC_FS=y | ||
1069 | CONFIG_PROC_SYSCTL=y | ||
1070 | CONFIG_SYSFS=y | ||
1071 | CONFIG_TMPFS=y | ||
1072 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1073 | # CONFIG_HUGETLB_PAGE is not set | ||
1074 | # CONFIG_CONFIGFS_FS is not set | ||
1075 | |||
1076 | # | ||
1077 | # Miscellaneous filesystems | ||
1078 | # | ||
1079 | # CONFIG_ADFS_FS is not set | ||
1080 | # CONFIG_AFFS_FS is not set | ||
1081 | # CONFIG_HFS_FS is not set | ||
1082 | # CONFIG_HFSPLUS_FS is not set | ||
1083 | # CONFIG_BEFS_FS is not set | ||
1084 | # CONFIG_BFS_FS is not set | ||
1085 | # CONFIG_EFS_FS is not set | ||
1086 | CONFIG_JFFS2_FS=y | ||
1087 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1088 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1089 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1090 | # CONFIG_JFFS2_SUMMARY is not set | ||
1091 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1092 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1093 | CONFIG_JFFS2_ZLIB=y | ||
1094 | # CONFIG_JFFS2_LZO is not set | ||
1095 | CONFIG_JFFS2_RTIME=y | ||
1096 | # CONFIG_JFFS2_RUBIN is not set | ||
1097 | CONFIG_CRAMFS=y | ||
1098 | # CONFIG_VXFS_FS is not set | ||
1099 | # CONFIG_MINIX_FS is not set | ||
1100 | # CONFIG_OMFS_FS is not set | ||
1101 | # CONFIG_HPFS_FS is not set | ||
1102 | # CONFIG_QNX4FS_FS is not set | ||
1103 | # CONFIG_ROMFS_FS is not set | ||
1104 | # CONFIG_SYSV_FS is not set | ||
1105 | # CONFIG_UFS_FS is not set | ||
1106 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1107 | CONFIG_NFS_FS=y | ||
1108 | CONFIG_NFS_V3=y | ||
1109 | # CONFIG_NFS_V3_ACL is not set | ||
1110 | # CONFIG_NFS_V4 is not set | ||
1111 | CONFIG_ROOT_NFS=y | ||
1112 | # CONFIG_NFSD is not set | ||
1113 | CONFIG_LOCKD=y | ||
1114 | CONFIG_LOCKD_V4=y | ||
1115 | CONFIG_NFS_COMMON=y | ||
1116 | CONFIG_SUNRPC=y | ||
1117 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1118 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1119 | # CONFIG_SMB_FS is not set | ||
1120 | # CONFIG_CIFS is not set | ||
1121 | # CONFIG_NCP_FS is not set | ||
1122 | # CONFIG_CODA_FS is not set | ||
1123 | # CONFIG_AFS_FS is not set | ||
1124 | |||
1125 | # | ||
1126 | # Partition Types | ||
1127 | # | ||
1128 | # CONFIG_PARTITION_ADVANCED is not set | ||
1129 | CONFIG_MSDOS_PARTITION=y | ||
1130 | CONFIG_NLS=y | ||
1131 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1132 | CONFIG_NLS_CODEPAGE_437=y | ||
1133 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1134 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1135 | CONFIG_NLS_CODEPAGE_850=y | ||
1136 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1137 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1138 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1139 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1140 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1141 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1142 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1143 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1144 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1145 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1146 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1147 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1148 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1149 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1150 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1151 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1152 | # CONFIG_NLS_ISO8859_8 is not set | ||
1153 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1154 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1155 | # CONFIG_NLS_ASCII is not set | ||
1156 | CONFIG_NLS_ISO8859_1=y | ||
1157 | # CONFIG_NLS_ISO8859_2 is not set | ||
1158 | # CONFIG_NLS_ISO8859_3 is not set | ||
1159 | # CONFIG_NLS_ISO8859_4 is not set | ||
1160 | # CONFIG_NLS_ISO8859_5 is not set | ||
1161 | # CONFIG_NLS_ISO8859_6 is not set | ||
1162 | # CONFIG_NLS_ISO8859_7 is not set | ||
1163 | # CONFIG_NLS_ISO8859_9 is not set | ||
1164 | # CONFIG_NLS_ISO8859_13 is not set | ||
1165 | # CONFIG_NLS_ISO8859_14 is not set | ||
1166 | # CONFIG_NLS_ISO8859_15 is not set | ||
1167 | # CONFIG_NLS_KOI8_R is not set | ||
1168 | # CONFIG_NLS_KOI8_U is not set | ||
1169 | # CONFIG_NLS_UTF8 is not set | ||
1170 | # CONFIG_DLM is not set | ||
1171 | |||
1172 | # | ||
1173 | # Kernel hacking | ||
1174 | # | ||
1175 | # CONFIG_PRINTK_TIME is not set | ||
1176 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1177 | CONFIG_ENABLE_MUST_CHECK=y | ||
1178 | CONFIG_FRAME_WARN=1024 | ||
1179 | # CONFIG_MAGIC_SYSRQ is not set | ||
1180 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1181 | # CONFIG_DEBUG_FS is not set | ||
1182 | # CONFIG_HEADERS_CHECK is not set | ||
1183 | CONFIG_DEBUG_KERNEL=y | ||
1184 | # CONFIG_DEBUG_SHIRQ is not set | ||
1185 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1186 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
1187 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
1188 | CONFIG_SCHED_DEBUG=y | ||
1189 | # CONFIG_SCHEDSTATS is not set | ||
1190 | # CONFIG_TIMER_STATS is not set | ||
1191 | # CONFIG_DEBUG_OBJECTS is not set | ||
1192 | # CONFIG_DEBUG_SLAB is not set | ||
1193 | CONFIG_DEBUG_PREEMPT=y | ||
1194 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1195 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1196 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1197 | # CONFIG_DEBUG_MUTEXES is not set | ||
1198 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1199 | # CONFIG_PROVE_LOCKING is not set | ||
1200 | # CONFIG_LOCK_STAT is not set | ||
1201 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1202 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1203 | # CONFIG_DEBUG_KOBJECT is not set | ||
1204 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1205 | CONFIG_DEBUG_INFO=y | ||
1206 | # CONFIG_DEBUG_VM is not set | ||
1207 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1208 | CONFIG_DEBUG_MEMORY_INIT=y | ||
1209 | # CONFIG_DEBUG_LIST is not set | ||
1210 | # CONFIG_DEBUG_SG is not set | ||
1211 | CONFIG_FRAME_POINTER=y | ||
1212 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1213 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1214 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1215 | # CONFIG_FAULT_INJECTION is not set | ||
1216 | # CONFIG_LATENCYTOP is not set | ||
1217 | CONFIG_HAVE_FTRACE=y | ||
1218 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
1219 | # CONFIG_FTRACE is not set | ||
1220 | # CONFIG_IRQSOFF_TRACER is not set | ||
1221 | # CONFIG_PREEMPT_TRACER is not set | ||
1222 | # CONFIG_SCHED_TRACER is not set | ||
1223 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1224 | # CONFIG_SAMPLES is not set | ||
1225 | CONFIG_HAVE_ARCH_KGDB=y | ||
1226 | # CONFIG_KGDB is not set | ||
1227 | CONFIG_DEBUG_USER=y | ||
1228 | # CONFIG_DEBUG_ERRORS is not set | ||
1229 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1230 | CONFIG_DEBUG_LL=y | ||
1231 | # CONFIG_DEBUG_ICEDCC is not set | ||
1232 | |||
1233 | # | ||
1234 | # Security options | ||
1235 | # | ||
1236 | # CONFIG_KEYS is not set | ||
1237 | # CONFIG_SECURITY is not set | ||
1238 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1239 | # CONFIG_CRYPTO is not set | ||
1240 | |||
1241 | # | ||
1242 | # Library routines | ||
1243 | # | ||
1244 | CONFIG_BITREVERSE=y | ||
1245 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set | ||
1246 | # CONFIG_GENERIC_FIND_NEXT_BIT is not set | ||
1247 | # CONFIG_CRC_CCITT is not set | ||
1248 | # CONFIG_CRC16 is not set | ||
1249 | CONFIG_CRC_T10DIF=y | ||
1250 | # CONFIG_CRC_ITU_T is not set | ||
1251 | CONFIG_CRC32=y | ||
1252 | # CONFIG_CRC7 is not set | ||
1253 | # CONFIG_LIBCRC32C is not set | ||
1254 | CONFIG_ZLIB_INFLATE=y | ||
1255 | CONFIG_ZLIB_DEFLATE=y | ||
1256 | CONFIG_PLIST=y | ||
1257 | CONFIG_HAS_IOMEM=y | ||
1258 | CONFIG_HAS_IOPORT=y | ||
1259 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/at91sam9rlek_defconfig b/arch/arm/configs/at91sam9rlek_defconfig index 1c76642272a1..811bebbdc784 100644 --- a/arch/arm/configs/at91sam9rlek_defconfig +++ b/arch/arm/configs/at91sam9rlek_defconfig | |||
@@ -496,6 +496,7 @@ CONFIG_INPUT_TOUCHSCREEN=y | |||
496 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | 496 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set |
497 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | 497 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set |
498 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | 498 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set |
499 | CONFIG_TOUCHSCREEN_ATMEL_TSADCC=y | ||
499 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | 500 | # CONFIG_TOUCHSCREEN_UCB1400 is not set |
500 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | 501 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set |
501 | # CONFIG_INPUT_MISC is not set | 502 | # CONFIG_INPUT_MISC is not set |
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index d04a7a2bc2e9..4fbfb22f65a0 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h | |||
@@ -18,15 +18,7 @@ | |||
18 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
19 | #include <asm/types.h> | 19 | #include <asm/types.h> |
20 | 20 | ||
21 | #ifdef __ARMEB__ | 21 | static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) |
22 | # define __BIG_ENDIAN | ||
23 | #else | ||
24 | # define __LITTLE_ENDIAN | ||
25 | #endif | ||
26 | |||
27 | #define __SWAB_64_THRU_32__ | ||
28 | |||
29 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | ||
30 | { | 22 | { |
31 | __u32 t; | 23 | __u32 t; |
32 | 24 | ||
@@ -48,8 +40,19 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
48 | 40 | ||
49 | return x; | 41 | return x; |
50 | } | 42 | } |
51 | #define __arch_swab32 __arch_swab32 | ||
52 | 43 | ||
53 | #include <linux/byteorder.h> | 44 | #define __arch__swab32(x) ___arch__swab32(x) |
45 | |||
46 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
47 | # define __BYTEORDER_HAS_U64__ | ||
48 | # define __SWAB_64_THRU_32__ | ||
49 | #endif | ||
50 | |||
51 | #ifdef __ARMEB__ | ||
52 | #include <linux/byteorder/big_endian.h> | ||
53 | #else | ||
54 | #include <linux/byteorder/little_endian.h> | ||
55 | #endif | ||
54 | 56 | ||
55 | #endif | 57 | #endif |
58 | |||
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index a048b92cb407..5aafb2e2ca7a 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -175,6 +175,15 @@ config MACH_SAM9_L9260 | |||
175 | Select this if you are using Olimex's SAM9-L9260 board based on the Atmel AT91SAM9260. | 175 | Select this if you are using Olimex's SAM9-L9260 board based on the Atmel AT91SAM9260. |
176 | <http://www.olimex.com/dev/sam9-L9260.html> | 176 | <http://www.olimex.com/dev/sam9-L9260.html> |
177 | 177 | ||
178 | config MACH_AFEB9260 | ||
179 | bool "Custom afeb9260 board v1" | ||
180 | depends on ARCH_AT91SAM9260 | ||
181 | help | ||
182 | Select this if you are using custom afeb9260 board based on | ||
183 | open hardware design. Select this for revision 1 of the board. | ||
184 | <svn://194.85.238.22/home/users/george/svn/arm9eb> | ||
185 | <http://groups.google.com/group/arm9fpga-evolution-board> | ||
186 | |||
178 | config MACH_USB_A9260 | 187 | config MACH_USB_A9260 |
179 | bool "CALAO USB-A9260" | 188 | bool "CALAO USB-A9260" |
180 | depends on ARCH_AT91SAM9260 | 189 | depends on ARCH_AT91SAM9260 |
@@ -314,6 +323,19 @@ config AT91_PROGRAMMABLE_CLOCKS | |||
314 | Select this if you need to program one or more of the PCK0..PCK3 | 323 | Select this if you need to program one or more of the PCK0..PCK3 |
315 | programmable clock outputs. | 324 | programmable clock outputs. |
316 | 325 | ||
326 | config AT91_SLOW_CLOCK | ||
327 | bool "Suspend-to-RAM disables main oscillator" | ||
328 | depends on SUSPEND | ||
329 | help | ||
330 | Select this if you want Suspend-to-RAM to save the most power | ||
331 | possible (without powering off the CPU) by disabling the PLLs | ||
332 | and main oscillator so that only the 32 KiHz clock is available. | ||
333 | |||
334 | When only that slow-clock is available, some peripherals lose | ||
335 | functionality. Many can't issue wakeup events unless faster | ||
336 | clocks are available. Some lose their operating state and | ||
337 | need to be completely re-initialized. | ||
338 | |||
317 | config AT91_TIMER_HZ | 339 | config AT91_TIMER_HZ |
318 | int "Kernel HZ (jiffies per second)" | 340 | int "Kernel HZ (jiffies per second)" |
319 | range 32 1024 | 341 | range 32 1024 |
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 7d641f97516b..cca612d97ca2 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
@@ -39,6 +39,7 @@ obj-$(CONFIG_MACH_CAM60) += board-cam60.o | |||
39 | obj-$(CONFIG_MACH_SAM9_L9260) += board-sam9-l9260.o | 39 | obj-$(CONFIG_MACH_SAM9_L9260) += board-sam9-l9260.o |
40 | obj-$(CONFIG_MACH_USB_A9260) += board-usb-a9260.o | 40 | obj-$(CONFIG_MACH_USB_A9260) += board-usb-a9260.o |
41 | obj-$(CONFIG_MACH_QIL_A9260) += board-qil-a9260.o | 41 | obj-$(CONFIG_MACH_QIL_A9260) += board-qil-a9260.o |
42 | obj-$(CONFIG_MACH_AFEB9260) += board-afeb-9260v1.o | ||
42 | 43 | ||
43 | # AT91SAM9261 board-specific support | 44 | # AT91SAM9261 board-specific support |
44 | obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o | 45 | obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o |
@@ -64,6 +65,7 @@ obj-y += leds.o | |||
64 | 65 | ||
65 | # Power Management | 66 | # Power Management |
66 | obj-$(CONFIG_PM) += pm.o | 67 | obj-$(CONFIG_PM) += pm.o |
68 | obj-$(CONFIG_AT91_SLOW_CLOCK) += pm_slowclock.o | ||
67 | 69 | ||
68 | ifeq ($(CONFIG_PM_DEBUG),y) | 70 | ifeq ($(CONFIG_PM_DEBUG),y) |
69 | CFLAGS_pm.o += -DDEBUG | 71 | CFLAGS_pm.o += -DDEBUG |
diff --git a/arch/arm/mach-at91/at91cap9.c b/arch/arm/mach-at91/at91cap9.c index 638948c16770..0fc0adaebd58 100644 --- a/arch/arm/mach-at91/at91cap9.c +++ b/arch/arm/mach-at91/at91cap9.c | |||
@@ -141,8 +141,8 @@ static struct clk tcb_clk = { | |||
141 | .pmc_mask = 1 << AT91CAP9_ID_TCB, | 141 | .pmc_mask = 1 << AT91CAP9_ID_TCB, |
142 | .type = CLK_TYPE_PERIPHERAL, | 142 | .type = CLK_TYPE_PERIPHERAL, |
143 | }; | 143 | }; |
144 | static struct clk pwmc_clk = { | 144 | static struct clk pwm_clk = { |
145 | .name = "pwmc_clk", | 145 | .name = "pwm_clk", |
146 | .pmc_mask = 1 << AT91CAP9_ID_PWMC, | 146 | .pmc_mask = 1 << AT91CAP9_ID_PWMC, |
147 | .type = CLK_TYPE_PERIPHERAL, | 147 | .type = CLK_TYPE_PERIPHERAL, |
148 | }; | 148 | }; |
@@ -207,7 +207,7 @@ static struct clk *periph_clocks[] __initdata = { | |||
207 | &ssc1_clk, | 207 | &ssc1_clk, |
208 | &ac97_clk, | 208 | &ac97_clk, |
209 | &tcb_clk, | 209 | &tcb_clk, |
210 | &pwmc_clk, | 210 | &pwm_clk, |
211 | &macb_clk, | 211 | &macb_clk, |
212 | &aestdes_clk, | 212 | &aestdes_clk, |
213 | &adc_clk, | 213 | &adc_clk, |
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c index abb4aac8fa98..5ebd4273d353 100644 --- a/arch/arm/mach-at91/at91cap9_devices.c +++ b/arch/arm/mach-at91/at91cap9_devices.c | |||
@@ -719,6 +719,60 @@ static void __init at91_add_device_watchdog(void) {} | |||
719 | 719 | ||
720 | 720 | ||
721 | /* -------------------------------------------------------------------- | 721 | /* -------------------------------------------------------------------- |
722 | * PWM | ||
723 | * --------------------------------------------------------------------*/ | ||
724 | |||
725 | #if defined(CONFIG_ATMEL_PWM) | ||
726 | static u32 pwm_mask; | ||
727 | |||
728 | static struct resource pwm_resources[] = { | ||
729 | [0] = { | ||
730 | .start = AT91CAP9_BASE_PWMC, | ||
731 | .end = AT91CAP9_BASE_PWMC + SZ_16K - 1, | ||
732 | .flags = IORESOURCE_MEM, | ||
733 | }, | ||
734 | [1] = { | ||
735 | .start = AT91CAP9_ID_PWMC, | ||
736 | .end = AT91CAP9_ID_PWMC, | ||
737 | .flags = IORESOURCE_IRQ, | ||
738 | }, | ||
739 | }; | ||
740 | |||
741 | static struct platform_device at91cap9_pwm0_device = { | ||
742 | .name = "atmel_pwm", | ||
743 | .id = -1, | ||
744 | .dev = { | ||
745 | .platform_data = &pwm_mask, | ||
746 | }, | ||
747 | .resource = pwm_resources, | ||
748 | .num_resources = ARRAY_SIZE(pwm_resources), | ||
749 | }; | ||
750 | |||
751 | void __init at91_add_device_pwm(u32 mask) | ||
752 | { | ||
753 | if (mask & (1 << AT91_PWM0)) | ||
754 | at91_set_A_periph(AT91_PIN_PB19, 1); /* enable PWM0 */ | ||
755 | |||
756 | if (mask & (1 << AT91_PWM1)) | ||
757 | at91_set_B_periph(AT91_PIN_PB8, 1); /* enable PWM1 */ | ||
758 | |||
759 | if (mask & (1 << AT91_PWM2)) | ||
760 | at91_set_B_periph(AT91_PIN_PC29, 1); /* enable PWM2 */ | ||
761 | |||
762 | if (mask & (1 << AT91_PWM3)) | ||
763 | at91_set_B_periph(AT91_PIN_PA11, 1); /* enable PWM3 */ | ||
764 | |||
765 | pwm_mask = mask; | ||
766 | |||
767 | platform_device_register(&at91cap9_pwm0_device); | ||
768 | } | ||
769 | #else | ||
770 | void __init at91_add_device_pwm(u32 mask) {} | ||
771 | #endif | ||
772 | |||
773 | |||
774 | |||
775 | /* -------------------------------------------------------------------- | ||
722 | * AC97 | 776 | * AC97 |
723 | * -------------------------------------------------------------------- */ | 777 | * -------------------------------------------------------------------- */ |
724 | 778 | ||
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index 80bfab5680e2..ada4b6769107 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -129,8 +129,8 @@ static struct clk tcb_clk = { | |||
129 | .pmc_mask = 1 << AT91SAM9263_ID_TCB, | 129 | .pmc_mask = 1 << AT91SAM9263_ID_TCB, |
130 | .type = CLK_TYPE_PERIPHERAL, | 130 | .type = CLK_TYPE_PERIPHERAL, |
131 | }; | 131 | }; |
132 | static struct clk pwmc_clk = { | 132 | static struct clk pwm_clk = { |
133 | .name = "pwmc_clk", | 133 | .name = "pwm_clk", |
134 | .pmc_mask = 1 << AT91SAM9263_ID_PWMC, | 134 | .pmc_mask = 1 << AT91SAM9263_ID_PWMC, |
135 | .type = CLK_TYPE_PERIPHERAL, | 135 | .type = CLK_TYPE_PERIPHERAL, |
136 | }; | 136 | }; |
@@ -187,7 +187,7 @@ static struct clk *periph_clocks[] __initdata = { | |||
187 | &ssc1_clk, | 187 | &ssc1_clk, |
188 | &ac97_clk, | 188 | &ac97_clk, |
189 | &tcb_clk, | 189 | &tcb_clk, |
190 | &pwmc_clk, | 190 | &pwm_clk, |
191 | &macb_clk, | 191 | &macb_clk, |
192 | &twodge_clk, | 192 | &twodge_clk, |
193 | &udc_clk, | 193 | &udc_clk, |
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index c93992f55dc9..8b884083f76d 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -886,6 +886,59 @@ static void __init at91_add_device_watchdog(void) {} | |||
886 | 886 | ||
887 | 887 | ||
888 | /* -------------------------------------------------------------------- | 888 | /* -------------------------------------------------------------------- |
889 | * PWM | ||
890 | * --------------------------------------------------------------------*/ | ||
891 | |||
892 | #if defined(CONFIG_ATMEL_PWM) | ||
893 | static u32 pwm_mask; | ||
894 | |||
895 | static struct resource pwm_resources[] = { | ||
896 | [0] = { | ||
897 | .start = AT91SAM9263_BASE_PWMC, | ||
898 | .end = AT91SAM9263_BASE_PWMC + SZ_16K - 1, | ||
899 | .flags = IORESOURCE_MEM, | ||
900 | }, | ||
901 | [1] = { | ||
902 | .start = AT91SAM9263_ID_PWMC, | ||
903 | .end = AT91SAM9263_ID_PWMC, | ||
904 | .flags = IORESOURCE_IRQ, | ||
905 | }, | ||
906 | }; | ||
907 | |||
908 | static struct platform_device at91sam9263_pwm0_device = { | ||
909 | .name = "atmel_pwm", | ||
910 | .id = -1, | ||
911 | .dev = { | ||
912 | .platform_data = &pwm_mask, | ||
913 | }, | ||
914 | .resource = pwm_resources, | ||
915 | .num_resources = ARRAY_SIZE(pwm_resources), | ||
916 | }; | ||
917 | |||
918 | void __init at91_add_device_pwm(u32 mask) | ||
919 | { | ||
920 | if (mask & (1 << AT91_PWM0)) | ||
921 | at91_set_B_periph(AT91_PIN_PB7, 1); /* enable PWM0 */ | ||
922 | |||
923 | if (mask & (1 << AT91_PWM1)) | ||
924 | at91_set_B_periph(AT91_PIN_PB8, 1); /* enable PWM1 */ | ||
925 | |||
926 | if (mask & (1 << AT91_PWM2)) | ||
927 | at91_set_B_periph(AT91_PIN_PC29, 1); /* enable PWM2 */ | ||
928 | |||
929 | if (mask & (1 << AT91_PWM3)) | ||
930 | at91_set_B_periph(AT91_PIN_PB29, 1); /* enable PWM3 */ | ||
931 | |||
932 | pwm_mask = mask; | ||
933 | |||
934 | platform_device_register(&at91sam9263_pwm0_device); | ||
935 | } | ||
936 | #else | ||
937 | void __init at91_add_device_pwm(u32 mask) {} | ||
938 | #endif | ||
939 | |||
940 | |||
941 | /* -------------------------------------------------------------------- | ||
889 | * SSC -- Synchronous Serial Controller | 942 | * SSC -- Synchronous Serial Controller |
890 | * -------------------------------------------------------------------- */ | 943 | * -------------------------------------------------------------------- */ |
891 | 944 | ||
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c index 556bddf35b45..252e954b49fd 100644 --- a/arch/arm/mach-at91/at91sam9rl.c +++ b/arch/arm/mach-at91/at91sam9rl.c | |||
@@ -131,8 +131,8 @@ static struct clk tc2_clk = { | |||
131 | .pmc_mask = 1 << AT91SAM9RL_ID_TC2, | 131 | .pmc_mask = 1 << AT91SAM9RL_ID_TC2, |
132 | .type = CLK_TYPE_PERIPHERAL, | 132 | .type = CLK_TYPE_PERIPHERAL, |
133 | }; | 133 | }; |
134 | static struct clk pwmc_clk = { | 134 | static struct clk pwm_clk = { |
135 | .name = "pwmc_clk", | 135 | .name = "pwm_clk", |
136 | .pmc_mask = 1 << AT91SAM9RL_ID_PWMC, | 136 | .pmc_mask = 1 << AT91SAM9RL_ID_PWMC, |
137 | .type = CLK_TYPE_PERIPHERAL, | 137 | .type = CLK_TYPE_PERIPHERAL, |
138 | }; | 138 | }; |
@@ -180,7 +180,7 @@ static struct clk *periph_clocks[] __initdata = { | |||
180 | &tc0_clk, | 180 | &tc0_clk, |
181 | &tc1_clk, | 181 | &tc1_clk, |
182 | &tc2_clk, | 182 | &tc2_clk, |
183 | &pwmc_clk, | 183 | &pwm_clk, |
184 | &tsc_clk, | 184 | &tsc_clk, |
185 | &dma_clk, | 185 | &dma_clk, |
186 | &udphs_clk, | 186 | &udphs_clk, |
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 620886341fb5..87deb1e1b529 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -527,6 +527,51 @@ static void __init at91_add_device_tc(void) { } | |||
527 | 527 | ||
528 | 528 | ||
529 | /* -------------------------------------------------------------------- | 529 | /* -------------------------------------------------------------------- |
530 | * Touchscreen | ||
531 | * -------------------------------------------------------------------- */ | ||
532 | |||
533 | #if defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC) || defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC_MODULE) | ||
534 | static u64 tsadcc_dmamask = DMA_BIT_MASK(32); | ||
535 | |||
536 | static struct resource tsadcc_resources[] = { | ||
537 | [0] = { | ||
538 | .start = AT91SAM9RL_BASE_TSC, | ||
539 | .end = AT91SAM9RL_BASE_TSC + SZ_16K - 1, | ||
540 | .flags = IORESOURCE_MEM, | ||
541 | }, | ||
542 | [1] = { | ||
543 | .start = AT91SAM9RL_ID_TSC, | ||
544 | .end = AT91SAM9RL_ID_TSC, | ||
545 | .flags = IORESOURCE_IRQ, | ||
546 | } | ||
547 | }; | ||
548 | |||
549 | static struct platform_device at91sam9rl_tsadcc_device = { | ||
550 | .name = "atmel_tsadcc", | ||
551 | .id = -1, | ||
552 | .dev = { | ||
553 | .dma_mask = &tsadcc_dmamask, | ||
554 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
555 | }, | ||
556 | .resource = tsadcc_resources, | ||
557 | .num_resources = ARRAY_SIZE(tsadcc_resources), | ||
558 | }; | ||
559 | |||
560 | void __init at91_add_device_tsadcc(void) | ||
561 | { | ||
562 | at91_set_A_periph(AT91_PIN_PA17, 0); /* AD0_XR */ | ||
563 | at91_set_A_periph(AT91_PIN_PA18, 0); /* AD1_XL */ | ||
564 | at91_set_A_periph(AT91_PIN_PA19, 0); /* AD2_YT */ | ||
565 | at91_set_A_periph(AT91_PIN_PA20, 0); /* AD3_TB */ | ||
566 | |||
567 | platform_device_register(&at91sam9rl_tsadcc_device); | ||
568 | } | ||
569 | #else | ||
570 | void __init at91_add_device_tsadcc(void) {} | ||
571 | #endif | ||
572 | |||
573 | |||
574 | /* -------------------------------------------------------------------- | ||
530 | * RTC | 575 | * RTC |
531 | * -------------------------------------------------------------------- */ | 576 | * -------------------------------------------------------------------- */ |
532 | 577 | ||
@@ -592,6 +637,59 @@ static void __init at91_add_device_watchdog(void) {} | |||
592 | 637 | ||
593 | 638 | ||
594 | /* -------------------------------------------------------------------- | 639 | /* -------------------------------------------------------------------- |
640 | * PWM | ||
641 | * --------------------------------------------------------------------*/ | ||
642 | |||
643 | #if defined(CONFIG_ATMEL_PWM) | ||
644 | static u32 pwm_mask; | ||
645 | |||
646 | static struct resource pwm_resources[] = { | ||
647 | [0] = { | ||
648 | .start = AT91SAM9RL_BASE_PWMC, | ||
649 | .end = AT91SAM9RL_BASE_PWMC + SZ_16K - 1, | ||
650 | .flags = IORESOURCE_MEM, | ||
651 | }, | ||
652 | [1] = { | ||
653 | .start = AT91SAM9RL_ID_PWMC, | ||
654 | .end = AT91SAM9RL_ID_PWMC, | ||
655 | .flags = IORESOURCE_IRQ, | ||
656 | }, | ||
657 | }; | ||
658 | |||
659 | static struct platform_device at91sam9rl_pwm0_device = { | ||
660 | .name = "atmel_pwm", | ||
661 | .id = -1, | ||
662 | .dev = { | ||
663 | .platform_data = &pwm_mask, | ||
664 | }, | ||
665 | .resource = pwm_resources, | ||
666 | .num_resources = ARRAY_SIZE(pwm_resources), | ||
667 | }; | ||
668 | |||
669 | void __init at91_add_device_pwm(u32 mask) | ||
670 | { | ||
671 | if (mask & (1 << AT91_PWM0)) | ||
672 | at91_set_B_periph(AT91_PIN_PB8, 1); /* enable PWM0 */ | ||
673 | |||
674 | if (mask & (1 << AT91_PWM1)) | ||
675 | at91_set_B_periph(AT91_PIN_PB9, 1); /* enable PWM1 */ | ||
676 | |||
677 | if (mask & (1 << AT91_PWM2)) | ||
678 | at91_set_B_periph(AT91_PIN_PD5, 1); /* enable PWM2 */ | ||
679 | |||
680 | if (mask & (1 << AT91_PWM3)) | ||
681 | at91_set_B_periph(AT91_PIN_PD8, 1); /* enable PWM3 */ | ||
682 | |||
683 | pwm_mask = mask; | ||
684 | |||
685 | platform_device_register(&at91sam9rl_pwm0_device); | ||
686 | } | ||
687 | #else | ||
688 | void __init at91_add_device_pwm(u32 mask) {} | ||
689 | #endif | ||
690 | |||
691 | |||
692 | /* -------------------------------------------------------------------- | ||
595 | * SSC -- Synchronous Serial Controller | 693 | * SSC -- Synchronous Serial Controller |
596 | * -------------------------------------------------------------------- */ | 694 | * -------------------------------------------------------------------- */ |
597 | 695 | ||
diff --git a/arch/arm/mach-at91/board-afeb-9260v1.c b/arch/arm/mach-at91/board-afeb-9260v1.c new file mode 100644 index 000000000000..9c040c78889a --- /dev/null +++ b/arch/arm/mach-at91/board-afeb-9260v1.c | |||
@@ -0,0 +1,210 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-at91/board-afeb-9260v1.c | ||
3 | * | ||
4 | * Copyright (C) 2005 SAN People | ||
5 | * Copyright (C) 2006 Atmel | ||
6 | * Copyright (C) 2008 Sergey Lapin | ||
7 | * | ||
8 | * A custom board designed as open hardware; PCBs and various information | ||
9 | * is available at http://groups.google.com/group/arm9fpga-evolution-board/ | ||
10 | * Subversion repository: svn://194.85.238.22/home/users/george/svn/arm9eb | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License as published by | ||
14 | * the Free Software Foundation; either version 2 of the License, or | ||
15 | * (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
25 | */ | ||
26 | |||
27 | #include <linux/types.h> | ||
28 | #include <linux/init.h> | ||
29 | #include <linux/mm.h> | ||
30 | #include <linux/module.h> | ||
31 | #include <linux/platform_device.h> | ||
32 | #include <linux/spi/spi.h> | ||
33 | #include <linux/clk.h> | ||
34 | #include <linux/dma-mapping.h> | ||
35 | |||
36 | #include <mach/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 <mach/board.h> | ||
46 | #include <mach/gpio.h> | ||
47 | |||
48 | #include "generic.h" | ||
49 | |||
50 | |||
51 | static void __init afeb9260_map_io(void) | ||
52 | { | ||
53 | /* Initialize processor: 18.432 MHz crystal */ | ||
54 | at91sam9260_initialize(18432000); | ||
55 | |||
56 | /* DGBU on ttyS0. (Rx & Tx only) */ | ||
57 | at91_register_uart(0, 0, 0); | ||
58 | |||
59 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
60 | at91_register_uart(AT91SAM9260_ID_US0, 1, | ||
61 | ATMEL_UART_CTS | ATMEL_UART_RTS | ||
62 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ||
63 | | ATMEL_UART_DCD | ATMEL_UART_RI); | ||
64 | |||
65 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
66 | at91_register_uart(AT91SAM9260_ID_US1, 2, | ||
67 | ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
68 | |||
69 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
70 | at91_set_serial_console(0); | ||
71 | } | ||
72 | |||
73 | static void __init afeb9260_init_irq(void) | ||
74 | { | ||
75 | at91sam9260_init_interrupts(NULL); | ||
76 | } | ||
77 | |||
78 | |||
79 | /* | ||
80 | * USB Host port | ||
81 | */ | ||
82 | static struct at91_usbh_data __initdata afeb9260_usbh_data = { | ||
83 | .ports = 1, | ||
84 | }; | ||
85 | |||
86 | /* | ||
87 | * USB Device port | ||
88 | */ | ||
89 | static struct at91_udc_data __initdata afeb9260_udc_data = { | ||
90 | .vbus_pin = AT91_PIN_PC5, | ||
91 | .pullup_pin = 0, /* pull-up driven by UDC */ | ||
92 | }; | ||
93 | |||
94 | |||
95 | |||
96 | /* | ||
97 | * SPI devices. | ||
98 | */ | ||
99 | static struct spi_board_info afeb9260_spi_devices[] = { | ||
100 | { /* DataFlash chip */ | ||
101 | .modalias = "mtd_dataflash", | ||
102 | .chip_select = 1, | ||
103 | .max_speed_hz = 15 * 1000 * 1000, | ||
104 | .bus_num = 0, | ||
105 | }, | ||
106 | }; | ||
107 | |||
108 | |||
109 | /* | ||
110 | * MACB Ethernet device | ||
111 | */ | ||
112 | static struct at91_eth_data __initdata afeb9260_macb_data = { | ||
113 | .phy_irq_pin = AT91_PIN_PA9, | ||
114 | .is_rmii = 0, | ||
115 | }; | ||
116 | |||
117 | |||
118 | /* | ||
119 | * NAND flash | ||
120 | */ | ||
121 | static struct mtd_partition __initdata afeb9260_nand_partition[] = { | ||
122 | { | ||
123 | .name = "bootloader", | ||
124 | .offset = 0, | ||
125 | .size = (640 * SZ_1K), | ||
126 | }, | ||
127 | { | ||
128 | .name = "kernel", | ||
129 | .offset = MTDPART_OFS_NXTBLK, | ||
130 | .size = SZ_2M, | ||
131 | }, | ||
132 | { | ||
133 | .name = "rootfs", | ||
134 | .offset = MTDPART_OFS_NXTBLK, | ||
135 | .size = MTDPART_SIZ_FULL, | ||
136 | }, | ||
137 | }; | ||
138 | |||
139 | static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) | ||
140 | { | ||
141 | *num_partitions = ARRAY_SIZE(afeb9260_nand_partition); | ||
142 | return afeb9260_nand_partition; | ||
143 | } | ||
144 | |||
145 | static struct atmel_nand_data __initdata afeb9260_nand_data = { | ||
146 | .ale = 21, | ||
147 | .cle = 22, | ||
148 | .rdy_pin = AT91_PIN_PC13, | ||
149 | .enable_pin = AT91_PIN_PC14, | ||
150 | .partition_info = nand_partitions, | ||
151 | .bus_width_16 = 0, | ||
152 | }; | ||
153 | |||
154 | |||
155 | /* | ||
156 | * MCI (SD/MMC) | ||
157 | */ | ||
158 | static struct at91_mmc_data __initdata afeb9260_mmc_data = { | ||
159 | .slot_b = 1, | ||
160 | .wire4 = 1, | ||
161 | }; | ||
162 | |||
163 | |||
164 | |||
165 | static struct i2c_board_info __initdata afeb9260_i2c_devices[] = { | ||
166 | { | ||
167 | I2C_BOARD_INFO("fm3130", 0x68), | ||
168 | I2C_BOARD_INFO("24c64", 0x50), | ||
169 | }, | ||
170 | }; | ||
171 | |||
172 | static void __init afeb9260_board_init(void) | ||
173 | { | ||
174 | /* Serial */ | ||
175 | at91_add_device_serial(); | ||
176 | /* USB Host */ | ||
177 | at91_add_device_usbh(&afeb9260_usbh_data); | ||
178 | /* USB Device */ | ||
179 | at91_add_device_udc(&afeb9260_udc_data); | ||
180 | /* SPI */ | ||
181 | at91_add_device_spi(afeb9260_spi_devices, | ||
182 | ARRAY_SIZE(afeb9260_spi_devices)); | ||
183 | /* NAND */ | ||
184 | at91_add_device_nand(&afeb9260_nand_data); | ||
185 | /* Ethernet */ | ||
186 | at91_add_device_eth(&afeb9260_macb_data); | ||
187 | |||
188 | /* Standard function's pin assignments are not | ||
189 | * appropriate for us and generic code provide | ||
190 | * no API to configure these pins any other way */ | ||
191 | at91_set_B_periph(AT91_PIN_PA10, 0); /* ETX2 */ | ||
192 | at91_set_B_periph(AT91_PIN_PA11, 0); /* ETX3 */ | ||
193 | /* MMC */ | ||
194 | at91_add_device_mmc(0, &afeb9260_mmc_data); | ||
195 | /* I2C */ | ||
196 | at91_add_device_i2c(afeb9260_i2c_devices, | ||
197 | ARRAY_SIZE(afeb9260_i2c_devices)); | ||
198 | } | ||
199 | |||
200 | MACHINE_START(AFEB9260, "Custom afeb9260 board") | ||
201 | /* Maintainer: Sergey Lapin <slapin@ossfans.org> */ | ||
202 | .phys_io = AT91_BASE_SYS, | ||
203 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | ||
204 | .boot_params = AT91_SDRAM_BASE + 0x100, | ||
205 | .timer = &at91sam926x_timer, | ||
206 | .map_io = afeb9260_map_io, | ||
207 | .init_irq = afeb9260_init_irq, | ||
208 | .init_machine = afeb9260_board_init, | ||
209 | MACHINE_END | ||
210 | |||
diff --git a/arch/arm/mach-at91/board-cap9adk.c b/arch/arm/mach-at91/board-cap9adk.c index 196199552eb6..201b89392dcc 100644 --- a/arch/arm/mach-at91/board-cap9adk.c +++ b/arch/arm/mach-at91/board-cap9adk.c | |||
@@ -214,7 +214,7 @@ static struct physmap_flash_data cap9adk_nor_data = { | |||
214 | }; | 214 | }; |
215 | 215 | ||
216 | #define NOR_BASE AT91_CHIPSELECT_0 | 216 | #define NOR_BASE AT91_CHIPSELECT_0 |
217 | #define NOR_SIZE 0x800000 | 217 | #define NOR_SIZE SZ_8M |
218 | 218 | ||
219 | static struct resource nor_flash_resources[] = { | 219 | static struct resource nor_flash_resources[] = { |
220 | { | 220 | { |
diff --git a/arch/arm/mach-at91/board-carmeva.c b/arch/arm/mach-at91/board-carmeva.c index afa1ff0e9577..db1f9544d2e0 100644 --- a/arch/arm/mach-at91/board-carmeva.c +++ b/arch/arm/mach-at91/board-carmeva.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | 27 | ||
28 | #include <mach/hardware.h> | ||
29 | #include <asm/setup.h> | 28 | #include <asm/setup.h> |
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
@@ -34,6 +33,7 @@ | |||
34 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 34 | #include <asm/mach/irq.h> |
36 | 35 | ||
36 | #include <mach/hardware.h> | ||
37 | #include <mach/board.h> | 37 | #include <mach/board.h> |
38 | #include <mach/gpio.h> | 38 | #include <mach/gpio.h> |
39 | 39 | ||
@@ -114,6 +114,30 @@ static struct spi_board_info carmeva_spi_devices[] = { | |||
114 | }, | 114 | }, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct gpio_led carmeva_leds[] = { | ||
118 | { /* "user led 1", LED9 */ | ||
119 | .name = "led9", | ||
120 | .gpio = AT91_PIN_PA21, | ||
121 | .active_low = 1, | ||
122 | .default_trigger = "heartbeat", | ||
123 | }, | ||
124 | { /* "user led 2", LED10 */ | ||
125 | .name = "led10", | ||
126 | .gpio = AT91_PIN_PA25, | ||
127 | .active_low = 1, | ||
128 | }, | ||
129 | { /* "user led 3", LED11 */ | ||
130 | .name = "led11", | ||
131 | .gpio = AT91_PIN_PA26, | ||
132 | .active_low = 1, | ||
133 | }, | ||
134 | { /* "user led 4", LED12 */ | ||
135 | .name = "led12", | ||
136 | .gpio = AT91_PIN_PA18, | ||
137 | .active_low = 1, | ||
138 | } | ||
139 | }; | ||
140 | |||
117 | static void __init carmeva_board_init(void) | 141 | static void __init carmeva_board_init(void) |
118 | { | 142 | { |
119 | /* Serial */ | 143 | /* Serial */ |
@@ -132,6 +156,8 @@ static void __init carmeva_board_init(void) | |||
132 | // at91_add_device_cf(&carmeva_cf_data); | 156 | // at91_add_device_cf(&carmeva_cf_data); |
133 | /* MMC */ | 157 | /* MMC */ |
134 | at91_add_device_mmc(0, &carmeva_mmc_data); | 158 | at91_add_device_mmc(0, &carmeva_mmc_data); |
159 | /* LEDs */ | ||
160 | at91_gpio_leds(carmeva_leds, ARRAY_SIZE(carmeva_leds)); | ||
135 | } | 161 | } |
136 | 162 | ||
137 | MACHINE_START(CARMEVA, "Carmeva") | 163 | MACHINE_START(CARMEVA, "Carmeva") |
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c index cb7c9a8fa487..fea2529ebcf9 100644 --- a/arch/arm/mach-at91/board-csb337.c +++ b/arch/arm/mach-at91/board-csb337.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/input.h> | 28 | #include <linux/input.h> |
29 | #include <linux/gpio_keys.h> | 29 | #include <linux/gpio_keys.h> |
30 | 30 | ||
31 | #include <mach/hardware.h> | ||
32 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
33 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
34 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
@@ -37,6 +36,7 @@ | |||
37 | #include <asm/mach/map.h> | 36 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 37 | #include <asm/mach/irq.h> |
39 | 38 | ||
39 | #include <mach/hardware.h> | ||
40 | #include <mach/board.h> | 40 | #include <mach/board.h> |
41 | #include <mach/gpio.h> | 41 | #include <mach/gpio.h> |
42 | 42 | ||
@@ -114,7 +114,7 @@ static struct spi_board_info csb337_spi_devices[] = { | |||
114 | }; | 114 | }; |
115 | 115 | ||
116 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 | 116 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 |
117 | #define CSB_FLASH_SIZE 0x800000 | 117 | #define CSB_FLASH_SIZE SZ_8M |
118 | 118 | ||
119 | static struct mtd_partition csb_flash_partitions[] = { | 119 | static struct mtd_partition csb_flash_partitions[] = { |
120 | { | 120 | { |
@@ -193,11 +193,11 @@ static struct platform_device csb300_button_device = { | |||
193 | 193 | ||
194 | static void __init csb300_add_device_buttons(void) | 194 | static void __init csb300_add_device_buttons(void) |
195 | { | 195 | { |
196 | at91_set_gpio_input(AT91_PIN_PB29, 0); /* sw0 */ | 196 | at91_set_gpio_input(AT91_PIN_PB29, 1); /* sw0 */ |
197 | at91_set_deglitch(AT91_PIN_PB29, 1); | 197 | at91_set_deglitch(AT91_PIN_PB29, 1); |
198 | at91_set_gpio_input(AT91_PIN_PB28, 0); /* sw1 */ | 198 | at91_set_gpio_input(AT91_PIN_PB28, 1); /* sw1 */ |
199 | at91_set_deglitch(AT91_PIN_PB28, 1); | 199 | at91_set_deglitch(AT91_PIN_PB28, 1); |
200 | at91_set_gpio_input(AT91_PIN_PA21, 0); /* sw2 */ | 200 | at91_set_gpio_input(AT91_PIN_PA21, 1); /* sw2 */ |
201 | at91_set_deglitch(AT91_PIN_PA21, 1); | 201 | at91_set_deglitch(AT91_PIN_PA21, 1); |
202 | 202 | ||
203 | platform_device_register(&csb300_button_device); | 203 | platform_device_register(&csb300_button_device); |
@@ -224,7 +224,7 @@ static struct gpio_led csb_leds[] = { | |||
224 | .gpio = AT91_PIN_PB0, | 224 | .gpio = AT91_PIN_PB0, |
225 | .active_low = 1, | 225 | .active_low = 1, |
226 | .default_trigger = "ide-disk", | 226 | .default_trigger = "ide-disk", |
227 | }, | 227 | } |
228 | }; | 228 | }; |
229 | 229 | ||
230 | 230 | ||
diff --git a/arch/arm/mach-at91/board-csb637.c b/arch/arm/mach-at91/board-csb637.c index 8db8bd8babd9..cfa3f04b2205 100644 --- a/arch/arm/mach-at91/board-csb637.c +++ b/arch/arm/mach-at91/board-csb637.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/mtd/physmap.h> | 26 | #include <linux/mtd/physmap.h> |
27 | 27 | ||
28 | #include <mach/hardware.h> | ||
29 | #include <asm/setup.h> | 28 | #include <asm/setup.h> |
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
@@ -34,6 +33,7 @@ | |||
34 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 34 | #include <asm/mach/irq.h> |
36 | 35 | ||
36 | #include <mach/hardware.h> | ||
37 | #include <mach/board.h> | 37 | #include <mach/board.h> |
38 | #include <mach/gpio.h> | 38 | #include <mach/gpio.h> |
39 | 39 | ||
@@ -72,7 +72,7 @@ static struct at91_udc_data __initdata csb637_udc_data = { | |||
72 | }; | 72 | }; |
73 | 73 | ||
74 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 | 74 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 |
75 | #define CSB_FLASH_SIZE 0x1000000 | 75 | #define CSB_FLASH_SIZE SZ_16M |
76 | 76 | ||
77 | static struct mtd_partition csb_flash_partitions[] = { | 77 | static struct mtd_partition csb_flash_partitions[] = { |
78 | { | 78 | { |
diff --git a/arch/arm/mach-at91/board-dk.c b/arch/arm/mach-at91/board-dk.c index 43e1aa7ecef7..0fd0f5bc77ea 100644 --- a/arch/arm/mach-at91/board-dk.c +++ b/arch/arm/mach-at91/board-dk.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
31 | 31 | ||
32 | #include <mach/hardware.h> | ||
33 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
34 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -38,6 +37,7 @@ | |||
38 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
39 | #include <asm/mach/irq.h> | 38 | #include <asm/mach/irq.h> |
40 | 39 | ||
40 | #include <mach/hardware.h> | ||
41 | #include <mach/board.h> | 41 | #include <mach/board.h> |
42 | #include <mach/gpio.h> | 42 | #include <mach/gpio.h> |
43 | #include <mach/at91rm9200_mc.h> | 43 | #include <mach/at91rm9200_mc.h> |
@@ -157,7 +157,7 @@ static struct atmel_nand_data __initdata dk_nand_data = { | |||
157 | }; | 157 | }; |
158 | 158 | ||
159 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 | 159 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 |
160 | #define DK_FLASH_SIZE 0x200000 | 160 | #define DK_FLASH_SIZE SZ_2M |
161 | 161 | ||
162 | static struct physmap_flash_data dk_flash_data = { | 162 | static struct physmap_flash_data dk_flash_data = { |
163 | .width = 2, | 163 | .width = 2, |
diff --git a/arch/arm/mach-at91/board-ecbat91.c b/arch/arm/mach-at91/board-ecbat91.c index bfeee8a2af28..1d69908617f0 100644 --- a/arch/arm/mach-at91/board-ecbat91.c +++ b/arch/arm/mach-at91/board-ecbat91.c | |||
@@ -86,7 +86,7 @@ static struct mtd_partition __initdata my_flash0_partitions[] = | |||
86 | { /* 0x8400 */ | 86 | { /* 0x8400 */ |
87 | .name = "Darrell-loader", | 87 | .name = "Darrell-loader", |
88 | .offset = 0, | 88 | .offset = 0, |
89 | .size = 12* 1056, | 89 | .size = 12 * 1056, |
90 | }, | 90 | }, |
91 | { | 91 | { |
92 | .name = "U-boot", | 92 | .name = "U-boot", |
diff --git a/arch/arm/mach-at91/board-ek.c b/arch/arm/mach-at91/board-ek.c index 60626e7a3490..4cdfaac8e590 100644 --- a/arch/arm/mach-at91/board-ek.c +++ b/arch/arm/mach-at91/board-ek.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
31 | 31 | ||
32 | #include <mach/hardware.h> | ||
33 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
34 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -38,6 +37,7 @@ | |||
38 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
39 | #include <asm/mach/irq.h> | 38 | #include <asm/mach/irq.h> |
40 | 39 | ||
40 | #include <mach/hardware.h> | ||
41 | #include <mach/board.h> | 41 | #include <mach/board.h> |
42 | #include <mach/gpio.h> | 42 | #include <mach/gpio.h> |
43 | #include <mach/at91rm9200_mc.h> | 43 | #include <mach/at91rm9200_mc.h> |
@@ -116,7 +116,7 @@ static struct i2c_board_info __initdata ek_i2c_devices[] = { | |||
116 | }; | 116 | }; |
117 | 117 | ||
118 | #define EK_FLASH_BASE AT91_CHIPSELECT_0 | 118 | #define EK_FLASH_BASE AT91_CHIPSELECT_0 |
119 | #define EK_FLASH_SIZE 0x200000 | 119 | #define EK_FLASH_SIZE SZ_2M |
120 | 120 | ||
121 | static struct physmap_flash_data ek_flash_data = { | 121 | static struct physmap_flash_data ek_flash_data = { |
122 | .width = 2, | 122 | .width = 2, |
diff --git a/arch/arm/mach-at91/board-picotux200.c b/arch/arm/mach-at91/board-picotux200.c index dbc912d633c7..859727e7ea30 100644 --- a/arch/arm/mach-at91/board-picotux200.c +++ b/arch/arm/mach-at91/board-picotux200.c | |||
@@ -105,7 +105,7 @@ static struct at91_mmc_data __initdata picotux200_mmc_data = { | |||
105 | // }; | 105 | // }; |
106 | 106 | ||
107 | #define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0 | 107 | #define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0 |
108 | #define PICOTUX200_FLASH_SIZE 0x400000 | 108 | #define PICOTUX200_FLASH_SIZE SZ_4M |
109 | 109 | ||
110 | static struct physmap_flash_data picotux200_flash_data = { | 110 | static struct physmap_flash_data picotux200_flash_data = { |
111 | .width = 2, | 111 | .width = 2, |
diff --git a/arch/arm/mach-at91/board-qil-a9260.c b/arch/arm/mach-at91/board-qil-a9260.c index 4c28413426c2..cfb4571a2e27 100644 --- a/arch/arm/mach-at91/board-qil-a9260.c +++ b/arch/arm/mach-at91/board-qil-a9260.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/input.h> | 30 | #include <linux/input.h> |
31 | #include <linux/clk.h> | 31 | #include <linux/clk.h> |
32 | 32 | ||
33 | #include <mach/hardware.h> | ||
34 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
35 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
36 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
@@ -39,6 +38,7 @@ | |||
39 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
40 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
41 | 40 | ||
41 | #include <mach/hardware.h> | ||
42 | #include <mach/board.h> | 42 | #include <mach/board.h> |
43 | #include <mach/gpio.h> | 43 | #include <mach/gpio.h> |
44 | #include <mach/at91_shdwc.h> | 44 | #include <mach/at91_shdwc.h> |
@@ -119,18 +119,18 @@ static struct at91_eth_data __initdata ek_macb_data = { | |||
119 | static struct mtd_partition __initdata ek_nand_partition[] = { | 119 | static struct mtd_partition __initdata ek_nand_partition[] = { |
120 | { | 120 | { |
121 | .name = "Uboot & Kernel", | 121 | .name = "Uboot & Kernel", |
122 | .offset = 0x00000000, | 122 | .offset = 0, |
123 | .size = 16 * 1024 * 1024, | 123 | .size = SZ_16M, |
124 | }, | 124 | }, |
125 | { | 125 | { |
126 | .name = "Root FS", | 126 | .name = "Root FS", |
127 | .offset = 0x01000000, | 127 | .offset = MTDPART_OFS_NXTBLK, |
128 | .size = 120 * 1024 * 1024, | 128 | .size = 120 * SZ_1M, |
129 | }, | 129 | }, |
130 | { | 130 | { |
131 | .name = "FS", | 131 | .name = "FS", |
132 | .offset = 0x08800000, | 132 | .offset = MTDPART_OFS_NXTBLK, |
133 | .size = 120 * 1024 * 1024, | 133 | .size = 120 * SZ_1M, |
134 | }, | 134 | }, |
135 | }; | 135 | }; |
136 | 136 | ||
diff --git a/arch/arm/mach-at91/board-sam9-l9260.c b/arch/arm/mach-at91/board-sam9-l9260.c index e4910cb26c16..99bb4cc23a09 100644 --- a/arch/arm/mach-at91/board-sam9-l9260.c +++ b/arch/arm/mach-at91/board-sam9-l9260.c | |||
@@ -126,11 +126,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
126 | { | 126 | { |
127 | .name = "Bootloader Area", | 127 | .name = "Bootloader Area", |
128 | .offset = 0, | 128 | .offset = 0, |
129 | .size = 10 * 1024 * 1024, | 129 | .size = 10 * SZ_1M, |
130 | }, | 130 | }, |
131 | { | 131 | { |
132 | .name = "User Area", | 132 | .name = "User Area", |
133 | .offset = 10 * 1024 * 1024, | 133 | .offset = MTDPART_OFS_NXTBLK, |
134 | .size = MTDPART_SIZ_FULL, | 134 | .size = MTDPART_SIZ_FULL, |
135 | }, | 135 | }, |
136 | }; | 136 | }; |
diff --git a/arch/arm/mach-at91/board-sam9260ek.c b/arch/arm/mach-at91/board-sam9260ek.c index cb20e70b3b06..b49eb6e4918a 100644 --- a/arch/arm/mach-at91/board-sam9260ek.c +++ b/arch/arm/mach-at91/board-sam9260ek.c | |||
@@ -27,8 +27,10 @@ | |||
27 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
28 | #include <linux/spi/at73c213.h> | 28 | #include <linux/spi/at73c213.h> |
29 | #include <linux/clk.h> | 29 | #include <linux/clk.h> |
30 | #include <linux/i2c/at24.h> | ||
31 | #include <linux/gpio_keys.h> | ||
32 | #include <linux/input.h> | ||
30 | 33 | ||
31 | #include <mach/hardware.h> | ||
32 | #include <asm/setup.h> | 34 | #include <asm/setup.h> |
33 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
34 | #include <asm/irq.h> | 36 | #include <asm/irq.h> |
@@ -37,6 +39,7 @@ | |||
37 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
38 | #include <asm/mach/irq.h> | 40 | #include <asm/mach/irq.h> |
39 | 41 | ||
42 | #include <mach/hardware.h> | ||
40 | #include <mach/board.h> | 43 | #include <mach/board.h> |
41 | #include <mach/gpio.h> | 44 | #include <mach/gpio.h> |
42 | 45 | ||
@@ -163,11 +166,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
163 | { | 166 | { |
164 | .name = "Partition 1", | 167 | .name = "Partition 1", |
165 | .offset = 0, | 168 | .offset = 0, |
166 | .size = 256 * 1024, | 169 | .size = SZ_256K, |
167 | }, | 170 | }, |
168 | { | 171 | { |
169 | .name = "Partition 2", | 172 | .name = "Partition 2", |
170 | .offset = 256 * 1024, | 173 | .offset = MTDPART_OFS_NXTBLK, |
171 | .size = MTDPART_SIZ_FULL, | 174 | .size = MTDPART_SIZ_FULL, |
172 | }, | 175 | }, |
173 | }; | 176 | }; |
@@ -222,6 +225,73 @@ static struct gpio_led ek_leds[] = { | |||
222 | } | 225 | } |
223 | }; | 226 | }; |
224 | 227 | ||
228 | /* | ||
229 | * I2C devices | ||
230 | */ | ||
231 | static struct at24_platform_data at24c512 = { | ||
232 | .byte_len = SZ_512K / 8, | ||
233 | .page_size = 128, | ||
234 | .flags = AT24_FLAG_ADDR16, | ||
235 | }; | ||
236 | |||
237 | static struct i2c_board_info __initdata ek_i2c_devices[] = { | ||
238 | { | ||
239 | I2C_BOARD_INFO("24c512", 0x50), | ||
240 | .platform_data = &at24c512, | ||
241 | }, | ||
242 | /* more devices can be added using expansion connectors */ | ||
243 | }; | ||
244 | |||
245 | |||
246 | /* | ||
247 | * GPIO Buttons | ||
248 | */ | ||
249 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
250 | static struct gpio_keys_button ek_buttons[] = { | ||
251 | { | ||
252 | .gpio = AT91_PIN_PA30, | ||
253 | .code = BTN_3, | ||
254 | .desc = "Button 3", | ||
255 | .active_low = 1, | ||
256 | .wakeup = 1, | ||
257 | }, | ||
258 | { | ||
259 | .gpio = AT91_PIN_PA31, | ||
260 | .code = BTN_4, | ||
261 | .desc = "Button 4", | ||
262 | .active_low = 1, | ||
263 | .wakeup = 1, | ||
264 | } | ||
265 | }; | ||
266 | |||
267 | static struct gpio_keys_platform_data ek_button_data = { | ||
268 | .buttons = ek_buttons, | ||
269 | .nbuttons = ARRAY_SIZE(ek_buttons), | ||
270 | }; | ||
271 | |||
272 | static struct platform_device ek_button_device = { | ||
273 | .name = "gpio-keys", | ||
274 | .id = -1, | ||
275 | .num_resources = 0, | ||
276 | .dev = { | ||
277 | .platform_data = &ek_button_data, | ||
278 | } | ||
279 | }; | ||
280 | |||
281 | static void __init ek_add_device_buttons(void) | ||
282 | { | ||
283 | at91_set_gpio_input(AT91_PIN_PA30, 1); /* btn3 */ | ||
284 | at91_set_deglitch(AT91_PIN_PA30, 1); | ||
285 | at91_set_gpio_input(AT91_PIN_PA31, 1); /* btn4 */ | ||
286 | at91_set_deglitch(AT91_PIN_PA31, 1); | ||
287 | |||
288 | platform_device_register(&ek_button_device); | ||
289 | } | ||
290 | #else | ||
291 | static void __init ek_add_device_buttons(void) {} | ||
292 | #endif | ||
293 | |||
294 | |||
225 | static void __init ek_board_init(void) | 295 | static void __init ek_board_init(void) |
226 | { | 296 | { |
227 | /* Serial */ | 297 | /* Serial */ |
@@ -239,12 +309,14 @@ static void __init ek_board_init(void) | |||
239 | /* MMC */ | 309 | /* MMC */ |
240 | at91_add_device_mmc(0, &ek_mmc_data); | 310 | at91_add_device_mmc(0, &ek_mmc_data); |
241 | /* I2C */ | 311 | /* I2C */ |
242 | at91_add_device_i2c(NULL, 0); | 312 | at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices)); |
243 | /* SSC (to AT73C213) */ | 313 | /* SSC (to AT73C213) */ |
244 | at73c213_set_clk(&at73c213_data); | 314 | at73c213_set_clk(&at73c213_data); |
245 | at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX); | 315 | at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX); |
246 | /* LEDs */ | 316 | /* LEDs */ |
247 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | 317 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); |
318 | /* Push Buttons */ | ||
319 | ek_add_device_buttons(); | ||
248 | } | 320 | } |
249 | 321 | ||
250 | MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK") | 322 | MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK") |
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index 1a9963b811c7..4977409d4fc6 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -35,7 +35,6 @@ | |||
35 | 35 | ||
36 | #include <video/atmel_lcdc.h> | 36 | #include <video/atmel_lcdc.h> |
37 | 37 | ||
38 | #include <mach/hardware.h> | ||
39 | #include <asm/setup.h> | 38 | #include <asm/setup.h> |
40 | #include <asm/mach-types.h> | 39 | #include <asm/mach-types.h> |
41 | #include <asm/irq.h> | 40 | #include <asm/irq.h> |
@@ -44,6 +43,7 @@ | |||
44 | #include <asm/mach/map.h> | 43 | #include <asm/mach/map.h> |
45 | #include <asm/mach/irq.h> | 44 | #include <asm/mach/irq.h> |
46 | 45 | ||
46 | #include <mach/hardware.h> | ||
47 | #include <mach/board.h> | 47 | #include <mach/board.h> |
48 | #include <mach/gpio.h> | 48 | #include <mach/gpio.h> |
49 | #include <mach/at91sam9_smc.h> | 49 | #include <mach/at91sam9_smc.h> |
@@ -168,11 +168,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
168 | { | 168 | { |
169 | .name = "Partition 1", | 169 | .name = "Partition 1", |
170 | .offset = 0, | 170 | .offset = 0, |
171 | .size = 256 * 1024, | 171 | .size = SZ_256K, |
172 | }, | 172 | }, |
173 | { | 173 | { |
174 | .name = "Partition 2", | 174 | .name = "Partition 2", |
175 | .offset = 256 * 1024 , | 175 | .offset = MTDPART_OFS_NXTBLK, |
176 | .size = MTDPART_SIZ_FULL, | 176 | .size = MTDPART_SIZ_FULL, |
177 | }, | 177 | }, |
178 | }; | 178 | }; |
@@ -435,24 +435,28 @@ static struct gpio_keys_button ek_buttons[] = { | |||
435 | .code = BTN_0, | 435 | .code = BTN_0, |
436 | .desc = "Button 0", | 436 | .desc = "Button 0", |
437 | .active_low = 1, | 437 | .active_low = 1, |
438 | .wakeup = 1, | ||
438 | }, | 439 | }, |
439 | { | 440 | { |
440 | .gpio = AT91_PIN_PA26, | 441 | .gpio = AT91_PIN_PA26, |
441 | .code = BTN_1, | 442 | .code = BTN_1, |
442 | .desc = "Button 1", | 443 | .desc = "Button 1", |
443 | .active_low = 1, | 444 | .active_low = 1, |
445 | .wakeup = 1, | ||
444 | }, | 446 | }, |
445 | { | 447 | { |
446 | .gpio = AT91_PIN_PA25, | 448 | .gpio = AT91_PIN_PA25, |
447 | .code = BTN_2, | 449 | .code = BTN_2, |
448 | .desc = "Button 2", | 450 | .desc = "Button 2", |
449 | .active_low = 1, | 451 | .active_low = 1, |
452 | .wakeup = 1, | ||
450 | }, | 453 | }, |
451 | { | 454 | { |
452 | .gpio = AT91_PIN_PA24, | 455 | .gpio = AT91_PIN_PA24, |
453 | .code = BTN_3, | 456 | .code = BTN_3, |
454 | .desc = "Button 3", | 457 | .desc = "Button 3", |
455 | .active_low = 1, | 458 | .active_low = 1, |
459 | .wakeup = 1, | ||
456 | } | 460 | } |
457 | }; | 461 | }; |
458 | 462 | ||
@@ -472,13 +476,13 @@ static struct platform_device ek_button_device = { | |||
472 | 476 | ||
473 | static void __init ek_add_device_buttons(void) | 477 | static void __init ek_add_device_buttons(void) |
474 | { | 478 | { |
475 | at91_set_gpio_input(AT91_PIN_PA27, 0); /* btn0 */ | 479 | at91_set_gpio_input(AT91_PIN_PA27, 1); /* btn0 */ |
476 | at91_set_deglitch(AT91_PIN_PA27, 1); | 480 | at91_set_deglitch(AT91_PIN_PA27, 1); |
477 | at91_set_gpio_input(AT91_PIN_PA26, 0); /* btn1 */ | 481 | at91_set_gpio_input(AT91_PIN_PA26, 1); /* btn1 */ |
478 | at91_set_deglitch(AT91_PIN_PA26, 1); | 482 | at91_set_deglitch(AT91_PIN_PA26, 1); |
479 | at91_set_gpio_input(AT91_PIN_PA25, 0); /* btn2 */ | 483 | at91_set_gpio_input(AT91_PIN_PA25, 1); /* btn2 */ |
480 | at91_set_deglitch(AT91_PIN_PA25, 1); | 484 | at91_set_deglitch(AT91_PIN_PA25, 1); |
481 | at91_set_gpio_input(AT91_PIN_PA24, 0); /* btn3 */ | 485 | at91_set_gpio_input(AT91_PIN_PA24, 1); /* btn3 */ |
482 | at91_set_deglitch(AT91_PIN_PA24, 1); | 486 | at91_set_deglitch(AT91_PIN_PA24, 1); |
483 | 487 | ||
484 | platform_device_register(&ek_button_device); | 488 | platform_device_register(&ek_button_device); |
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index b1d11960a735..8354015c6a23 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -26,13 +26,14 @@ | |||
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
28 | #include <linux/spi/ads7846.h> | 28 | #include <linux/spi/ads7846.h> |
29 | #include <linux/i2c/at24.h> | ||
29 | #include <linux/fb.h> | 30 | #include <linux/fb.h> |
30 | #include <linux/gpio_keys.h> | 31 | #include <linux/gpio_keys.h> |
31 | #include <linux/input.h> | 32 | #include <linux/input.h> |
33 | #include <linux/leds.h> | ||
32 | 34 | ||
33 | #include <video/atmel_lcdc.h> | 35 | #include <video/atmel_lcdc.h> |
34 | 36 | ||
35 | #include <mach/hardware.h> | ||
36 | #include <asm/setup.h> | 37 | #include <asm/setup.h> |
37 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
38 | #include <asm/irq.h> | 39 | #include <asm/irq.h> |
@@ -41,6 +42,7 @@ | |||
41 | #include <asm/mach/map.h> | 42 | #include <asm/mach/map.h> |
42 | #include <asm/mach/irq.h> | 43 | #include <asm/mach/irq.h> |
43 | 44 | ||
45 | #include <mach/hardware.h> | ||
44 | #include <mach/board.h> | 46 | #include <mach/board.h> |
45 | #include <mach/gpio.h> | 47 | #include <mach/gpio.h> |
46 | #include <mach/at91sam9_smc.h> | 48 | #include <mach/at91sam9_smc.h> |
@@ -172,11 +174,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
172 | { | 174 | { |
173 | .name = "Partition 1", | 175 | .name = "Partition 1", |
174 | .offset = 0, | 176 | .offset = 0, |
175 | .size = 64 * 1024 * 1024, | 177 | .size = SZ_64M, |
176 | }, | 178 | }, |
177 | { | 179 | { |
178 | .name = "Partition 2", | 180 | .name = "Partition 2", |
179 | .offset = 64 * 1024 * 1024, | 181 | .offset = MTDPART_OFS_NXTBLK, |
180 | .size = MTDPART_SIZ_FULL, | 182 | .size = MTDPART_SIZ_FULL, |
181 | }, | 183 | }, |
182 | }; | 184 | }; |
@@ -203,12 +205,30 @@ static struct atmel_nand_data __initdata ek_nand_data = { | |||
203 | 205 | ||
204 | 206 | ||
205 | /* | 207 | /* |
208 | * I2C devices | ||
209 | */ | ||
210 | static struct at24_platform_data at24c512 = { | ||
211 | .byte_len = SZ_512K / 8, | ||
212 | .page_size = 128, | ||
213 | .flags = AT24_FLAG_ADDR16, | ||
214 | }; | ||
215 | |||
216 | |||
217 | static struct i2c_board_info __initdata ek_i2c_devices[] = { | ||
218 | { | ||
219 | I2C_BOARD_INFO("24c512", 0x50), | ||
220 | .platform_data = &at24c512, | ||
221 | }, | ||
222 | /* more devices can be added using expansion connectors */ | ||
223 | }; | ||
224 | |||
225 | /* | ||
206 | * LCD Controller | 226 | * LCD Controller |
207 | */ | 227 | */ |
208 | #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE) | 228 | #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE) |
209 | static struct fb_videomode at91_tft_vga_modes[] = { | 229 | static struct fb_videomode at91_tft_vga_modes[] = { |
210 | { | 230 | { |
211 | .name = "TX09D50VM1CCA @ 60", | 231 | .name = "TX09D50VM1CCA @ 60", |
212 | .refresh = 60, | 232 | .refresh = 60, |
213 | .xres = 240, .yres = 320, | 233 | .xres = 240, .yres = 320, |
214 | .pixclock = KHZ2PICOS(4965), | 234 | .pixclock = KHZ2PICOS(4965), |
@@ -224,7 +244,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
224 | 244 | ||
225 | static struct fb_monspecs at91fb_default_monspecs = { | 245 | static struct fb_monspecs at91fb_default_monspecs = { |
226 | .manufacturer = "HIT", | 246 | .manufacturer = "HIT", |
227 | .monitor = "TX09D70VM1CCA", | 247 | .monitor = "TX09D70VM1CCA", |
228 | 248 | ||
229 | .modedb = at91_tft_vga_modes, | 249 | .modedb = at91_tft_vga_modes, |
230 | .modedb_len = ARRAY_SIZE(at91_tft_vga_modes), | 250 | .modedb_len = ARRAY_SIZE(at91_tft_vga_modes), |
@@ -235,7 +255,7 @@ static struct fb_monspecs at91fb_default_monspecs = { | |||
235 | }; | 255 | }; |
236 | 256 | ||
237 | #define AT91SAM9263_DEFAULT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \ | 257 | #define AT91SAM9263_DEFAULT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \ |
238 | | ATMEL_LCDC_DISTYPE_TFT \ | 258 | | ATMEL_LCDC_DISTYPE_TFT \ |
239 | | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE) | 259 | | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE) |
240 | 260 | ||
241 | static void at91_lcdc_power_control(int on) | 261 | static void at91_lcdc_power_control(int on) |
@@ -277,7 +297,7 @@ static struct gpio_keys_button ek_buttons[] = { | |||
277 | .active_low = 1, | 297 | .active_low = 1, |
278 | .desc = "right_click", | 298 | .desc = "right_click", |
279 | .wakeup = 1, | 299 | .wakeup = 1, |
280 | }, | 300 | } |
281 | }; | 301 | }; |
282 | 302 | ||
283 | static struct gpio_keys_platform_data ek_button_data = { | 303 | static struct gpio_keys_platform_data ek_button_data = { |
@@ -296,9 +316,9 @@ static struct platform_device ek_button_device = { | |||
296 | 316 | ||
297 | static void __init ek_add_device_buttons(void) | 317 | static void __init ek_add_device_buttons(void) |
298 | { | 318 | { |
299 | at91_set_GPIO_periph(AT91_PIN_PC5, 0); /* left button */ | 319 | at91_set_GPIO_periph(AT91_PIN_PC5, 1); /* left button */ |
300 | at91_set_deglitch(AT91_PIN_PC5, 1); | 320 | at91_set_deglitch(AT91_PIN_PC5, 1); |
301 | at91_set_GPIO_periph(AT91_PIN_PC4, 0); /* right button */ | 321 | at91_set_GPIO_periph(AT91_PIN_PC4, 1); /* right button */ |
302 | at91_set_deglitch(AT91_PIN_PC4, 1); | 322 | at91_set_deglitch(AT91_PIN_PC4, 1); |
303 | 323 | ||
304 | platform_device_register(&ek_button_device); | 324 | platform_device_register(&ek_button_device); |
@@ -320,25 +340,32 @@ static struct atmel_ac97_data ek_ac97_data = { | |||
320 | * LEDs ... these could all be PWM-driven, for variable brightness | 340 | * LEDs ... these could all be PWM-driven, for variable brightness |
321 | */ | 341 | */ |
322 | static struct gpio_led ek_leds[] = { | 342 | static struct gpio_led ek_leds[] = { |
323 | { /* "left" led, green, userled1, pwm1 */ | 343 | { /* "right" led, green, userled2 (could be driven by pwm2) */ |
324 | .name = "ds1", | ||
325 | .gpio = AT91_PIN_PB8, | ||
326 | .active_low = 1, | ||
327 | .default_trigger = "mmc0", | ||
328 | }, | ||
329 | { /* "right" led, green, userled2, pwm2 */ | ||
330 | .name = "ds2", | 344 | .name = "ds2", |
331 | .gpio = AT91_PIN_PC29, | 345 | .gpio = AT91_PIN_PC29, |
332 | .active_low = 1, | 346 | .active_low = 1, |
333 | .default_trigger = "nand-disk", | 347 | .default_trigger = "nand-disk", |
334 | }, | 348 | }, |
335 | { /* "power" led, yellow, pwm0 */ | 349 | { /* "power" led, yellow (could be driven by pwm0) */ |
336 | .name = "ds3", | 350 | .name = "ds3", |
337 | .gpio = AT91_PIN_PB7, | 351 | .gpio = AT91_PIN_PB7, |
338 | .default_trigger = "heartbeat", | 352 | .default_trigger = "heartbeat", |
339 | } | 353 | } |
340 | }; | 354 | }; |
341 | 355 | ||
356 | /* | ||
357 | * PWM Leds | ||
358 | */ | ||
359 | static struct gpio_led ek_pwm_led[] = { | ||
360 | /* For now only DS1 is PWM-driven (by pwm1) */ | ||
361 | { | ||
362 | .name = "ds1", | ||
363 | .gpio = 1, /* is PWM channel number */ | ||
364 | .active_low = 1, | ||
365 | .default_trigger = "none", | ||
366 | } | ||
367 | }; | ||
368 | |||
342 | 369 | ||
343 | static void __init ek_board_init(void) | 370 | static void __init ek_board_init(void) |
344 | { | 371 | { |
@@ -360,7 +387,7 @@ static void __init ek_board_init(void) | |||
360 | /* NAND */ | 387 | /* NAND */ |
361 | at91_add_device_nand(&ek_nand_data); | 388 | at91_add_device_nand(&ek_nand_data); |
362 | /* I2C */ | 389 | /* I2C */ |
363 | at91_add_device_i2c(NULL, 0); | 390 | at91_add_device_i2c(ek_i2c_devices, ARRAY_SIZE(ek_i2c_devices)); |
364 | /* LCD Controller */ | 391 | /* LCD Controller */ |
365 | at91_add_device_lcdc(&ek_lcdc_data); | 392 | at91_add_device_lcdc(&ek_lcdc_data); |
366 | /* Push Buttons */ | 393 | /* Push Buttons */ |
@@ -369,6 +396,7 @@ static void __init ek_board_init(void) | |||
369 | at91_add_device_ac97(&ek_ac97_data); | 396 | at91_add_device_ac97(&ek_ac97_data); |
370 | /* LEDs */ | 397 | /* LEDs */ |
371 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | 398 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); |
399 | at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led)); | ||
372 | } | 400 | } |
373 | 401 | ||
374 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") | 402 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") |
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c index d4eba5c0ce02..b588ead14d68 100644 --- a/arch/arm/mach-at91/board-sam9g20ek.c +++ b/arch/arm/mach-at91/board-sam9g20ek.c | |||
@@ -122,16 +122,16 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
122 | { | 122 | { |
123 | .name = "Bootstrap", | 123 | .name = "Bootstrap", |
124 | .offset = 0, | 124 | .offset = 0, |
125 | .size = 4 * 1024 * 1024, | 125 | .size = 4 * SZ_1M, |
126 | }, | 126 | }, |
127 | { | 127 | { |
128 | .name = "Partition 1", | 128 | .name = "Partition 1", |
129 | .offset = 4 * 1024 * 1024, | 129 | .offset = MTDPART_OFS_NXTBLK, |
130 | .size = 60 * 1024 * 1024, | 130 | .size = 60 * SZ_1M, |
131 | }, | 131 | }, |
132 | { | 132 | { |
133 | .name = "Partition 2", | 133 | .name = "Partition 2", |
134 | .offset = 64 * 1024 * 1024, | 134 | .offset = MTDPART_OFS_NXTBLK, |
135 | .size = MTDPART_SIZ_FULL, | 135 | .size = MTDPART_SIZ_FULL, |
136 | }, | 136 | }, |
137 | }; | 137 | }; |
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index c6dce49c388c..270851864308 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <video/atmel_lcdc.h> | 19 | #include <video/atmel_lcdc.h> |
20 | 20 | ||
21 | #include <mach/hardware.h> | ||
22 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
23 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
24 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
@@ -27,6 +26,7 @@ | |||
27 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
28 | #include <asm/mach/irq.h> | 27 | #include <asm/mach/irq.h> |
29 | 28 | ||
29 | #include <mach/hardware.h> | ||
30 | #include <mach/board.h> | 30 | #include <mach/board.h> |
31 | #include <mach/gpio.h> | 31 | #include <mach/gpio.h> |
32 | #include <mach/at91sam9_smc.h> | 32 | #include <mach/at91sam9_smc.h> |
@@ -81,11 +81,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
81 | { | 81 | { |
82 | .name = "Partition 1", | 82 | .name = "Partition 1", |
83 | .offset = 0, | 83 | .offset = 0, |
84 | .size = 256 * 1024, | 84 | .size = SZ_256K, |
85 | }, | 85 | }, |
86 | { | 86 | { |
87 | .name = "Partition 2", | 87 | .name = "Partition 2", |
88 | .offset = 256 * 1024 , | 88 | .offset = MTDPART_OFS_NXTBLK, |
89 | .size = MTDPART_SIZ_FULL, | 89 | .size = MTDPART_SIZ_FULL, |
90 | }, | 90 | }, |
91 | }; | 91 | }; |
@@ -195,6 +195,8 @@ static void __init ek_board_init(void) | |||
195 | at91_add_device_mmc(0, &ek_mmc_data); | 195 | at91_add_device_mmc(0, &ek_mmc_data); |
196 | /* LCD Controller */ | 196 | /* LCD Controller */ |
197 | at91_add_device_lcdc(&ek_lcdc_data); | 197 | at91_add_device_lcdc(&ek_lcdc_data); |
198 | /* Touch Screen Controller */ | ||
199 | at91_add_device_tsadcc(); | ||
198 | } | 200 | } |
199 | 201 | ||
200 | MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK") | 202 | MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK") |
diff --git a/arch/arm/mach-at91/board-usb-a9260.c b/arch/arm/mach-at91/board-usb-a9260.c index f9d0b65da40b..7c350357333a 100644 --- a/arch/arm/mach-at91/board-usb-a9260.c +++ b/arch/arm/mach-at91/board-usb-a9260.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/input.h> | 30 | #include <linux/input.h> |
31 | #include <linux/clk.h> | 31 | #include <linux/clk.h> |
32 | 32 | ||
33 | #include <mach/hardware.h> | ||
34 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
35 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
36 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
@@ -39,6 +38,7 @@ | |||
39 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
40 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
41 | 40 | ||
41 | #include <mach/hardware.h> | ||
42 | #include <mach/board.h> | 42 | #include <mach/board.h> |
43 | #include <mach/gpio.h> | 43 | #include <mach/gpio.h> |
44 | #include <mach/at91_shdwc.h> | 44 | #include <mach/at91_shdwc.h> |
@@ -93,18 +93,18 @@ static struct at91_eth_data __initdata ek_macb_data = { | |||
93 | static struct mtd_partition __initdata ek_nand_partition[] = { | 93 | static struct mtd_partition __initdata ek_nand_partition[] = { |
94 | { | 94 | { |
95 | .name = "Uboot & Kernel", | 95 | .name = "Uboot & Kernel", |
96 | .offset = 0x00000000, | 96 | .offset = 0, |
97 | .size = 16 * 1024 * 1024, | 97 | .size = SZ_16M, |
98 | }, | 98 | }, |
99 | { | 99 | { |
100 | .name = "Root FS", | 100 | .name = "Root FS", |
101 | .offset = 0x01000000, | 101 | .offset = MTDPART_OFS_NXTBLK, |
102 | .size = 120 * 1024 * 1024, | 102 | .size = 120 * SZ_1M, |
103 | }, | 103 | }, |
104 | { | 104 | { |
105 | .name = "FS", | 105 | .name = "FS", |
106 | .offset = 0x08800000, | 106 | .offset = MTDPART_OFS_NXTBLK, |
107 | .size = 120 * 1024 * 1024, | 107 | .size = 120 * SZ_1M, |
108 | } | 108 | } |
109 | }; | 109 | }; |
110 | 110 | ||
diff --git a/arch/arm/mach-at91/board-usb-a9263.c b/arch/arm/mach-at91/board-usb-a9263.c index 673e5c27214d..391b566c4571 100644 --- a/arch/arm/mach-at91/board-usb-a9263.c +++ b/arch/arm/mach-at91/board-usb-a9263.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/gpio_keys.h> | 29 | #include <linux/gpio_keys.h> |
30 | #include <linux/input.h> | 30 | #include <linux/input.h> |
31 | 31 | ||
32 | #include <mach/hardware.h> | ||
33 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
34 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -38,6 +37,7 @@ | |||
38 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
39 | #include <asm/mach/irq.h> | 38 | #include <asm/mach/irq.h> |
40 | 39 | ||
40 | #include <mach/hardware.h> | ||
41 | #include <mach/board.h> | 41 | #include <mach/board.h> |
42 | #include <mach/gpio.h> | 42 | #include <mach/gpio.h> |
43 | #include <mach/at91_shdwc.h> | 43 | #include <mach/at91_shdwc.h> |
@@ -106,18 +106,18 @@ static struct at91_eth_data __initdata ek_macb_data = { | |||
106 | static struct mtd_partition __initdata ek_nand_partition[] = { | 106 | static struct mtd_partition __initdata ek_nand_partition[] = { |
107 | { | 107 | { |
108 | .name = "Linux Kernel", | 108 | .name = "Linux Kernel", |
109 | .offset = 0x00000000, | 109 | .offset = 0, |
110 | .size = 16 * 1024 * 1024, | 110 | .size = SZ_16M, |
111 | }, | 111 | }, |
112 | { | 112 | { |
113 | .name = "Root FS", | 113 | .name = "Root FS", |
114 | .offset = 0x01000000, | 114 | .offset = MTDPART_OFS_NXTBLK, |
115 | .size = 120 * 1024 * 1024, | 115 | .size = 120 * SZ_1M, |
116 | }, | 116 | }, |
117 | { | 117 | { |
118 | .name = "FS", | 118 | .name = "FS", |
119 | .offset = 0x08800000, | 119 | .offset = MTDPART_OFS_NXTBLK, |
120 | .size = 120 * 1024 * 1024, | 120 | .size = 120 * SZ_1M, |
121 | } | 121 | } |
122 | }; | 122 | }; |
123 | 123 | ||
diff --git a/arch/arm/mach-at91/board-yl-9200.c b/arch/arm/mach-at91/board-yl-9200.c index 36b380aad006..e22bf051f835 100644 --- a/arch/arm/mach-at91/board-yl-9200.c +++ b/arch/arm/mach-at91/board-yl-9200.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/gpio_keys.h> | 33 | #include <linux/gpio_keys.h> |
34 | #include <linux/input.h> | 34 | #include <linux/input.h> |
35 | 35 | ||
36 | #include <mach/hardware.h> | ||
37 | #include <asm/setup.h> | 36 | #include <asm/setup.h> |
38 | #include <asm/mach-types.h> | 37 | #include <asm/mach-types.h> |
39 | #include <asm/irq.h> | 38 | #include <asm/irq.h> |
@@ -42,6 +41,7 @@ | |||
42 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
43 | #include <asm/mach/irq.h> | 42 | #include <asm/mach/irq.h> |
44 | 43 | ||
44 | #include <mach/hardware.h> | ||
45 | #include <mach/board.h> | 45 | #include <mach/board.h> |
46 | #include <mach/gpio.h> | 46 | #include <mach/gpio.h> |
47 | #include <mach/at91rm9200_mc.h> | 47 | #include <mach/at91rm9200_mc.h> |
@@ -150,27 +150,27 @@ static struct mtd_partition __initdata yl9200_nand_partition[] = { | |||
150 | { | 150 | { |
151 | .name = "AT91 NAND partition 1, boot", | 151 | .name = "AT91 NAND partition 1, boot", |
152 | .offset = 0, | 152 | .offset = 0, |
153 | .size = 1 * SZ_256K | 153 | .size = SZ_256K |
154 | }, | 154 | }, |
155 | { | 155 | { |
156 | .name = "AT91 NAND partition 2, kernel", | 156 | .name = "AT91 NAND partition 2, kernel", |
157 | .offset = 1 * SZ_256K, | 157 | .offset = MTDPART_OFS_NXTBLK, |
158 | .size = 2 * SZ_1M - 1 * SZ_256K | 158 | .size = (2 * SZ_1M) - SZ_256K |
159 | }, | 159 | }, |
160 | { | 160 | { |
161 | .name = "AT91 NAND partition 3, filesystem", | 161 | .name = "AT91 NAND partition 3, filesystem", |
162 | .offset = 2 * SZ_1M, | 162 | .offset = MTDPART_OFS_NXTBLK, |
163 | .size = 14 * SZ_1M | 163 | .size = 14 * SZ_1M |
164 | }, | 164 | }, |
165 | { | 165 | { |
166 | .name = "AT91 NAND partition 4, storage", | 166 | .name = "AT91 NAND partition 4, storage", |
167 | .offset = 16 * SZ_1M, | 167 | .offset = MTDPART_OFS_NXTBLK, |
168 | .size = 16 * SZ_1M | 168 | .size = SZ_16M |
169 | }, | 169 | }, |
170 | { | 170 | { |
171 | .name = "AT91 NAND partition 5, ext-fs", | 171 | .name = "AT91 NAND partition 5, ext-fs", |
172 | .offset = 32 * SZ_1M, | 172 | .offset = MTDPART_OFS_NXTBLK, |
173 | .size = 32 * SZ_1M | 173 | .size = SZ_32M |
174 | } | 174 | } |
175 | }; | 175 | }; |
176 | 176 | ||
@@ -193,24 +193,24 @@ static struct atmel_nand_data __initdata yl9200_nand_data = { | |||
193 | * NOR Flash | 193 | * NOR Flash |
194 | */ | 194 | */ |
195 | #define YL9200_FLASH_BASE AT91_CHIPSELECT_0 | 195 | #define YL9200_FLASH_BASE AT91_CHIPSELECT_0 |
196 | #define YL9200_FLASH_SIZE 0x1000000 | 196 | #define YL9200_FLASH_SIZE SZ_16M |
197 | 197 | ||
198 | static struct mtd_partition yl9200_flash_partitions[] = { | 198 | static struct mtd_partition yl9200_flash_partitions[] = { |
199 | { | 199 | { |
200 | .name = "Bootloader", | 200 | .name = "Bootloader", |
201 | .size = 0x00040000, | ||
202 | .offset = 0, | 201 | .offset = 0, |
202 | .size = SZ_256K, | ||
203 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | 203 | .mask_flags = MTD_WRITEABLE, /* force read-only */ |
204 | }, | 204 | }, |
205 | { | 205 | { |
206 | .name = "Kernel", | 206 | .name = "Kernel", |
207 | .size = 0x001C0000, | 207 | .offset = MTDPART_OFS_NXTBLK, |
208 | .offset = 0x00040000, | 208 | .size = (2 * SZ_1M) - SZ_256K |
209 | }, | 209 | }, |
210 | { | 210 | { |
211 | .name = "Filesystem", | 211 | .name = "Filesystem", |
212 | .size = MTDPART_SIZ_FULL, | 212 | .offset = MTDPART_OFS_NXTBLK, |
213 | .offset = 0x00200000 | 213 | .size = MTDPART_SIZ_FULL |
214 | } | 214 | } |
215 | }; | 215 | }; |
216 | 216 | ||
@@ -390,10 +390,6 @@ static struct spi_board_info yl9200_spi_devices[] = { | |||
390 | #if defined(CONFIG_FB_S1D135XX) || defined(CONFIG_FB_S1D13XXX_MODULE) | 390 | #if defined(CONFIG_FB_S1D135XX) || defined(CONFIG_FB_S1D13XXX_MODULE) |
391 | #include <video/s1d13xxxfb.h> | 391 | #include <video/s1d13xxxfb.h> |
392 | 392 | ||
393 | #define AT91_FB_REG_BASE 0x80000000L | ||
394 | #define AT91_FB_REG_SIZE 0x200 | ||
395 | #define AT91_FB_VMEM_BASE 0x80200000L | ||
396 | #define AT91_FB_VMEM_SIZE 0x200000L | ||
397 | 393 | ||
398 | static void __init yl9200_init_video(void) | 394 | static void __init yl9200_init_video(void) |
399 | { | 395 | { |
@@ -516,29 +512,33 @@ static struct s1d13xxxfb_regval yl9200_s1dfb_initregs[] = | |||
516 | {S1DREG_COM_DISP_MODE, 0x01}, /* Display Mode Register, LCD only*/ | 512 | {S1DREG_COM_DISP_MODE, 0x01}, /* Display Mode Register, LCD only*/ |
517 | }; | 513 | }; |
518 | 514 | ||
519 | static u64 s1dfb_dmamask = DMA_BIT_MASK(32); | ||
520 | |||
521 | static struct s1d13xxxfb_pdata yl9200_s1dfb_pdata = { | 515 | static struct s1d13xxxfb_pdata yl9200_s1dfb_pdata = { |
522 | .initregs = yl9200_s1dfb_initregs, | 516 | .initregs = yl9200_s1dfb_initregs, |
523 | .initregssize = ARRAY_SIZE(yl9200_s1dfb_initregs), | 517 | .initregssize = ARRAY_SIZE(yl9200_s1dfb_initregs), |
524 | .platform_init_video = yl9200_init_video, | 518 | .platform_init_video = yl9200_init_video, |
525 | }; | 519 | }; |
526 | 520 | ||
521 | #define YL9200_FB_REG_BASE AT91_CHIPSELECT_7 | ||
522 | #define YL9200_FB_VMEM_BASE YL9200_FB_REG_BASE + SZ_2M | ||
523 | #define YL9200_FB_VMEM_SIZE SZ_2M | ||
524 | |||
527 | static struct resource yl9200_s1dfb_resource[] = { | 525 | static struct resource yl9200_s1dfb_resource[] = { |
528 | [0] = { /* video mem */ | 526 | [0] = { /* video mem */ |
529 | .name = "s1d13xxxfb memory", | 527 | .name = "s1d13xxxfb memory", |
530 | .start = AT91_FB_VMEM_BASE, | 528 | .start = YL9200_FB_VMEM_BASE, |
531 | .end = AT91_FB_VMEM_BASE + AT91_FB_VMEM_SIZE -1, | 529 | .end = YL9200_FB_VMEM_BASE + YL9200_FB_VMEM_SIZE -1, |
532 | .flags = IORESOURCE_MEM, | 530 | .flags = IORESOURCE_MEM, |
533 | }, | 531 | }, |
534 | [1] = { /* video registers */ | 532 | [1] = { /* video registers */ |
535 | .name = "s1d13xxxfb registers", | 533 | .name = "s1d13xxxfb registers", |
536 | .start = AT91_FB_REG_BASE, | 534 | .start = YL9200_FB_REG_BASE, |
537 | .end = AT91_FB_REG_BASE + AT91_FB_REG_SIZE -1, | 535 | .end = YL9200_FB_REG_BASE + SZ_512 -1, |
538 | .flags = IORESOURCE_MEM, | 536 | .flags = IORESOURCE_MEM, |
539 | }, | 537 | }, |
540 | }; | 538 | }; |
541 | 539 | ||
540 | static u64 s1dfb_dmamask = DMA_BIT_MASK(32); | ||
541 | |||
542 | static struct platform_device yl9200_s1dfb_device = { | 542 | static struct platform_device yl9200_s1dfb_device = { |
543 | .name = "s1d13806fb", | 543 | .name = "s1d13806fb", |
544 | .id = -1, | 544 | .id = -1, |
diff --git a/arch/arm/mach-at91/include/mach/at91_pit.h b/arch/arm/mach-at91/include/mach/at91_pit.h index 0448ac36eadb..974d0bd05b5b 100644 --- a/arch/arm/mach-at91/include/mach/at91_pit.h +++ b/arch/arm/mach-at91/include/mach/at91_pit.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91_pit.h | 2 | * arch/arm/mach-at91/include/mach/at91_pit.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Periodic Interval Timer (PIT) - System peripherals regsters. | 7 | * Periodic Interval Timer (PIT) - System peripherals regsters. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91_rstc.h b/arch/arm/mach-at91/include/mach/at91_rstc.h index 7cd1b39aaa43..cbd2bf052c1f 100644 --- a/arch/arm/mach-at91/include/mach/at91_rstc.h +++ b/arch/arm/mach-at91/include/mach/at91_rstc.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91_rstc.h | 2 | * arch/arm/mach-at91/include/mach/at91_rstc.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Reset Controller (RSTC) - System peripherals regsters. | 7 | * Reset Controller (RSTC) - System peripherals regsters. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91_rtt.h b/arch/arm/mach-at91/include/mach/at91_rtt.h index 71782e5d2159..7ec75de8bbb6 100644 --- a/arch/arm/mach-at91/include/mach/at91_rtt.h +++ b/arch/arm/mach-at91/include/mach/at91_rtt.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91_rtt.h | 2 | * arch/arm/mach-at91/include/mach/at91_rtt.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Real-time Timer (RTT) - System peripherals regsters. | 7 | * Real-time Timer (RTT) - System peripherals regsters. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91_shdwc.h b/arch/arm/mach-at91/include/mach/at91_shdwc.h index 60be5ae624f1..c4ce07e8a8fa 100644 --- a/arch/arm/mach-at91/include/mach/at91_shdwc.h +++ b/arch/arm/mach-at91/include/mach/at91_shdwc.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91_shdwc.h | 2 | * arch/arm/mach-at91/include/mach/at91_shdwc.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Shutdown Controller (SHDWC) - System peripherals regsters. | 7 | * Shutdown Controller (SHDWC) - System peripherals regsters. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h b/arch/arm/mach-at91/include/mach/at91_wdt.h index 973b4526a98e..fecc2e9f0ca8 100644 --- a/arch/arm/mach-at91/include/mach/at91_wdt.h +++ b/arch/arm/mach-at91/include/mach/at91_wdt.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91_wdt.h | 2 | * arch/arm/mach-at91/include/mach/at91_wdt.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Watchdog Timer (WDT) - System peripherals regsters. | 7 | * Watchdog Timer (WDT) - System peripherals regsters. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h b/arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h index bca878f3bd87..1499b1cbffdd 100644 --- a/arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h +++ b/arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h | |||
@@ -1,6 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h | 2 | * arch/arm/mach-at91/include/mach/at91cap9_ddrsdr.h |
3 | * | 3 | * |
4 | * (C) 2008 Andrew Victor | ||
5 | * | ||
4 | * DDR/SDR Controller (DDRSDRC) - System peripherals registers. | 6 | * DDR/SDR Controller (DDRSDRC) - System peripherals registers. |
5 | * Based on AT91CAP9 datasheet revision B. | 7 | * Based on AT91CAP9 datasheet revision B. |
6 | * | 8 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9260_matrix.h b/arch/arm/mach-at91/include/mach/at91sam9260_matrix.h index f027de5df956..020f02ed921a 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9260_matrix.h +++ b/arch/arm/mach-at91/include/mach/at91sam9260_matrix.h | |||
@@ -1,6 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91sam9260_matrix.h | 2 | * arch/arm/mach-at91/include/mach/at91sam9260_matrix.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Atmel Corporation. | ||
5 | * | ||
4 | * Memory Controllers (MATRIX, EBI) - System peripherals registers. | 6 | * Memory Controllers (MATRIX, EBI) - System peripherals registers. |
5 | * Based on AT91SAM9260 datasheet revision B. | 7 | * Based on AT91SAM9260 datasheet revision B. |
6 | * | 8 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9261_matrix.h b/arch/arm/mach-at91/include/mach/at91sam9261_matrix.h index db62b1f18300..69c6501915d9 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9261_matrix.h +++ b/arch/arm/mach-at91/include/mach/at91sam9261_matrix.h | |||
@@ -1,6 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91sam9261_matrix.h | 2 | * arch/arm/mach-at91/include/mach/at91sam9261_matrix.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Atmel Corporation. | ||
5 | * | ||
4 | * Memory Controllers (MATRIX, EBI) - System peripherals registers. | 6 | * Memory Controllers (MATRIX, EBI) - System peripherals registers. |
5 | * Based on AT91SAM9261 datasheet revision D. | 7 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 8 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h b/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h index 1921181c63ca..b7260389f7ca 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h +++ b/arch/arm/mach-at91/include/mach/at91sam9_sdramc.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91sam9_sdramc.h | 2 | * arch/arm/mach-at91/include/mach/at91sam9_sdramc.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * SDRAM Controllers (SDRAMC) - System peripherals registers. | 7 | * SDRAM Controllers (SDRAMC) - System peripherals registers. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9_smc.h b/arch/arm/mach-at91/include/mach/at91sam9_smc.h index ec6ad1338b5a..57de6207e57e 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9_smc.h +++ b/arch/arm/mach-at91/include/mach/at91sam9_smc.h | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 | * arch/arm/mach-at91/include/mach/at91sam9_smc.h |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Andrew Victor | ||
5 | * Copyright (C) 2007 Atmel Corporation. | ||
6 | * | ||
4 | * Static Memory Controllers (SMC) - System peripherals registers. | 7 | * Static Memory Controllers (SMC) - System peripherals registers. |
5 | * Based on AT91SAM9261 datasheet revision D. | 8 | * Based on AT91SAM9261 datasheet revision D. |
6 | * | 9 | * |
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index acd60f2a0724..fb51f0e0a83f 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h | |||
@@ -133,6 +133,16 @@ struct atmel_uart_data { | |||
133 | extern void __init at91_add_device_serial(void); | 133 | extern void __init at91_add_device_serial(void); |
134 | 134 | ||
135 | /* | 135 | /* |
136 | * PWM | ||
137 | */ | ||
138 | #define AT91_PWM0 0 | ||
139 | #define AT91_PWM1 1 | ||
140 | #define AT91_PWM2 2 | ||
141 | #define AT91_PWM3 3 | ||
142 | |||
143 | extern void __init at91_add_device_pwm(u32 mask); | ||
144 | |||
145 | /* | ||
136 | * SSC -- accessed through ssc_request(id). Drivers don't bind to SSC | 146 | * SSC -- accessed through ssc_request(id). Drivers don't bind to SSC |
137 | * platform devices. Their SSC ID is part of their configuration data, | 147 | * platform devices. Their SSC ID is part of their configuration data, |
138 | * along with information about which SSC signals they should use. | 148 | * along with information about which SSC signals they should use. |
@@ -162,9 +172,13 @@ extern void __init at91_add_device_ac97(struct atmel_ac97_data *data); | |||
162 | /* ISI */ | 172 | /* ISI */ |
163 | extern void __init at91_add_device_isi(void); | 173 | extern void __init at91_add_device_isi(void); |
164 | 174 | ||
175 | /* Touchscreen Controller */ | ||
176 | extern void __init at91_add_device_tsadcc(void); | ||
177 | |||
165 | /* LEDs */ | 178 | /* LEDs */ |
166 | extern void __init at91_init_leds(u8 cpu_led, u8 timer_led); | 179 | extern void __init at91_init_leds(u8 cpu_led, u8 timer_led); |
167 | extern void __init at91_gpio_leds(struct gpio_led *leds, int nr); | 180 | extern void __init at91_gpio_leds(struct gpio_led *leds, int nr); |
181 | extern void __init at91_pwm_leds(struct gpio_led *leds, int nr); | ||
168 | 182 | ||
169 | /* FIXME: this needs a better location, but gets stuff building again */ | 183 | /* FIXME: this needs a better location, but gets stuff building again */ |
170 | extern int at91_suspend_entering_slow_clock(void); | 184 | extern int at91_suspend_entering_slow_clock(void); |
diff --git a/arch/arm/mach-at91/leds.c b/arch/arm/mach-at91/leds.c index fec03c59ff94..0415a839e1ad 100644 --- a/arch/arm/mach-at91/leds.c +++ b/arch/arm/mach-at91/leds.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/platform_device.h> | ||
15 | 16 | ||
16 | #include <mach/board.h> | 17 | #include <mach/board.h> |
17 | #include <mach/gpio.h> | 18 | #include <mach/gpio.h> |
@@ -21,15 +22,13 @@ | |||
21 | 22 | ||
22 | #if defined(CONFIG_NEW_LEDS) | 23 | #if defined(CONFIG_NEW_LEDS) |
23 | 24 | ||
24 | #include <linux/platform_device.h> | ||
25 | |||
26 | /* | 25 | /* |
27 | * New cross-platform LED support. | 26 | * New cross-platform LED support. |
28 | */ | 27 | */ |
29 | 28 | ||
30 | static struct gpio_led_platform_data led_data; | 29 | static struct gpio_led_platform_data led_data; |
31 | 30 | ||
32 | static struct platform_device at91_leds = { | 31 | static struct platform_device at91_gpio_leds_device = { |
33 | .name = "leds-gpio", | 32 | .name = "leds-gpio", |
34 | .id = -1, | 33 | .id = -1, |
35 | .dev.platform_data = &led_data, | 34 | .dev.platform_data = &led_data, |
@@ -47,7 +46,7 @@ void __init at91_gpio_leds(struct gpio_led *leds, int nr) | |||
47 | 46 | ||
48 | led_data.leds = leds; | 47 | led_data.leds = leds; |
49 | led_data.num_leds = nr; | 48 | led_data.num_leds = nr; |
50 | platform_device_register(&at91_leds); | 49 | platform_device_register(&at91_gpio_leds_device); |
51 | } | 50 | } |
52 | 51 | ||
53 | #else | 52 | #else |
@@ -57,6 +56,44 @@ void __init at91_gpio_leds(struct gpio_led *leds, int nr) {} | |||
57 | 56 | ||
58 | /* ------------------------------------------------------------------------- */ | 57 | /* ------------------------------------------------------------------------- */ |
59 | 58 | ||
59 | #if defined (CONFIG_LEDS_ATMEL_PWM) | ||
60 | |||
61 | /* | ||
62 | * PWM Leds | ||
63 | */ | ||
64 | |||
65 | static struct gpio_led_platform_data pwm_led_data; | ||
66 | |||
67 | static struct platform_device at91_pwm_leds_device = { | ||
68 | .name = "leds-atmel-pwm", | ||
69 | .id = -1, | ||
70 | .dev.platform_data = &pwm_led_data, | ||
71 | }; | ||
72 | |||
73 | void __init at91_pwm_leds(struct gpio_led *leds, int nr) | ||
74 | { | ||
75 | int i; | ||
76 | u32 pwm_mask = 0; | ||
77 | |||
78 | if (!nr) | ||
79 | return; | ||
80 | |||
81 | for (i = 0; i < nr; i++) | ||
82 | pwm_mask |= (1 << leds[i].gpio); | ||
83 | |||
84 | pwm_led_data.leds = leds; | ||
85 | pwm_led_data.num_leds = nr; | ||
86 | |||
87 | at91_add_device_pwm(pwm_mask); | ||
88 | platform_device_register(&at91_pwm_leds_device); | ||
89 | } | ||
90 | #else | ||
91 | void __init at91_pwm_leds(struct gpio_led *leds, int nr){} | ||
92 | #endif | ||
93 | |||
94 | |||
95 | /* ------------------------------------------------------------------------- */ | ||
96 | |||
60 | #if defined(CONFIG_LEDS) | 97 | #if defined(CONFIG_LEDS) |
61 | 98 | ||
62 | #include <asm/leds.h> | 99 | #include <asm/leds.h> |
diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S new file mode 100644 index 000000000000..987fab3d846a --- /dev/null +++ b/arch/arm/mach-at91/pm_slowclock.S | |||
@@ -0,0 +1,283 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-at91/pm_slow_clock.S | ||
3 | * | ||
4 | * Copyright (C) 2006 Savin Zlobec | ||
5 | * | ||
6 | * AT91SAM9 support: | ||
7 | * Copyright (C) 2007 Anti Sullin <anti.sullin@artecdesign.ee | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #include <linux/linkage.h> | ||
16 | #include <mach/hardware.h> | ||
17 | #include <mach/at91_pmc.h> | ||
18 | |||
19 | #ifdef CONFIG_ARCH_AT91RM9200 | ||
20 | #include <mach/at91rm9200_mc.h> | ||
21 | #elif defined(CONFIG_ARCH_AT91CAP9) | ||
22 | #include <mach/at91cap9_ddrsdr.h> | ||
23 | #else | ||
24 | #include <mach/at91sam9_sdramc.h> | ||
25 | #endif | ||
26 | |||
27 | |||
28 | #ifdef CONFIG_ARCH_AT91SAM9263 | ||
29 | /* | ||
30 | * FIXME either or both the SDRAM controllers (EB0, EB1) might be in use; | ||
31 | * handle those cases both here and in the Suspend-To-RAM support. | ||
32 | */ | ||
33 | #define AT91_SDRAMC AT91_SDRAMC0 | ||
34 | #warning Assuming EB1 SDRAM controller is *NOT* used | ||
35 | #endif | ||
36 | |||
37 | /* | ||
38 | * When SLOWDOWN_MASTER_CLOCK is defined we will also slow down the Master | ||
39 | * clock during suspend by adjusting its prescalar and divisor. | ||
40 | * NOTE: This hasn't been shown to be stable on SAM9s; and on the RM9200 there | ||
41 | * are errata regarding adjusting the prescalar and divisor. | ||
42 | */ | ||
43 | #undef SLOWDOWN_MASTER_CLOCK | ||
44 | |||
45 | #define MCKRDY_TIMEOUT 1000 | ||
46 | #define MOSCRDY_TIMEOUT 1000 | ||
47 | #define PLLALOCK_TIMEOUT 1000 | ||
48 | #define PLLBLOCK_TIMEOUT 1000 | ||
49 | |||
50 | |||
51 | /* | ||
52 | * Wait until master clock is ready (after switching master clock source) | ||
53 | */ | ||
54 | .macro wait_mckrdy | ||
55 | mov r4, #MCKRDY_TIMEOUT | ||
56 | 1: sub r4, r4, #1 | ||
57 | cmp r4, #0 | ||
58 | beq 2f | ||
59 | ldr r3, [r1, #(AT91_PMC_SR - AT91_PMC)] | ||
60 | tst r3, #AT91_PMC_MCKRDY | ||
61 | beq 1b | ||
62 | 2: | ||
63 | .endm | ||
64 | |||
65 | /* | ||
66 | * Wait until master oscillator has stabilized. | ||
67 | */ | ||
68 | .macro wait_moscrdy | ||
69 | mov r4, #MOSCRDY_TIMEOUT | ||
70 | 1: sub r4, r4, #1 | ||
71 | cmp r4, #0 | ||
72 | beq 2f | ||
73 | ldr r3, [r1, #(AT91_PMC_SR - AT91_PMC)] | ||
74 | tst r3, #AT91_PMC_MOSCS | ||
75 | beq 1b | ||
76 | 2: | ||
77 | .endm | ||
78 | |||
79 | /* | ||
80 | * Wait until PLLA has locked. | ||
81 | */ | ||
82 | .macro wait_pllalock | ||
83 | mov r4, #PLLALOCK_TIMEOUT | ||
84 | 1: sub r4, r4, #1 | ||
85 | cmp r4, #0 | ||
86 | beq 2f | ||
87 | ldr r3, [r1, #(AT91_PMC_SR - AT91_PMC)] | ||
88 | tst r3, #AT91_PMC_LOCKA | ||
89 | beq 1b | ||
90 | 2: | ||
91 | .endm | ||
92 | |||
93 | /* | ||
94 | * Wait until PLLB has locked. | ||
95 | */ | ||
96 | .macro wait_pllblock | ||
97 | mov r4, #PLLBLOCK_TIMEOUT | ||
98 | 1: sub r4, r4, #1 | ||
99 | cmp r4, #0 | ||
100 | beq 2f | ||
101 | ldr r3, [r1, #(AT91_PMC_SR - AT91_PMC)] | ||
102 | tst r3, #AT91_PMC_LOCKB | ||
103 | beq 1b | ||
104 | 2: | ||
105 | .endm | ||
106 | |||
107 | .text | ||
108 | |||
109 | ENTRY(at91_slow_clock) | ||
110 | /* Save registers on stack */ | ||
111 | stmfd sp!, {r0 - r12, lr} | ||
112 | |||
113 | /* | ||
114 | * Register usage: | ||
115 | * R1 = Base address of AT91_PMC | ||
116 | * R2 = Base address of AT91_SDRAMC (or AT91_SYS on AT91RM9200) | ||
117 | * R3 = temporary register | ||
118 | * R4 = temporary register | ||
119 | */ | ||
120 | ldr r1, .at91_va_base_pmc | ||
121 | ldr r2, .at91_va_base_sdramc | ||
122 | |||
123 | /* Drain write buffer */ | ||
124 | mcr p15, 0, r0, c7, c10, 4 | ||
125 | |||
126 | #ifdef CONFIG_ARCH_AT91RM9200 | ||
127 | /* Put SDRAM in self-refresh mode */ | ||
128 | mov r3, #1 | ||
129 | str r3, [r2, #AT91_SDRAMC_SRR] | ||
130 | #elif defined(CONFIG_ARCH_AT91CAP9) | ||
131 | /* Enable SDRAM self-refresh mode */ | ||
132 | ldr r3, [r2, #AT91_DDRSDRC_LPR - AT91_DDRSDRC] | ||
133 | str r3, .saved_sam9_lpr | ||
134 | |||
135 | mov r3, #AT91_DDRSDRC_LPCB_SELF_REFRESH | ||
136 | str r3, [r2, #AT91_DDRSDRC_LPR - AT91_DDRSDRC] | ||
137 | #else | ||
138 | /* Enable SDRAM self-refresh mode */ | ||
139 | ldr r3, [r2, #AT91_SDRAMC_LPR - AT91_SDRAMC] | ||
140 | str r3, .saved_sam9_lpr | ||
141 | |||
142 | mov r3, #AT91_SDRAMC_LPCB_SELF_REFRESH | ||
143 | str r3, [r2, #AT91_SDRAMC_LPR - AT91_SDRAMC] | ||
144 | #endif | ||
145 | |||
146 | /* Save Master clock setting */ | ||
147 | ldr r3, [r1, #(AT91_PMC_MCKR - AT91_PMC)] | ||
148 | str r3, .saved_mckr | ||
149 | |||
150 | /* | ||
151 | * Set the Master clock source to slow clock | ||
152 | */ | ||
153 | bic r3, r3, #AT91_PMC_CSS | ||
154 | str r3, [r1, #(AT91_PMC_MCKR - AT91_PMC)] | ||
155 | |||
156 | wait_mckrdy | ||
157 | |||
158 | #ifdef SLOWDOWN_MASTER_CLOCK | ||
159 | /* | ||
160 | * Set the Master Clock PRES and MDIV fields. | ||
161 | * | ||
162 | * See AT91RM9200 errata #27 and #28 for details. | ||
163 | */ | ||
164 | mov r3, #0 | ||
165 | str r3, [r1, #(AT91_PMC_MCKR - AT91_PMC)] | ||
166 | |||
167 | wait_mckrdy | ||
168 | #endif | ||
169 | |||
170 | /* Save PLLA setting and disable it */ | ||
171 | ldr r3, [r1, #(AT91_CKGR_PLLAR - AT91_PMC)] | ||
172 | str r3, .saved_pllar | ||
173 | |||
174 | mov r3, #AT91_PMC_PLLCOUNT | ||
175 | orr r3, r3, #(1 << 29) /* bit 29 always set */ | ||
176 | str r3, [r1, #(AT91_CKGR_PLLAR - AT91_PMC)] | ||
177 | |||
178 | wait_pllalock | ||
179 | |||
180 | /* Save PLLB setting and disable it */ | ||
181 | ldr r3, [r1, #(AT91_CKGR_PLLBR - AT91_PMC)] | ||
182 | str r3, .saved_pllbr | ||
183 | |||
184 | mov r3, #AT91_PMC_PLLCOUNT | ||
185 | str r3, [r1, #(AT91_CKGR_PLLBR - AT91_PMC)] | ||
186 | |||
187 | wait_pllblock | ||
188 | |||
189 | /* Turn off the main oscillator */ | ||
190 | ldr r3, [r1, #(AT91_CKGR_MOR - AT91_PMC)] | ||
191 | bic r3, r3, #AT91_PMC_MOSCEN | ||
192 | str r3, [r1, #(AT91_CKGR_MOR - AT91_PMC)] | ||
193 | |||
194 | /* Wait for interrupt */ | ||
195 | mcr p15, 0, r0, c7, c0, 4 | ||
196 | |||
197 | /* Turn on the main oscillator */ | ||
198 | ldr r3, [r1, #(AT91_CKGR_MOR - AT91_PMC)] | ||
199 | orr r3, r3, #AT91_PMC_MOSCEN | ||
200 | str r3, [r1, #(AT91_CKGR_MOR - AT91_PMC)] | ||
201 | |||
202 | wait_moscrdy | ||
203 | |||
204 | /* Restore PLLB setting */ | ||
205 | ldr r3, .saved_pllbr | ||
206 | str r3, [r1, #(AT91_CKGR_PLLBR - AT91_PMC)] | ||
207 | |||
208 | wait_pllblock | ||
209 | |||
210 | /* Restore PLLA setting */ | ||
211 | ldr r3, .saved_pllar | ||
212 | str r3, [r1, #(AT91_CKGR_PLLAR - AT91_PMC)] | ||
213 | |||
214 | wait_pllalock | ||
215 | |||
216 | #ifdef SLOWDOWN_MASTER_CLOCK | ||
217 | /* | ||
218 | * First set PRES if it was not 0, | ||
219 | * than set CSS and MDIV fields. | ||
220 | * | ||
221 | * See AT91RM9200 errata #27 and #28 for details. | ||
222 | */ | ||
223 | ldr r3, .saved_mckr | ||
224 | tst r3, #AT91_PMC_PRES | ||
225 | beq 2f | ||
226 | and r3, r3, #AT91_PMC_PRES | ||
227 | str r3, [r1, #(AT91_PMC_MCKR - AT91_PMC)] | ||
228 | |||
229 | wait_mckrdy | ||
230 | #endif | ||
231 | |||
232 | /* | ||
233 | * Restore master clock setting | ||
234 | */ | ||
235 | 2: ldr r3, .saved_mckr | ||
236 | str r3, [r1, #(AT91_PMC_MCKR - AT91_PMC)] | ||
237 | |||
238 | wait_mckrdy | ||
239 | |||
240 | #ifdef CONFIG_ARCH_AT91RM9200 | ||
241 | /* Do nothing - self-refresh is automatically disabled. */ | ||
242 | #elif defined(CONFIG_ARCH_AT91CAP9) | ||
243 | /* Restore LPR on AT91CAP9 */ | ||
244 | ldr r3, .saved_sam9_lpr | ||
245 | str r3, [r2, #AT91_DDRSDRC_LPR - AT91_DDRSDRC] | ||
246 | #else | ||
247 | /* Restore LPR on AT91SAM9 */ | ||
248 | ldr r3, .saved_sam9_lpr | ||
249 | str r3, [r2, #AT91_SDRAMC_LPR - AT91_SDRAMC] | ||
250 | #endif | ||
251 | |||
252 | /* Restore registers, and return */ | ||
253 | ldmfd sp!, {r0 - r12, pc} | ||
254 | |||
255 | |||
256 | .saved_mckr: | ||
257 | .word 0 | ||
258 | |||
259 | .saved_pllar: | ||
260 | .word 0 | ||
261 | |||
262 | .saved_pllbr: | ||
263 | .word 0 | ||
264 | |||
265 | .saved_sam9_lpr: | ||
266 | .word 0 | ||
267 | |||
268 | .at91_va_base_pmc: | ||
269 | .word AT91_VA_BASE_SYS + AT91_PMC | ||
270 | |||
271 | #ifdef CONFIG_ARCH_AT91RM9200 | ||
272 | .at91_va_base_sdramc: | ||
273 | .word AT91_VA_BASE_SYS | ||
274 | #elif defined(CONFIG_ARCH_AT91CAP9) | ||
275 | .at91_va_base_sdramc: | ||
276 | .word AT91_VA_BASE_SYS + AT91_DDRSDRC | ||
277 | #else | ||
278 | .at91_va_base_sdramc: | ||
279 | .word AT91_VA_BASE_SYS + AT91_SDRAMC | ||
280 | #endif | ||
281 | |||
282 | ENTRY(at91_slow_clock_sz) | ||
283 | .word .-at91_slow_clock | ||