Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: KOBO,v 1.14 2023/02/09 14:09:48 abs Exp $
      2 #
      3 #	KOBO -- http://kobo.com
      4 #
      5 
      6 include	"arch/evbarm/conf/std.kobo"
      7 include	"arch/evbarm/conf/GENERIC.common"
      8 
      9 # CPU options
     10 options 	CPU_CORTEX	# Support the ARM-v7a core
     11 options		IMX51
     12 options 	IMX50
     13 options 	IMX508
     14 
     15 # Architecture options
     16 
     17 options 	MEMSTART=0x70000000
     18 options 	MEMSIZE=256
     19 options 	IMX51_IPGCLK_FREQ=50000000   # XXX This value is not correct.
     20 
     21 # Device options
     22 
     23 # Console options.    also need IMXUARTCONSOLE
     24 options 	CONSDEVNAME="\"imxuart\"",CONADDR=0x53fc0000
     25 options 	CONSPEED=115200	# Console speed
     26 
     27 #options 	DIAGNOSTIC	# internal consistency checks
     28 #options 	DEBUG
     29 #options 	UVMHIST		# kernhist for uvm/pmap subsystems
     30 #options 	KGDB
     31 makeoptions	DEBUG="-g"	# compile full symbol table
     32 makeoptions	COPY_SYMTAB=1
     33 
     34 # Valid options for BOOT_ARGS:
     35 #  single		Boot to single user only
     36 #  kndb			Give control to kernel debugger
     37 #  ask			Ask for file name to reboot from
     38 #  memorydisk=<n>	Set memorydisk size to <n> KB
     39 #  quiet		Show aprint_naive output
     40 #  verbose		Show aprint_normal and aprint_verbose output
     41 options		BOOT_ARGS="\"verbose\""
     42 
     43 # Kernel root file system and dump configuration.
     44 config		netbsd		root on ? type ?
     45 config		netbsd-ld0	root on ld0 type ffs
     46 
     47 # The main bus device
     48 mainbus0	at root
     49 
     50 # The boot cpu
     51 cpu*		at mainbus?
     52 
     53 # Devices
     54 # On-chip
     55 # On-chip bus
     56 axi0		at mainbus?
     57 
     58 # Interrupt Controller
     59 tzic0		at axi? addr 0x0fffc000 size 0x4000 irqbase 0
     60 
     61 # Serial
     62 #imxuart0	at axi? addr 0x53fbc000 irq 31		# UART1
     63 imxuart1	at axi? addr 0x53fc0000 irq 32
     64 #imxuart2	at axi? addr 0x5000c000 irq 33
     65 options		IMXUARTCONSOLE
     66 
     67 # Clock Control
     68 imxccm0		at axi? addr 0x53fd4000
     69 options		IMX51_CKIL_FREQ=32768
     70 
     71 # Enhanced Periodic Interrupt Timer
     72 imxclock0	at axi? addr 0x53fac000 size 0x4000 irq 40
     73 
     74 # IOMUX
     75 imxiomux0	at axi? addr 0x53fa8000
     76 
     77 # WatchDog
     78 imxwdog0	at axi? addr 0x53f98000 irq 58 flags 0
     79 
     80 # GPIO
     81 imxgpio0	at axi? addr 0x53f84000 irqbase 128 irq 50
     82 imxgpio1	at axi? addr 0x53f88000 irqbase 160 irq 52
     83 imxgpio2	at axi? addr 0x53f8c000 irqbase 192 irq 54
     84 imxgpio3	at axi? addr 0x53f90000 irqbase 224 irq 56
     85 imxgpio4	at axi? addr 0x53fdc000 irqbase 256 irq 103
     86 imxgpio5	at axi? addr 0x53fe0000 irqbase 288 irq 105
     87 gpio*		at imxgpio?
     88 
     89 # EPDC E-Ink Controller
     90 #epdc0		at axi? addr 0x41010000 size 0x2000 irq 27
     91 #wsdisplay0	at wsemuldisplaydev? console ?
     92 #wsdisplay*	at wsemuldisplaydev?
     93 #options		EPDC_DEBUG=10
     94 #options		EINK_DEBUG
     95 #options		IMXEPDCCONSOLE
     96 
     97 # I2C
     98 imxi2c0		at axi? addr 0x63fc8000 irq 62
     99 imxi2c1		at axi? addr 0x63fc4000 irq 63
    100 #imxi2c2	at axi? addr 0x53fec000 irq 64
    101 
    102 # IIC
    103 iic*		at imxi2c?
    104 
    105 lmtemp*		at iic1 addr 0x48		# LM75 temperature sensor
    106 
    107 # SD/MMC
    108 sdhc0		at axi? addr 0x50004000 irq 1	# eSDHC1
    109 sdhc1		at axi? addr 0x50008000 irq 2	# eSDHC2
    110 sdhc2		at axi? addr 0x50020000 irq 3	# eSDHC3
    111 #sdhc3		at axi? addr 0x50024000 irq 4	# eSDHC4
    112 sdmmc*		at sdhc?
    113 ld*		at sdmmc?		# MMC/SD card
    114 #options 	SDHC_DEBUG
    115 #options 	SDMMC_DEBUG
    116 
    117 # USB
    118 imxusbc0	at axi? addr 0x53f80000
    119 ehci0		at imxusbc0	unit 0	irq 18 # OTG
    120 #ehci1		at imxusbc0	unit 1	irq 14 # Host1
    121 
    122 usb*		at ehci?
    123 
    124 # USB device drivers, just as soon as we have something to attach them to
    125 include "dev/usb/usbdevices.config"
    126 
    127 midi*		at midibus?
    128 
    129 rgephy*		at mii? phy ?
    130 rlphy*		at mii? phy ?
    131 ukphy*		at mii? phy ?
    132 
    133 # Pull in optional local configuration - always at end
    134 cinclude	"arch/evbarm/conf/KOBO.local"
    135