Home | History | Annotate | Line # | Download | only in conf
      1 #
      2 #	$NetBSD: SUNXI,v 1.56 2017/12/16 20:44:54 jmcneill Exp $
      3 #
      4 #	Allwinner sunxi family
      5 #
      6 
      7 include	"arch/evbarm/conf/std.sunxi"
      8 include	"arch/evbarm/conf/GENERIC.common"
      9 
     10 makeoptions	DTSGNUARCH="arm arm64"
     11 makeoptions	DTSSUBDIR="allwinner"
     12 makeoptions	DTS="
     13 	sun4i-a10-a1000.dts
     14 	sun4i-a10-ba10-tvbox.dts
     15 	sun4i-a10-chuwi-v7-cw0825.dts
     16 	sun4i-a10-cubieboard.dts
     17 	sun4i-a10-dserve-dsrv9703c.dts
     18 	sun4i-a10-gemei-g9.dts
     19 	sun4i-a10-hackberry.dts
     20 	sun4i-a10-hyundai-a7hd.dts
     21 	sun4i-a10-inet1.dts
     22 	sun4i-a10-inet97fv2.dts
     23 	sun4i-a10-inet9f-rev03.dts
     24 	sun4i-a10-itead-iteaduino-plus.dts
     25 	sun4i-a10-jesurun-q5.dts
     26 	sun4i-a10-marsboard.dts
     27 	sun4i-a10-mini-xplus.dts
     28 	sun4i-a10-mk802.dts
     29 	sun4i-a10-mk802ii.dts
     30 	sun4i-a10-olinuxino-lime.dts
     31 	sun4i-a10-pcduino.dts
     32 	sun4i-a10-pcduino2.dts
     33 	sun4i-a10-pov-protab2-ips9.dts
     34 
     35 	sun5i-a13-difrnce-dit4350.dts
     36 	sun5i-a13-empire-electronix-d709.dts
     37 	sun5i-a13-empire-electronix-m712.dts
     38 	sun5i-a13-hsg-h702.dts
     39 	sun5i-a13-inet-98v-rev2.dts
     40 	sun5i-a13-licheepi-one.dts
     41 	sun5i-a13-olinuxino-micro.dts
     42 	sun5i-a13-olinuxino.dts
     43 	sun5i-a13-q8-tablet.dts
     44 	sun5i-a13-utoo-p66.dts
     45 
     46 	sun5i-gr8-evb.dts
     47 	sun5i-gr8-chip-pro.dts
     48 
     49 	sun5i-r8-chip.dts
     50 	sun5i-r8-pocketchip.dts
     51 
     52 	sun6i-a31-app4-evb1.dts
     53 	sun6i-a31-colombus.dts
     54 	sun6i-a31-hummingbird.dts
     55 	sun6i-a31-i7.dts
     56 	sun6i-a31-m9.dts
     57 	sun6i-a31-mele-a1000g-quad.dts
     58 
     59 	sun7i-a20-bananapi-m1-plus.dts
     60 	sun7i-a20-bananapi.dts
     61 	sun7i-a20-bananapro.dts
     62 	sun7i-a20-cubieboard2.dts
     63 	sun7i-a20-cubietruck.dts
     64 	sun7i-a20-hummingbird.dts
     65 	sun7i-a20-i12-tvbox.dts
     66 	sun7i-a20-icnova-swac.dts
     67 	sun7i-a20-itead-ibox.dts
     68 	sun7i-a20-lamobo-r1.dts
     69 	sun7i-a20-m3.dts
     70 	sun7i-a20-mk808c.dts
     71 	sun7i-a20-olimex-som-evb.dts
     72 	sun7i-a20-olinuxino-lime.dts
     73 	sun7i-a20-olinuxino-lime2-emmc.dts
     74 	sun7i-a20-olinuxino-lime2.dts
     75 	sun7i-a20-olinuxino-micro-emmc.dts
     76 	sun7i-a20-olinuxino-micro.dts
     77 	sun7i-a20-orangepi-mini.dts
     78 	sun7i-a20-orangepi.dts
     79 	sun7i-a20-pcduino3-nano.dts
     80 	sun7i-a20-pcduino3.dts
     81 	sun7i-a20-wexler-tab7200.dts
     82 	sun7i-a20-wits-pro-a20-dkt.dts
     83 
     84 	sun8i-a83t-allwinner-h8homlet-v2.dts
     85 	sun8i-a83t-bananapi-m3.dts
     86 	sun8i-a83t-cubietruck-plus.dts
     87 	sun8i-a83t-tbs-a711.dts
     88 
     89 	sun8i-h2-plus-orangepi-zero.dts
     90 
     91 	sun8i-h3-bananapi-m2-plus.dts
     92 	sun8i-h3-beelink-x2.dts
     93 	sun8i-h3-nanopi-m1.dts
     94 	sun8i-h3-nanopi-m1-plus.dts
     95 	sun8i-h3-nanopi-neo.dts
     96 	sun8i-h3-nanopi-neo-air.dts
     97 	sun8i-h3-orangepi-2.dts
     98 	sun8i-h3-orangepi-lite.dts
     99 	sun8i-h3-orangepi-one.dts
    100 	sun8i-h3-orangepi-pc-plus.dts
    101 	sun8i-h3-orangepi-pc.dts
    102 	sun8i-h3-orangepi-plus.dts
    103 	sun8i-h3-orangepi-plus2e.dts
    104 
    105 	sun9i-a80-cubieboard4.dts
    106 	sun9i-a80-optimus.dts
    107 
    108 	sun50i-a64-bananapi-m64.dts
    109 	sun50i-a64-nanopi-a64.dts
    110 	sun50i-a64-olinuxino.dts
    111 	sun50i-a64-orangepi-win.dts
    112 	sun50i-a64-pine64-plus.dts
    113 	sun50i-a64-pine64.dts
    114 	sun50i-a64-pinebook.dts
    115 	sun50i-a64-sopine-baseboard.dts
    116 
    117 	sun50i-h5-nanopi-neo-plus2.dts
    118 	sun50i-h5-nanopi-neo2.dts
    119 	sun50i-h5-orangepi-pc2.dts
    120 	sun50i-h5-orangepi-prime.dts
    121 	sun50i-h5-orangepi-zero-plus2.dts
    122 "
    123 
    124 options 	MULTIPROCESSOR
    125 
    126 options 	CPU_CORTEXA7
    127 options 	CPU_CORTEXA8
    128 options 	CPU_CORTEXA53
    129 
    130 options 	SOC_SUN4I_A10
    131 options 	SOC_SUN5I_A13
    132 options 	SOC_SUN6I_A31
    133 options 	SOC_SUN7I_A20
    134 options 	SOC_SUN8I_A83T
    135 options 	SOC_SUN8I_H3
    136 options 	SOC_SUN9I_A80
    137 options 	SOC_SUN50I_A64
    138 options 	SOC_SUN50I_H5
    139 
    140 pseudo-device 	openfirm	# /dev/openfirm
    141 
    142 #options 	DIAGNOSTIC	# internal consistency checks
    143 #options 	DEBUG
    144 #options 	LOCKDEBUG
    145 #options 	PMAP_DEBUG	# Enable pmap_debug_level code
    146 #options 	IPKDB		# remote kernel debugging
    147 #options 	VERBOSE_INIT_ARM # verbose bootstrapping messages
    148 # CONSADDR is required for early init messages from VERBOSE_INIT_ARM.
    149 #options 	CONSADDR=0x01c28000
    150 
    151 makeoptions	DEBUG="-g"	# compile full symbol table
    152 makeoptions	COPY_SYMTAB=1
    153 
    154 config		netbsd		root on ? type ?
    155 
    156 # Device tree support
    157 armfdt0		at root
    158 fdt*		at fdtbus?
    159 
    160 # CPUs
    161 cpus*		at fdt? pass 0
    162 cpu*		at cpus?
    163 cpufreqdt*	at cpu?
    164 
    165 # Power state coordination interface
    166 psci*		at fdt?
    167 
    168 # Clock and reset controllers
    169 sun4ia10ccu*	at fdt? pass 2		# A10/A20 CCU
    170 sun5ia13ccu*	at fdt? pass 2		# A13 CCU
    171 sun6ia31ccu*	at fdt? pass 2		# A31 CCU
    172 sun8ia83tccu*	at fdt? pass 2		# A83T CCU
    173 sun8ih3ccu*	at fdt? pass 2		# H3 CCU
    174 sun8ih3rccu*	at fdt? pass 2		# H3 CCU (PRCM)
    175 sun9ia80ccu*	at fdt? pass 2		# A80 CCU
    176 sun50ia64ccu*	at fdt? pass 2		# A64 CCU
    177 sunxiresets*	at fdt? pass 1		# Misc. clock resets
    178 sunxigates*	at fdt? pass 1		# Misc. clock gates
    179 sunxigmacclk*	at fdt? pass 2		# GMAC MII/RGMII clock mux
    180 sun9immcclk*	at fdt? pass 2		# A80 SD/MMC-COMM
    181 
    182 fclock*		at fdt? pass 1
    183 ffclock*	at fdt? pass 1
    184 fregulator*	at fdt? pass 4
    185 gregulator*	at fdt? pass 4
    186 gpiokeys*	at fdt?
    187 wskbd*		at gpiokeys? console ? mux 1
    188 gpioleds*	at fdt?
    189 
    190 # SRAM controller
    191 sunxisramc*	at fdt? pass 4		# SRAM controller
    192 
    193 # Timer
    194 gtmr*		at fdt? pass 1		# ARM Generic Timer
    195 armgtmr0	at gtmr?
    196 sunxitimer*	at fdt? 		# Allwinner async timer
    197 
    198 # Watchdog
    199 sunxiwdt*	at fdt?			# Allwinner watchdog
    200 
    201 # Interrupt controller
    202 gic*		at fdt? pass 1		# GIC
    203 armgic0		at gic?
    204 sunxiintc*	at fdt? pass 1		# Allwinner INTC
    205 
    206 # Memory controller
    207 
    208 # DMA controller
    209 sun4idma*	at fdt?			# DMA controller (sun4i)
    210 sun6idma*	at fdt?			# DMA controller (sun6i)
    211 
    212 # GPIO controller
    213 sunxigpio*	at fdt? pass 3		# GPIO
    214 gpio*		at gpiobus?
    215 
    216 # Ethernet
    217 sun4iemac*	at fdt?			# Allwinner Fast Ethernet (EMAC)
    218 sunxiemac*	at fdt?			# Allwinner Gigabit Ethernet (EMAC)
    219 awge*		at fdt?			# Allwinner Gigabit Ethernet (GMAC)
    220 rgephy*		at mii? phy ?
    221 rlphy*		at mii? phy ?
    222 ukphy*		at mii? phy ?
    223 
    224 # UART
    225 com*		at fdt?			# UART
    226 
    227 # I2C
    228 sunxitwi*	at fdt?			# TWI
    229 sunxirsb*	at fdt?			# P2WI/RSB
    230 iic*		at i2cbus?
    231 tcakp*		at iic?			# TI TCA8418 Keypad Scan IC
    232 wskbd*		at tcakp? console ?
    233 axp20x*		at iic?			# AXP209 Power Management IC
    234 axp20xreg*	at axp20x?
    235 axp22x*		at iic?			# AXP221 Power Management IC
    236 sy8106a*	at iic?			# Silergy SY81061 regulator
    237 pcf8563rtc*	at iic?			# PCF8563 RTC
    238 seeprom*	at iic?			# AT24Cxx Serial EEPROM
    239 
    240 # RTC
    241 sunxirtc*	at fdt?			# RTC
    242 
    243 # Security ID EFUSE
    244 sunxisid*	at fdt?	pass 4		# SID
    245 
    246 # Thermal sensor
    247 sunxithermal*	at fdt?			# Thermal sensor controller
    248 
    249 # Audio
    250 sunxicodec*	at fdt?			# Audio codec
    251 h3codec*	at fdt?			# H3 audio codec (analog part)
    252 audio*		at audiobus?
    253 spkr*		at audio?
    254 
    255 # SDMMC
    256 mmcpwrseq*	at fdt?			# Simple MMC power sequence provider
    257 sunximmc*	at fdt?			# SDMMC
    258 sdmmc*		at sunximmc?
    259 ld0		at sdmmc0
    260 ld1		at sdmmc1
    261 ld2		at sdmmc2
    262 ld3		at sdmmc3
    263 ld*		at sdmmc?
    264 
    265 # NAND Flash
    266 sunxinand*	at fdt?			# NAND flash controller
    267 nand*		at nandbus?
    268 flash*		at nand? dynamic 1
    269 
    270 # SATA
    271 ahcisata*	at fdt?			# SATA
    272 atabus*		at ata?
    273 wd*		at atabus? drive ?
    274 
    275 # Display
    276 genfb*		at fdt?
    277 wsdisplay*	at genfb?
    278 options 	VCONS_DRAW_INTR
    279 options 	WSEMUL_VT100
    280 options 	WS_DEFAULT_FG=WSCOL_WHITE
    281 options 	WS_DEFAULT_BG=WSCOL_BLACK
    282 options 	WS_KERNEL_FG=WSCOL_GREEN
    283 options 	WS_KERNEL_BG=WSCOL_BLACK
    284 options 	WSDISPLAY_COMPAT_PCVT
    285 options 	WSDISPLAY_COMPAT_SYSCONS
    286 options 	WSDISPLAY_COMPAT_USL
    287 options 	WSDISPLAY_COMPAT_RAWKBD
    288 options 	WSDISPLAY_DEFAULTSCREENS=4
    289 options 	WSDISPLAY_MULTICONS
    290 
    291 # Touch Screen controller
    292 sunxits*	at fdt?			# Touch Screen controller
    293 wsmouse*	at sunxits? mux 0
    294 
    295 # wscons pseudo-devices
    296 pseudo-device	wsfont
    297 pseudo-device	wsmux
    298 
    299 # USB 2.0
    300 sunxiusbphy*	at fdt?	pass 9		# USB PHY
    301 ehci*		at fdt?			# EHCI
    302 ohci*		at fdt?			# OHCI
    303 motg*		at fdt?			# USB OTG
    304 usb*		at ehci?
    305 usb*		at ohci?
    306 usb*		at motg?
    307 
    308 include "dev/usb/usbdevices.config"
    309 midi*		at midibus?
    310 
    311 cinclude "arch/evbarm/conf/SUNXI.local"
    312