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