aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/mappi2
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/mappi2')
-rw-r--r--arch/m32r/mappi2/defconfig.vdec2725
-rw-r--r--arch/m32r/mappi2/dot.gdbinit.vdec2233
2 files changed, 958 insertions, 0 deletions
diff --git a/arch/m32r/mappi2/defconfig.vdec2 b/arch/m32r/mappi2/defconfig.vdec2
new file mode 100644
index 000000000000..c14791d27300
--- /dev/null
+++ b/arch/m32r/mappi2/defconfig.vdec2
@@ -0,0 +1,725 @@
1#
2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.11-rc4
4# Wed Feb 16 21:11:10 2005
5#
6CONFIG_M32R=y
7# CONFIG_UID16 is not set
8CONFIG_GENERIC_ISA_DMA=y
9CONFIG_GENERIC_HARDIRQS=y
10CONFIG_GENERIC_IRQ_PROBE=y
11
12#
13# Code maturity level options
14#
15CONFIG_EXPERIMENTAL=y
16CONFIG_CLEAN_COMPILE=y
17CONFIG_BROKEN_ON_SMP=y
18CONFIG_LOCK_KERNEL=y
19
20#
21# General setup
22#
23CONFIG_LOCALVERSION=""
24CONFIG_SWAP=y
25CONFIG_SYSVIPC=y
26# CONFIG_POSIX_MQUEUE is not set
27CONFIG_BSD_PROCESS_ACCT=y
28# CONFIG_BSD_PROCESS_ACCT_V3 is not set
29CONFIG_SYSCTL=y
30# CONFIG_AUDIT is not set
31CONFIG_LOG_BUF_SHIFT=14
32CONFIG_HOTPLUG=y
33CONFIG_KOBJECT_UEVENT=y
34CONFIG_IKCONFIG=y
35# CONFIG_IKCONFIG_PROC is not set
36CONFIG_EMBEDDED=y
37# CONFIG_KALLSYMS is not set
38# CONFIG_FUTEX is not set
39# CONFIG_EPOLL is not set
40# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
41CONFIG_SHMEM=y
42CONFIG_CC_ALIGN_FUNCTIONS=0
43CONFIG_CC_ALIGN_LABELS=0
44CONFIG_CC_ALIGN_LOOPS=0
45CONFIG_CC_ALIGN_JUMPS=0
46# CONFIG_TINY_SHMEM is not set
47
48#
49# Loadable module support
50#
51CONFIG_MODULES=y
52CONFIG_MODULE_UNLOAD=y
53# CONFIG_MODULE_FORCE_UNLOAD is not set
54CONFIG_OBSOLETE_MODPARM=y
55# CONFIG_MODVERSIONS is not set
56# CONFIG_MODULE_SRCVERSION_ALL is not set
57CONFIG_KMOD=y
58
59#
60# Processor type and features
61#
62# CONFIG_PLAT_MAPPI is not set
63# CONFIG_PLAT_USRV is not set
64# CONFIG_PLAT_M32700UT is not set
65# CONFIG_PLAT_OPSPUT is not set
66# CONFIG_PLAT_OAKS32R is not set
67CONFIG_PLAT_MAPPI2=y
68# CONFIG_CHIP_M32700 is not set
69# CONFIG_CHIP_M32102 is not set
70CONFIG_CHIP_VDEC2=y
71# CONFIG_CHIP_OPSP is not set
72CONFIG_MMU=y
73CONFIG_TLB_ENTRIES=16
74CONFIG_ISA_M32R2=y
75CONFIG_BUS_CLOCK=50000000
76CONFIG_TIMER_DIVIDE=128
77# CONFIG_CPU_LITTLE_ENDIAN is not set
78CONFIG_MEMORY_START=0x08000000
79CONFIG_MEMORY_SIZE=0x01000000
80CONFIG_NOHIGHMEM=y
81# CONFIG_DISCONTIGMEM is not set
82CONFIG_RWSEM_GENERIC_SPINLOCK=y
83# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
84CONFIG_GENERIC_CALIBRATE_DELAY=y
85CONFIG_PREEMPT=y
86# CONFIG_HAVE_DEC_LOCK is not set
87# CONFIG_SMP is not set
88
89#
90# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
91#
92# CONFIG_PCI is not set
93# CONFIG_ISA is not set
94
95#
96# PCCARD (PCMCIA/CardBus) support
97#
98CONFIG_PCCARD=y
99# CONFIG_PCMCIA_DEBUG is not set
100CONFIG_PCMCIA=y
101
102#
103# PC-card bridges
104#
105# CONFIG_TCIC is not set
106# CONFIG_M32R_CFC is not set
107
108#
109# PCI Hotplug Support
110#
111
112#
113# Executable file formats
114#
115CONFIG_BINFMT_ELF=y
116# CONFIG_BINFMT_MISC is not set
117
118#
119# Device Drivers
120#
121
122#
123# Generic Driver Options
124#
125CONFIG_STANDALONE=y
126CONFIG_PREVENT_FIRMWARE_BUILD=y
127# CONFIG_FW_LOADER is not set
128
129#
130# Memory Technology Devices (MTD)
131#
132# CONFIG_MTD is not set
133
134#
135# Parallel port support
136#
137# CONFIG_PARPORT is not set
138
139#
140# Plug and Play support
141#
142
143#
144# Block devices
145#
146# CONFIG_BLK_DEV_FD is not set
147# CONFIG_BLK_DEV_COW_COMMON is not set
148CONFIG_BLK_DEV_LOOP=y
149# CONFIG_BLK_DEV_CRYPTOLOOP is not set
150CONFIG_BLK_DEV_NBD=y
151CONFIG_BLK_DEV_RAM=y
152CONFIG_BLK_DEV_RAM_COUNT=16
153CONFIG_BLK_DEV_RAM_SIZE=4096
154# CONFIG_BLK_DEV_INITRD is not set
155CONFIG_INITRAMFS_SOURCE=""
156# CONFIG_CDROM_PKTCDVD is not set
157
158#
159# IO Schedulers
160#
161CONFIG_IOSCHED_NOOP=y
162# CONFIG_IOSCHED_AS is not set
163CONFIG_IOSCHED_DEADLINE=y
164CONFIG_IOSCHED_CFQ=y
165# CONFIG_ATA_OVER_ETH is not set
166
167#
168# ATA/ATAPI/MFM/RLL support
169#
170CONFIG_IDE=y
171CONFIG_BLK_DEV_IDE=y
172
173#
174# Please see Documentation/ide.txt for help/info on IDE drives
175#
176# CONFIG_BLK_DEV_IDE_SATA is not set
177CONFIG_BLK_DEV_IDEDISK=y
178# CONFIG_IDEDISK_MULTI_MODE is not set
179CONFIG_BLK_DEV_IDECS=y
180CONFIG_BLK_DEV_IDECD=m
181# CONFIG_BLK_DEV_IDETAPE is not set
182# CONFIG_BLK_DEV_IDEFLOPPY is not set
183# CONFIG_BLK_DEV_IDESCSI is not set
184# CONFIG_IDE_TASK_IOCTL is not set
185
186#
187# IDE chipset support/bugfixes
188#
189CONFIG_IDE_GENERIC=y
190# CONFIG_IDE_ARM is not set
191# CONFIG_BLK_DEV_IDEDMA is not set
192# CONFIG_IDEDMA_AUTO is not set
193# CONFIG_BLK_DEV_HD is not set
194
195#
196# SCSI device support
197#
198CONFIG_SCSI=m
199CONFIG_SCSI_PROC_FS=y
200
201#
202# SCSI support type (disk, tape, CD-ROM)
203#
204CONFIG_BLK_DEV_SD=m
205# CONFIG_CHR_DEV_ST is not set
206# CONFIG_CHR_DEV_OSST is not set
207CONFIG_BLK_DEV_SR=m
208# CONFIG_BLK_DEV_SR_VENDOR is not set
209CONFIG_CHR_DEV_SG=m
210
211#
212# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
213#
214CONFIG_SCSI_MULTI_LUN=y
215# CONFIG_SCSI_CONSTANTS is not set
216# CONFIG_SCSI_LOGGING is not set
217
218#
219# SCSI Transport Attributes
220#
221# CONFIG_SCSI_SPI_ATTRS is not set
222# CONFIG_SCSI_FC_ATTRS is not set
223# CONFIG_SCSI_ISCSI_ATTRS is not set
224
225#
226# SCSI low-level drivers
227#
228# CONFIG_SCSI_SATA is not set
229# CONFIG_SCSI_DEBUG is not set
230
231#
232# PCMCIA SCSI adapter support
233#
234# CONFIG_PCMCIA_AHA152X is not set
235# CONFIG_PCMCIA_FDOMAIN is not set
236# CONFIG_PCMCIA_NINJA_SCSI is not set
237# CONFIG_PCMCIA_QLOGIC is not set
238# CONFIG_PCMCIA_SYM53C500 is not set
239
240#
241# Multi-device support (RAID and LVM)
242#
243# CONFIG_MD is not set
244
245#
246# Fusion MPT device support
247#
248
249#
250# IEEE 1394 (FireWire) support
251#
252
253#
254# I2O device support
255#
256
257#
258# Networking support
259#
260CONFIG_NET=y
261
262#
263# Networking options
264#
265CONFIG_PACKET=y
266# CONFIG_PACKET_MMAP is not set
267# CONFIG_NETLINK_DEV is not set
268CONFIG_UNIX=y
269# CONFIG_NET_KEY is not set
270CONFIG_INET=y
271# CONFIG_IP_MULTICAST is not set
272# CONFIG_IP_ADVANCED_ROUTER is not set
273CONFIG_IP_PNP=y
274CONFIG_IP_PNP_DHCP=y
275# CONFIG_IP_PNP_BOOTP is not set
276# CONFIG_IP_PNP_RARP is not set
277# CONFIG_NET_IPIP is not set
278# CONFIG_NET_IPGRE is not set
279# CONFIG_ARPD is not set
280# CONFIG_SYN_COOKIES is not set
281# CONFIG_INET_AH is not set
282# CONFIG_INET_ESP is not set
283# CONFIG_INET_IPCOMP is not set
284# CONFIG_INET_TUNNEL is not set
285CONFIG_IP_TCPDIAG=y
286# CONFIG_IP_TCPDIAG_IPV6 is not set
287# CONFIG_IPV6 is not set
288# CONFIG_NETFILTER is not set
289
290#
291# SCTP Configuration (EXPERIMENTAL)
292#
293# CONFIG_IP_SCTP is not set
294# CONFIG_ATM is not set
295# CONFIG_BRIDGE is not set
296# CONFIG_VLAN_8021Q is not set
297# CONFIG_DECNET is not set
298# CONFIG_LLC2 is not set
299# CONFIG_IPX is not set
300# CONFIG_ATALK is not set
301# CONFIG_X25 is not set
302# CONFIG_LAPB is not set
303# CONFIG_NET_DIVERT is not set
304# CONFIG_ECONET is not set
305# CONFIG_WAN_ROUTER is not set
306
307#
308# QoS and/or fair queueing
309#
310# CONFIG_NET_SCHED is not set
311# CONFIG_NET_CLS_ROUTE is not set
312
313#
314# Network testing
315#
316# CONFIG_NET_PKTGEN is not set
317# CONFIG_NETPOLL is not set
318# CONFIG_NET_POLL_CONTROLLER is not set
319# CONFIG_HAMRADIO is not set
320# CONFIG_IRDA is not set
321# CONFIG_BT is not set
322CONFIG_NETDEVICES=y
323# CONFIG_DUMMY is not set
324# CONFIG_BONDING is not set
325# CONFIG_EQUALIZER is not set
326# CONFIG_TUN is not set
327
328#
329# Ethernet (10 or 100Mbit)
330#
331CONFIG_NET_ETHERNET=y
332CONFIG_MII=y
333CONFIG_SMC91X=y
334# CONFIG_NE2000 is not set
335
336#
337# Ethernet (1000 Mbit)
338#
339
340#
341# Ethernet (10000 Mbit)
342#
343
344#
345# Token Ring devices
346#
347
348#
349# Wireless LAN (non-hamradio)
350#
351# CONFIG_NET_RADIO is not set
352
353#
354# PCMCIA network device support
355#
356# CONFIG_NET_PCMCIA is not set
357
358#
359# Wan interfaces
360#
361# CONFIG_WAN is not set
362# CONFIG_PPP is not set
363# CONFIG_SLIP is not set
364# CONFIG_SHAPER is not set
365# CONFIG_NETCONSOLE is not set
366
367#
368# ISDN subsystem
369#
370# CONFIG_ISDN is not set
371
372#
373# Telephony Support
374#
375# CONFIG_PHONE is not set
376
377#
378# Input device support
379#
380CONFIG_INPUT=y
381
382#
383# Userland interfaces
384#
385# CONFIG_INPUT_MOUSEDEV is not set
386# CONFIG_INPUT_JOYDEV is not set
387# CONFIG_INPUT_TSDEV is not set
388# CONFIG_INPUT_EVDEV is not set
389# CONFIG_INPUT_EVBUG is not set
390
391#
392# Input I/O drivers
393#
394# CONFIG_GAMEPORT is not set
395CONFIG_SOUND_GAMEPORT=y
396CONFIG_SERIO=y
397# CONFIG_SERIO_I8042 is not set
398CONFIG_SERIO_SERPORT=y
399# CONFIG_SERIO_CT82C710 is not set
400# CONFIG_SERIO_LIBPS2 is not set
401# CONFIG_SERIO_RAW is not set
402
403#
404# Input Device Drivers
405#
406# CONFIG_INPUT_KEYBOARD is not set
407# CONFIG_INPUT_MOUSE is not set
408# CONFIG_INPUT_JOYSTICK is not set
409# CONFIG_INPUT_TOUCHSCREEN is not set
410# CONFIG_INPUT_MISC is not set
411
412#
413# Character devices
414#
415CONFIG_VT=y
416CONFIG_VT_CONSOLE=y
417CONFIG_HW_CONSOLE=y
418# CONFIG_SERIAL_NONSTANDARD is not set
419
420#
421# Serial drivers
422#
423# CONFIG_SERIAL_8250 is not set
424
425#
426# Non-8250 serial port support
427#
428CONFIG_SERIAL_CORE=y
429CONFIG_SERIAL_CORE_CONSOLE=y
430CONFIG_SERIAL_M32R_SIO=y
431CONFIG_SERIAL_M32R_SIO_CONSOLE=y
432# CONFIG_SERIAL_M32R_PLDSIO is not set
433CONFIG_UNIX98_PTYS=y
434CONFIG_LEGACY_PTYS=y
435CONFIG_LEGACY_PTY_COUNT=256
436
437#
438# IPMI
439#
440# CONFIG_IPMI_HANDLER is not set
441
442#
443# Watchdog Cards
444#
445# CONFIG_WATCHDOG is not set
446# CONFIG_RTC is not set
447# CONFIG_GEN_RTC is not set
448# CONFIG_DTLK is not set
449# CONFIG_R3964 is not set
450
451#
452# Ftape, the floppy tape device driver
453#
454# CONFIG_DRM is not set
455
456#
457# PCMCIA character devices
458#
459# CONFIG_SYNCLINK_CS is not set
460# CONFIG_RAW_DRIVER is not set
461
462#
463# I2C support
464#
465# CONFIG_I2C is not set
466
467#
468# Dallas's 1-wire bus
469#
470# CONFIG_W1 is not set
471
472#
473# Misc devices
474#
475
476#
477# Multimedia devices
478#
479CONFIG_VIDEO_DEV=y
480
481#
482# Video For Linux
483#
484
485#
486# Video Adapters
487#
488# CONFIG_VIDEO_CPIA is not set
489# CONFIG_VIDEO_M32R_AR is not set
490
491#
492# Radio Adapters
493#
494# CONFIG_RADIO_MAESTRO is not set
495
496#
497# Digital Video Broadcasting Devices
498#
499# CONFIG_DVB is not set
500
501#
502# Graphics support
503#
504# CONFIG_FB is not set
505
506#
507# Console display driver support
508#
509# CONFIG_VGA_CONSOLE is not set
510CONFIG_DUMMY_CONSOLE=y
511
512#
513# Sound
514#
515# CONFIG_SOUND is not set
516
517#
518# USB support
519#
520# CONFIG_USB_ARCH_HAS_HCD is not set
521# CONFIG_USB_ARCH_HAS_OHCI is not set
522
523#
524# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
525#
526
527#
528# USB Gadget Support
529#
530# CONFIG_USB_GADGET is not set
531
532#
533# MMC/SD Card support
534#
535# CONFIG_MMC is not set
536
537#
538# InfiniBand support
539#
540# CONFIG_INFINIBAND is not set
541
542#
543# File systems
544#
545CONFIG_EXT2_FS=y
546# CONFIG_EXT2_FS_XATTR is not set
547CONFIG_EXT3_FS=m
548CONFIG_EXT3_FS_XATTR=y
549# CONFIG_EXT3_FS_POSIX_ACL is not set
550# CONFIG_EXT3_FS_SECURITY is not set
551CONFIG_JBD=m
552CONFIG_JBD_DEBUG=y
553CONFIG_FS_MBCACHE=y
554CONFIG_REISERFS_FS=m
555# CONFIG_REISERFS_CHECK is not set
556# CONFIG_REISERFS_PROC_INFO is not set
557# CONFIG_REISERFS_FS_XATTR is not set
558# CONFIG_JFS_FS is not set
559
560#
561# XFS support
562#
563# CONFIG_XFS_FS is not set
564# CONFIG_MINIX_FS is not set
565# CONFIG_ROMFS_FS is not set
566# CONFIG_QUOTA is not set
567CONFIG_DNOTIFY=y
568# CONFIG_AUTOFS_FS is not set
569# CONFIG_AUTOFS4_FS is not set
570
571#
572# CD-ROM/DVD Filesystems
573#
574CONFIG_ISO9660_FS=m
575CONFIG_JOLIET=y
576# CONFIG_ZISOFS is not set
577CONFIG_UDF_FS=m
578CONFIG_UDF_NLS=y
579
580#
581# DOS/FAT/NT Filesystems
582#
583CONFIG_FAT_FS=m
584CONFIG_MSDOS_FS=m
585CONFIG_VFAT_FS=m
586CONFIG_FAT_DEFAULT_CODEPAGE=437
587CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
588# CONFIG_NTFS_FS is not set
589
590#
591# Pseudo filesystems
592#
593CONFIG_PROC_FS=y
594CONFIG_PROC_KCORE=y
595CONFIG_SYSFS=y
596CONFIG_DEVFS_FS=y
597CONFIG_DEVFS_MOUNT=y
598# CONFIG_DEVFS_DEBUG is not set
599# CONFIG_DEVPTS_FS_XATTR is not set
600CONFIG_TMPFS=y
601# CONFIG_TMPFS_XATTR is not set
602# CONFIG_HUGETLB_PAGE is not set
603CONFIG_RAMFS=y
604
605#
606# Miscellaneous filesystems
607#
608# CONFIG_ADFS_FS is not set
609# CONFIG_AFFS_FS is not set
610# CONFIG_HFS_FS is not set
611# CONFIG_HFSPLUS_FS is not set
612# CONFIG_BEFS_FS is not set
613# CONFIG_BFS_FS is not set
614# CONFIG_EFS_FS is not set
615# CONFIG_CRAMFS is not set
616# CONFIG_VXFS_FS is not set
617# CONFIG_HPFS_FS is not set
618# CONFIG_QNX4FS_FS is not set
619# CONFIG_SYSV_FS is not set
620# CONFIG_UFS_FS is not set
621
622#
623# Network File Systems
624#
625CONFIG_NFS_FS=y
626CONFIG_NFS_V3=y
627# CONFIG_NFS_V4 is not set
628# CONFIG_NFS_DIRECTIO is not set
629# CONFIG_NFSD is not set
630CONFIG_ROOT_NFS=y
631CONFIG_LOCKD=y
632CONFIG_LOCKD_V4=y
633CONFIG_SUNRPC=y
634# CONFIG_RPCSEC_GSS_KRB5 is not set
635# CONFIG_RPCSEC_GSS_SPKM3 is not set
636# CONFIG_SMB_FS is not set
637# CONFIG_CIFS is not set
638# CONFIG_NCP_FS is not set
639# CONFIG_CODA_FS is not set
640# CONFIG_AFS_FS is not set
641
642#
643# Partition Types
644#
645# CONFIG_PARTITION_ADVANCED is not set
646CONFIG_MSDOS_PARTITION=y
647
648#
649# Native Language Support
650#
651CONFIG_NLS=y
652CONFIG_NLS_DEFAULT="iso8859-1"
653# CONFIG_NLS_CODEPAGE_437 is not set
654# CONFIG_NLS_CODEPAGE_737 is not set
655# CONFIG_NLS_CODEPAGE_775 is not set
656# CONFIG_NLS_CODEPAGE_850 is not set
657# CONFIG_NLS_CODEPAGE_852 is not set
658# CONFIG_NLS_CODEPAGE_855 is not set
659# CONFIG_NLS_CODEPAGE_857 is not set
660# CONFIG_NLS_CODEPAGE_860 is not set
661# CONFIG_NLS_CODEPAGE_861 is not set
662# CONFIG_NLS_CODEPAGE_862 is not set
663# CONFIG_NLS_CODEPAGE_863 is not set
664# CONFIG_NLS_CODEPAGE_864 is not set
665# CONFIG_NLS_CODEPAGE_865 is not set
666# CONFIG_NLS_CODEPAGE_866 is not set
667# CONFIG_NLS_CODEPAGE_869 is not set
668# CONFIG_NLS_CODEPAGE_936 is not set
669# CONFIG_NLS_CODEPAGE_950 is not set
670# CONFIG_NLS_CODEPAGE_932 is not set
671# CONFIG_NLS_CODEPAGE_949 is not set
672# CONFIG_NLS_CODEPAGE_874 is not set
673# CONFIG_NLS_ISO8859_8 is not set
674# CONFIG_NLS_CODEPAGE_1250 is not set
675# CONFIG_NLS_CODEPAGE_1251 is not set
676# CONFIG_NLS_ASCII is not set
677# CONFIG_NLS_ISO8859_1 is not set
678# CONFIG_NLS_ISO8859_2 is not set
679# CONFIG_NLS_ISO8859_3 is not set
680# CONFIG_NLS_ISO8859_4 is not set
681# CONFIG_NLS_ISO8859_5 is not set
682# CONFIG_NLS_ISO8859_6 is not set
683# CONFIG_NLS_ISO8859_7 is not set
684# CONFIG_NLS_ISO8859_9 is not set
685# CONFIG_NLS_ISO8859_13 is not set
686# CONFIG_NLS_ISO8859_14 is not set
687# CONFIG_NLS_ISO8859_15 is not set
688# CONFIG_NLS_KOI8_R is not set
689# CONFIG_NLS_KOI8_U is not set
690# CONFIG_NLS_UTF8 is not set
691
692#
693# Profiling support
694#
695# CONFIG_PROFILING is not set
696
697#
698# Kernel hacking
699#
700# CONFIG_DEBUG_KERNEL is not set
701CONFIG_DEBUG_PREEMPT=y
702# CONFIG_DEBUG_BUGVERBOSE is not set
703# CONFIG_FRAME_POINTER is not set
704
705#
706# Security options
707#
708# CONFIG_KEYS is not set
709# CONFIG_SECURITY is not set
710
711#
712# Cryptographic options
713#
714# CONFIG_CRYPTO is not set
715
716#
717# Hardware crypto devices
718#
719
720#
721# Library routines
722#
723# CONFIG_CRC_CCITT is not set
724CONFIG_CRC32=y
725# CONFIG_LIBCRC32C is not set
diff --git a/arch/m32r/mappi2/dot.gdbinit.vdec2 b/arch/m32r/mappi2/dot.gdbinit.vdec2
new file mode 100644
index 000000000000..797a830bd4b7
--- /dev/null
+++ b/arch/m32r/mappi2/dot.gdbinit.vdec2
@@ -0,0 +1,233 @@
1# .gdbinit file
2# $Id: dot.gdbinit.vdec2,v 1.2 2004/11/11 02:03:15 takata Exp $
3
4# setting
5set width 0d70
6set radix 0d16
7use_debug_dma
8
9# Initialize SDRAM controller for Mappi
10define sdram_init
11 # SDIR0
12 set *(unsigned long *)0x00ef6008=0x00000182
13 # SDIR1
14 set *(unsigned long *)0x00ef600c=0x00000001
15 # Initialize wait
16 shell sleep 1
17 # Ch0-MOD
18 set *(unsigned long *)0x00ef602c=0x00000020
19 # Ch0-TR
20 set *(unsigned long *)0x00ef6028=0x00041302
21 # Ch0-ADR
22 set *(unsigned long *)0x00ef6020=0x08000004
23 # AutoRef On
24 set *(unsigned long *)0x00ef6004=0x00010705
25 # Access enable
26 set *(unsigned long *)0x00ef6024=0x00000001
27end
28document sdram_init
29 Mappi SDRAM controller initialization
30 0x08000000 - 0x0bffffff (64MB)
31end
32
33# Initialize SDRAM controller for Mappi
34define sdram_init2
35 # SDIR0
36 set *(unsigned long *)0x00ef6008=0x00000182
37 # Ch0-MOD
38 set *(unsigned long *)0x00ef602c=0x00000020
39 # Ch0-TR
40 set *(unsigned long *)0x00ef6028=0x00010002
41 # Ch0-ADR
42 set *(unsigned long *)0x00ef6020=0x08000004
43 # AutoRef On
44 set *(unsigned long *)0x00ef6004=0x00010107
45 # SDIR1
46 set *(unsigned long *)0x00ef600c=0x00000001
47 # Initialize wait
48 shell sleep 1
49 # Access enable
50 set *(unsigned long *)0x00ef6024=0x00000001
51 shell sleep 1
52end
53document sdram_init
54 Mappi SDRAM controller initialization
55 0x08000000 - 0x0bffffff (64MB)
56end
57
58# Initialize LAN controller for Mappi
59define lanc_init
60 # Set BSEL1 (BSEL3 for the Chaos's bselc)
61 #set *(unsigned long *)0x00ef5004 = 0x0fff330f
62 #set *(unsigned long *)0x00ef5004 = 0x01113301
63
64# set *(unsigned long *)0x00ef5004 = 0x02011101
65# set *(unsigned long *)0x00ef5004 = 0x04441104
66
67 # BSEL5
68# set *(unsigned long *)0x00ef5014 = 0x0ccc310c
69# set *(unsigned long *)0x00ef5014 = 0x0303310f
70# set *(unsigned long *)0x00ef5014 = 0x01011102 -> NG
71# set *(unsigned long *)0x00ef5014 = 0x03033103
72
73 set *(unsigned long *)0x00ef500c = 0x0b0b1304
74 set *(unsigned long *)0x00ef5010 = 0x03033302
75# set *(unsigned long *)0x00ef5018 = 0x02223302
76end
77
78# MMU enable
79define mmu_enable
80 set $evb=0x88000000
81 set *(unsigned long *)0xffff0024=1
82end
83
84# MMU disable
85define mmu_disable
86 set $evb=0
87 set *(unsigned long *)0xffff0024=0
88end
89
90# Show TLB entries
91define show_tlb_entries
92 set $i = 0
93 set $addr = $arg0
94 while ($i < 0d16 )
95 set $tlb_tag = *(unsigned long*)$addr
96 set $tlb_data = *(unsigned long*)($addr + 4)
97 printf " [%2d] 0x%08lx : 0x%08lx - 0x%08lx\n", $i, $addr, $tlb_tag, $tlb_data
98 set $i = $i + 1
99 set $addr = $addr + 8
100 end
101end
102define itlb
103 set $itlb=0xfe000000
104 show_tlb_entries $itlb
105end
106define dtlb
107 set $dtlb=0xfe000800
108 show_tlb_entries $dtlb
109end
110
111# Cache ON
112define set_cache_type
113 set $mctype = (void*)0xfffffff8
114# chaos
115# set *(unsigned long *)($mctype) = 0x0000c000
116# m32102 i-cache only
117 set *(unsigned long *)($mctype) = 0x00008000
118# m32102 d-cache only
119# set *(unsigned long *)($mctype) = 0x00004000
120end
121define cache_on
122 set $param = (void*)0x08001000
123 set *(unsigned long *)($param) = 0x60ff6102
124end
125
126
127# Show current task structure
128define show_current
129 set $current = $spi & 0xffffe000
130 printf "$current=0x%08lX\n",$current
131 print *(struct task_struct *)$current
132end
133
134# Show user assigned task structure
135define show_task
136 set $task = $arg0 & 0xffffe000
137 printf "$task=0x%08lX\n",$task
138 print *(struct task_struct *)$task
139end
140document show_task
141 Show user assigned task structure
142 arg0 : task structure address
143end
144
145# Show M32R registers
146define show_regs
147 printf " R0[0x%08lX] R1[0x%08lX] R2[0x%08lX] R3[0x%08lX]\n",$r0,$r1,$r2,$r3
148 printf " R4[0x%08lX] R5[0x%08lX] R6[0x%08lX] R7[0x%08lX]\n",$r4,$r5,$r6,$r7
149 printf " R8[0x%08lX] R9[0x%08lX] R10[0x%08lX] R11[0x%08lX]\n",$r8,$r9,$r10,$r11
150 printf "R12[0x%08lX] FP[0x%08lX] LR[0x%08lX] SP[0x%08lX]\n",$r12,$fp,$lr,$sp
151 printf "PSW[0x%08lX] CBR[0x%08lX] SPI[0x%08lX] SPU[0x%08lX]\n",$psw,$cbr,$spi,$spu
152 printf "BPC[0x%08lX] PC[0x%08lX] ACCL[0x%08lX] ACCH[0x%08lX]\n",$bpc,$pc,$accl,$acch
153 printf "EVB[0x%08lX]\n",$evb
154
155 set $mests = *(unsigned long *)0xffff000c
156 set $mdeva = *(unsigned long *)0xffff0010
157 printf "MESTS[0x%08lX] MDEVA[0x%08lX]\n",$mests,$mdeva
158end
159
160
161# Setup all
162define setup
163 sdram_init
164# lanc_init
165# dispc_init
166# set $evb=0x08000000
167end
168
169# Load modules
170define load_modules
171 use_debug_dma
172 load
173# load busybox.mot
174end
175
176# Set kernel parameters
177define set_kernel_parameters
178 set $param = (void*)0x08001000
179
180 ## MOUNT_ROOT_RDONLY
181 set {long}($param+0x00)=0
182 ## RAMDISK_FLAGS
183 #set {long}($param+0x04)=0
184 ## ORIG_ROOT_DEV
185 #set {long}($param+0x08)=0x00000100
186 ## LOADER_TYPE
187 #set {long}($param+0x0C)=0
188 ## INITRD_START
189 set {long}($param+0x10)=0x082a0000
190 ## INITRD_SIZE
191 set {long}($param+0x14)=0d6200000
192
193 # M32R_CPUCLK
194 set *(unsigned long *)($param + 0x0018) = 0d25000000
195 # M32R_BUSCLK
196 set *(unsigned long *)($param + 0x001c) = 0d25000000
197 # M32R_TIMER_DIVIDE
198 set *(unsigned long *)($param + 0x0020) = 0d128
199
200
201 set {char[0x200]}($param + 0x100) = "console=ttyS0,115200n8x root=/dev/nfsroot nfsroot=192.168.0.1:/project/m32r-linux/export/root.2.6 nfsaddrs=192.168.0.102:192.168.0.1:192.168.0.1:255.255.255.0:mappi: \0"
202
203
204end
205
206# Boot
207define boot
208 set_kernel_parameters
209 debug_chaos
210 set $pc=0x08002000
211 set $fp=0
212 del b
213 si
214end
215
216# Restart
217define restart
218 sdireset
219 sdireset
220 setup
221 load_modules
222 boot
223end
224
225sdireset
226sdireset
227file vmlinux
228target m32rsdi
229
230restart
231boot
232
233