TS7200 revision 1.77
1# $NetBSD: TS7200,v 1.77 2021/06/29 10:22:35 nia Exp $ 2# 3# TS7200 - Kernel for Technologic Systems TS7200 ARM hardware 4# 5# Note - the kernel size for this hardware has two limitations: 6# 7# 1) The total size of the kernel (text, data, and bss) must fit 8# within 8MB. This is mainly an issue for the INSTALL kernel 9# (TS7200_INSTALL) 10# 2) If you wish to install this kernel in flash, the compressed size 11# (including the gunzip booter) must fit within 1441792 bytes. 12# 13# If you add new devices to this kernel, please check these limitations. 14# 15 16include "arch/evbarm/conf/std.tsarm" 17 18#options INCLUDE_CONFIG_FILE # embed config file in kernel binary 19options MSGBUFSIZE=65536 20#options KSTACK_CHECK_MAGIC 21 22# estimated number of users 23maxusers 32 24 25# Standard system options 26 27options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 28options NTP # NTP phase/frequency locked loop 29 30# CPU options 31 32options CPU_ARM9 # Support the ARM9TDMI core 33 34# File systems 35 36file-system FFS # UFS 37#file-system LFS # log-structured file system 38file-system MFS # memory file system 39file-system NFS # Network file system 40#file-system ADOSFS # AmigaDOS-compatible file system 41file-system EXT2FS # second extended file system (linux) 42#file-system CD9660 # ISO 9660 + Rock Ridge file system 43file-system MSDOSFS # MS-DOS file system 44#file-system FDESC # /dev/fd 45#file-system FILECORE # Acorn filecore file system 46file-system KERNFS # /kern 47#file-system NULLFS # loopback file system 48file-system PROCFS # /proc 49#file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 50#file-system UMAPFS # NULLFS + uid and gid remapping 51#file-system UNION # union file system 52file-system PTYFS # /dev/pts/N support 53 54# File system options 55#options QUOTA # legacy UFS quotas 56#options QUOTA2 # new, in-filesystem UFS quotas 57#options DISKLABEL_EI # disklabel Endian Independent support 58#options FFS_EI # FFS Endian Independent support 59options NFSSERVER 60options WAPBL # File system journaling support 61#options FFS_NO_SNAPSHOT # No FFS snapshot support 62 63# Networking options 64 65#options GATEWAY # packet forwarding 66options INET # IP + ICMP + TCP + UDP 67options INET6 # IPV6 68#options IPSEC # IP security 69#options IPSEC_DEBUG # debug for IP security 70#options MROUTING # IP multicast routing 71#options NETATALK # AppleTalk networking 72#options PPP_BSDCOMP # BSD-Compress compression support for PPP 73#options PPP_DEFLATE # Deflate compression support for PPP 74#options PPP_FILTER # Active filter support for PPP (requires bpf) 75#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 76 77options NFS_BOOT_BOOTP 78options NFS_BOOT_DHCP 79#options NFS_BOOT_BOOTPARAM 80 81# Compatibility options 82 83include "conf/compat_netbsd20.config" 84options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries 85 86# Shared memory options 87 88options SYSVMSG # System V-like message queues 89options SYSVSEM # System V-like semaphores 90options SYSVSHM # System V-like memory sharing 91 92# Device options 93 94#options MEMORY_DISK_HOOKS # boottime setup of ramdisk 95#options MEMORY_DISK_ROOT_SIZE=3400 # Size in blocks 96#options MEMORY_DISK_IS_ROOT # use memory disk as root 97 98# Console options. The default console is speed is 115200 baud. 99#options CONSPEED=9600 # Console speed 100 101# Miscellaneous kernel options 102options KTRACE # system call tracing, a la ktrace(1) 103options IRQSTATS # manage IRQ statistics 104#options SCSIVERBOSE # Verbose SCSI errors 105#options PCIVERBOSE # Verbose PCI descriptions 106#options MIIVERBOSE # Verbose MII autoconfuration messages 107#options PCI_CONFIG_DUMP # verbosely dump PCI config space 108#options DDB_KEYCODE=0x40 109#options USERCONF # userconf(4) support 110#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 111 112# Development and Debugging options 113 114options DIAGNOSTIC # internal consistency checks 115#options DEBUG 116#options UVMHIST # kernhist for uvm/pmap subsystems 117#options VERBOSE_INIT_ARM # verbose bootstraping messages 118options DDB # in-kernel debugger 119options DDB_ONPANIC=1 120options DDB_HISTORY_SIZE=100 # Enable history editing in DDB 121#makeoptions DEBUG="-g" # compile full symbol table 122makeoptions COPY_SYMTAB=1 123 124##options PMAP_INCLUDE_PTE_SYNC 125##options LOCKDEBUG 126 127config netbsd root on ? type ? 128config netbsd-epe0 root on epe0 type nfs 129config netbsd-wd0 root on wd0 type ffs 130#config netbsd-sd0 root on sd0 type ffs 131 132# The main bus device 133mainbus0 at root 134 135# The boot cpu 136cpu0 at mainbus? 137 138# Cirrus Logic EP93xx System-on-chip 139epsoc0 at mainbus? 140# On-chip timers 141epclk0 at epsoc? addr 0x80810000 size 0x90 intr 35 142# On-chip serial UARTS 143epcom0 at epsoc? addr 0x808c0000 size 0x1000 intr 52 144epcom1 at epsoc? addr 0x808d0000 size 0x1000 intr 54 145# On-chip USB 1.1 146ohci* at epsoc? addr 0x80020000 size 0x1000 intr 56 147# On-chip 10/100 Ethernet 148epe0 at epsoc? addr 0x80010000 size 0x10000 intr 39 149# On-board TS-7200 CPLD 150tspld0 at mainbus? 151# PC/104 bus 152isa0 at tspld? 153# CompactFlash interface 154wdc0 at tspld? 155# TS-5620 battery-backed real-time clock 156tsrtc* at tspld? 157# On-board GPIO ports. Note that only 20 total GPIO pins are available 158# across all ports 159epgpio0 at epsoc? addr 0x80840000 size 0xcc intr 59 160gpio* at epgpio? 161options EPGPIO_PORT_C_MASK=0x00 162options EPGPIO_PORT_D_MASK=0x00 163options EPGPIO_PORT_E_MASK=0x00 164options EPGPIO_PORT_F_MASK=0x02 165options EPGPIO_PORT_G_MASK=0x00 166options EPGPIO_PORT_H_MASK=0x38 167 168# HD44780 LCD on LCD header 169#tslcd* at tspld? 170#wsdisplay* at tslcd? console ? 171 172# 4x4 Matrix Keypad on DIO header 173#tskp* at tspld? 174#wskbd* at tskp? console ? mux 1 175 176# TS-SER[1,2,4] multiport serial PC/104 cards 177com0 at isa? port 0x3f8 irq 6 # Standard PC serial ports 178com1 at isa? port 0x2f8 irq 6 179com2 at isa? port 0x3e8 irq 6 180com3 at isa? port 0x2e8 irq 6 181 182wdc1 at isa? port 0x1f0 irq 7 flags 0x00 183wdc2 at isa? port 0x170 irq 7 flags 0x00 184 185tscs0 at isa? port 0x300 iomem ? irq ? drq ? # TS-ETH10 PC/104 ethernet 186tscs1 at isa? port 0x310 iomem ? irq ? drq ? 187tscs2 at isa? port 0x320 iomem ? irq ? drq ? 188tscs3 at isa? port 0x330 iomem ? irq ? drq ? 189 190tsdio0 at isa? port 0x100 # TS-DIO24 general-purpose I/O 191tsdio1 at isa? port 0x108 192tsdio2 at isa? port 0x110 193tsdio3 at isa? port 0x118 194 195# PCMCIA bus support 196#pcmcia* at pcic? controller ? socket ? 197 198#options PCIC_ISA_INTR_ALLOC_MASK=0xe0 199# ISA PCMCIA controllers 200#pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000 201#pcic1 at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000 202#pcic2 at isa? port 0x3e4 iomem 0xe0000 iosiz 0x4000 203 204# ATA (IDE) bus support 205atabus* at ata? 206 207# IDE drives 208# Flags are used only with controllers that support DMA operations 209# and mode settings (e.g. some pciide controllers) 210# The lowest order four bits (rightmost digit) of the flags define the PIO 211# mode to use, the next set of four bits the DMA mode and the third set the 212# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode 213# to use, and the last bit must be 1 for this setting to be used. 214# For DMA and UDMA, 0xf (1111) means 'disable'. 215# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'. 216# (0xc=1100, 0xa=1010, 0xf=1111) 217# 0x0000 means "use whatever the drive claims to support". 218wd* at atabus? drive ? flags 0x00ff 219 220# ATAPI bus support 221#atapibus* at atapi? 222 223# ATAPI devices 224# flags have the same meaning as for IDE drives. 225# XXX No DMA on IDE devices for now 226#cd* at atapibus? drive ? flags 0x0ff0 # ATAPI CD-ROM drives 227#sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives 228#st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives 229#uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown 230 231# MII/PHY support 232#acphy* at mii? phy ? # Altima AC101 and AMD Am79c874 PHYs 233#amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs 234#bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202 PHYs 235#brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs 236#dmphy* at mii? phy ? # Davicom DM9101 PHYs 237#exphy* at mii? phy ? # 3Com internal PHYs 238#gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs 239#glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 240#gphyter* at mii? phy ? # NS83861 Gig-E PHY 241#icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 242#igphy* at mii? phy ? # Intel IGP01E1000 243#inphy* at mii? phy ? # Intel 82555 PHYs 244#iophy* at mii? phy ? # Intel 82553 PHYs 245#lxtphy* at mii? phy ? # Level One LXT-970 PHYs 246#makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 247#nsphy* at mii? phy ? # NS83840 PHYs 248#nsphyter* at mii? phy ? # NS83843 PHYs 249#pnaphy* at mii? phy ? # generic HomePNA PHYs 250#qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 251#rgephy* at mii? phy ? # Realtek 8169S/8110S/8211 PHYs 252#rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 253#sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 254#tlphy* at mii? phy ? # ThunderLAN PHYs 255#tqphy* at mii? phy ? # TDK Semiconductor PHYs 256ukphy* at mii? phy ? # generic unknown PHYs 257#urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 258 259# USB Controller and Devices 260 261# USB bus support 262#usb* at ehci? 263usb* at ohci? 264#usb* at uhci? 265#usb* at slhci? 266 267# USB Hubs 268uhub* at usb? 269uhub* at uhub? port ? 270 271# USB HID device 272#uhidev* at uhub? port ? configuration ? interface ? 273 274# USB Mice 275# ums* at uhidev? reportid ? 276# wsmouse* at ums? mux 0 277 278# USB eGalax touch-panel 279# uep* at uhub? port ? 280# wsmouse* at uep? mux 0 281 282# USB Keyboards 283#ukbd* at uhidev? reportid ? 284#wskbd* at ukbd? console ? mux 1 285 286# USB serial adapter 287#ucycom* at uhidev? reportid ? 288 289# USB Generic HID devices 290#uhid* at uhidev? reportid ? 291 292# USB Printer 293#ulpt* at uhub? port ? configuration ? interface ? 294 295# USB Modem 296#umodem* at uhub? port ? configuration ? 297#ucom* at umodem? 298 299# Option N.V. Wireless WAN modems 300#uhso* at uhub? port ? configuration ? 301 302# USB Mass Storage 303#umass* at uhub? port ? configuration ? interface ? 304#scsibus* at umass? 305# SCSI devices 306#sd* at scsibus? target ? lun ? # SCSI disk drives 307#st* at scsibus? target ? lun ? # SCSI tape drives 308#cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 309#ch* at scsibus? target ? lun ? # SCSI autochangers 310#ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices 311#ss* at scsibus? target ? lun ? # SCSI scanners 312#uk* at scsibus? target ? lun ? # SCSI unknown 313 314# USB audio 315#uaudio* at uhub? port ? configuration ? 316 317# USB MIDI 318#umidi* at uhub? port ? configuration ? 319 320# USB IrDA 321# USB-IrDA bridge spec 322#uirda* at uhub? port ? configuration ? interface ? 323#irframe* at uirda? 324 325# SigmaTel STIr4200 USB/IrDA Bridge 326#ustir* at uhub? port ? 327#irframe* at ustir? 328 329# USB Ethernet adapters 330#aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters 331#axe* at uhub? port ? # ASIX AX88172 based adapters 332#cue* at uhub? port ? # CATC USB-EL1201A based adapters 333#kue* at uhub? port ? # Kawasaki LSI KL5KUSB101B based adapters 334#mue* at uhub? port ? # Microchip LAN75xx/LAN78xx based adapters 335#udav* at uhub? port ? # Davicom DM9601 based adapters 336#ure* at uhub? port ? # Realtek RTL8152/RTL8153 based adapters 337#url* at uhub? port ? # Realtek RTL8150L based adapters 338 339# Prolific PL2301/PL2302 host-to-host adapter 340#upl* at uhub? port ? 341 342# Serial adapters 343#ubsa* at uhub? port ? # Belkin serial adapter 344#ucom* at ubsa? portno ? 345 346#uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 347#ucom* at uftdi? portno ? 348 349#umct* at uhub? port ? # MCT USB-RS232 serial adapter 350#ucom* at umct? portno ? 351 352#uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 353#ucom* at uplcom? portno ? 354 355#uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter 356#ucom* at uvscom? portno ? 357#atu* at uhub? port ? # Atmel AT76C50XX 802.11b adapter 358 359# USB Handspring Visor 360# uvisor* at uhub? port ? 361# ucom* at uvisor? 362 363# Kyocera AIR-EDGE PHONE 364#ukyopon* at uhub? port ? 365#ucom* at ukyopon? portno ? 366 367# USB scanners that use SCSI emulation, e.g., HP5300 368# usscanner* at uhub? port ? 369 370# D-Link DSB-R100 USB radio 371# udsbr* at uhub? port ? 372# radio* at udsbr? 373 374# USB Generic driver 375ugen* at uhub? port ? 376 377# IrDA and Consumer Ir devices 378 379# Toshiba Oboe 380# oboe* at pci? dev ? function ? 381# irframe* at oboe? 382 383# CardBus IEEE1394 controllers 384#fwohci* at cardbus? function ? # IEEE1394 Open Host Controller 385 386#fw* at fwbus? # IP over 1394 387 388# IEEE1394 nodes 389#fwnode* at fwbus? idhi ? idlo ? 390#sbpscsi* at fwnode? 391#scsibus* at sbpscsi? 392 393# Audio Devices 394 395# OPL[23] FM synthesizers 396#opl* at cmpci? flags 1 397#opl* at eso? 398#opl* at fms? 399#opl* at sv? 400#opl* at yds? 401 402# Audio support 403#audio* at audiobus? 404 405#spkr* at audio? # PC speaker (synthesized) 406 407# MPU 401 UARTs 408#mpu* at cmpci? 409#mpu* at eso? 410#mpu* at fms? 411#mpu* at yds? 412 413# MIDI support 414#midi* at midibus? 415 416# Pseudo-Devices 417 418# disk/mass storage pseudo-devices 419#pseudo-device md # memory disk device (ramdisk) 420pseudo-device vnd # disk-like interface to files 421#pseudo-device fss # file system snapshot device 422#pseudo-device putter # for puffs and pud 423 424# network pseudo-devices 425pseudo-device bpfilter # Berkeley packet filter 426pseudo-device loop # network loopback 427pseudo-device kttcp # network loopback 428 429# miscellaneous pseudo-devices 430pseudo-device pty # pseudo-terminals 431#options RND_COM 432pseudo-device clockctl # user control of clock subsystem 433pseudo-device ksyms # /dev/ksyms 434 435# data mover pseudo-devices 436#pseudo-device swdmover # software dmover(9) back-end 437#pseudo-device dmoverio # /dev/dmover dmover(9) interface 438 439# 440# wscons options 441# 442# builtin terminal emulations 443#options WSEMUL_SUN # sun terminal emulation 444#options WSEMUL_VT100 # VT100 / VT220 emulation 445# customization of console and kernel output - see dev/wscons/wsdisplayvar.h 446#options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8) 447#options WS_DEFAULT_FG=WSCOL_WHITE 448#options WS_DEFAULT_BG=WSCOL_BLACK 449#options WS_DEFAULT_COLATTR="(0)" 450#options WS_DEFAULT_MONOATTR="(0)" 451#options WS_KERNEL_FG=WSCOL_GREEN 452#options WS_KERNEL_BG=WSCOL_BLACK 453#options WS_KERNEL_COLATTR="" 454#options WS_KERNEL_MONOATTR="" 455# customization of console border color 456#options WSDISPLAY_CUSTOM_BORDER # border customization from wsconsctl(8) 457#options WSDISPLAY_BORDER_COLOR=WSCOL_BLUE # default color 458# compatibility to other console drivers 459#options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 460#options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 461#options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 462#options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 463# see dev/pckbport/wskbdmap_mfii.c for implemented layouts 464#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" 465# allocate a number of virtual screens at autoconfiguration time 466#options WSDISPLAY_DEFAULTSCREENS=4 467# use a large software cursor that doesn't blink 468#options PCDISPLAY_SOFTCURSOR 469# modify the screen type of the console; defaults to "80x25" 470#options VGA_CONSOLE_SCREENTYPE="\"80x24\"" 471# work around a hardware bug that loaded fonts don't work; found on ATI cards 472#options VGA_CONSOLE_ATI_BROKEN_FONTSEL 473# console scrolling support. 474#options WSDISPLAY_SCROLLSUPPORT 475# enable VGA raster mode capable of displaying multilingual text on console 476#options VGA_RASTERCONSOLE 477 478# wscons pseudo-devices 479#pseudo-device wsmux # mouse & keyboard multiplexor 480#pseudo-device wsfont 481 482