SAM460EX revision 1.7 1 # $NetBSD: SAM460EX,v 1.7 2026/09/28 20:41:00 rkujawa Exp $
2 #
3 # SAM460EX -- ACube Sam460ex (AMCC 460EX)
4 #
5
6 include "arch/evbppc/conf/std.sam460ex"
7
8 #ident "SAM460EX-$Revision: 1.7 $"
9
10 maxusers 32
11
12 options SAM460EX_FDT # parse U-Boot supplied device tree
13 options PPC4XX_L2CACHE # on-chip 256KB L2
14
15 #
16 # Diagnostic/debugging support options
17 #
18 #options DIAGNOSTIC # cheap kernel consistency checks
19 #options DEBUG # expensive debugging checks/support
20 options DDB # in-kernel debugger
21 options DDB_HISTORY_SIZE=512 # enable history editing in DDB
22 options TRAP_PANICWAIT
23 makeoptions COPY_SYMTAB=1 # size for embedded symbol table
24
25 options KTRACE # system call tracing
26
27 makeoptions DEBUG="-g" # compile full symbol table
28
29 #
30 # File systems
31 #
32 file-system FFS # UFS
33 file-system EXT2FS # Linux ext2fs
34 file-system MSDOSFS # FAT
35 file-system KERNFS # /kern
36 file-system PTYFS # /dev/pts/N support
37 file-system TMPFS # Efficient memory file-system
38
39 options FFS_EI # Enable Endian Independent
40
41 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
42 options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
43 options DKWEDGE_METHOD_RDB # Support RDB partitions as wedges
44
45 file-system NFS # Network File System client
46 options NFS_BOOT_DHCP # Support DHCP NFS root
47
48 #
49 # Networking options
50 #
51 options INET
52 options INET6
53
54 #
55 # Kernel root file system and dump configuration.
56 #
57 config netbsd root on ? type ?
58
59 #
60 # Device configuration
61 #
62 plb0 at root # Processor Local Bus
63 cpu0 at plb? # CPU
64
65 # On-chip Peripheral Bus support
66 opb* at plb? # On-chip Peripheral Bus
67 com* at opb? addr ? irq ? # UARTs
68 wdog* at opb? # On-chip Watchdog
69 ebc0 at plb? # External Bus Controller
70 samfpga0 at ebc0 bank 2 # Lattice XP2 FPGA
71 gpio0 at samfpga0 # GPIOs on J22 connector
72 opbgpio* at opb? addr ? irq ? # On-chip GPIO
73 gpio1 at opbgpio0 # GPIO0-31
74 gpio2 at opbgpio1 # GPIO32-63
75 gpiic* at opb? addr ? irq ? # On-chip IIC
76 iic* at gpiic? # I2C bus
77
78 strtc0 at iic0 addr 0x68 flags 62 # M41T62 RTC (M41T80 under QEMU)
79 spdmem0 at iic0 addr 0x50 # DDR2 SPD EEPROM
80
81 #seeprom0 at iic0 addr 0x54 flags 8 # U-Boot env EEPROM
82
83 # only EMAC0 is wired on the Sam460ex
84 emac0 at opb0 addr 0xef600e00 irq 80 # Ethernet Media Access Controller
85 options EMAC_EVENT_COUNTERS
86 options EMAC_RGMII_PHY # both EMACs use the RGMII0 bridge
87 options EMAC_TAH
88
89 # MII/PHY support
90 makphy* at mii? phy ? # Marvell 88E1121R (dual GbE PHY)
91 ukphy* at mii? phy ? # generic/unknown PHYs
92
93 # PCI bus support
94 options PCI_NETBSD_CONFIGURE
95 pcix0 at plb? # 460EX PLB-PCIX host bridge
96 pciex0 at plb? # 460EX PCIe root complex 0
97 pciex1 at plb? # 460EX PCIe root complex 1
98 pci* at pcix?
99 pci* at pciex?
100 ppb* at pci? dev ? function ? # PCI-PCI bridges
101 pci* at ppb? bus ?
102
103 # on-board SM502 framebuffer, selected via console=sm502
104 voyager0 at pci? dev ? function ? # SM502 multimedia processor
105 voyagerfb0 at voyager0 # SM502 framebuffer console
106 options VOYAGERFB_MODE_SETTING # DDC/EDID readout + mode-setting
107 vac0 at voyager0 # SM502 AC97-link (Realtek ALC655)
108
109 # audio
110 audio* at audiobus?
111
112 spkr* at audio? # tone interface, synthesized via audio
113 wsbell* at spkr? # bell for the wscons display
114
115 # selected via console=pci
116 radeonfb* at pci? dev ? function ? # ATI Radeon R100 - R3XX
117 pm2fb* at pci? dev ? function ? # 3Dlabs Permedia 2/2v framebuffer
118
119 wsdisplay* at wsemuldisplaydev?
120
121 options WSEMUL_VT100
122 options WSDISPLAY_SCROLLSUPPORT
123 options FONT_BOLD8x16 # bitmap font
124
125 satalink* at pci? dev ? function ? # SATALink
126 siisata* at pci? dev ? function ?
127
128 # SATA shares SERDES PHY with one of PCI root complexes, but we detect
129 # which one was enabled on the firmware level and configure accordingly.
130 dwcsata0 at plb? addr 0xbffd1000 irq 96 # on-chip DWC SATA-II
131 options DWCSATA_PIO_ONLY # force PIO mode
132
133 atabus* at ata?
134 wd* at atabus? drive ? flags 0x0000
135
136 # On-chip USB controllers.
137 #
138 # Due to 460ex CHIP_16 errata, we can not safely operate both EHCI and OHCI
139 # at the same time. However, it's not a huge deal in practice.
140 #ohci0 at plb? addr 0xbffd0000 irq 94
141 ehci0 at plb? addr 0xbffd0400 irq 93
142
143 # USB bus support
144 usb* at ehci0
145 #usb* at ohci0
146
147 # USB Hubs
148 uhub* at usb?
149 uhub* at uhub? port ?
150
151 # USB Mass Storage
152 umass* at uhub? port ? configuration ? interface ?
153 scsibus* at umass?
154 sd* at scsibus? target ? lun ? # SCSI disk drives
155
156 # USB HID devices
157 uhidev* at uhub? port ? configuration ? interface ?
158 ukbd* at uhidev? reportid ?
159 wskbd* at ukbd? console ?
160 ums* at uhidev? reportid ?
161 wsmouse* at ums? mux 0
162 uhid* at uhidev? reportid ?
163
164 #
165 # Pseudo devices
166 #
167 pseudo-device wsmux # keyboard/mouse multiplexor
168 pseudo-device wsfont # bitmap fonts for the wsdisplay console
169 pseudo-device loop # network loopback
170 pseudo-device pty # pseudo-terminals
171 pseudo-device clockctl # user control of clock subsystem
172 pseudo-device drvctl # detach/rescan devices
173 pseudo-device ksyms # /dev/ksyms
174