# $NetBSD: KOBO,v 1.14 2023/02/09 14:09:48 abs Exp $
#
# KOBO -- http://kobo.com
#
include "arch/evbarm/conf/std.kobo"
include "arch/evbarm/conf/GENERIC.common"
# CPU options
options CPU_CORTEX # Support the ARM-v7a core
options IMX51
options IMX50
options IMX508
# Architecture options
options MEMSTART=0x70000000
options MEMSIZE=256
options IMX51_IPGCLK_FREQ=50000000 # XXX This value is not correct.
# Device options
# Console options. also need IMXUARTCONSOLE
options CONSDEVNAME="\"imxuart\"",CONADDR=0x53fc0000
options CONSPEED=115200 # Console speed
#options DIAGNOSTIC # internal consistency checks
#options DEBUG
#options UVMHIST # kernhist for uvm/pmap subsystems
#options KGDB
makeoptions DEBUG="-g" # compile full symbol table
makeoptions COPY_SYMTAB=1
# Valid options for BOOT_ARGS:
# single Boot to single user only
# kndb Give control to kernel debugger
# ask Ask for file name to reboot from
# memorydisk=<n> Set memorydisk size to <n> KB
# quiet Show aprint_naive output
# verbose Show aprint_normal and aprint_verbose output
options BOOT_ARGS="\"verbose\""
# Kernel root file system and dump configuration.
config netbsd root on ? type ?
config netbsd-ld0 root on ld0 type ffs
# The main bus device
mainbus0 at root
# The boot cpu
cpu* at mainbus?
# Devices
# On-chip
# On-chip bus
axi0 at mainbus?
# Interrupt Controller
tzic0 at axi? addr 0x0fffc000 size 0x4000 irqbase 0
# Serial
#imxuart0 at axi? addr 0x53fbc000 irq 31 # UART1
imxuart1 at axi? addr 0x53fc0000 irq 32
#imxuart2 at axi? addr 0x5000c000 irq 33
options IMXUARTCONSOLE
# Clock Control
imxccm0 at axi? addr 0x53fd4000
options IMX51_CKIL_FREQ=32768
# Enhanced Periodic Interrupt Timer
imxclock0 at axi? addr 0x53fac000 size 0x4000 irq 40
# IOMUX
imxiomux0 at axi? addr 0x53fa8000
# WatchDog
imxwdog0 at axi? addr 0x53f98000 irq 58 flags 0
# GPIO
imxgpio0 at axi? addr 0x53f84000 irqbase 128 irq 50
imxgpio1 at axi? addr 0x53f88000 irqbase 160 irq 52
imxgpio2 at axi? addr 0x53f8c000 irqbase 192 irq 54
imxgpio3 at axi? addr 0x53f90000 irqbase 224 irq 56
imxgpio4 at axi? addr 0x53fdc000 irqbase 256 irq 103
imxgpio5 at axi? addr 0x53fe0000 irqbase 288 irq 105
gpio* at imxgpio?
# EPDC E-Ink Controller
#epdc0 at axi? addr 0x41010000 size 0x2000 irq 27
#wsdisplay0 at wsemuldisplaydev? console ?
#wsdisplay* at wsemuldisplaydev?
#options EPDC_DEBUG=10
#options EINK_DEBUG
#options IMXEPDCCONSOLE
# I2C
imxi2c0 at axi? addr 0x63fc8000 irq 62
imxi2c1 at axi? addr 0x63fc4000 irq 63
#imxi2c2 at axi? addr 0x53fec000 irq 64
# IIC
iic* at imxi2c?
lmtemp* at iic1 addr 0x48 # LM75 temperature sensor
# SD/MMC
sdhc0 at axi? addr 0x50004000 irq 1 # eSDHC1
sdhc1 at axi? addr 0x50008000 irq 2 # eSDHC2
sdhc2 at axi? addr 0x50020000 irq 3 # eSDHC3
#sdhc3 at axi? addr 0x50024000 irq 4 # eSDHC4
sdmmc* at sdhc?
ld* at sdmmc? # MMC/SD card
#options SDHC_DEBUG
#options SDMMC_DEBUG
# USB
imxusbc0 at axi? addr 0x53f80000
ehci0 at imxusbc0 unit 0 irq 18 # OTG
#ehci1 at imxusbc0 unit 1 irq 14 # Host1
usb* at ehci?
# USB device drivers, just as soon as we have something to attach them to
include "dev/usb/usbdevices.config"
midi* at midibus?
rgephy* at mii? phy ?
rlphy* at mii? phy ?
ukphy* at mii? phy ?
# Pull in optional local configuration - always at end
cinclude "arch/evbarm/conf/KOBO.local"