diff options
32 files changed, 1937 insertions, 6 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 195650935c78..8136d32cd78f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -271,6 +271,14 @@ config ARCH_L7200 | |||
271 | If you have any questions or comments about the Linux kernel port | 271 | If you have any questions or comments about the Linux kernel port |
272 | to this board, send e-mail to <sjhill@cotw.com>. | 272 | to this board, send e-mail to <sjhill@cotw.com>. |
273 | 273 | ||
274 | config ARCH_NS9XXX | ||
275 | bool "NetSilicon NS9xxx" | ||
276 | help | ||
277 | Say Y here if you intend to run this kernel on a NetSilicon NS9xxx | ||
278 | System. | ||
279 | |||
280 | <http://www.digi.com/products/microprocessors/index.jsp> | ||
281 | |||
274 | config ARCH_PNX4008 | 282 | config ARCH_PNX4008 |
275 | bool "Philips Nexperia PNX4008 Mobile" | 283 | bool "Philips Nexperia PNX4008 Mobile" |
276 | help | 284 | help |
@@ -391,6 +399,8 @@ source "arch/arm/mach-at91/Kconfig" | |||
391 | 399 | ||
392 | source "arch/arm/mach-netx/Kconfig" | 400 | source "arch/arm/mach-netx/Kconfig" |
393 | 401 | ||
402 | source "arch/arm/mach-ns9xxx/Kconfig" | ||
403 | |||
394 | # Definitions to make life easier | 404 | # Definitions to make life easier |
395 | config ARCH_ACORN | 405 | config ARCH_ACORN |
396 | bool | 406 | bool |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 2cd871c82c96..1320418b5d6f 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -124,10 +124,12 @@ endif | |||
124 | machine-$(CONFIG_ARCH_H720X) := h720x | 124 | machine-$(CONFIG_ARCH_H720X) := h720x |
125 | machine-$(CONFIG_ARCH_AAEC2000) := aaec2000 | 125 | machine-$(CONFIG_ARCH_AAEC2000) := aaec2000 |
126 | machine-$(CONFIG_ARCH_REALVIEW) := realview | 126 | machine-$(CONFIG_ARCH_REALVIEW) := realview |
127 | machine-$(CONFIG_ARCH_AT91) := at91 | 127 | machine-$(CONFIG_ARCH_AT91) := at91rm9200 |
128 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx | 128 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx |
129 | machine-$(CONFIG_ARCH_PNX4008) := pnx4008 | 129 | machine-$(CONFIG_ARCH_PNX4008) := pnx4008 |
130 | machine-$(CONFIG_ARCH_NETX) := netx | 130 | machine-$(CONFIG_ARCH_NETX) := netx |
131 | machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx | ||
132 | textofs-$(CONFIG_ARCH_NS9XXX) := 0x00108000 | ||
131 | 133 | ||
132 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 134 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
133 | # This is what happens if you forget the IOCS16 line. | 135 | # This is what happens if you forget the IOCS16 line. |
diff --git a/arch/arm/configs/ns9xxx_defconfig b/arch/arm/configs/ns9xxx_defconfig new file mode 100644 index 000000000000..0e5794c6a48e --- /dev/null +++ b/arch/arm/configs/ns9xxx_defconfig | |||
@@ -0,0 +1,621 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Thu Feb 15 20:51:47 2007 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | # CONFIG_GENERIC_TIME is not set | ||
8 | CONFIG_MMU=y | ||
9 | CONFIG_GENERIC_HARDIRQS=y | ||
10 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
11 | CONFIG_HARDIRQS_SW_RESEND=y | ||
12 | CONFIG_GENERIC_IRQ_PROBE=y | ||
13 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
14 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
15 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
16 | CONFIG_GENERIC_HWEIGHT=y | ||
17 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
18 | CONFIG_VECTORS_BASE=0xffff0000 | ||
19 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
20 | |||
21 | # | ||
22 | # Code maturity level options | ||
23 | # | ||
24 | CONFIG_EXPERIMENTAL=y | ||
25 | CONFIG_BROKEN_ON_SMP=y | ||
26 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
27 | |||
28 | # | ||
29 | # General setup | ||
30 | # | ||
31 | CONFIG_LOCALVERSION="" | ||
32 | CONFIG_LOCALVERSION_AUTO=y | ||
33 | CONFIG_SWAP=y | ||
34 | CONFIG_SYSVIPC=y | ||
35 | # CONFIG_IPC_NS is not set | ||
36 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
37 | # CONFIG_UTS_NS is not set | ||
38 | CONFIG_IKCONFIG=y | ||
39 | CONFIG_IKCONFIG_PROC=y | ||
40 | CONFIG_SYSFS_DEPRECATED=y | ||
41 | # CONFIG_RELAY is not set | ||
42 | CONFIG_INITRAMFS_SOURCE="" | ||
43 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
44 | CONFIG_SYSCTL=y | ||
45 | CONFIG_EMBEDDED=y | ||
46 | CONFIG_UID16=y | ||
47 | # CONFIG_SYSCTL_SYSCALL is not set | ||
48 | CONFIG_KALLSYMS=y | ||
49 | # CONFIG_KALLSYMS_ALL is not set | ||
50 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
51 | CONFIG_HOTPLUG=y | ||
52 | CONFIG_PRINTK=y | ||
53 | CONFIG_BUG=y | ||
54 | CONFIG_ELF_CORE=y | ||
55 | CONFIG_BASE_FULL=y | ||
56 | CONFIG_FUTEX=y | ||
57 | CONFIG_EPOLL=y | ||
58 | CONFIG_SHMEM=y | ||
59 | CONFIG_SLAB=y | ||
60 | # CONFIG_VM_EVENT_COUNTERS is not set | ||
61 | CONFIG_RT_MUTEXES=y | ||
62 | # CONFIG_TINY_SHMEM is not set | ||
63 | CONFIG_BASE_SMALL=0 | ||
64 | # CONFIG_SLOB is not set | ||
65 | |||
66 | # | ||
67 | # Loadable module support | ||
68 | # | ||
69 | CONFIG_MODULES=y | ||
70 | CONFIG_MODULE_UNLOAD=y | ||
71 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
72 | CONFIG_MODVERSIONS=y | ||
73 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
74 | CONFIG_KMOD=y | ||
75 | |||
76 | # | ||
77 | # Block layer | ||
78 | # | ||
79 | CONFIG_BLOCK=y | ||
80 | # CONFIG_LBD is not set | ||
81 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
82 | # CONFIG_LSF is not set | ||
83 | |||
84 | # | ||
85 | # IO Schedulers | ||
86 | # | ||
87 | CONFIG_IOSCHED_NOOP=y | ||
88 | # CONFIG_IOSCHED_AS is not set | ||
89 | # CONFIG_IOSCHED_DEADLINE is not set | ||
90 | # CONFIG_IOSCHED_CFQ is not set | ||
91 | # CONFIG_DEFAULT_AS is not set | ||
92 | # CONFIG_DEFAULT_DEADLINE is not set | ||
93 | # CONFIG_DEFAULT_CFQ is not set | ||
94 | CONFIG_DEFAULT_NOOP=y | ||
95 | CONFIG_DEFAULT_IOSCHED="noop" | ||
96 | |||
97 | # | ||
98 | # System Type | ||
99 | # | ||
100 | # CONFIG_ARCH_AAEC2000 is not set | ||
101 | # CONFIG_ARCH_INTEGRATOR is not set | ||
102 | # CONFIG_ARCH_REALVIEW is not set | ||
103 | # CONFIG_ARCH_VERSATILE is not set | ||
104 | # CONFIG_ARCH_AT91 is not set | ||
105 | # CONFIG_ARCH_CLPS7500 is not set | ||
106 | # CONFIG_ARCH_CLPS711X is not set | ||
107 | # CONFIG_ARCH_CO285 is not set | ||
108 | # CONFIG_ARCH_EBSA110 is not set | ||
109 | # CONFIG_ARCH_EP93XX is not set | ||
110 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
111 | # CONFIG_ARCH_NETX is not set | ||
112 | # CONFIG_ARCH_H720X is not set | ||
113 | # CONFIG_ARCH_IMX is not set | ||
114 | # CONFIG_ARCH_IOP32X is not set | ||
115 | # CONFIG_ARCH_IOP33X is not set | ||
116 | # CONFIG_ARCH_IOP13XX is not set | ||
117 | # CONFIG_ARCH_IXP4XX is not set | ||
118 | # CONFIG_ARCH_IXP2000 is not set | ||
119 | # CONFIG_ARCH_IXP23XX is not set | ||
120 | # CONFIG_ARCH_L7200 is not set | ||
121 | CONFIG_ARCH_NS9XXX=y | ||
122 | # CONFIG_ARCH_PNX4008 is not set | ||
123 | # CONFIG_ARCH_PXA is not set | ||
124 | # CONFIG_ARCH_RPC is not set | ||
125 | # CONFIG_ARCH_SA1100 is not set | ||
126 | # CONFIG_ARCH_S3C2410 is not set | ||
127 | # CONFIG_ARCH_SHARK is not set | ||
128 | # CONFIG_ARCH_LH7A40X is not set | ||
129 | # CONFIG_ARCH_OMAP is not set | ||
130 | |||
131 | # | ||
132 | # NS9xxx Implementations | ||
133 | # | ||
134 | CONFIG_MACH_CC9P9360DEV=y | ||
135 | CONFIG_PROCESSOR_NS9360=y | ||
136 | CONFIG_BOARD_A9M9750DEV=y | ||
137 | |||
138 | # | ||
139 | # Processor Type | ||
140 | # | ||
141 | CONFIG_CPU_32=y | ||
142 | CONFIG_CPU_ARM926T=y | ||
143 | CONFIG_CPU_32v5=y | ||
144 | CONFIG_CPU_ABRT_EV5TJ=y | ||
145 | CONFIG_CPU_CACHE_VIVT=y | ||
146 | CONFIG_CPU_COPY_V4WB=y | ||
147 | CONFIG_CPU_TLB_V4WBI=y | ||
148 | CONFIG_CPU_CP15=y | ||
149 | CONFIG_CPU_CP15_MMU=y | ||
150 | |||
151 | # | ||
152 | # Processor Features | ||
153 | # | ||
154 | # CONFIG_ARM_THUMB is not set | ||
155 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
156 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
157 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
158 | # CONFIG_CPU_CACHE_ROUND_ROBIN is not set | ||
159 | |||
160 | # | ||
161 | # Bus support | ||
162 | # | ||
163 | |||
164 | # | ||
165 | # PCCARD (PCMCIA/CardBus) support | ||
166 | # | ||
167 | # CONFIG_PCCARD is not set | ||
168 | |||
169 | # | ||
170 | # Kernel Features | ||
171 | # | ||
172 | # CONFIG_PREEMPT is not set | ||
173 | # CONFIG_NO_IDLE_HZ is not set | ||
174 | CONFIG_HZ=100 | ||
175 | # CONFIG_AEABI is not set | ||
176 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
177 | CONFIG_SELECT_MEMORY_MODEL=y | ||
178 | CONFIG_FLATMEM_MANUAL=y | ||
179 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
180 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
181 | CONFIG_FLATMEM=y | ||
182 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
183 | # CONFIG_SPARSEMEM_STATIC is not set | ||
184 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
185 | # CONFIG_RESOURCES_64BIT is not set | ||
186 | CONFIG_ALIGNMENT_TRAP=y | ||
187 | |||
188 | # | ||
189 | # Boot options | ||
190 | # | ||
191 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
192 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
193 | CONFIG_CMDLINE="" | ||
194 | # CONFIG_XIP_KERNEL is not set | ||
195 | |||
196 | # | ||
197 | # Floating point emulation | ||
198 | # | ||
199 | |||
200 | # | ||
201 | # At least one emulation must be selected | ||
202 | # | ||
203 | CONFIG_FPE_NWFPE=y | ||
204 | # CONFIG_FPE_NWFPE_XP is not set | ||
205 | # CONFIG_FPE_FASTFPE is not set | ||
206 | # CONFIG_VFP is not set | ||
207 | |||
208 | # | ||
209 | # Userspace binary formats | ||
210 | # | ||
211 | CONFIG_BINFMT_ELF=y | ||
212 | # CONFIG_BINFMT_AOUT is not set | ||
213 | # CONFIG_BINFMT_MISC is not set | ||
214 | # CONFIG_ARTHUR is not set | ||
215 | |||
216 | # | ||
217 | # Power management options | ||
218 | # | ||
219 | # CONFIG_PM is not set | ||
220 | # CONFIG_APM is not set | ||
221 | |||
222 | # | ||
223 | # Networking | ||
224 | # | ||
225 | # CONFIG_NET is not set | ||
226 | |||
227 | # | ||
228 | # Device Drivers | ||
229 | # | ||
230 | |||
231 | # | ||
232 | # Generic Driver Options | ||
233 | # | ||
234 | CONFIG_STANDALONE=y | ||
235 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
236 | # CONFIG_FW_LOADER is not set | ||
237 | # CONFIG_DEBUG_DRIVER is not set | ||
238 | # CONFIG_SYS_HYPERVISOR is not set | ||
239 | |||
240 | # | ||
241 | # Connector - unified userspace <-> kernelspace linker | ||
242 | # | ||
243 | |||
244 | # | ||
245 | # Memory Technology Devices (MTD) | ||
246 | # | ||
247 | # CONFIG_MTD is not set | ||
248 | |||
249 | # | ||
250 | # Parallel port support | ||
251 | # | ||
252 | # CONFIG_PARPORT is not set | ||
253 | |||
254 | # | ||
255 | # Plug and Play support | ||
256 | # | ||
257 | |||
258 | # | ||
259 | # Block devices | ||
260 | # | ||
261 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
262 | # CONFIG_BLK_DEV_LOOP is not set | ||
263 | CONFIG_BLK_DEV_RAM=y | ||
264 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
265 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
266 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
267 | CONFIG_BLK_DEV_INITRD=y | ||
268 | # CONFIG_CDROM_PKTCDVD is not set | ||
269 | |||
270 | # | ||
271 | # SCSI device support | ||
272 | # | ||
273 | # CONFIG_RAID_ATTRS is not set | ||
274 | # CONFIG_SCSI is not set | ||
275 | # CONFIG_SCSI_NETLINK is not set | ||
276 | |||
277 | # | ||
278 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
279 | # | ||
280 | # CONFIG_ATA is not set | ||
281 | |||
282 | # | ||
283 | # Multi-device support (RAID and LVM) | ||
284 | # | ||
285 | # CONFIG_MD is not set | ||
286 | |||
287 | # | ||
288 | # Fusion MPT device support | ||
289 | # | ||
290 | # CONFIG_FUSION is not set | ||
291 | |||
292 | # | ||
293 | # IEEE 1394 (FireWire) support | ||
294 | # | ||
295 | |||
296 | # | ||
297 | # I2O device support | ||
298 | # | ||
299 | |||
300 | # | ||
301 | # ISDN subsystem | ||
302 | # | ||
303 | |||
304 | # | ||
305 | # Input device support | ||
306 | # | ||
307 | CONFIG_INPUT=y | ||
308 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
309 | |||
310 | # | ||
311 | # Userland interfaces | ||
312 | # | ||
313 | # CONFIG_INPUT_MOUSEDEV is not set | ||
314 | # CONFIG_INPUT_JOYDEV is not set | ||
315 | # CONFIG_INPUT_TSDEV is not set | ||
316 | # CONFIG_INPUT_EVDEV is not set | ||
317 | # CONFIG_INPUT_EVBUG is not set | ||
318 | |||
319 | # | ||
320 | # Input Device Drivers | ||
321 | # | ||
322 | # CONFIG_INPUT_KEYBOARD is not set | ||
323 | # CONFIG_INPUT_MOUSE is not set | ||
324 | # CONFIG_INPUT_JOYSTICK is not set | ||
325 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
326 | # CONFIG_INPUT_MISC is not set | ||
327 | |||
328 | # | ||
329 | # Hardware I/O ports | ||
330 | # | ||
331 | CONFIG_SERIO=y | ||
332 | # CONFIG_SERIO_SERPORT is not set | ||
333 | CONFIG_SERIO_LIBPS2=y | ||
334 | # CONFIG_SERIO_RAW is not set | ||
335 | # CONFIG_GAMEPORT is not set | ||
336 | |||
337 | # | ||
338 | # Character devices | ||
339 | # | ||
340 | CONFIG_VT=y | ||
341 | CONFIG_VT_CONSOLE=y | ||
342 | CONFIG_HW_CONSOLE=y | ||
343 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
344 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
345 | |||
346 | # | ||
347 | # Serial drivers | ||
348 | # | ||
349 | CONFIG_SERIAL_8250=y | ||
350 | CONFIG_SERIAL_8250_CONSOLE=y | ||
351 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
352 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
353 | CONFIG_SERIAL_8250_EXTENDED=y | ||
354 | # CONFIG_SERIAL_8250_MANY_PORTS is not set | ||
355 | # CONFIG_SERIAL_8250_SHARE_IRQ is not set | ||
356 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
357 | # CONFIG_SERIAL_8250_RSA is not set | ||
358 | |||
359 | # | ||
360 | # Non-8250 serial port support | ||
361 | # | ||
362 | CONFIG_SERIAL_CORE=y | ||
363 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
364 | CONFIG_UNIX98_PTYS=y | ||
365 | # CONFIG_LEGACY_PTYS is not set | ||
366 | |||
367 | # | ||
368 | # IPMI | ||
369 | # | ||
370 | # CONFIG_IPMI_HANDLER is not set | ||
371 | |||
372 | # | ||
373 | # Watchdog Cards | ||
374 | # | ||
375 | # CONFIG_WATCHDOG is not set | ||
376 | # CONFIG_HW_RANDOM is not set | ||
377 | # CONFIG_NVRAM is not set | ||
378 | # CONFIG_DTLK is not set | ||
379 | # CONFIG_R3964 is not set | ||
380 | # CONFIG_RAW_DRIVER is not set | ||
381 | |||
382 | # | ||
383 | # TPM devices | ||
384 | # | ||
385 | # CONFIG_TCG_TPM is not set | ||
386 | |||
387 | # | ||
388 | # I2C support | ||
389 | # | ||
390 | # CONFIG_I2C is not set | ||
391 | |||
392 | # | ||
393 | # SPI support | ||
394 | # | ||
395 | # CONFIG_SPI is not set | ||
396 | # CONFIG_SPI_MASTER is not set | ||
397 | |||
398 | # | ||
399 | # Dallas's 1-wire bus | ||
400 | # | ||
401 | # CONFIG_W1 is not set | ||
402 | |||
403 | # | ||
404 | # Hardware Monitoring support | ||
405 | # | ||
406 | # CONFIG_HWMON is not set | ||
407 | # CONFIG_HWMON_VID is not set | ||
408 | |||
409 | # | ||
410 | # Misc devices | ||
411 | # | ||
412 | # CONFIG_TIFM_CORE is not set | ||
413 | |||
414 | # | ||
415 | # LED devices | ||
416 | # | ||
417 | # CONFIG_NEW_LEDS is not set | ||
418 | |||
419 | # | ||
420 | # LED drivers | ||
421 | # | ||
422 | |||
423 | # | ||
424 | # LED Triggers | ||
425 | # | ||
426 | |||
427 | # | ||
428 | # Multimedia devices | ||
429 | # | ||
430 | # CONFIG_VIDEO_DEV is not set | ||
431 | |||
432 | # | ||
433 | # Digital Video Broadcasting Devices | ||
434 | # | ||
435 | |||
436 | # | ||
437 | # Graphics support | ||
438 | # | ||
439 | # CONFIG_FIRMWARE_EDID is not set | ||
440 | # CONFIG_FB is not set | ||
441 | |||
442 | # | ||
443 | # Console display driver support | ||
444 | # | ||
445 | # CONFIG_VGA_CONSOLE is not set | ||
446 | CONFIG_DUMMY_CONSOLE=y | ||
447 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
448 | |||
449 | # | ||
450 | # Sound | ||
451 | # | ||
452 | # CONFIG_SOUND is not set | ||
453 | |||
454 | # | ||
455 | # HID Devices | ||
456 | # | ||
457 | CONFIG_HID=y | ||
458 | |||
459 | # | ||
460 | # USB support | ||
461 | # | ||
462 | CONFIG_USB_ARCH_HAS_HCD=y | ||
463 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
464 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
465 | # CONFIG_USB is not set | ||
466 | |||
467 | # | ||
468 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
469 | # | ||
470 | |||
471 | # | ||
472 | # USB Gadget Support | ||
473 | # | ||
474 | # CONFIG_USB_GADGET is not set | ||
475 | |||
476 | # | ||
477 | # MMC/SD Card support | ||
478 | # | ||
479 | # CONFIG_MMC is not set | ||
480 | |||
481 | # | ||
482 | # Real Time Clock | ||
483 | # | ||
484 | CONFIG_RTC_LIB=y | ||
485 | # CONFIG_RTC_CLASS is not set | ||
486 | |||
487 | # | ||
488 | # File systems | ||
489 | # | ||
490 | CONFIG_EXT2_FS=y | ||
491 | # CONFIG_EXT2_FS_XATTR is not set | ||
492 | # CONFIG_EXT2_FS_XIP is not set | ||
493 | # CONFIG_EXT3_FS is not set | ||
494 | # CONFIG_EXT4DEV_FS is not set | ||
495 | # CONFIG_REISERFS_FS is not set | ||
496 | # CONFIG_JFS_FS is not set | ||
497 | # CONFIG_FS_POSIX_ACL is not set | ||
498 | # CONFIG_XFS_FS is not set | ||
499 | # CONFIG_GFS2_FS is not set | ||
500 | # CONFIG_MINIX_FS is not set | ||
501 | # CONFIG_ROMFS_FS is not set | ||
502 | CONFIG_INOTIFY=y | ||
503 | CONFIG_INOTIFY_USER=y | ||
504 | # CONFIG_QUOTA is not set | ||
505 | # CONFIG_DNOTIFY is not set | ||
506 | # CONFIG_AUTOFS_FS is not set | ||
507 | # CONFIG_AUTOFS4_FS is not set | ||
508 | # CONFIG_FUSE_FS is not set | ||
509 | |||
510 | # | ||
511 | # CD-ROM/DVD Filesystems | ||
512 | # | ||
513 | # CONFIG_ISO9660_FS is not set | ||
514 | # CONFIG_UDF_FS is not set | ||
515 | |||
516 | # | ||
517 | # DOS/FAT/NT Filesystems | ||
518 | # | ||
519 | # CONFIG_MSDOS_FS is not set | ||
520 | # CONFIG_VFAT_FS is not set | ||
521 | # CONFIG_NTFS_FS is not set | ||
522 | |||
523 | # | ||
524 | # Pseudo filesystems | ||
525 | # | ||
526 | CONFIG_PROC_FS=y | ||
527 | CONFIG_PROC_SYSCTL=y | ||
528 | CONFIG_SYSFS=y | ||
529 | CONFIG_TMPFS=y | ||
530 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
531 | # CONFIG_HUGETLB_PAGE is not set | ||
532 | CONFIG_RAMFS=y | ||
533 | # CONFIG_CONFIGFS_FS is not set | ||
534 | |||
535 | # | ||
536 | # Miscellaneous filesystems | ||
537 | # | ||
538 | # CONFIG_ADFS_FS is not set | ||
539 | # CONFIG_AFFS_FS is not set | ||
540 | # CONFIG_HFS_FS is not set | ||
541 | # CONFIG_HFSPLUS_FS is not set | ||
542 | # CONFIG_BEFS_FS is not set | ||
543 | # CONFIG_BFS_FS is not set | ||
544 | # CONFIG_EFS_FS is not set | ||
545 | # CONFIG_CRAMFS is not set | ||
546 | # CONFIG_VXFS_FS is not set | ||
547 | # CONFIG_HPFS_FS is not set | ||
548 | # CONFIG_QNX4FS_FS is not set | ||
549 | # CONFIG_SYSV_FS is not set | ||
550 | # CONFIG_UFS_FS is not set | ||
551 | |||
552 | # | ||
553 | # Partition Types | ||
554 | # | ||
555 | # CONFIG_PARTITION_ADVANCED is not set | ||
556 | CONFIG_MSDOS_PARTITION=y | ||
557 | |||
558 | # | ||
559 | # Native Language Support | ||
560 | # | ||
561 | # CONFIG_NLS is not set | ||
562 | |||
563 | # | ||
564 | # Profiling support | ||
565 | # | ||
566 | # CONFIG_PROFILING is not set | ||
567 | |||
568 | # | ||
569 | # Kernel hacking | ||
570 | # | ||
571 | # CONFIG_PRINTK_TIME is not set | ||
572 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
573 | # CONFIG_MAGIC_SYSRQ is not set | ||
574 | # CONFIG_UNUSED_SYMBOLS is not set | ||
575 | # CONFIG_DEBUG_FS is not set | ||
576 | # CONFIG_HEADERS_CHECK is not set | ||
577 | CONFIG_DEBUG_KERNEL=y | ||
578 | CONFIG_LOG_BUF_SHIFT=14 | ||
579 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
580 | # CONFIG_SCHEDSTATS is not set | ||
581 | # CONFIG_DEBUG_SLAB is not set | ||
582 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
583 | # CONFIG_RT_MUTEX_TESTER is not set | ||
584 | # CONFIG_DEBUG_SPINLOCK is not set | ||
585 | # CONFIG_DEBUG_MUTEXES is not set | ||
586 | # CONFIG_DEBUG_RWSEMS is not set | ||
587 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
588 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
589 | # CONFIG_DEBUG_KOBJECT is not set | ||
590 | CONFIG_DEBUG_BUGVERBOSE=y | ||
591 | CONFIG_DEBUG_INFO=y | ||
592 | # CONFIG_DEBUG_VM is not set | ||
593 | # CONFIG_DEBUG_LIST is not set | ||
594 | CONFIG_FRAME_POINTER=y | ||
595 | CONFIG_FORCED_INLINING=y | ||
596 | # CONFIG_RCU_TORTURE_TEST is not set | ||
597 | CONFIG_DEBUG_USER=y | ||
598 | CONFIG_DEBUG_ERRORS=y | ||
599 | CONFIG_DEBUG_LL=y | ||
600 | CONFIG_DEBUG_ICEDCC=y | ||
601 | |||
602 | # | ||
603 | # Security options | ||
604 | # | ||
605 | # CONFIG_KEYS is not set | ||
606 | # CONFIG_SECURITY is not set | ||
607 | |||
608 | # | ||
609 | # Cryptographic options | ||
610 | # | ||
611 | # CONFIG_CRYPTO is not set | ||
612 | |||
613 | # | ||
614 | # Library routines | ||
615 | # | ||
616 | # CONFIG_CRC_CCITT is not set | ||
617 | # CONFIG_CRC16 is not set | ||
618 | # CONFIG_CRC32 is not set | ||
619 | # CONFIG_LIBCRC32C is not set | ||
620 | CONFIG_PLIST=y | ||
621 | CONFIG_IOMAP_COPY=y | ||
diff --git a/arch/arm/mach-ns9xxx/Kconfig b/arch/arm/mach-ns9xxx/Kconfig new file mode 100644 index 000000000000..8175ba92a2fa --- /dev/null +++ b/arch/arm/mach-ns9xxx/Kconfig | |||
@@ -0,0 +1,21 @@ | |||
1 | if ARCH_NS9XXX | ||
2 | |||
3 | menu "NS9xxx Implementations" | ||
4 | |||
5 | config MACH_CC9P9360DEV | ||
6 | bool "Connect Core 9P 9360 on an A9M9750 Devboard" | ||
7 | select PROCESSOR_NS9360 | ||
8 | select BOARD_A9M9750DEV | ||
9 | help | ||
10 | Say Y here if you are using the Digi Connect Core 9P 9360 | ||
11 | on an A9M9750 Development Board. | ||
12 | |||
13 | config PROCESSOR_NS9360 | ||
14 | bool | ||
15 | |||
16 | config BOARD_A9M9750DEV | ||
17 | bool | ||
18 | |||
19 | endmenu | ||
20 | |||
21 | endif | ||
diff --git a/arch/arm/mach-ns9xxx/Makefile b/arch/arm/mach-ns9xxx/Makefile new file mode 100644 index 000000000000..91e945f5e16d --- /dev/null +++ b/arch/arm/mach-ns9xxx/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | obj-y := irq.o time.o generic.o | ||
2 | |||
3 | obj-$(CONFIG_MACH_CC9P9360DEV) += mach-cc9p9360dev.o | ||
4 | |||
5 | obj-$(CONFIG_BOARD_A9M9750DEV) += board-a9m9750dev.o | ||
diff --git a/arch/arm/mach-ns9xxx/Makefile.boot b/arch/arm/mach-ns9xxx/Makefile.boot new file mode 100644 index 000000000000..75ed64e90fa4 --- /dev/null +++ b/arch/arm/mach-ns9xxx/Makefile.boot | |||
@@ -0,0 +1,2 @@ | |||
1 | zreladdr-y := 0x108000 | ||
2 | params_phys-y := 0x100 | ||
diff --git a/arch/arm/mach-ns9xxx/board-a9m9750dev.c b/arch/arm/mach-ns9xxx/board-a9m9750dev.c new file mode 100644 index 000000000000..25289884a607 --- /dev/null +++ b/arch/arm/mach-ns9xxx/board-a9m9750dev.c | |||
@@ -0,0 +1,199 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/board-a9m9750dev.c | ||
3 | * | ||
4 | * Copyright (C) 2006,2007 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/platform_device.h> | ||
12 | #include <linux/serial_8250.h> | ||
13 | #include <linux/irq.h> | ||
14 | |||
15 | #include <asm/mach/map.h> | ||
16 | |||
17 | #include <asm/arch-ns9xxx/board.h> | ||
18 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
19 | #include <asm/arch-ns9xxx/regs-mem.h> | ||
20 | #include <asm/arch-ns9xxx/regs-bbu.h> | ||
21 | #include <asm/arch-ns9xxx/regs-board-a9m9750dev.h> | ||
22 | |||
23 | #include "board-a9m9750dev.h" | ||
24 | |||
25 | static struct map_desc board_a9m9750dev_io_desc[] __initdata = { | ||
26 | { /* FPGA on CS0 */ | ||
27 | .virtual = io_p2v(NS9XXX_CSxSTAT_PHYS(0)), | ||
28 | .pfn = __phys_to_pfn(NS9XXX_CSxSTAT_PHYS(0)), | ||
29 | .length = NS9XXX_CS0STAT_LENGTH, | ||
30 | .type = MT_DEVICE, | ||
31 | }, | ||
32 | }; | ||
33 | |||
34 | void __init board_a9m9750dev_map_io(void) | ||
35 | { | ||
36 | iotable_init(board_a9m9750dev_io_desc, | ||
37 | ARRAY_SIZE(board_a9m9750dev_io_desc)); | ||
38 | } | ||
39 | |||
40 | static void a9m9750dev_fpga_ack_irq(unsigned int irq) | ||
41 | { | ||
42 | /* nothing */ | ||
43 | } | ||
44 | |||
45 | static void a9m9750dev_fpga_mask_irq(unsigned int irq) | ||
46 | { | ||
47 | FPGA_IER &= ~(1 << (irq - FPGA_IRQ(0))); | ||
48 | } | ||
49 | |||
50 | static void a9m9750dev_fpga_maskack_irq(unsigned int irq) | ||
51 | { | ||
52 | a9m9750dev_fpga_mask_irq(irq); | ||
53 | a9m9750dev_fpga_ack_irq(irq); | ||
54 | } | ||
55 | |||
56 | static void a9m9750dev_fpga_unmask_irq(unsigned int irq) | ||
57 | { | ||
58 | FPGA_IER |= 1 << (irq - FPGA_IRQ(0)); | ||
59 | } | ||
60 | |||
61 | static struct irq_chip a9m9750dev_fpga_chip = { | ||
62 | .ack = a9m9750dev_fpga_ack_irq, | ||
63 | .mask = a9m9750dev_fpga_mask_irq, | ||
64 | .mask_ack = a9m9750dev_fpga_maskack_irq, | ||
65 | .unmask = a9m9750dev_fpga_unmask_irq, | ||
66 | }; | ||
67 | |||
68 | static void a9m9750dev_fpga_demux_handler(unsigned int irq, | ||
69 | struct irq_desc *desc) | ||
70 | { | ||
71 | int stat = FPGA_ISR; | ||
72 | |||
73 | while (stat != 0) { | ||
74 | int irqno = fls(stat) - 1; | ||
75 | |||
76 | stat &= ~(1 << irqno); | ||
77 | |||
78 | desc = irq_desc + FPGA_IRQ(irqno); | ||
79 | |||
80 | desc_handle_irq(irqno, desc); | ||
81 | } | ||
82 | } | ||
83 | |||
84 | void __init board_a9m9750dev_init_irq(void) | ||
85 | { | ||
86 | u32 reg; | ||
87 | int i; | ||
88 | |||
89 | /* | ||
90 | * configure gpio for IRQ_EXT2 | ||
91 | * use GPIO 11, because GPIO 32 is used for the LCD | ||
92 | */ | ||
93 | /* XXX: proper GPIO handling */ | ||
94 | BBU_GC(2) &= ~0x2000; | ||
95 | |||
96 | for (i = FPGA_IRQ(0); i <= FPGA_IRQ(7); ++i) { | ||
97 | set_irq_chip(i, &a9m9750dev_fpga_chip); | ||
98 | set_irq_handler(i, handle_level_irq); | ||
99 | set_irq_flags(i, IRQF_VALID); | ||
100 | } | ||
101 | |||
102 | /* IRQ_EXT2: level sensitive + active low */ | ||
103 | reg = SYS_EIC(2); | ||
104 | REGSET(reg, SYS_EIC, PLTY, AL); | ||
105 | REGSET(reg, SYS_EIC, LVEDG, LEVEL); | ||
106 | SYS_EIC(2) = reg; | ||
107 | |||
108 | set_irq_chained_handler(IRQ_EXT2, | ||
109 | a9m9750dev_fpga_demux_handler); | ||
110 | } | ||
111 | |||
112 | static struct plat_serial8250_port board_a9m9750dev_serial8250_port[] = { | ||
113 | { | ||
114 | .iobase = FPGA_UARTA_BASE, | ||
115 | .membase = (unsigned char*)FPGA_UARTA_BASE, | ||
116 | .mapbase = FPGA_UARTA_BASE, | ||
117 | .irq = IRQ_FPGA_UARTA, | ||
118 | .iotype = UPIO_MEM, | ||
119 | .uartclk = 18432000, | ||
120 | .regshift = 0, | ||
121 | .flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ, | ||
122 | }, { | ||
123 | .iobase = FPGA_UARTB_BASE, | ||
124 | .membase = (unsigned char*)FPGA_UARTB_BASE, | ||
125 | .mapbase = FPGA_UARTB_BASE, | ||
126 | .irq = IRQ_FPGA_UARTB, | ||
127 | .iotype = UPIO_MEM, | ||
128 | .uartclk = 18432000, | ||
129 | .regshift = 0, | ||
130 | .flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ, | ||
131 | }, { | ||
132 | .iobase = FPGA_UARTC_BASE, | ||
133 | .membase = (unsigned char*)FPGA_UARTC_BASE, | ||
134 | .mapbase = FPGA_UARTC_BASE, | ||
135 | .irq = IRQ_FPGA_UARTC, | ||
136 | .iotype = UPIO_MEM, | ||
137 | .uartclk = 18432000, | ||
138 | .regshift = 0, | ||
139 | .flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ, | ||
140 | }, { | ||
141 | .iobase = FPGA_UARTD_BASE, | ||
142 | .membase = (unsigned char*)FPGA_UARTD_BASE, | ||
143 | .mapbase = FPGA_UARTD_BASE, | ||
144 | .irq = IRQ_FPGA_UARTD, | ||
145 | .iotype = UPIO_MEM, | ||
146 | .uartclk = 18432000, | ||
147 | .regshift = 0, | ||
148 | .flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ, | ||
149 | }, { | ||
150 | /* end marker */ | ||
151 | }, | ||
152 | }; | ||
153 | |||
154 | static struct platform_device board_a9m9750dev_serial_device = { | ||
155 | .name = "serial8250", | ||
156 | .dev = { | ||
157 | .platform_data = board_a9m9750dev_serial8250_port, | ||
158 | }, | ||
159 | }; | ||
160 | |||
161 | static struct platform_device *board_a9m9750dev_devices[] __initdata = { | ||
162 | &board_a9m9750dev_serial_device, | ||
163 | }; | ||
164 | |||
165 | void __init board_a9m9750dev_init_machine(void) | ||
166 | { | ||
167 | u32 reg; | ||
168 | |||
169 | /* setup static CS0: memory base ... */ | ||
170 | REGSETIM(SYS_SMCSSMB(0), SYS_SMCSSMB, CSxB, | ||
171 | NS9XXX_CSxSTAT_PHYS(0) >> 12); | ||
172 | |||
173 | /* ... and mask */ | ||
174 | reg = SYS_SMCSSMM(0); | ||
175 | REGSETIM(reg, SYS_SMCSSMM, CSxM, 0xfffff); | ||
176 | REGSET(reg, SYS_SMCSSMM, CSEx, EN); | ||
177 | SYS_SMCSSMM(0) = reg; | ||
178 | |||
179 | /* setup static CS0: memory configuration */ | ||
180 | reg = MEM_SMC(0); | ||
181 | REGSET(reg, MEM_SMC, WSMC, OFF); | ||
182 | REGSET(reg, MEM_SMC, BSMC, OFF); | ||
183 | REGSET(reg, MEM_SMC, EW, OFF); | ||
184 | REGSET(reg, MEM_SMC, PB, 1); | ||
185 | REGSET(reg, MEM_SMC, PC, AL); | ||
186 | REGSET(reg, MEM_SMC, PM, DIS); | ||
187 | REGSET(reg, MEM_SMC, MW, 8); | ||
188 | MEM_SMC(0) = reg; | ||
189 | |||
190 | /* setup static CS0: timing */ | ||
191 | MEM_SMWED(0) = 0x2; | ||
192 | MEM_SMOED(0) = 0x2; | ||
193 | MEM_SMRD(0) = 0x6; | ||
194 | MEM_SMWD(0) = 0x6; | ||
195 | |||
196 | platform_add_devices(board_a9m9750dev_devices, | ||
197 | ARRAY_SIZE(board_a9m9750dev_devices)); | ||
198 | } | ||
199 | |||
diff --git a/arch/arm/mach-ns9xxx/board-a9m9750dev.h b/arch/arm/mach-ns9xxx/board-a9m9750dev.h new file mode 100644 index 000000000000..edc75abbc5dd --- /dev/null +++ b/arch/arm/mach-ns9xxx/board-a9m9750dev.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/board-a9m9750dev.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/init.h> | ||
12 | |||
13 | void __init board_a9m9750dev_map_io(void); | ||
14 | void __init board_a9m9750dev_init_machine(void); | ||
15 | void __init board_a9m9750dev_init_irq(void); | ||
diff --git a/arch/arm/mach-ns9xxx/generic.c b/arch/arm/mach-ns9xxx/generic.c new file mode 100644 index 000000000000..83e2b6532b22 --- /dev/null +++ b/arch/arm/mach-ns9xxx/generic.c | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/generic.c | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <asm/memory.h> | ||
14 | #include <asm/page.h> | ||
15 | #include <asm/mach-types.h> | ||
16 | #include <asm/mach/map.h> | ||
17 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
18 | #include <asm/arch-ns9xxx/regs-mem.h> | ||
19 | #include <asm/arch-ns9xxx/board.h> | ||
20 | |||
21 | static struct map_desc standard_io_desc[] __initdata = { | ||
22 | { /* BBus */ | ||
23 | .virtual = io_p2v(0x90000000), | ||
24 | .pfn = __phys_to_pfn(0x90000000), | ||
25 | .length = 0x00700000, | ||
26 | .type = MT_DEVICE, | ||
27 | }, { /* AHB */ | ||
28 | .virtual = io_p2v(0xa0100000), | ||
29 | .pfn = __phys_to_pfn(0xa0100000), | ||
30 | .length = 0x00900000, | ||
31 | .type = MT_DEVICE, | ||
32 | }, | ||
33 | }; | ||
34 | |||
35 | void __init ns9xxx_map_io(void) | ||
36 | { | ||
37 | iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc)); | ||
38 | } | ||
39 | |||
40 | void __init ns9xxx_init_machine(void) | ||
41 | { | ||
42 | } | ||
diff --git a/arch/arm/mach-ns9xxx/generic.h b/arch/arm/mach-ns9xxx/generic.h new file mode 100644 index 000000000000..687e291773f4 --- /dev/null +++ b/arch/arm/mach-ns9xxx/generic.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/generic.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/time.h> | ||
12 | #include <asm/mach/time.h> | ||
13 | #include <linux/init.h> | ||
14 | |||
15 | void __init ns9xxx_init_irq(void); | ||
16 | void __init ns9xxx_map_io(void); | ||
17 | void __init ns9xxx_init_machine(void); | ||
18 | |||
19 | extern struct sys_timer ns9xxx_timer; | ||
diff --git a/arch/arm/mach-ns9xxx/irq.c b/arch/arm/mach-ns9xxx/irq.c new file mode 100644 index 000000000000..83d92724a971 --- /dev/null +++ b/arch/arm/mach-ns9xxx/irq.c | |||
@@ -0,0 +1,94 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/irq.c | ||
3 | * | ||
4 | * Copyright (C) 2006,2007 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/interrupt.h> | ||
12 | #include <asm/mach/irq.h> | ||
13 | #include <asm/mach-types.h> | ||
14 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
15 | #include <asm/arch-ns9xxx/irqs.h> | ||
16 | #include <asm/arch-ns9xxx/board.h> | ||
17 | |||
18 | #include "generic.h" | ||
19 | |||
20 | static void ns9xxx_ack_irq_timer(unsigned int irq) | ||
21 | { | ||
22 | u32 tc = SYS_TC(irq - IRQ_TIMER0); | ||
23 | |||
24 | REGSET(tc, SYS_TCx, INTC, SET); | ||
25 | SYS_TC(irq - IRQ_TIMER0) = tc; | ||
26 | |||
27 | REGSET(tc, SYS_TCx, INTC, UNSET); | ||
28 | SYS_TC(irq - IRQ_TIMER0) = tc; | ||
29 | } | ||
30 | |||
31 | void (*ns9xxx_ack_irq_functions[NR_IRQS])(unsigned int) = { | ||
32 | [IRQ_TIMER0] = ns9xxx_ack_irq_timer, | ||
33 | [IRQ_TIMER1] = ns9xxx_ack_irq_timer, | ||
34 | [IRQ_TIMER2] = ns9xxx_ack_irq_timer, | ||
35 | [IRQ_TIMER3] = ns9xxx_ack_irq_timer, | ||
36 | }; | ||
37 | |||
38 | static void ns9xxx_mask_irq(unsigned int irq) | ||
39 | { | ||
40 | /* XXX: better use cpp symbols */ | ||
41 | SYS_IC(irq / 4) &= ~(1 << (7 + 8 * (3 - (irq & 3)))); | ||
42 | } | ||
43 | |||
44 | static void ns9xxx_ack_irq(unsigned int irq) | ||
45 | { | ||
46 | if (!ns9xxx_ack_irq_functions[irq]) { | ||
47 | printk(KERN_ERR "no ack function for irq %u\n", irq); | ||
48 | BUG(); | ||
49 | } | ||
50 | |||
51 | ns9xxx_ack_irq_functions[irq](irq); | ||
52 | SYS_ISRADDR = 0; | ||
53 | } | ||
54 | |||
55 | static void ns9xxx_maskack_irq(unsigned int irq) | ||
56 | { | ||
57 | ns9xxx_mask_irq(irq); | ||
58 | ns9xxx_ack_irq(irq); | ||
59 | } | ||
60 | |||
61 | static void ns9xxx_unmask_irq(unsigned int irq) | ||
62 | { | ||
63 | /* XXX: better use cpp symbols */ | ||
64 | SYS_IC(irq / 4) |= 1 << (7 + 8 * (3 - (irq & 3))); | ||
65 | } | ||
66 | |||
67 | static struct irq_chip ns9xxx_chip = { | ||
68 | .ack = ns9xxx_ack_irq, | ||
69 | .mask = ns9xxx_mask_irq, | ||
70 | .mask_ack = ns9xxx_maskack_irq, | ||
71 | .unmask = ns9xxx_unmask_irq, | ||
72 | }; | ||
73 | |||
74 | void __init ns9xxx_init_irq(void) | ||
75 | { | ||
76 | int i; | ||
77 | |||
78 | /* disable all IRQs */ | ||
79 | for (i = 0; i < 8; ++i) | ||
80 | SYS_IC(i) = (4 * i) << 24 | (4 * i + 1) << 16 | | ||
81 | (4 * i + 2) << 8 | (4 * i + 3); | ||
82 | |||
83 | /* simple interrupt prio table: | ||
84 | * prio(x) < prio(y) <=> x < y | ||
85 | */ | ||
86 | for (i = 0; i < 32; ++i) | ||
87 | SYS_IVA(i) = i; | ||
88 | |||
89 | for (i = IRQ_WATCHDOG; i <= IRQ_EXT3; ++i) { | ||
90 | set_irq_chip(i, &ns9xxx_chip); | ||
91 | set_irq_handler(i, handle_level_irq); | ||
92 | set_irq_flags(i, IRQF_VALID); | ||
93 | } | ||
94 | } | ||
diff --git a/arch/arm/mach-ns9xxx/mach-cc9p9360dev.c b/arch/arm/mach-ns9xxx/mach-cc9p9360dev.c new file mode 100644 index 000000000000..a193dd931512 --- /dev/null +++ b/arch/arm/mach-ns9xxx/mach-cc9p9360dev.c | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/mach-cc9p9360dev.c | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <asm/mach/arch.h> | ||
12 | #include <asm/mach-types.h> | ||
13 | |||
14 | #include "board-a9m9750dev.h" | ||
15 | #include "generic.h" | ||
16 | |||
17 | static void __init mach_cc9p9360dev_map_io(void) | ||
18 | { | ||
19 | ns9xxx_map_io(); | ||
20 | board_a9m9750dev_map_io(); | ||
21 | } | ||
22 | |||
23 | static void __init mach_cc9p9360dev_init_irq(void) | ||
24 | { | ||
25 | ns9xxx_init_irq(); | ||
26 | board_a9m9750dev_init_irq(); | ||
27 | } | ||
28 | |||
29 | static void __init mach_cc9p9360dev_init_machine(void) | ||
30 | { | ||
31 | ns9xxx_init_machine(); | ||
32 | board_a9m9750dev_init_machine(); | ||
33 | } | ||
34 | |||
35 | MACHINE_START(CC9P9360DEV, "Connect Core 9P 9360 on an A9M9750 Devboard") | ||
36 | .map_io = mach_cc9p9360dev_map_io, | ||
37 | .init_irq = mach_cc9p9360dev_init_irq, | ||
38 | .init_machine = mach_cc9p9360dev_init_machine, | ||
39 | .timer = &ns9xxx_timer, | ||
40 | .boot_params = 0x100, | ||
41 | MACHINE_END | ||
diff --git a/arch/arm/mach-ns9xxx/time.c b/arch/arm/mach-ns9xxx/time.c new file mode 100644 index 000000000000..eec05f18714a --- /dev/null +++ b/arch/arm/mach-ns9xxx/time.c | |||
@@ -0,0 +1,88 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ns9xxx/time.c | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/jiffies.h> | ||
12 | #include <linux/interrupt.h> | ||
13 | #include <linux/irq.h> | ||
14 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
15 | #include <asm/arch-ns9xxx/clock.h> | ||
16 | #include <asm/arch-ns9xxx/irqs.h> | ||
17 | #include <asm/arch/system.h> | ||
18 | #include "generic.h" | ||
19 | |||
20 | #define TIMERCLOCKSELECT 64 | ||
21 | |||
22 | static u32 usecs_per_tick; | ||
23 | |||
24 | static irqreturn_t | ||
25 | ns9xxx_timer_interrupt(int irq, void *dev_id) | ||
26 | { | ||
27 | write_seqlock(&xtime_lock); | ||
28 | timer_tick(); | ||
29 | write_sequnlock(&xtime_lock); | ||
30 | |||
31 | return IRQ_HANDLED; | ||
32 | } | ||
33 | |||
34 | static unsigned long ns9xxx_timer_gettimeoffset(void) | ||
35 | { | ||
36 | /* return the microseconds which have passed since the last interrupt | ||
37 | * was _serviced_. That is, if an interrupt is pending or the counter | ||
38 | * reloads, return one periode more. */ | ||
39 | |||
40 | u32 counter1 = SYS_TR(0); | ||
41 | int pending = SYS_ISR & (1 << IRQ_TIMER0); | ||
42 | u32 counter2 = SYS_TR(0); | ||
43 | u32 elapsed; | ||
44 | |||
45 | if (pending || counter2 > counter1) | ||
46 | elapsed = 2 * SYS_TRC(0) - counter2; | ||
47 | else | ||
48 | elapsed = SYS_TRC(0) - counter1; | ||
49 | |||
50 | return (elapsed * usecs_per_tick) >> 16; | ||
51 | |||
52 | } | ||
53 | |||
54 | static struct irqaction ns9xxx_timer_irq = { | ||
55 | .name = "NS9xxx Timer Tick", | ||
56 | .flags = IRQF_DISABLED | IRQF_TIMER, | ||
57 | .handler = ns9xxx_timer_interrupt, | ||
58 | }; | ||
59 | |||
60 | static void __init ns9xxx_timer_init(void) | ||
61 | { | ||
62 | int tc; | ||
63 | |||
64 | usecs_per_tick = | ||
65 | SH_DIV(1000000 * TIMERCLOCKSELECT, ns9xxx_cpuclock(), 16); | ||
66 | |||
67 | /* disable timer */ | ||
68 | if ((tc = SYS_TC(0)) & SYS_TCx_TEN) | ||
69 | SYS_TC(0) = tc & ~SYS_TCx_TEN; | ||
70 | |||
71 | SYS_TRC(0) = SH_DIV(ns9xxx_cpuclock(), (TIMERCLOCKSELECT * HZ), 0); | ||
72 | |||
73 | REGSET(tc, SYS_TCx, TEN, EN); | ||
74 | REGSET(tc, SYS_TCx, TLCS, DIV64); /* This must match TIMERCLOCKSELECT */ | ||
75 | REGSET(tc, SYS_TCx, INTS, EN); | ||
76 | REGSET(tc, SYS_TCx, UDS, DOWN); | ||
77 | REGSET(tc, SYS_TCx, TDBG, STOP); | ||
78 | REGSET(tc, SYS_TCx, TSZ, 32); | ||
79 | REGSET(tc, SYS_TCx, REN, EN); | ||
80 | SYS_TC(0) = tc; | ||
81 | |||
82 | setup_irq(IRQ_TIMER0, &ns9xxx_timer_irq); | ||
83 | } | ||
84 | |||
85 | struct sys_timer ns9xxx_timer = { | ||
86 | .init = ns9xxx_timer_init, | ||
87 | .offset = ns9xxx_timer_gettimeoffset, | ||
88 | }; | ||
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index da8f043dc2cc..4b277199d0e8 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -171,8 +171,8 @@ config CPU_ARM925T | |||
171 | # ARM926T | 171 | # ARM926T |
172 | config CPU_ARM926T | 172 | config CPU_ARM926T |
173 | bool "Support ARM926T processor" | 173 | bool "Support ARM926T processor" |
174 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_AT91SAM9263 | 174 | depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_AT91SAM9263 || ARCH_NS9XXX |
175 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_AT91SAM9263 | 175 | default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261 || ARCH_AT91SAM9263 || ARCH_NS9XXX |
176 | select CPU_32v5 | 176 | select CPU_32v5 |
177 | select CPU_ABRT_EV5TJ | 177 | select CPU_ABRT_EV5TJ |
178 | select CPU_CACHE_VIVT | 178 | select CPU_CACHE_VIVT |
diff --git a/include/asm-arm/arch-ns9xxx/board.h b/include/asm-arm/arch-ns9xxx/board.h new file mode 100644 index 000000000000..91dc8fb1027f --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/board.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/board.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_BOARD_H | ||
12 | #define __ASM_ARCH_BOARD_H | ||
13 | |||
14 | #include <asm/mach-types.h> | ||
15 | |||
16 | #define board_is_a9m9750dev() (machine_is_cc9p9360dev()) | ||
17 | |||
18 | #endif /* ifndef __ASM_ARCH_BOARD_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/clock.h b/include/asm-arm/arch-ns9xxx/clock.h new file mode 100644 index 000000000000..4371a485db47 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/clock.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/clock.h | ||
3 | * | ||
4 | * Copyright (C) 2007 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_CLOCK_H | ||
12 | #define __ASM_ARCH_CLOCK_H | ||
13 | |||
14 | static inline u32 ns9xxx_systemclock(void) | ||
15 | { | ||
16 | /* | ||
17 | * This should be a multiple of HZ * TIMERCLOCKSELECT (in time.c) | ||
18 | */ | ||
19 | return 353894400; | ||
20 | } | ||
21 | |||
22 | static inline const u32 ns9xxx_cpuclock(void) | ||
23 | { | ||
24 | return ns9xxx_systemclock() / 2; | ||
25 | } | ||
26 | |||
27 | static inline const u32 ns9xxx_ahbclock(void) | ||
28 | { | ||
29 | return ns9xxx_systemclock() / 4; | ||
30 | } | ||
31 | |||
32 | static inline const u32 ns9xxx_bbusclock(void) | ||
33 | { | ||
34 | return ns9xxx_systemclock() / 8; | ||
35 | } | ||
36 | |||
37 | #endif /* ifndef __ASM_ARCH_CLOCK_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/debug-macro.S b/include/asm-arm/arch-ns9xxx/debug-macro.S new file mode 100644 index 000000000000..b21b93eb2dbc --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/debug-macro.S | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/debug-macro.S | ||
3 | * Copyright (C) 2006 by Digi International Inc. | ||
4 | * All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published by | ||
8 | * the Free Software Foundation. | ||
9 | */ | ||
10 | #include <asm/hardware.h> | ||
11 | |||
12 | #include <asm/arch-ns9xxx/regs-board-a9m9750dev.h> | ||
13 | |||
14 | .macro addruart,rx | ||
15 | mrc p15, 0, \rx, c1, c0 | ||
16 | tst \rx, #1 | ||
17 | ldreq \rx, =NS9XXX_CSxSTAT_PHYS(0) | ||
18 | ldrne \rx, =io_p2v(NS9XXX_CSxSTAT_PHYS(0)) | ||
19 | .endm | ||
20 | |||
21 | #define UART_SHIFT 2 | ||
22 | #include <asm/hardware/debug-8250.S> | ||
diff --git a/include/asm-arm/arch-ns9xxx/dma.h b/include/asm-arm/arch-ns9xxx/dma.h new file mode 100644 index 000000000000..a67cbbe009c4 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/dma.h | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/dma.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_DMA_H | ||
12 | #define __ASM_ARCH_DMA_H | ||
13 | |||
14 | #endif /* ifndef __ASM_ARCH_DMA_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/entry-macro.S b/include/asm-arm/arch-ns9xxx/entry-macro.S new file mode 100644 index 000000000000..467a1986d259 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/entry-macro.S | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/entry-macro.S | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #include <asm/hardware.h> | ||
12 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
13 | |||
14 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
15 | ldr \base, =SYS_ISRADDR | ||
16 | ldr \irqstat, [\base, #(SYS_ISA - SYS_ISRADDR)] | ||
17 | cmp \irqstat, #0 | ||
18 | ldrne \irqnr, [\base] | ||
19 | .endm | ||
20 | |||
21 | .macro disable_fiq | ||
22 | .endm | ||
diff --git a/include/asm-arm/arch-ns9xxx/hardware.h b/include/asm-arm/arch-ns9xxx/hardware.h new file mode 100644 index 000000000000..6819da7c48d4 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/hardware.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/hardware.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_HARDWARE_H | ||
12 | #define __ASM_ARCH_HARDWARE_H | ||
13 | |||
14 | #include <asm/memory.h> | ||
15 | |||
16 | /* | ||
17 | * NetSilicon NS9xxx internal mapping: | ||
18 | * | ||
19 | * physical <--> virtual | ||
20 | * 0x90000000 - 0x906fffff <--> 0xf9000000 - 0xf96fffff | ||
21 | * 0xa0100000 - 0xa0afffff <--> 0xfa100000 - 0xfaafffff | ||
22 | */ | ||
23 | #define io_p2v(x) (0xf0000000 \ | ||
24 | + (((x) & 0xf0000000) >> 4) \ | ||
25 | + ((x) & 0x00ffffff)) | ||
26 | |||
27 | #define io_v2p(x) ((((x) & 0x0f000000) << 4) \ | ||
28 | + ((x) & 0x00ffffff)) | ||
29 | |||
30 | #define __REGBIT(bit) ((u32)1 << (bit)) | ||
31 | #define __REGBITS(hbit, lbit) ((((u32)1 << ((hbit) - (lbit) + 1)) - 1) << (lbit)) | ||
32 | #define __REGVAL(mask, value) (((value) * ((mask) & (-(mask))) & (mask))) | ||
33 | |||
34 | #ifndef __ASSEMBLY__ | ||
35 | |||
36 | # define __REG(x) (*((volatile u32 *)io_p2v((x)))) | ||
37 | # define __REG2(x, y) (*((volatile u32 *)io_p2v((x)) + (y))) | ||
38 | |||
39 | # define __REGB(x) (*((volatile u8 *)io_p2v((x)))) | ||
40 | # define __REGB2(x) (*((volatile u8 *)io_p2v((x)) + (y))) | ||
41 | |||
42 | # define REGSET(var, reg, field, value) \ | ||
43 | ((var) = (((var) \ | ||
44 | & ~(reg ## _ ## field & \ | ||
45 | ~ reg ## _ ## field ## _ ## value)) \ | ||
46 | | (reg ## _ ## field ## _ ## value))) | ||
47 | |||
48 | # define REGSETIM(var, reg, field, value) \ | ||
49 | ((var) = (((var) \ | ||
50 | & ~(reg ## _ ## field & \ | ||
51 | ~(__REGVAL(reg ## _ ## field, value)))) \ | ||
52 | | (__REGVAL(reg ## _ ## field, value)))) | ||
53 | |||
54 | # define REGGET(reg, field) \ | ||
55 | ((reg & (reg ## _ ## field)) / (field & (-field))) | ||
56 | |||
57 | #else | ||
58 | |||
59 | # define __REG(x) io_p2v(x) | ||
60 | # define __REG2(x, y) io_p2v((x) + (y)) | ||
61 | |||
62 | # define __REGB(x) __REG((x)) | ||
63 | # define __REGB2(x, y) __REG2((x), (y)) | ||
64 | |||
65 | #endif | ||
66 | |||
67 | #endif /* ifndef __ASM_ARCH_HARDWARE_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/io.h b/include/asm-arm/arch-ns9xxx/io.h new file mode 100644 index 000000000000..6f82d28af120 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/io.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/io.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_IO_H | ||
12 | #define __ASM_ARCH_IO_H | ||
13 | |||
14 | #define IO_SPACE_LIMIT 0xffffffff /* XXX */ | ||
15 | |||
16 | #define __io(a) ((void __iomem *)(a)) | ||
17 | #define __mem_pci(a) (a) | ||
18 | #define __mem_isa(a) (IO_BASE + (a)) | ||
19 | |||
20 | #endif /* ifndef __ASM_ARCH_IO_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/irqs.h b/include/asm-arm/arch-ns9xxx/irqs.h new file mode 100644 index 000000000000..25d8d28b27f3 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/irqs.h | |||
@@ -0,0 +1,85 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/irqs.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_IRQS_H | ||
12 | #define __ASM_ARCH_IRQS_H | ||
13 | |||
14 | #define IRQ_WATCHDOG 0 | ||
15 | #define IRQ_AHBBUSERR 1 | ||
16 | #define IRQ_BBUSAGG 2 | ||
17 | /* irq 3 is reserved for NS9360 */ | ||
18 | #define IRQ_ETHRX 4 | ||
19 | #define IRQ_ETHTX 5 | ||
20 | #define IRQ_ETHPHY 6 | ||
21 | #define IRQ_LCD 7 | ||
22 | #define IRQ_SERBRX 8 | ||
23 | #define IRQ_SERBTX 9 | ||
24 | #define IRQ_SERARX 10 | ||
25 | #define IRQ_SERATX 11 | ||
26 | #define IRQ_SERCRX 12 | ||
27 | #define IRQ_SERCTX 13 | ||
28 | #define IRQ_I2C 14 | ||
29 | #define IRQ_BBUSDMA 15 | ||
30 | #define IRQ_TIMER0 16 | ||
31 | #define IRQ_TIMER1 17 | ||
32 | #define IRQ_TIMER2 18 | ||
33 | #define IRQ_TIMER3 19 | ||
34 | #define IRQ_TIMER4 20 | ||
35 | #define IRQ_TIMER5 21 | ||
36 | #define IRQ_TIMER6 22 | ||
37 | #define IRQ_TIMER7 23 | ||
38 | #define IRQ_RTC 24 | ||
39 | #define IRQ_USBHOST 25 | ||
40 | #define IRQ_USBDEVICE 26 | ||
41 | #define IRQ_IEEE1284 27 | ||
42 | #define IRQ_EXT0 28 | ||
43 | #define IRQ_EXT1 29 | ||
44 | #define IRQ_EXT2 30 | ||
45 | #define IRQ_EXT3 31 | ||
46 | |||
47 | #define BBUS_IRQ(irq) (32 + irq) | ||
48 | |||
49 | #define IRQ_BBUS_DMA BBUS_IRQ(0) | ||
50 | #define IRQ_BBUS_SERBRX BBUS_IRQ(2) | ||
51 | #define IRQ_BBUS_SERBTX BBUS_IRQ(3) | ||
52 | #define IRQ_BBUS_SERARX BBUS_IRQ(4) | ||
53 | #define IRQ_BBUS_SERATX BBUS_IRQ(5) | ||
54 | #define IRQ_BBUS_SERCRX BBUS_IRQ(6) | ||
55 | #define IRQ_BBUS_SERCTX BBUS_IRQ(7) | ||
56 | #define IRQ_BBUS_SERDRX BBUS_IRQ(8) | ||
57 | #define IRQ_BBUS_SERDTX BBUS_IRQ(9) | ||
58 | #define IRQ_BBUS_I2C BBUS_IRQ(10) | ||
59 | #define IRQ_BBUS_1284 BBUS_IRQ(11) | ||
60 | #define IRQ_BBUS_UTIL BBUS_IRQ(12) | ||
61 | #define IRQ_BBUS_RTC BBUS_IRQ(13) | ||
62 | #define IRQ_BBUS_USBHST BBUS_IRQ(14) | ||
63 | #define IRQ_BBUS_USBDEV BBUS_IRQ(15) | ||
64 | #define IRQ_BBUS_AHBDMA1 BBUS_IRQ(24) | ||
65 | #define IRQ_BBUS_AHBDMA2 BBUS_IRQ(25) | ||
66 | |||
67 | /* | ||
68 | * these Interrupts are specific for the a9m9750dev board. | ||
69 | * They are generated by an FPGA that interrupts the CPU on | ||
70 | * IRQ_EXT2 | ||
71 | */ | ||
72 | #define FPGA_IRQ(irq) (64 + irq) | ||
73 | |||
74 | #define IRQ_FPGA_UARTA FPGA_IRQ(0) | ||
75 | #define IRQ_FPGA_UARTB FPGA_IRQ(1) | ||
76 | #define IRQ_FPGA_UARTC FPGA_IRQ(2) | ||
77 | #define IRQ_FPGA_UARTD FPGA_IRQ(3) | ||
78 | #define IRQ_FPGA_TOUCH FPGA_IRQ(4) | ||
79 | #define IRQ_FPGA_CF FPGA_IRQ(5) | ||
80 | #define IRQ_FPGA_CAN0 FPGA_IRQ(6) | ||
81 | #define IRQ_FPGA_CAN1 FPGA_IRQ(7) | ||
82 | |||
83 | #define NR_IRQS 72 | ||
84 | |||
85 | #endif /* __ASM_ARCH_IRQS_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/memory.h b/include/asm-arm/arch-ns9xxx/memory.h new file mode 100644 index 000000000000..ce1343e593e1 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/memory.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/memory.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_MEMORY_H | ||
12 | #define __ASM_ARCH_MEMORY_H | ||
13 | |||
14 | /* x in [0..3] */ | ||
15 | #define NS9XXX_CSxSTAT_PHYS(x) UL(((x) + 4) << 28) | ||
16 | |||
17 | #define NS9XXX_CS0STAT_LENGTH UL(0x1000) | ||
18 | #define NS9XXX_CS1STAT_LENGTH UL(0x1000) | ||
19 | #define NS9XXX_CS2STAT_LENGTH UL(0x1000) | ||
20 | #define NS9XXX_CS3STAT_LENGTH UL(0x1000) | ||
21 | |||
22 | #define PHYS_OFFSET UL(0x00000000) | ||
23 | |||
24 | #define __virt_to_bus(x) __virt_to_phys(x) | ||
25 | #define __bus_to_virt(x) __phys_to_virt(x) | ||
26 | |||
27 | #endif | ||
diff --git a/include/asm-arm/arch-ns9xxx/processor.h b/include/asm-arm/arch-ns9xxx/processor.h new file mode 100644 index 000000000000..716c106ac0bf --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/processor.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/processor.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_PROCESSOR_H | ||
12 | #define __ASM_ARCH_PROCESSOR_H | ||
13 | |||
14 | #include <asm/mach-types.h> | ||
15 | |||
16 | #define processor_is_ns9360() (machine_is_cc9p9360dev()) | ||
17 | |||
18 | #endif /* ifndef __ASM_ARCH_PROCESSOR_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/regs-bbu.h b/include/asm-arm/arch-ns9xxx/regs-bbu.h new file mode 100644 index 000000000000..e26269546240 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/regs-bbu.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/regs-bbu.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_REGSBBU_H | ||
12 | #define __ASM_ARCH_REGSBBU_H | ||
13 | |||
14 | #include <asm/hardware.h> | ||
15 | |||
16 | /* BBus Utility */ | ||
17 | |||
18 | /* GPIO Configuration Register */ | ||
19 | #define BBU_GC(x) __REG2(0x9060000c, (x)) | ||
20 | |||
21 | #endif /* ifndef __ASM_ARCH_REGSBBU_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/regs-board-a9m9750dev.h b/include/asm-arm/arch-ns9xxx/regs-board-a9m9750dev.h new file mode 100644 index 000000000000..c3dc532dd20c --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/regs-board-a9m9750dev.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/regs-board-a9m9750dev.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_REGSBOARDA9M9750_H | ||
12 | #define __ASM_ARCH_REGSBOARDA9M9750_H | ||
13 | |||
14 | #include <asm/hardware.h> | ||
15 | |||
16 | #define FPGA_UARTA_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0)) | ||
17 | #define FPGA_UARTB_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x08) | ||
18 | #define FPGA_UARTC_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x10) | ||
19 | #define FPGA_UARTD_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x18) | ||
20 | |||
21 | #define FPGA_IER __REGB(NS9XXX_CSxSTAT_PHYS(0) + 0x50) | ||
22 | #define FPGA_ISR __REGB(NS9XXX_CSxSTAT_PHYS(0) + 0x60) | ||
23 | |||
24 | #endif /* ifndef __ASM_ARCH_REGSBOARDA9M9750_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/regs-mem.h b/include/asm-arm/arch-ns9xxx/regs-mem.h new file mode 100644 index 000000000000..8ed8448767b9 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/regs-mem.h | |||
@@ -0,0 +1,135 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/regs-mem.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_REGSMEM_H | ||
12 | #define __ASM_ARCH_REGSMEM_H | ||
13 | |||
14 | #include <asm/hardware.h> | ||
15 | |||
16 | /* Memory Module */ | ||
17 | |||
18 | /* Control register */ | ||
19 | #define MEM_CTRL __REG(0xa0700000) | ||
20 | |||
21 | /* Status register */ | ||
22 | #define MEM_STAT __REG(0xa0700004) | ||
23 | |||
24 | /* Configuration register */ | ||
25 | #define MEM_CONF __REG(0xa0700008) | ||
26 | |||
27 | /* Dynamic Memory Control register */ | ||
28 | #define MEM_DMCTRL __REG(0xa0700020) | ||
29 | |||
30 | /* Dynamic Memory Refresh Timer */ | ||
31 | #define MEM_DMRT __REG(0xa0700024) | ||
32 | |||
33 | /* Dynamic Memory Read Configuration register */ | ||
34 | #define MEM_DMRC __REG(0xa0700028) | ||
35 | |||
36 | /* Dynamic Memory Precharge Command Period (tRP) */ | ||
37 | #define MEM_DMPCP __REG(0xa0700030) | ||
38 | |||
39 | /* Dynamic Memory Active to Precharge Command Period (tRAS) */ | ||
40 | #define MEM_DMAPCP __REG(0xa0700034) | ||
41 | |||
42 | /* Dynamic Memory Self-Refresh Exit Time (tSREX) */ | ||
43 | #define MEM_DMSRET __REG(0xa0700038) | ||
44 | |||
45 | /* Dynamic Memory Last Data Out to Active Time (tAPR) */ | ||
46 | #define MEM_DMLDOAT __REG(0xa070003c) | ||
47 | |||
48 | /* Dynamic Memory Data-in to Active Command Time (tDAL or TAPW) */ | ||
49 | #define MEM_DMDIACT __REG(0xa0700040) | ||
50 | |||
51 | /* Dynamic Memory Write Recovery Time (tWR, tDPL, tRWL, tRDL) */ | ||
52 | #define MEM_DMWRT __REG(0xa0700044) | ||
53 | |||
54 | /* Dynamic Memory Active to Active Command Period (tRC) */ | ||
55 | #define MEM_DMAACP __REG(0xa0700048) | ||
56 | |||
57 | /* Dynamic Memory Auto Refresh Period, and Auto Refresh to Active Command Period (tRFC) */ | ||
58 | #define MEM_DMARP __REG(0xa070004c) | ||
59 | |||
60 | /* Dynamic Memory Exit Self-Refresh to Active Command (tXSR) */ | ||
61 | #define MEM_DMESRAC __REG(0xa0700050) | ||
62 | |||
63 | /* Dynamic Memory Active Bank A to Active B Time (tRRD) */ | ||
64 | #define MEM_DMABAABT __REG(0xa0700054) | ||
65 | |||
66 | /* Dynamic Memory Load Mode register to Active Command Time (tMRD) */ | ||
67 | #define MEM_DMLMACT __REG(0xa0700058) | ||
68 | |||
69 | /* Static Memory Extended Wait */ | ||
70 | #define MEM_SMEW __REG(0xa0700080) | ||
71 | |||
72 | /* Dynamic Memory Configuration Register x */ | ||
73 | #define MEM_DMCONF(x) __REG2(0xa0700100, (x) << 3) | ||
74 | |||
75 | /* Dynamic Memory RAS and CAS Delay x */ | ||
76 | #define MEM_DMRCD(x) __REG2(0xa0700104, (x) << 3) | ||
77 | |||
78 | /* Static Memory Configuration Register x */ | ||
79 | #define MEM_SMC(x) __REG2(0xa0700200, (x) << 3) | ||
80 | |||
81 | /* Static Memory Configuration Register x: Write protect */ | ||
82 | #define MEM_SMC_WSMC __REGBIT(20) | ||
83 | #define MEM_SMC_WSMC_OFF __REGVAL(MEM_SMC_WSMC, 0) | ||
84 | #define MEM_SMC_WSMC_ON __REGVAL(MEM_SMC_WSMC, 1) | ||
85 | |||
86 | /* Static Memory Configuration Register x: Buffer enable */ | ||
87 | #define MEM_SMC_BSMC __REGBIT(19) | ||
88 | #define MEM_SMC_BSMC_OFF __REGVAL(MEM_SMC_BSMC, 0) | ||
89 | #define MEM_SMC_BSMC_ON __REGVAL(MEM_SMC_BSMC, 1) | ||
90 | |||
91 | /* Static Memory Configuration Register x: Extended Wait */ | ||
92 | #define MEM_SMC_EW __REGBIT(8) | ||
93 | #define MEM_SMC_EW_OFF __REGVAL(MEM_SMC_EW, 0) | ||
94 | #define MEM_SMC_EW_ON __REGVAL(MEM_SMC_EW, 1) | ||
95 | |||
96 | /* Static Memory Configuration Register x: Byte lane state */ | ||
97 | #define MEM_SMC_PB __REGBIT(7) | ||
98 | #define MEM_SMC_PB_0 __REGVAL(MEM_SMC_PB, 0) | ||
99 | #define MEM_SMC_PB_1 __REGVAL(MEM_SMC_PB, 1) | ||
100 | |||
101 | /* Static Memory Configuration Register x: Chip select polarity */ | ||
102 | #define MEM_SMC_PC __REGBIT(6) | ||
103 | #define MEM_SMC_PC_AL __REGVAL(MEM_SMC_PC, 0) | ||
104 | #define MEM_SMC_PC_AH __REGVAL(MEM_SMC_PC, 1) | ||
105 | |||
106 | /* static memory configuration register x: page mode*/ | ||
107 | #define MEM_SMC_PM __REGBIT(3) | ||
108 | #define MEM_SMC_PM_DIS __REGVAL(MEM_SMC_PM, 0) | ||
109 | #define MEM_SMC_PM_ASYNC __REGVAL(MEM_SMC_PM, 1) | ||
110 | |||
111 | /* static memory configuration register x: Memory width */ | ||
112 | #define MEM_SMC_MW __REGBITS(1, 0) | ||
113 | #define MEM_SMC_MW_8 __REGVAL(MEM_SMC_MW, 0) | ||
114 | #define MEM_SMC_MW_16 __REGVAL(MEM_SMC_MW, 1) | ||
115 | #define MEM_SMC_MW_32 __REGVAL(MEM_SMC_MW, 2) | ||
116 | |||
117 | /* Static Memory Write Enable Delay x */ | ||
118 | #define MEM_SMWED(x) __REG2(0xa0700204, (x) << 3) | ||
119 | |||
120 | /* Static Memory Output Enable Delay x */ | ||
121 | #define MEM_SMOED(x) __REG2(0xa0700208, (x) << 3) | ||
122 | |||
123 | /* Static Memory Read Delay x */ | ||
124 | #define MEM_SMRD(x) __REG2(0xa070020c, (x) << 3) | ||
125 | |||
126 | /* Static Memory Page Mode Read Delay 0 */ | ||
127 | #define MEM_SMPMRD(x) __REG2(0xa0700210, (x) << 3) | ||
128 | |||
129 | /* Static Memory Write Delay */ | ||
130 | #define MEM_SMWD(x) __REG2(0xa0700214, (x) << 3) | ||
131 | |||
132 | /* Static Memory Turn Round Delay x */ | ||
133 | #define MEM_SWT(x) __REG2(0xa0700218, (x) << 3) | ||
134 | |||
135 | #endif /* ifndef __ASM_ARCH_REGSMEM_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/regs-sys.h b/include/asm-arm/arch-ns9xxx/regs-sys.h new file mode 100644 index 000000000000..8162a50bb273 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/regs-sys.h | |||
@@ -0,0 +1,157 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/regs-sys.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_REGSSYS_H | ||
12 | #define __ASM_ARCH_REGSSYS_H | ||
13 | |||
14 | #include <asm/hardware.h> | ||
15 | |||
16 | /* System Control Module */ | ||
17 | |||
18 | /* AHB Arbiter Gen Configuration */ | ||
19 | #define SYS_AHBAGENCONF __REG(0xa0900000) | ||
20 | |||
21 | /* BRC */ | ||
22 | #define SYS_BRC(x) __REG2(0xa0900004, (x)) | ||
23 | |||
24 | /* Timer x Reload Count register */ | ||
25 | #define SYS_TRC(x) __REG2(0xa0900044, (x)) | ||
26 | |||
27 | /* Timer x Read register */ | ||
28 | #define SYS_TR(x) __REG2(0xa0900084, (x)) | ||
29 | |||
30 | /* Interrupt Vector Address Register Level x */ | ||
31 | #define SYS_IVA(x) __REG2(0xa09000c4, (x)) | ||
32 | |||
33 | /* Interrupt Configuration registers */ | ||
34 | #define SYS_IC(x) __REG2(0xa0900144, (x)) | ||
35 | |||
36 | /* ISRADDR */ | ||
37 | #define SYS_ISRADDR __REG(0xa0900164) | ||
38 | |||
39 | /* Interrupt Status Active */ | ||
40 | #define SYS_ISA __REG(0xa0900168) | ||
41 | |||
42 | /* Interrupt Status Raw */ | ||
43 | #define SYS_ISR __REG(0xa090016c) | ||
44 | |||
45 | /* Timer Interrupt Status register */ | ||
46 | #define SYS_TIS __REG(0xa0900170) | ||
47 | |||
48 | /* PLL Configuration register */ | ||
49 | #define SYS_PLL __REG(0xa0900188) | ||
50 | |||
51 | /* PLL Configuration register: PLL SW change */ | ||
52 | #define SYS_PLL_SWC __REGBIT(15) | ||
53 | #define SYS_PLL_SWC_NO __REGVAL(SYS_PLL_SWC, 0) | ||
54 | #define SYS_PLL_SWC_YES __REGVAL(SYS_PLL_SWC, 1) | ||
55 | |||
56 | /* Timer x Control register */ | ||
57 | #define SYS_TC(x) __REG2(0xa0900190, (x)) | ||
58 | |||
59 | /* Timer x Control register: Timer enable */ | ||
60 | #define SYS_TCx_TEN __REGBIT(15) | ||
61 | #define SYS_TCx_TEN_DIS __REGVAL(SYS_TCx_TEN, 1) | ||
62 | #define SYS_TCx_TEN_EN __REGVAL(SYS_TCx_TEN, 1) | ||
63 | |||
64 | /* Timer x Control register: CPU debug mode */ | ||
65 | #define SYS_TCx_TDBG __REGBIT(10) | ||
66 | #define SYS_TCx_TDBG_CONT __REGVAL(SYS_TCx_TDBG, 0) | ||
67 | #define SYS_TCx_TDBG_STOP __REGVAL(SYS_TCx_TDBG, 1) | ||
68 | |||
69 | /* Timer x Control register: Interrupt clear */ | ||
70 | #define SYS_TCx_INTC __REGBIT(9) | ||
71 | #define SYS_TCx_INTC_UNSET __REGVAL(SYS_TCx_INTC, 0) | ||
72 | #define SYS_TCx_INTC_SET __REGVAL(SYS_TCx_INTC, 1) | ||
73 | |||
74 | /* Timer x Control register: Timer clock select */ | ||
75 | #define SYS_TCx_TLCS __REGBITS(8, 6) | ||
76 | #define SYS_TCx_TLCS_CPU __REGVAL(SYS_TCx_TLCS, 0) /* CPU clock */ | ||
77 | #define SYS_TCx_TLCS_DIV2 __REGVAL(SYS_TCx_TLCS, 1) /* CPU clock / 2 */ | ||
78 | #define SYS_TCx_TLCS_DIV4 __REGVAL(SYS_TCx_TLCS, 2) /* CPU clock / 4 */ | ||
79 | #define SYS_TCx_TLCS_DIV8 __REGVAL(SYS_TCx_TLCS, 3) /* CPU clock / 8 */ | ||
80 | #define SYS_TCx_TLCS_DIV16 __REGVAL(SYS_TCx_TLCS, 4) /* CPU clock / 16 */ | ||
81 | #define SYS_TCx_TLCS_DIV32 __REGVAL(SYS_TCx_TLCS, 5) /* CPU clock / 32 */ | ||
82 | #define SYS_TCx_TLCS_DIV64 __REGVAL(SYS_TCx_TLCS, 6) /* CPU clock / 64 */ | ||
83 | #define SYS_TCx_TLCS_EXT __REGVAL(SYS_TCx_TLCS, 7) | ||
84 | |||
85 | /* Timer x Control register: Timer mode */ | ||
86 | #define SYS_TCx_TM __REGBITS(5, 4) | ||
87 | #define SYS_TCx_TM_IEE __REGVAL(SYS_TCx_TM, 0) /* Internal timer or external event */ | ||
88 | #define SYS_TCx_TM_ELL __REGVAL(SYS_TCx_TM, 1) /* External low-level, gated timer */ | ||
89 | #define SYS_TCx_TM_EHL __REGVAL(SYS_TCx_TM, 2) /* External high-level, gated timer */ | ||
90 | #define SYS_TCx_TM_CONCAT __REGVAL(SYS_TCx_TM, 3) /* Concatenate the lower timer. */ | ||
91 | |||
92 | /* Timer x Control register: Interrupt select */ | ||
93 | #define SYS_TCx_INTS __REGBIT(3) | ||
94 | #define SYS_TCx_INTS_DIS __REGVAL(SYS_TCx_INTS, 0) | ||
95 | #define SYS_TCx_INTS_EN __REGVAL(SYS_TCx_INTS, 1) | ||
96 | |||
97 | /* Timer x Control register: Up/down select */ | ||
98 | #define SYS_TCx_UDS __REGBIT(2) | ||
99 | #define SYS_TCx_UDS_UP __REGVAL(SYS_TCx_UDS, 0) | ||
100 | #define SYS_TCx_UDS_DOWN __REGVAL(SYS_TCx_UDS, 1) | ||
101 | |||
102 | /* Timer x Control register: 32- or 16-bit timer */ | ||
103 | #define SYS_TCx_TSZ __REGBIT(1) | ||
104 | #define SYS_TCx_TSZ_16 __REGVAL(SYS_TCx_TSZ, 0) | ||
105 | #define SYS_TCx_TSZ_32 __REGVAL(SYS_TCx_TSZ, 1) | ||
106 | |||
107 | /* Timer x Control register: Reload enable */ | ||
108 | #define SYS_TCx_REN __REGBIT(0) | ||
109 | #define SYS_TCx_REN_DIS __REGVAL(SYS_TCx_REN, 0) | ||
110 | #define SYS_TCx_REN_EN __REGVAL(SYS_TCx_REN, 1) | ||
111 | |||
112 | /* System Memory Chip Select x Dynamic Memory Base */ | ||
113 | #define SYS_SMCSDMB(x) __REG2(0xa09001d0, (x) << 1) | ||
114 | |||
115 | /* System Memory Chip Select x Dynamic Memory Mask */ | ||
116 | #define SYS_SMCSDMM(x) __REG2(0xa09001d4, (x) << 1) | ||
117 | |||
118 | /* System Memory Chip Select x Static Memory Base */ | ||
119 | #define SYS_SMCSSMB(x) __REG2(0xa09001f0, (x) << 1) | ||
120 | |||
121 | /* System Memory Chip Select x Static Memory Base: Chip select x base */ | ||
122 | #define SYS_SMCSSMB_CSxB __REGBITS(31, 12) | ||
123 | |||
124 | /* System Memory Chip Select x Static Memory Mask */ | ||
125 | #define SYS_SMCSSMM(x) __REG2(0xa09001f4, (x) << 1) | ||
126 | |||
127 | /* System Memory Chip Select x Static Memory Mask: Chip select x mask */ | ||
128 | #define SYS_SMCSSMM_CSxM __REGBITS(31, 12) | ||
129 | |||
130 | /* System Memory Chip Select x Static Memory Mask: Chip select x enable */ | ||
131 | #define SYS_SMCSSMM_CSEx __REGBIT(0) | ||
132 | #define SYS_SMCSSMM_CSEx_DIS __REGVAL(SYS_SMCSSMM_CSEx, 0) | ||
133 | #define SYS_SMCSSMM_CSEx_EN __REGVAL(SYS_SMCSSMM_CSEx, 1) | ||
134 | |||
135 | /* General purpose, user-defined ID register */ | ||
136 | #define SYS_GENID __REG(0xa0900210) | ||
137 | |||
138 | /* External Interrupt x Control register */ | ||
139 | #define SYS_EIC(x) __REG2(0xa0900214, (x)) | ||
140 | |||
141 | /* External Interrupt x Control register: Status */ | ||
142 | #define SYS_EIC_STS __REGBIT(3) | ||
143 | |||
144 | /* External Interrupt x Control register: Clear */ | ||
145 | #define SYS_EIC_CLR __REGBIT(2) | ||
146 | |||
147 | /* External Interrupt x Control register: Polarity */ | ||
148 | #define SYS_EIC_PLTY __REGBIT(1) | ||
149 | #define SYS_EIC_PLTY_AH __REGVAL(SYS_EIC_PLTY, 0) | ||
150 | #define SYS_EIC_PLTY_AL __REGVAL(SYS_EIC_PLTY, 1) | ||
151 | |||
152 | /* External Interrupt x Control register: Level edge */ | ||
153 | #define SYS_EIC_LVEDG __REGBIT(0) | ||
154 | #define SYS_EIC_LVEDG_LEVEL __REGVAL(SYS_EIC_LVEDG, 0) | ||
155 | #define SYS_EIC_LVEDG_EDGE __REGVAL(SYS_EIC_LVEDG, 1) | ||
156 | |||
157 | #endif /* ifndef __ASM_ARCH_REGSSYS_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/system.h b/include/asm-arm/arch-ns9xxx/system.h new file mode 100644 index 000000000000..e3cd4d31b3f3 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/system.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/system.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_SYSTEM_H | ||
12 | #define __ASM_ARCH_SYSTEM_H | ||
13 | |||
14 | #include <asm/proc-fns.h> | ||
15 | #include <asm/arch-ns9xxx/regs-sys.h> | ||
16 | #include <asm/mach-types.h> | ||
17 | |||
18 | static inline void arch_idle(void) | ||
19 | { | ||
20 | cpu_do_idle(); | ||
21 | } | ||
22 | |||
23 | static inline void arch_reset(char mode) | ||
24 | { | ||
25 | u32 reg; | ||
26 | |||
27 | reg = SYS_PLL >> 16; | ||
28 | REGSET(reg, SYS_PLL, SWC, YES); | ||
29 | SYS_PLL = reg; | ||
30 | |||
31 | BUG(); | ||
32 | } | ||
33 | |||
34 | #endif /* ifndef __ASM_ARCH_SYSTEM_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/timex.h b/include/asm-arm/arch-ns9xxx/timex.h new file mode 100644 index 000000000000..f776cbd2622d --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/timex.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/timex.h | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_TIMEX_H | ||
12 | #define __ASM_ARCH_TIMEX_H | ||
13 | |||
14 | /* | ||
15 | * value for CLOCK_TICK_RATE stolen from include/asm-arm/arch-s3c2410/timex.h. | ||
16 | * See there for an explanation. | ||
17 | */ | ||
18 | #define CLOCK_TICK_RATE 12000000 | ||
19 | |||
20 | #endif /* ifndef __ASM_ARCH_TIMEX_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/uncompress.h b/include/asm-arm/arch-ns9xxx/uncompress.h new file mode 100644 index 000000000000..961ca7dc9954 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/uncompress.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/uncompress.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_UNCOMPRESS_H | ||
12 | #define __ASM_ARCH_UNCOMPRESS_H | ||
13 | |||
14 | static void putc(char c) | ||
15 | { | ||
16 | volatile u8 *base = (volatile u8 *)0x40000000; | ||
17 | int t = 0x10000; | ||
18 | |||
19 | do { | ||
20 | if (base[5] & 0x20) { | ||
21 | base[0] = c; | ||
22 | break; | ||
23 | } | ||
24 | } while (--t); | ||
25 | } | ||
26 | |||
27 | #define arch_decomp_setup() | ||
28 | #define arch_decomp_wdog() | ||
29 | |||
30 | static void flush(void) | ||
31 | { | ||
32 | /* nothing */ | ||
33 | } | ||
34 | |||
35 | #endif /* ifndef __ASM_ARCH_UNCOMPRESS_H */ | ||
diff --git a/include/asm-arm/arch-ns9xxx/vmalloc.h b/include/asm-arm/arch-ns9xxx/vmalloc.h new file mode 100644 index 000000000000..2f3cb6f6be24 --- /dev/null +++ b/include/asm-arm/arch-ns9xxx/vmalloc.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-ns9xxx/vmalloc.h | ||
3 | * | ||
4 | * Copyright (C) 2006 by Digi International Inc. | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __ASM_ARCH_VMALLOC_H | ||
12 | #define __ASM_ARCH_VMALLOC_H | ||
13 | |||
14 | #define VMALLOC_END (0xf0000000) | ||
15 | |||
16 | #endif /* ifndef __ASM_ARCH_VMALLOC_H */ | ||