#
#	$NetBSD: ROCKCHIP,v 1.20 2015/04/03 23:25:07 jmcneill Exp $
#
#	Rockchip RK3066/RK3188 based SBC (Single Board Computer)
#

include	"arch/evbarm/conf/std.rockchip"
include	"arch/evbarm/conf/GENERIC.common"

options 	CPU_CORTEXA9
options 	MULTIPROCESSOR
options 	MEMSIZE=1024

options 	DIAGNOSTIC	# internal consistency checks
#options 	DEBUG
#options 	LOCKDEBUG
#options 	VERBOSE_INIT_ARM # verbose bootstraping messages
makeoptions	DEBUG="-g"	# compile full symbol table
makeoptions	COPY_SYMTAB=1

config		netbsd		root on ? type ?

mainbus0	at root
cpu*		at mainbus?

# A9 core devices
armperiph0	at mainbus?
arml2cc0	at armperiph?				# L2 Cache Controller
armgic0		at armperiph?				# Interrupt Controller
a9tmr0		at armperiph?				# Global Timer
a9wdt0		at armperiph?				# Watchdog

# OBIO
obio0		at mainbus?

# On-board 16550 UARTs
com0		at obio0 addr 0x20064000 size 0x400 intr 68 mult 4 # UART2 (console)
options 	CONSADDR=0x20064000, CONSPEED=115200

# Timer
dwctmr2 	at obio0 addr 0x2000e000 size 0x2000 crit 1
rktimer0	at obio0 addr 0x20038000 size 0x2000 crit 1

# I2C controllers
rkiic0		at obio0 addr 0x2002d000 size 0x1000 intr 72 port 0 crit 1
iic0		at rkiic0
rkiic1		at obio0 addr 0x2002f000 size 0x1000 intr 73 port 1 crit 1
iic1		at rkiic1
pcf8563rtc0	at iic1 addr 0x51
act8846pm0	at iic1 addr 0x5a
rkiic2		at obio0 addr 0x20056000 size 0x2000 intr 74 port 2 crit 1
iic2		at rkiic2
rkiic3		at obio0 addr 0x2005a000 size 0x2000 intr 75 port 3 crit 1
iic3		at rkiic3
rkiic4		at obio0 addr 0x2005e000 size 0x2000 intr 84 port 4 crit 1
iic4		at rkiic4

# SD/MMC
dwcmmc0 	at obio0 addr 0x10214000 size 0x4000 intr 55
#dwcmmc1 	at obio0 addr 0x10218000 size 0x4000 intr 56
sdmmc*		at dwcmmc?
ld*		at sdmmc?

# Ethernet
rkemac0		at obio0 addr 0x10204000 size 0x4000 intr 51
rlphy*		at mii? phy ?
ukphy*		at mii? phy ?

#options DWC_MMC_DEBUG
#options SDMMC_DEBUG
#options SDMMCCISDEBUG

# On-board USB
dwctwo0		at obio0 addr 0x10180000 size 0x40000 intr 48
dwctwo1		at obio0 addr 0x101C0000 size 0x40000 intr 49
usb*		at dwctwo?

include "dev/usb/usbdevices.config"
midi*           at midibus?

rlphy*          at mii? phy ?
rgephy*         at mii? phy ?
ukphy*          at mii? phy ?

cinclude "arch/evbarm/conf/ROCKCHIP.local"
