diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-08-13 03:49:35 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-13 03:49:35 -0400 |
commit | b9da3b9240f175a29274abb8a94d962b67bbabf6 (patch) | |
tree | 68cc70fc212abe19c3ed94e10425fb3ec61e0b94 /arch | |
parent | 8ea8949733e35597efa45e71c0d3d65cafd7687a (diff) |
Blackfin arch: add support for board tcm-bf537
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/configs/TCM-BF537_defconfig | 693 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/Kconfig | 6 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/Makefile | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 590 |
4 files changed, 1290 insertions, 0 deletions
diff --git a/arch/blackfin/configs/TCM-BF537_defconfig b/arch/blackfin/configs/TCM-BF537_defconfig new file mode 100644 index 000000000000..c482ee171f9e --- /dev/null +++ b/arch/blackfin/configs/TCM-BF537_defconfig | |||
@@ -0,0 +1,693 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.24.7 | ||
4 | # Thu Jul 31 00:53:15 2008 | ||
5 | # | ||
6 | # CONFIG_MMU is not set | ||
7 | # CONFIG_FPU is not set | ||
8 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
9 | # CONFIG_RWSEM_XCHGADD_ALGORITHM is not set | ||
10 | CONFIG_BLACKFIN=y | ||
11 | CONFIG_ZONE_DMA=y | ||
12 | CONFIG_SEMAPHORE_SLEEPERS=y | ||
13 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_HARDIRQS=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | CONFIG_GENERIC_GPIO=y | ||
18 | CONFIG_FORCE_MAX_ZONEORDER=14 | ||
19 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
20 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
21 | |||
22 | # | ||
23 | # General setup | ||
24 | # | ||
25 | CONFIG_EXPERIMENTAL=y | ||
26 | CONFIG_BROKEN_ON_SMP=y | ||
27 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
28 | CONFIG_LOCALVERSION="" | ||
29 | CONFIG_LOCALVERSION_AUTO=y | ||
30 | CONFIG_SYSVIPC=y | ||
31 | CONFIG_SYSVIPC_SYSCTL=y | ||
32 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
33 | # CONFIG_USER_NS is not set | ||
34 | # CONFIG_PID_NS is not set | ||
35 | CONFIG_IKCONFIG=y | ||
36 | CONFIG_IKCONFIG_PROC=y | ||
37 | CONFIG_LOG_BUF_SHIFT=14 | ||
38 | # CONFIG_CGROUPS is not set | ||
39 | CONFIG_FAIR_GROUP_SCHED=y | ||
40 | CONFIG_FAIR_USER_SCHED=y | ||
41 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
42 | CONFIG_SYSFS_DEPRECATED=y | ||
43 | # CONFIG_RELAY is not set | ||
44 | # CONFIG_BLK_DEV_INITRD is not set | ||
45 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
46 | CONFIG_SYSCTL=y | ||
47 | CONFIG_EMBEDDED=y | ||
48 | # CONFIG_UID16 is not set | ||
49 | CONFIG_SYSCTL_SYSCALL=y | ||
50 | CONFIG_KALLSYMS=y | ||
51 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
52 | # CONFIG_HOTPLUG is not set | ||
53 | CONFIG_PRINTK=y | ||
54 | CONFIG_BUG=y | ||
55 | CONFIG_ELF_CORE=y | ||
56 | CONFIG_BASE_FULL=y | ||
57 | CONFIG_FUTEX=y | ||
58 | CONFIG_ANON_INODES=y | ||
59 | CONFIG_EPOLL=y | ||
60 | CONFIG_SIGNALFD=y | ||
61 | CONFIG_EVENTFD=y | ||
62 | CONFIG_VM_EVENT_COUNTERS=y | ||
63 | CONFIG_SLAB=y | ||
64 | # CONFIG_SLUB is not set | ||
65 | # CONFIG_SLOB is not set | ||
66 | CONFIG_SLABINFO=y | ||
67 | CONFIG_RT_MUTEXES=y | ||
68 | CONFIG_TINY_SHMEM=y | ||
69 | CONFIG_BASE_SMALL=0 | ||
70 | CONFIG_MODULES=y | ||
71 | CONFIG_MODULE_UNLOAD=y | ||
72 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
73 | # CONFIG_MODVERSIONS is not set | ||
74 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
75 | CONFIG_KMOD=y | ||
76 | CONFIG_BLOCK=y | ||
77 | # CONFIG_LBD is not set | ||
78 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
79 | # CONFIG_LSF is not set | ||
80 | # CONFIG_BLK_DEV_BSG is not set | ||
81 | |||
82 | # | ||
83 | # IO Schedulers | ||
84 | # | ||
85 | CONFIG_IOSCHED_NOOP=y | ||
86 | # CONFIG_IOSCHED_AS is not set | ||
87 | # CONFIG_IOSCHED_DEADLINE is not set | ||
88 | CONFIG_IOSCHED_CFQ=y | ||
89 | # CONFIG_DEFAULT_AS is not set | ||
90 | # CONFIG_DEFAULT_DEADLINE is not set | ||
91 | # CONFIG_DEFAULT_CFQ is not set | ||
92 | CONFIG_DEFAULT_NOOP=y | ||
93 | CONFIG_DEFAULT_IOSCHED="noop" | ||
94 | CONFIG_PREEMPT_NONE=y | ||
95 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
96 | # CONFIG_PREEMPT is not set | ||
97 | |||
98 | # | ||
99 | # Blackfin Processor Options | ||
100 | # | ||
101 | |||
102 | # | ||
103 | # Processor and Board Settings | ||
104 | # | ||
105 | # CONFIG_BF522 is not set | ||
106 | # CONFIG_BF523 is not set | ||
107 | # CONFIG_BF524 is not set | ||
108 | # CONFIG_BF525 is not set | ||
109 | # CONFIG_BF526 is not set | ||
110 | # CONFIG_BF527 is not set | ||
111 | # CONFIG_BF531 is not set | ||
112 | # CONFIG_BF532 is not set | ||
113 | # CONFIG_BF533 is not set | ||
114 | # CONFIG_BF534 is not set | ||
115 | # CONFIG_BF536 is not set | ||
116 | CONFIG_BF537=y | ||
117 | # CONFIG_BF542 is not set | ||
118 | # CONFIG_BF544 is not set | ||
119 | # CONFIG_BF547 is not set | ||
120 | # CONFIG_BF548 is not set | ||
121 | # CONFIG_BF549 is not set | ||
122 | # CONFIG_BF561 is not set | ||
123 | # CONFIG_BF_REV_0_0 is not set | ||
124 | # CONFIG_BF_REV_0_1 is not set | ||
125 | CONFIG_BF_REV_0_2=y | ||
126 | # CONFIG_BF_REV_0_3 is not set | ||
127 | # CONFIG_BF_REV_0_4 is not set | ||
128 | # CONFIG_BF_REV_0_5 is not set | ||
129 | # CONFIG_BF_REV_ANY is not set | ||
130 | # CONFIG_BF_REV_NONE is not set | ||
131 | CONFIG_BF53x=y | ||
132 | CONFIG_IRQ_PLL_WAKEUP=7 | ||
133 | CONFIG_IRQ_RTC=8 | ||
134 | CONFIG_IRQ_PPI=8 | ||
135 | CONFIG_IRQ_SPORT0_RX=9 | ||
136 | CONFIG_IRQ_SPORT0_TX=9 | ||
137 | CONFIG_IRQ_SPORT1_RX=9 | ||
138 | CONFIG_IRQ_SPORT1_TX=9 | ||
139 | CONFIG_IRQ_TWI=10 | ||
140 | CONFIG_IRQ_SPI=10 | ||
141 | CONFIG_IRQ_UART0_RX=10 | ||
142 | CONFIG_IRQ_UART0_TX=10 | ||
143 | CONFIG_IRQ_UART1_RX=10 | ||
144 | CONFIG_IRQ_UART1_TX=10 | ||
145 | CONFIG_IRQ_MAC_RX=11 | ||
146 | CONFIG_IRQ_MAC_TX=11 | ||
147 | CONFIG_IRQ_TMR0=12 | ||
148 | CONFIG_IRQ_TMR1=12 | ||
149 | CONFIG_IRQ_TMR2=12 | ||
150 | CONFIG_IRQ_TMR3=12 | ||
151 | CONFIG_IRQ_TMR4=12 | ||
152 | CONFIG_IRQ_TMR5=12 | ||
153 | CONFIG_IRQ_TMR6=12 | ||
154 | CONFIG_IRQ_TMR7=12 | ||
155 | CONFIG_IRQ_PORTG_INTB=12 | ||
156 | CONFIG_IRQ_MEM_DMA0=13 | ||
157 | CONFIG_IRQ_MEM_DMA1=13 | ||
158 | CONFIG_IRQ_WATCH=13 | ||
159 | # CONFIG_BFIN537_STAMP is not set | ||
160 | # CONFIG_BFIN537_BLUETECHNIX_CM is not set | ||
161 | CONFIG_BFIN537_BLUETECHNIX_TCM=y | ||
162 | # CONFIG_PNAV10 is not set | ||
163 | # CONFIG_CAMSIG_MINOTAUR is not set | ||
164 | # CONFIG_GENERIC_BF537_BOARD is not set | ||
165 | |||
166 | # | ||
167 | # BF537 Specific Configuration | ||
168 | # | ||
169 | |||
170 | # | ||
171 | # Interrupt Priority Assignment | ||
172 | # | ||
173 | |||
174 | # | ||
175 | # Priority | ||
176 | # | ||
177 | CONFIG_IRQ_DMA_ERROR=7 | ||
178 | CONFIG_IRQ_ERROR=7 | ||
179 | CONFIG_IRQ_CAN_RX=11 | ||
180 | CONFIG_IRQ_CAN_TX=11 | ||
181 | CONFIG_IRQ_PROG_INTA=12 | ||
182 | |||
183 | # | ||
184 | # Board customizations | ||
185 | # | ||
186 | # CONFIG_CMDLINE_BOOL is not set | ||
187 | CONFIG_BOOT_LOAD=0x1000 | ||
188 | |||
189 | # | ||
190 | # Clock/PLL Setup | ||
191 | # | ||
192 | CONFIG_CLKIN_HZ=25000000 | ||
193 | # CONFIG_BFIN_KERNEL_CLOCK is not set | ||
194 | CONFIG_MAX_MEM_SIZE=32 | ||
195 | CONFIG_MAX_VCO_HZ=600000000 | ||
196 | CONFIG_MIN_VCO_HZ=50000000 | ||
197 | CONFIG_MAX_SCLK_HZ=133333333 | ||
198 | CONFIG_MIN_SCLK_HZ=27000000 | ||
199 | |||
200 | # | ||
201 | # Kernel Timer/Scheduler | ||
202 | # | ||
203 | # CONFIG_HZ_100 is not set | ||
204 | CONFIG_HZ_250=y | ||
205 | # CONFIG_HZ_300 is not set | ||
206 | # CONFIG_HZ_1000 is not set | ||
207 | CONFIG_HZ=250 | ||
208 | CONFIG_GENERIC_TIME=y | ||
209 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
210 | # CONFIG_CYCLES_CLOCKSOURCE is not set | ||
211 | # CONFIG_TICK_ONESHOT is not set | ||
212 | # CONFIG_NO_HZ is not set | ||
213 | # CONFIG_HIGH_RES_TIMERS is not set | ||
214 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
215 | |||
216 | # | ||
217 | # Misc | ||
218 | # | ||
219 | CONFIG_BFIN_SCRATCH_REG_RETN=y | ||
220 | # CONFIG_BFIN_SCRATCH_REG_RETE is not set | ||
221 | # CONFIG_BFIN_SCRATCH_REG_CYCLES is not set | ||
222 | |||
223 | # | ||
224 | # Blackfin Kernel Optimizations | ||
225 | # | ||
226 | |||
227 | # | ||
228 | # Memory Optimizations | ||
229 | # | ||
230 | CONFIG_I_ENTRY_L1=y | ||
231 | CONFIG_EXCPT_IRQ_SYSC_L1=y | ||
232 | CONFIG_DO_IRQ_L1=y | ||
233 | CONFIG_CORE_TIMER_IRQ_L1=y | ||
234 | CONFIG_IDLE_L1=y | ||
235 | CONFIG_SCHEDULE_L1=y | ||
236 | CONFIG_ARITHMETIC_OPS_L1=y | ||
237 | CONFIG_ACCESS_OK_L1=y | ||
238 | CONFIG_MEMSET_L1=y | ||
239 | CONFIG_MEMCPY_L1=y | ||
240 | CONFIG_SYS_BFIN_SPINLOCK_L1=y | ||
241 | CONFIG_IP_CHECKSUM_L1=y | ||
242 | CONFIG_CACHELINE_ALIGNED_L1=y | ||
243 | CONFIG_SYSCALL_TAB_L1=y | ||
244 | CONFIG_CPLB_SWITCH_TAB_L1=y | ||
245 | CONFIG_RAMKERNEL=y | ||
246 | # CONFIG_ROMKERNEL is not set | ||
247 | CONFIG_SELECT_MEMORY_MODEL=y | ||
248 | CONFIG_FLATMEM_MANUAL=y | ||
249 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
250 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
251 | CONFIG_FLATMEM=y | ||
252 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
253 | # CONFIG_SPARSEMEM_STATIC is not set | ||
254 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
255 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
256 | # CONFIG_RESOURCES_64BIT is not set | ||
257 | CONFIG_ZONE_DMA_FLAG=1 | ||
258 | CONFIG_VIRT_TO_BUS=y | ||
259 | # CONFIG_BFIN_GPTIMERS is not set | ||
260 | CONFIG_BFIN_DMA_5XX=y | ||
261 | # CONFIG_DMA_UNCACHED_4M is not set | ||
262 | # CONFIG_DMA_UNCACHED_2M is not set | ||
263 | CONFIG_DMA_UNCACHED_1M=y | ||
264 | # CONFIG_DMA_UNCACHED_NONE is not set | ||
265 | |||
266 | # | ||
267 | # Cache Support | ||
268 | # | ||
269 | CONFIG_BFIN_ICACHE=y | ||
270 | CONFIG_BFIN_DCACHE=y | ||
271 | # CONFIG_BFIN_DCACHE_BANKA is not set | ||
272 | # CONFIG_BFIN_ICACHE_LOCK is not set | ||
273 | CONFIG_BFIN_WB=y | ||
274 | # CONFIG_BFIN_WT is not set | ||
275 | # CONFIG_MPU is not set | ||
276 | |||
277 | # | ||
278 | # Asynchonous Memory Configuration | ||
279 | # | ||
280 | |||
281 | # | ||
282 | # EBIU_AMGCTL Global Control | ||
283 | # | ||
284 | CONFIG_C_AMCKEN=y | ||
285 | CONFIG_C_CDPRIO=y | ||
286 | # CONFIG_C_AMBEN is not set | ||
287 | # CONFIG_C_AMBEN_B0 is not set | ||
288 | # CONFIG_C_AMBEN_B0_B1 is not set | ||
289 | # CONFIG_C_AMBEN_B0_B1_B2 is not set | ||
290 | CONFIG_C_AMBEN_ALL=y | ||
291 | |||
292 | # | ||
293 | # EBIU_AMBCTL Control | ||
294 | # | ||
295 | CONFIG_BANK_0=0x7BB0 | ||
296 | CONFIG_BANK_1=0x7BB0 | ||
297 | CONFIG_BANK_2=0x7BB0 | ||
298 | CONFIG_BANK_3=0xFFC2 | ||
299 | |||
300 | # | ||
301 | # Bus options (PCI, PCMCIA, EISA, MCA, ISA) | ||
302 | # | ||
303 | # CONFIG_PCI is not set | ||
304 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
305 | |||
306 | # | ||
307 | # Executable file formats | ||
308 | # | ||
309 | CONFIG_BINFMT_ELF_FDPIC=y | ||
310 | CONFIG_BINFMT_FLAT=y | ||
311 | CONFIG_BINFMT_ZFLAT=y | ||
312 | CONFIG_BINFMT_SHARED_FLAT=y | ||
313 | # CONFIG_BINFMT_MISC is not set | ||
314 | |||
315 | # | ||
316 | # Power management options | ||
317 | # | ||
318 | # CONFIG_PM is not set | ||
319 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
320 | # CONFIG_PM_WAKEUP_BY_GPIO is not set | ||
321 | |||
322 | # | ||
323 | # CPU Frequency scaling | ||
324 | # | ||
325 | # CONFIG_CPU_FREQ is not set | ||
326 | |||
327 | # | ||
328 | # Networking | ||
329 | # | ||
330 | # CONFIG_NET is not set | ||
331 | |||
332 | # | ||
333 | # Device Drivers | ||
334 | # | ||
335 | |||
336 | # | ||
337 | # Generic Driver Options | ||
338 | # | ||
339 | CONFIG_STANDALONE=y | ||
340 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
341 | # CONFIG_SYS_HYPERVISOR is not set | ||
342 | CONFIG_MTD=y | ||
343 | # CONFIG_MTD_DEBUG is not set | ||
344 | # CONFIG_MTD_CONCAT is not set | ||
345 | CONFIG_MTD_PARTITIONS=y | ||
346 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
347 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
348 | |||
349 | # | ||
350 | # User Modules And Translation Layers | ||
351 | # | ||
352 | CONFIG_MTD_CHAR=y | ||
353 | CONFIG_MTD_BLKDEVS=y | ||
354 | CONFIG_MTD_BLOCK=y | ||
355 | # CONFIG_FTL is not set | ||
356 | # CONFIG_NFTL is not set | ||
357 | # CONFIG_INFTL is not set | ||
358 | # CONFIG_RFD_FTL is not set | ||
359 | # CONFIG_SSFDC is not set | ||
360 | # CONFIG_MTD_OOPS is not set | ||
361 | |||
362 | # | ||
363 | # RAM/ROM/Flash chip drivers | ||
364 | # | ||
365 | # CONFIG_MTD_CFI is not set | ||
366 | # CONFIG_MTD_JEDECPROBE is not set | ||
367 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
368 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
369 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
370 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
371 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
372 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
373 | CONFIG_MTD_CFI_I1=y | ||
374 | CONFIG_MTD_CFI_I2=y | ||
375 | # CONFIG_MTD_CFI_I4 is not set | ||
376 | # CONFIG_MTD_CFI_I8 is not set | ||
377 | CONFIG_MTD_RAM=y | ||
378 | # CONFIG_MTD_ROM is not set | ||
379 | # CONFIG_MTD_ABSENT is not set | ||
380 | |||
381 | # | ||
382 | # Mapping drivers for chip access | ||
383 | # | ||
384 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
385 | # CONFIG_MTD_GPIO_ADDR is not set | ||
386 | CONFIG_MTD_UCLINUX=y | ||
387 | # CONFIG_MTD_PLATRAM is not set | ||
388 | |||
389 | # | ||
390 | # Self-contained MTD device drivers | ||
391 | # | ||
392 | # CONFIG_MTD_DATAFLASH is not set | ||
393 | # CONFIG_MTD_M25P80 is not set | ||
394 | # CONFIG_MTD_SLRAM is not set | ||
395 | # CONFIG_MTD_PHRAM is not set | ||
396 | # CONFIG_MTD_MTDRAM is not set | ||
397 | # CONFIG_MTD_BLOCK2MTD is not set | ||
398 | |||
399 | # | ||
400 | # Disk-On-Chip Device Drivers | ||
401 | # | ||
402 | # CONFIG_MTD_DOC2000 is not set | ||
403 | # CONFIG_MTD_DOC2001 is not set | ||
404 | # CONFIG_MTD_DOC2001PLUS is not set | ||
405 | # CONFIG_MTD_NAND is not set | ||
406 | # CONFIG_MTD_ONENAND is not set | ||
407 | |||
408 | # | ||
409 | # UBI - Unsorted block images | ||
410 | # | ||
411 | # CONFIG_MTD_UBI is not set | ||
412 | # CONFIG_PARPORT is not set | ||
413 | CONFIG_BLK_DEV=y | ||
414 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
415 | # CONFIG_BLK_DEV_LOOP is not set | ||
416 | CONFIG_BLK_DEV_RAM=y | ||
417 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
418 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
419 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
420 | # CONFIG_CDROM_PKTCDVD is not set | ||
421 | CONFIG_MISC_DEVICES=y | ||
422 | # CONFIG_EEPROM_93CX6 is not set | ||
423 | # CONFIG_IDE is not set | ||
424 | |||
425 | # | ||
426 | # SCSI device support | ||
427 | # | ||
428 | # CONFIG_RAID_ATTRS is not set | ||
429 | # CONFIG_SCSI is not set | ||
430 | # CONFIG_SCSI_DMA is not set | ||
431 | # CONFIG_SCSI_NETLINK is not set | ||
432 | # CONFIG_ATA is not set | ||
433 | # CONFIG_MD is not set | ||
434 | # CONFIG_PHONE is not set | ||
435 | |||
436 | # | ||
437 | # Input device support | ||
438 | # | ||
439 | # CONFIG_INPUT is not set | ||
440 | |||
441 | # | ||
442 | # Hardware I/O ports | ||
443 | # | ||
444 | # CONFIG_SERIO is not set | ||
445 | # CONFIG_GAMEPORT is not set | ||
446 | |||
447 | # | ||
448 | # Character devices | ||
449 | # | ||
450 | # CONFIG_AD9960 is not set | ||
451 | # CONFIG_SPI_ADC_BF533 is not set | ||
452 | # CONFIG_BF5xx_PPIFCD is not set | ||
453 | # CONFIG_BFIN_SIMPLE_TIMER is not set | ||
454 | # CONFIG_BF5xx_PPI is not set | ||
455 | CONFIG_BFIN_SPORT=y | ||
456 | # CONFIG_BFIN_TIMER_LATENCY is not set | ||
457 | # CONFIG_SIMPLE_GPIO is not set | ||
458 | # CONFIG_VT is not set | ||
459 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
460 | |||
461 | # | ||
462 | # Serial drivers | ||
463 | # | ||
464 | # CONFIG_SERIAL_8250 is not set | ||
465 | |||
466 | # | ||
467 | # Non-8250 serial port support | ||
468 | # | ||
469 | CONFIG_SERIAL_BFIN=y | ||
470 | CONFIG_SERIAL_BFIN_CONSOLE=y | ||
471 | CONFIG_SERIAL_BFIN_DMA=y | ||
472 | # CONFIG_SERIAL_BFIN_PIO is not set | ||
473 | CONFIG_SERIAL_BFIN_UART0=y | ||
474 | # CONFIG_BFIN_UART0_CTSRTS is not set | ||
475 | CONFIG_SERIAL_BFIN_UART1=y | ||
476 | # CONFIG_BFIN_UART1_CTSRTS is not set | ||
477 | CONFIG_SERIAL_CORE=y | ||
478 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
479 | # CONFIG_SERIAL_BFIN_SPORT is not set | ||
480 | CONFIG_UNIX98_PTYS=y | ||
481 | # CONFIG_LEGACY_PTYS is not set | ||
482 | |||
483 | # | ||
484 | # CAN, the car bus and industrial fieldbus | ||
485 | # | ||
486 | # CONFIG_CAN4LINUX is not set | ||
487 | # CONFIG_IPMI_HANDLER is not set | ||
488 | # CONFIG_HW_RANDOM is not set | ||
489 | # CONFIG_GEN_RTC is not set | ||
490 | # CONFIG_R3964 is not set | ||
491 | # CONFIG_RAW_DRIVER is not set | ||
492 | # CONFIG_TCG_TPM is not set | ||
493 | # CONFIG_I2C is not set | ||
494 | |||
495 | # | ||
496 | # SPI support | ||
497 | # | ||
498 | CONFIG_SPI=y | ||
499 | CONFIG_SPI_MASTER=y | ||
500 | |||
501 | # | ||
502 | # SPI Master Controller Drivers | ||
503 | # | ||
504 | CONFIG_SPI_BFIN=y | ||
505 | # CONFIG_SPI_BITBANG is not set | ||
506 | |||
507 | # | ||
508 | # SPI Protocol Masters | ||
509 | # | ||
510 | # CONFIG_SPI_AT25 is not set | ||
511 | # CONFIG_SPI_SPIDEV is not set | ||
512 | # CONFIG_SPI_TLE62X0 is not set | ||
513 | # CONFIG_W1 is not set | ||
514 | # CONFIG_POWER_SUPPLY is not set | ||
515 | # CONFIG_HWMON is not set | ||
516 | CONFIG_WATCHDOG=y | ||
517 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
518 | |||
519 | # | ||
520 | # Watchdog Device Drivers | ||
521 | # | ||
522 | # CONFIG_SOFT_WATCHDOG is not set | ||
523 | CONFIG_BFIN_WDT=y | ||
524 | |||
525 | # | ||
526 | # Sonics Silicon Backplane | ||
527 | # | ||
528 | CONFIG_SSB_POSSIBLE=y | ||
529 | # CONFIG_SSB is not set | ||
530 | |||
531 | # | ||
532 | # Multifunction device drivers | ||
533 | # | ||
534 | # CONFIG_MFD_SM501 is not set | ||
535 | |||
536 | # | ||
537 | # Multimedia devices | ||
538 | # | ||
539 | # CONFIG_VIDEO_DEV is not set | ||
540 | # CONFIG_DAB is not set | ||
541 | |||
542 | # | ||
543 | # Graphics support | ||
544 | # | ||
545 | # CONFIG_VGASTATE is not set | ||
546 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
547 | # CONFIG_FB is not set | ||
548 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
549 | |||
550 | # | ||
551 | # Display device support | ||
552 | # | ||
553 | # CONFIG_DISPLAY_SUPPORT is not set | ||
554 | |||
555 | # | ||
556 | # Sound | ||
557 | # | ||
558 | # CONFIG_SOUND is not set | ||
559 | # CONFIG_USB_SUPPORT is not set | ||
560 | # CONFIG_MMC is not set | ||
561 | # CONFIG_NEW_LEDS is not set | ||
562 | # CONFIG_RTC_CLASS is not set | ||
563 | |||
564 | # | ||
565 | # Userspace I/O | ||
566 | # | ||
567 | # CONFIG_UIO is not set | ||
568 | |||
569 | # | ||
570 | # File systems | ||
571 | # | ||
572 | CONFIG_EXT2_FS=y | ||
573 | CONFIG_EXT2_FS_XATTR=y | ||
574 | # CONFIG_EXT2_FS_POSIX_ACL is not set | ||
575 | # CONFIG_EXT2_FS_SECURITY is not set | ||
576 | # CONFIG_EXT3_FS is not set | ||
577 | # CONFIG_EXT4DEV_FS is not set | ||
578 | CONFIG_FS_MBCACHE=y | ||
579 | # CONFIG_REISERFS_FS is not set | ||
580 | # CONFIG_JFS_FS is not set | ||
581 | # CONFIG_FS_POSIX_ACL is not set | ||
582 | # CONFIG_XFS_FS is not set | ||
583 | # CONFIG_GFS2_FS is not set | ||
584 | # CONFIG_MINIX_FS is not set | ||
585 | # CONFIG_ROMFS_FS is not set | ||
586 | CONFIG_INOTIFY=y | ||
587 | CONFIG_INOTIFY_USER=y | ||
588 | # CONFIG_QUOTA is not set | ||
589 | # CONFIG_DNOTIFY is not set | ||
590 | # CONFIG_AUTOFS_FS is not set | ||
591 | # CONFIG_AUTOFS4_FS is not set | ||
592 | # CONFIG_FUSE_FS is not set | ||
593 | |||
594 | # | ||
595 | # CD-ROM/DVD Filesystems | ||
596 | # | ||
597 | # CONFIG_ISO9660_FS is not set | ||
598 | # CONFIG_UDF_FS is not set | ||
599 | |||
600 | # | ||
601 | # DOS/FAT/NT Filesystems | ||
602 | # | ||
603 | # CONFIG_MSDOS_FS is not set | ||
604 | # CONFIG_VFAT_FS is not set | ||
605 | # CONFIG_NTFS_FS is not set | ||
606 | |||
607 | # | ||
608 | # Pseudo filesystems | ||
609 | # | ||
610 | CONFIG_PROC_FS=y | ||
611 | CONFIG_PROC_SYSCTL=y | ||
612 | CONFIG_SYSFS=y | ||
613 | # CONFIG_TMPFS is not set | ||
614 | # CONFIG_HUGETLB_PAGE is not set | ||
615 | # CONFIG_CONFIGFS_FS is not set | ||
616 | |||
617 | # | ||
618 | # Miscellaneous filesystems | ||
619 | # | ||
620 | # CONFIG_ADFS_FS is not set | ||
621 | # CONFIG_AFFS_FS is not set | ||
622 | # CONFIG_HFS_FS is not set | ||
623 | # CONFIG_HFSPLUS_FS is not set | ||
624 | # CONFIG_BEFS_FS is not set | ||
625 | # CONFIG_BFS_FS is not set | ||
626 | # CONFIG_EFS_FS is not set | ||
627 | # CONFIG_YAFFS_FS is not set | ||
628 | # CONFIG_JFFS2_FS is not set | ||
629 | # CONFIG_CRAMFS is not set | ||
630 | # CONFIG_VXFS_FS is not set | ||
631 | # CONFIG_HPFS_FS is not set | ||
632 | # CONFIG_QNX4FS_FS is not set | ||
633 | # CONFIG_SYSV_FS is not set | ||
634 | # CONFIG_UFS_FS is not set | ||
635 | |||
636 | # | ||
637 | # Partition Types | ||
638 | # | ||
639 | # CONFIG_PARTITION_ADVANCED is not set | ||
640 | CONFIG_MSDOS_PARTITION=y | ||
641 | # CONFIG_NLS is not set | ||
642 | # CONFIG_INSTRUMENTATION is not set | ||
643 | |||
644 | # | ||
645 | # Kernel hacking | ||
646 | # | ||
647 | # CONFIG_PRINTK_TIME is not set | ||
648 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
649 | CONFIG_ENABLE_MUST_CHECK=y | ||
650 | # CONFIG_MAGIC_SYSRQ is not set | ||
651 | # CONFIG_UNUSED_SYMBOLS is not set | ||
652 | CONFIG_DEBUG_FS=y | ||
653 | # CONFIG_HEADERS_CHECK is not set | ||
654 | # CONFIG_DEBUG_KERNEL is not set | ||
655 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
656 | # CONFIG_SAMPLES is not set | ||
657 | CONFIG_DEBUG_MMRS=y | ||
658 | CONFIG_DEBUG_HUNT_FOR_ZERO=y | ||
659 | CONFIG_DEBUG_BFIN_HWTRACE_ON=y | ||
660 | CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_OFF=y | ||
661 | # CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_ONE is not set | ||
662 | # CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_TWO is not set | ||
663 | CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION=0 | ||
664 | # CONFIG_DEBUG_BFIN_HWTRACE_EXPAND is not set | ||
665 | # CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE is not set | ||
666 | # CONFIG_EARLY_PRINTK is not set | ||
667 | CONFIG_CPLB_INFO=y | ||
668 | CONFIG_ACCESS_CHECK=y | ||
669 | |||
670 | # | ||
671 | # Security options | ||
672 | # | ||
673 | # CONFIG_KEYS is not set | ||
674 | CONFIG_SECURITY=y | ||
675 | # CONFIG_SECURITY_NETWORK is not set | ||
676 | CONFIG_SECURITY_CAPABILITIES=y | ||
677 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
678 | # CONFIG_CRYPTO is not set | ||
679 | |||
680 | # | ||
681 | # Library routines | ||
682 | # | ||
683 | # CONFIG_CRC_CCITT is not set | ||
684 | # CONFIG_CRC16 is not set | ||
685 | # CONFIG_CRC_ITU_T is not set | ||
686 | # CONFIG_CRC32 is not set | ||
687 | # CONFIG_CRC7 is not set | ||
688 | # CONFIG_LIBCRC32C is not set | ||
689 | CONFIG_ZLIB_INFLATE=y | ||
690 | CONFIG_PLIST=y | ||
691 | CONFIG_HAS_IOMEM=y | ||
692 | CONFIG_HAS_IOPORT=y | ||
693 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/blackfin/mach-bf537/boards/Kconfig b/arch/blackfin/mach-bf537/boards/Kconfig index 7e789dbef036..42a57b0acb29 100644 --- a/arch/blackfin/mach-bf537/boards/Kconfig +++ b/arch/blackfin/mach-bf537/boards/Kconfig | |||
@@ -15,6 +15,12 @@ config BFIN537_BLUETECHNIX_CM | |||
15 | help | 15 | help |
16 | CM-BF537 support for EVAL- and DEV-Board. | 16 | CM-BF537 support for EVAL- and DEV-Board. |
17 | 17 | ||
18 | config BFIN537_BLUETECHNIX_TCM | ||
19 | bool "Bluetechnix TCM-BF537" | ||
20 | depends on (BF537) | ||
21 | help | ||
22 | TCM-BF537 support for EVAL- and DEV-Board. | ||
23 | |||
18 | config PNAV10 | 24 | config PNAV10 |
19 | bool "PNAV board" | 25 | bool "PNAV board" |
20 | depends on (BF537) | 26 | depends on (BF537) |
diff --git a/arch/blackfin/mach-bf537/boards/Makefile b/arch/blackfin/mach-bf537/boards/Makefile index c94f7a5b8211..7168cc14afd8 100644 --- a/arch/blackfin/mach-bf537/boards/Makefile +++ b/arch/blackfin/mach-bf537/boards/Makefile | |||
@@ -5,5 +5,6 @@ | |||
5 | obj-$(CONFIG_GENERIC_BF537_BOARD) += generic_board.o | 5 | obj-$(CONFIG_GENERIC_BF537_BOARD) += generic_board.o |
6 | obj-$(CONFIG_BFIN537_STAMP) += stamp.o | 6 | obj-$(CONFIG_BFIN537_STAMP) += stamp.o |
7 | obj-$(CONFIG_BFIN537_BLUETECHNIX_CM) += cm_bf537.o | 7 | obj-$(CONFIG_BFIN537_BLUETECHNIX_CM) += cm_bf537.o |
8 | obj-$(CONFIG_BFIN537_BLUETECHNIX_TCM) += tcm_bf537.o | ||
8 | obj-$(CONFIG_PNAV10) += pnav10.o | 9 | obj-$(CONFIG_PNAV10) += pnav10.o |
9 | obj-$(CONFIG_CAMSIG_MINOTAUR) += minotaur.o | 10 | obj-$(CONFIG_CAMSIG_MINOTAUR) += minotaur.o |
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c new file mode 100644 index 000000000000..196e5775a6ae --- /dev/null +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -0,0 +1,590 @@ | |||
1 | /* | ||
2 | * File: arch/blackfin/mach-bf537/boards/tcm_bf537.c | ||
3 | * Based on: arch/blackfin/mach-bf533/boards/cm_bf537.c | ||
4 | * Author: Aidan Williams <aidan@nicta.com.au> | ||
5 | * | ||
6 | * Created: 2005 | ||
7 | * Description: Board description file | ||
8 | * | ||
9 | * Modified: | ||
10 | * Copyright 2005 National ICT Australia (NICTA) | ||
11 | * Copyright 2004-2006 Analog Devices Inc. | ||
12 | * | ||
13 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify | ||
16 | * it under the terms of the GNU General Public License as published by | ||
17 | * the Free Software Foundation; either version 2 of the License, or | ||
18 | * (at your option) any later version. | ||
19 | * | ||
20 | * This program is distributed in the hope that it will be useful, | ||
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | * GNU General Public License for more details. | ||
24 | * | ||
25 | * You should have received a copy of the GNU General Public License | ||
26 | * along with this program; if not, see the file COPYING, or write | ||
27 | * to the Free Software Foundation, Inc., | ||
28 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
29 | */ | ||
30 | |||
31 | #include <linux/device.h> | ||
32 | #include <linux/etherdevice.h> | ||
33 | #include <linux/platform_device.h> | ||
34 | #include <linux/mtd/mtd.h> | ||
35 | #include <linux/mtd/partitions.h> | ||
36 | #include <linux/mtd/physmap.h> | ||
37 | #include <linux/spi/spi.h> | ||
38 | #include <linux/spi/flash.h> | ||
39 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | ||
40 | #include <linux/usb/isp1362.h> | ||
41 | #endif | ||
42 | #include <linux/ata_platform.h> | ||
43 | #include <linux/irq.h> | ||
44 | #include <asm/dma.h> | ||
45 | #include <asm/bfin5xx_spi.h> | ||
46 | #include <asm/portmux.h> | ||
47 | #include <asm/dpmc.h> | ||
48 | |||
49 | /* | ||
50 | * Name the Board for the /proc/cpuinfo | ||
51 | */ | ||
52 | const char bfin_board_name[] = "Bluetechnix TCM BF537"; | ||
53 | |||
54 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | ||
55 | /* all SPI peripherals info goes here */ | ||
56 | |||
57 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) | ||
58 | static struct mtd_partition bfin_spi_flash_partitions[] = { | ||
59 | { | ||
60 | .name = "bootloader(spi)", | ||
61 | .size = 0x00020000, | ||
62 | .offset = 0, | ||
63 | .mask_flags = MTD_CAP_ROM | ||
64 | }, { | ||
65 | .name = "linux kernel(spi)", | ||
66 | .size = 0xe0000, | ||
67 | .offset = 0x20000 | ||
68 | }, { | ||
69 | .name = "file system(spi)", | ||
70 | .size = 0x700000, | ||
71 | .offset = 0x00100000, | ||
72 | } | ||
73 | }; | ||
74 | |||
75 | static struct flash_platform_data bfin_spi_flash_data = { | ||
76 | .name = "m25p80", | ||
77 | .parts = bfin_spi_flash_partitions, | ||
78 | .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions), | ||
79 | .type = "m25p64", | ||
80 | }; | ||
81 | |||
82 | /* SPI flash chip (m25p64) */ | ||
83 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | ||
84 | .enable_dma = 0, /* use dma transfer with this chip*/ | ||
85 | .bits_per_word = 8, | ||
86 | }; | ||
87 | #endif | ||
88 | |||
89 | #if defined(CONFIG_SPI_ADC_BF533) || defined(CONFIG_SPI_ADC_BF533_MODULE) | ||
90 | /* SPI ADC chip */ | ||
91 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | ||
92 | .enable_dma = 1, /* use dma transfer with this chip*/ | ||
93 | .bits_per_word = 16, | ||
94 | }; | ||
95 | #endif | ||
96 | |||
97 | #if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE) | ||
98 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | ||
99 | .enable_dma = 0, | ||
100 | .bits_per_word = 16, | ||
101 | }; | ||
102 | #endif | ||
103 | |||
104 | #if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) | ||
105 | static struct bfin5xx_spi_chip ad9960_spi_chip_info = { | ||
106 | .enable_dma = 0, | ||
107 | .bits_per_word = 16, | ||
108 | }; | ||
109 | #endif | ||
110 | |||
111 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
112 | static struct bfin5xx_spi_chip spi_mmc_chip_info = { | ||
113 | .enable_dma = 1, | ||
114 | .bits_per_word = 8, | ||
115 | }; | ||
116 | #endif | ||
117 | |||
118 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | ||
119 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) | ||
120 | { | ||
121 | /* the modalias must be the same as spi device driver name */ | ||
122 | .modalias = "m25p80", /* Name of spi_driver for this device */ | ||
123 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | ||
124 | .bus_num = 0, /* Framework bus number */ | ||
125 | .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/ | ||
126 | .platform_data = &bfin_spi_flash_data, | ||
127 | .controller_data = &spi_flash_chip_info, | ||
128 | .mode = SPI_MODE_3, | ||
129 | }, | ||
130 | #endif | ||
131 | |||
132 | #if defined(CONFIG_SPI_ADC_BF533) || defined(CONFIG_SPI_ADC_BF533_MODULE) | ||
133 | { | ||
134 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | ||
135 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ | ||
136 | .bus_num = 0, /* Framework bus number */ | ||
137 | .chip_select = 1, /* Framework chip select. */ | ||
138 | .platform_data = NULL, /* No spi_driver specific config */ | ||
139 | .controller_data = &spi_adc_chip_info, | ||
140 | }, | ||
141 | #endif | ||
142 | |||
143 | #if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE) | ||
144 | { | ||
145 | .modalias = "ad1836-spi", | ||
146 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
147 | .bus_num = 0, | ||
148 | .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT, | ||
149 | .controller_data = &ad1836_spi_chip_info, | ||
150 | }, | ||
151 | #endif | ||
152 | |||
153 | #if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) | ||
154 | { | ||
155 | .modalias = "ad9960-spi", | ||
156 | .max_speed_hz = 10000000, /* max spi clock (SCK) speed in HZ */ | ||
157 | .bus_num = 0, | ||
158 | .chip_select = 1, | ||
159 | .controller_data = &ad9960_spi_chip_info, | ||
160 | }, | ||
161 | #endif | ||
162 | |||
163 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
164 | { | ||
165 | .modalias = "spi_mmc_dummy", | ||
166 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | ||
167 | .bus_num = 0, | ||
168 | .chip_select = 7, | ||
169 | .platform_data = NULL, | ||
170 | .controller_data = &spi_mmc_chip_info, | ||
171 | .mode = SPI_MODE_3, | ||
172 | }, | ||
173 | { | ||
174 | .modalias = "spi_mmc", | ||
175 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | ||
176 | .bus_num = 0, | ||
177 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | ||
178 | .platform_data = NULL, | ||
179 | .controller_data = &spi_mmc_chip_info, | ||
180 | .mode = SPI_MODE_3, | ||
181 | }, | ||
182 | #endif | ||
183 | }; | ||
184 | |||
185 | /* SPI (0) */ | ||
186 | static struct resource bfin_spi0_resource[] = { | ||
187 | [0] = { | ||
188 | .start = SPI0_REGBASE, | ||
189 | .end = SPI0_REGBASE + 0xFF, | ||
190 | .flags = IORESOURCE_MEM, | ||
191 | }, | ||
192 | [1] = { | ||
193 | .start = CH_SPI, | ||
194 | .end = CH_SPI, | ||
195 | .flags = IORESOURCE_IRQ, | ||
196 | } | ||
197 | }; | ||
198 | |||
199 | /* SPI controller data */ | ||
200 | static struct bfin5xx_spi_master bfin_spi0_info = { | ||
201 | .num_chipselect = 8, | ||
202 | .enable_dma = 1, /* master has the ability to do dma transfer */ | ||
203 | .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, | ||
204 | }; | ||
205 | |||
206 | static struct platform_device bfin_spi0_device = { | ||
207 | .name = "bfin-spi", | ||
208 | .id = 0, /* Bus number */ | ||
209 | .num_resources = ARRAY_SIZE(bfin_spi0_resource), | ||
210 | .resource = bfin_spi0_resource, | ||
211 | .dev = { | ||
212 | .platform_data = &bfin_spi0_info, /* Passed to driver */ | ||
213 | }, | ||
214 | }; | ||
215 | #endif /* spi master and devices */ | ||
216 | |||
217 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | ||
218 | static struct platform_device rtc_device = { | ||
219 | .name = "rtc-bfin", | ||
220 | .id = -1, | ||
221 | }; | ||
222 | #endif | ||
223 | |||
224 | #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) | ||
225 | static struct platform_device hitachi_fb_device = { | ||
226 | .name = "hitachi-tx09", | ||
227 | }; | ||
228 | #endif | ||
229 | |||
230 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | ||
231 | static struct resource smc91x_resources[] = { | ||
232 | { | ||
233 | .start = 0x20200300, | ||
234 | .end = 0x20200300 + 16, | ||
235 | .flags = IORESOURCE_MEM, | ||
236 | }, { | ||
237 | .start = IRQ_PF14, | ||
238 | .end = IRQ_PF14, | ||
239 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
240 | }, | ||
241 | }; | ||
242 | |||
243 | static struct platform_device smc91x_device = { | ||
244 | .name = "smc91x", | ||
245 | .id = 0, | ||
246 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
247 | .resource = smc91x_resources, | ||
248 | }; | ||
249 | #endif | ||
250 | |||
251 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | ||
252 | static struct resource isp1362_hcd_resources[] = { | ||
253 | { | ||
254 | .start = 0x20308000, | ||
255 | .end = 0x20308000, | ||
256 | .flags = IORESOURCE_MEM, | ||
257 | }, { | ||
258 | .start = 0x20308004, | ||
259 | .end = 0x20308004, | ||
260 | .flags = IORESOURCE_MEM, | ||
261 | }, { | ||
262 | .start = IRQ_PG15, | ||
263 | .end = IRQ_PG15, | ||
264 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
265 | }, | ||
266 | }; | ||
267 | |||
268 | static struct isp1362_platform_data isp1362_priv = { | ||
269 | .sel15Kres = 1, | ||
270 | .clknotstop = 0, | ||
271 | .oc_enable = 0, | ||
272 | .int_act_high = 0, | ||
273 | .int_edge_triggered = 0, | ||
274 | .remote_wakeup_connected = 0, | ||
275 | .no_power_switching = 1, | ||
276 | .power_switching_mode = 0, | ||
277 | }; | ||
278 | |||
279 | static struct platform_device isp1362_hcd_device = { | ||
280 | .name = "isp1362-hcd", | ||
281 | .id = 0, | ||
282 | .dev = { | ||
283 | .platform_data = &isp1362_priv, | ||
284 | }, | ||
285 | .num_resources = ARRAY_SIZE(isp1362_hcd_resources), | ||
286 | .resource = isp1362_hcd_resources, | ||
287 | }; | ||
288 | #endif | ||
289 | |||
290 | #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) | ||
291 | static struct resource net2272_bfin_resources[] = { | ||
292 | { | ||
293 | .start = 0x20200000, | ||
294 | .end = 0x20200000 + 0x100, | ||
295 | .flags = IORESOURCE_MEM, | ||
296 | }, { | ||
297 | .start = IRQ_PH14, | ||
298 | .end = IRQ_PH14, | ||
299 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
300 | }, | ||
301 | }; | ||
302 | |||
303 | static struct platform_device net2272_bfin_device = { | ||
304 | .name = "net2272", | ||
305 | .id = -1, | ||
306 | .num_resources = ARRAY_SIZE(net2272_bfin_resources), | ||
307 | .resource = net2272_bfin_resources, | ||
308 | }; | ||
309 | #endif | ||
310 | |||
311 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | ||
312 | static struct mtd_partition cm_partitions[] = { | ||
313 | { | ||
314 | .name = "bootloader(nor)", | ||
315 | .size = 0x40000, | ||
316 | .offset = 0, | ||
317 | }, { | ||
318 | .name = "linux kernel(nor)", | ||
319 | .size = 0xE0000, | ||
320 | .offset = MTDPART_OFS_APPEND, | ||
321 | }, { | ||
322 | .name = "file system(nor)", | ||
323 | .size = MTDPART_SIZ_FULL, | ||
324 | .offset = MTDPART_OFS_APPEND, | ||
325 | } | ||
326 | }; | ||
327 | |||
328 | static struct physmap_flash_data cm_flash_data = { | ||
329 | .width = 2, | ||
330 | .parts = cm_partitions, | ||
331 | .nr_parts = ARRAY_SIZE(cm_partitions), | ||
332 | }; | ||
333 | |||
334 | static unsigned cm_flash_gpios[] = { GPIO_PF4, GPIO_PF5 }; | ||
335 | |||
336 | static struct resource cm_flash_resource[] = { | ||
337 | { | ||
338 | .name = "cfi_probe", | ||
339 | .start = 0x20000000, | ||
340 | .end = 0x201fffff, | ||
341 | .flags = IORESOURCE_MEM, | ||
342 | }, { | ||
343 | .start = (unsigned long)cm_flash_gpios, | ||
344 | .end = ARRAY_SIZE(cm_flash_gpios), | ||
345 | .flags = IORESOURCE_IRQ, | ||
346 | } | ||
347 | }; | ||
348 | |||
349 | static struct platform_device cm_flash_device = { | ||
350 | .name = "gpio-addr-flash", | ||
351 | .id = 0, | ||
352 | .dev = { | ||
353 | .platform_data = &cm_flash_data, | ||
354 | }, | ||
355 | .num_resources = ARRAY_SIZE(cm_flash_resource), | ||
356 | .resource = cm_flash_resource, | ||
357 | }; | ||
358 | #endif | ||
359 | |||
360 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | ||
361 | static struct resource bfin_uart_resources[] = { | ||
362 | { | ||
363 | .start = 0xFFC00400, | ||
364 | .end = 0xFFC004FF, | ||
365 | .flags = IORESOURCE_MEM, | ||
366 | }, { | ||
367 | .start = 0xFFC02000, | ||
368 | .end = 0xFFC020FF, | ||
369 | .flags = IORESOURCE_MEM, | ||
370 | }, | ||
371 | }; | ||
372 | |||
373 | static struct platform_device bfin_uart_device = { | ||
374 | .name = "bfin-uart", | ||
375 | .id = 1, | ||
376 | .num_resources = ARRAY_SIZE(bfin_uart_resources), | ||
377 | .resource = bfin_uart_resources, | ||
378 | }; | ||
379 | #endif | ||
380 | |||
381 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
382 | static struct resource bfin_sir_resources[] = { | ||
383 | #ifdef CONFIG_BFIN_SIR0 | ||
384 | { | ||
385 | .start = 0xFFC00400, | ||
386 | .end = 0xFFC004FF, | ||
387 | .flags = IORESOURCE_MEM, | ||
388 | }, | ||
389 | #endif | ||
390 | #ifdef CONFIG_BFIN_SIR1 | ||
391 | { | ||
392 | .start = 0xFFC02000, | ||
393 | .end = 0xFFC020FF, | ||
394 | .flags = IORESOURCE_MEM, | ||
395 | }, | ||
396 | #endif | ||
397 | }; | ||
398 | |||
399 | static struct platform_device bfin_sir_device = { | ||
400 | .name = "bfin_sir", | ||
401 | .id = 0, | ||
402 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | ||
403 | .resource = bfin_sir_resources, | ||
404 | }; | ||
405 | #endif | ||
406 | |||
407 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | ||
408 | static struct resource bfin_twi0_resource[] = { | ||
409 | [0] = { | ||
410 | .start = TWI0_REGBASE, | ||
411 | .end = TWI0_REGBASE, | ||
412 | .flags = IORESOURCE_MEM, | ||
413 | }, | ||
414 | [1] = { | ||
415 | .start = IRQ_TWI, | ||
416 | .end = IRQ_TWI, | ||
417 | .flags = IORESOURCE_IRQ, | ||
418 | }, | ||
419 | }; | ||
420 | |||
421 | static struct platform_device i2c_bfin_twi_device = { | ||
422 | .name = "i2c-bfin-twi", | ||
423 | .id = 0, | ||
424 | .num_resources = ARRAY_SIZE(bfin_twi0_resource), | ||
425 | .resource = bfin_twi0_resource, | ||
426 | }; | ||
427 | #endif | ||
428 | |||
429 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | ||
430 | static struct platform_device bfin_sport0_uart_device = { | ||
431 | .name = "bfin-sport-uart", | ||
432 | .id = 0, | ||
433 | }; | ||
434 | |||
435 | static struct platform_device bfin_sport1_uart_device = { | ||
436 | .name = "bfin-sport-uart", | ||
437 | .id = 1, | ||
438 | }; | ||
439 | #endif | ||
440 | |||
441 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | ||
442 | static struct platform_device bfin_mac_device = { | ||
443 | .name = "bfin_mac", | ||
444 | }; | ||
445 | #endif | ||
446 | |||
447 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
448 | #define PATA_INT 64 | ||
449 | |||
450 | static struct pata_platform_info bfin_pata_platform_data = { | ||
451 | .ioport_shift = 2, | ||
452 | .irq_type = IRQF_TRIGGER_HIGH | IRQF_DISABLED, | ||
453 | }; | ||
454 | |||
455 | static struct resource bfin_pata_resources[] = { | ||
456 | { | ||
457 | .start = 0x2030C000, | ||
458 | .end = 0x2030C01F, | ||
459 | .flags = IORESOURCE_MEM, | ||
460 | }, | ||
461 | { | ||
462 | .start = 0x2030D018, | ||
463 | .end = 0x2030D01B, | ||
464 | .flags = IORESOURCE_MEM, | ||
465 | }, | ||
466 | { | ||
467 | .start = PATA_INT, | ||
468 | .end = PATA_INT, | ||
469 | .flags = IORESOURCE_IRQ, | ||
470 | }, | ||
471 | }; | ||
472 | |||
473 | static struct platform_device bfin_pata_device = { | ||
474 | .name = "pata_platform", | ||
475 | .id = -1, | ||
476 | .num_resources = ARRAY_SIZE(bfin_pata_resources), | ||
477 | .resource = bfin_pata_resources, | ||
478 | .dev = { | ||
479 | .platform_data = &bfin_pata_platform_data, | ||
480 | } | ||
481 | }; | ||
482 | #endif | ||
483 | |||
484 | static const unsigned int cclk_vlev_datasheet[] = | ||
485 | { | ||
486 | VRPAIR(VLEV_085, 250000000), | ||
487 | VRPAIR(VLEV_090, 376000000), | ||
488 | VRPAIR(VLEV_095, 426000000), | ||
489 | VRPAIR(VLEV_100, 426000000), | ||
490 | VRPAIR(VLEV_105, 476000000), | ||
491 | VRPAIR(VLEV_110, 476000000), | ||
492 | VRPAIR(VLEV_115, 476000000), | ||
493 | VRPAIR(VLEV_120, 500000000), | ||
494 | VRPAIR(VLEV_125, 533000000), | ||
495 | VRPAIR(VLEV_130, 600000000), | ||
496 | }; | ||
497 | |||
498 | static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = { | ||
499 | .tuple_tab = cclk_vlev_datasheet, | ||
500 | .tabsize = ARRAY_SIZE(cclk_vlev_datasheet), | ||
501 | .vr_settling_time = 25 /* us */, | ||
502 | }; | ||
503 | |||
504 | static struct platform_device bfin_dpmc = { | ||
505 | .name = "bfin dpmc", | ||
506 | .dev = { | ||
507 | .platform_data = &bfin_dmpc_vreg_data, | ||
508 | }, | ||
509 | }; | ||
510 | |||
511 | static struct platform_device *cm_bf537_devices[] __initdata = { | ||
512 | |||
513 | &bfin_dpmc, | ||
514 | |||
515 | #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) | ||
516 | &hitachi_fb_device, | ||
517 | #endif | ||
518 | |||
519 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | ||
520 | &rtc_device, | ||
521 | #endif | ||
522 | |||
523 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | ||
524 | &bfin_uart_device, | ||
525 | #endif | ||
526 | |||
527 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
528 | &bfin_sir_device, | ||
529 | #endif | ||
530 | |||
531 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | ||
532 | &i2c_bfin_twi_device, | ||
533 | #endif | ||
534 | |||
535 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | ||
536 | &bfin_sport0_uart_device, | ||
537 | &bfin_sport1_uart_device, | ||
538 | #endif | ||
539 | |||
540 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | ||
541 | &isp1362_hcd_device, | ||
542 | #endif | ||
543 | |||
544 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | ||
545 | &smc91x_device, | ||
546 | #endif | ||
547 | |||
548 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | ||
549 | &bfin_mac_device, | ||
550 | #endif | ||
551 | |||
552 | #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) | ||
553 | &net2272_bfin_device, | ||
554 | #endif | ||
555 | |||
556 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | ||
557 | &bfin_spi0_device, | ||
558 | #endif | ||
559 | |||
560 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
561 | &bfin_pata_device, | ||
562 | #endif | ||
563 | |||
564 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | ||
565 | &cm_flash_device, | ||
566 | #endif | ||
567 | }; | ||
568 | |||
569 | static int __init cm_bf537_init(void) | ||
570 | { | ||
571 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | ||
572 | platform_add_devices(cm_bf537_devices, ARRAY_SIZE(cm_bf537_devices)); | ||
573 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | ||
574 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | ||
575 | #endif | ||
576 | |||
577 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
578 | irq_desc[PATA_INT].status |= IRQ_NOAUTOEN; | ||
579 | #endif | ||
580 | return 0; | ||
581 | } | ||
582 | |||
583 | arch_initcall(cm_bf537_init); | ||
584 | |||
585 | void bfin_get_ether_addr(char *addr) | ||
586 | { | ||
587 | random_ether_addr(addr); | ||
588 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
589 | } | ||
590 | EXPORT_SYMBOL(bfin_get_ether_addr); | ||