head	1.25;
access;
symbols
	perseant-exfatfs-base-20250801:1.25
	perseant-exfatfs-base-20240630:1.25
	perseant-exfatfs:1.25.0.14
	perseant-exfatfs-base:1.25
	netbsd-8-3-RELEASE:1.12.2.4
	bouyer-sunxi-drm:1.25.0.12
	bouyer-sunxi-drm-base:1.25
	cjep_sun2x:1.25.0.10
	cjep_sun2x-base:1.25
	cjep_staticlib_x-base1:1.25
	cjep_staticlib_x:1.25.0.8
	cjep_staticlib_x-base:1.25
	thorpej-futex-base:1.25
	bouyer-xenpvh-base2:1.25
	phil-wifi-20200421:1.25
	bouyer-xenpvh-base1:1.25
	phil-wifi-20200411:1.25
	bouyer-xenpvh:1.25.0.6
	bouyer-xenpvh-base:1.25
	phil-wifi-20200406:1.25
	netbsd-8-2-RELEASE:1.12.2.4
	ad-namecache-base3:1.25
	ad-namecache-base2:1.25
	ad-namecache-base1:1.25
	ad-namecache:1.25.0.4
	ad-namecache-base:1.25
	netbsd-8-1-RELEASE:1.12.2.4
	netbsd-8-1-RC1:1.12.2.4
	isaki-audio2:1.25.0.2
	isaki-audio2-base:1.25
	pgoyette-compat-merge-20190127:1.17.6.4
	pgoyette-compat-20190127:1.25
	pgoyette-compat-20190118:1.24
	pgoyette-compat-1226:1.24
	pgoyette-compat-1126:1.24
	pgoyette-compat-1020:1.24
	pgoyette-compat-0930:1.23
	pgoyette-compat-0906:1.23
	pgoyette-compat-0728:1.23
	netbsd-8-0-RELEASE:1.12.2.4
	phil-wifi:1.19.0.2
	phil-wifi-base:1.19
	pgoyette-compat-0625:1.19
	netbsd-8-0-RC2:1.12.2.4
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	netbsd-8-0-RC1:1.12.2.4
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	pgoyette-compat:1.17.0.6
	pgoyette-compat-base:1.17
	tls-maxphys:1.17.0.4
	tls-maxphys-base-20171202:1.17
	matt-nb8-mediatek:1.12.2.4.0.2
	matt-nb8-mediatek-base:1.12.2.4
	nick-nhusb-base-20170825:1.17
	perseant-stdc-iso10646:1.17.0.2
	perseant-stdc-iso10646-base:1.17
	netbsd-8:1.12.0.2
	netbsd-8-base:1.12
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.4
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	jdolecek-ncq:1.7.0.2
	jdolecek-ncq-base:1.7
	pgoyette-localcount-20170320:1.7
	nick-nhusb-base-20170204:1.6
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	nick-nhusb-base-20161204:1.6
	pgoyette-localcount-20161104:1.6
	nick-nhusb-base-20161004:1.6
	localcount-20160914:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	nick-nhusb-base-20160907:1.6
	nick-nhusb-base-20160529:1.6
	nick-nhusb-base-20160422:1.6
	nick-nhusb-base-20160319:1.5
	nick-nhusb-base-20151226:1.5
	nick-nhusb-base-20150921:1.3
	nick-nhusb-base-20150606:1.2
	nick-nhusb:1.2.0.2
	nick-nhusb-base-20150406:1.2;
locks; strict;
comment	@# @;


1.25
date	2019.01.20.10.50.06;	author skrll;	state dead;
branches;
next	1.24;
commitid	r5OIkxI7fox6Iv8B;

1.24
date	2018.10.18.09.01.54;	author skrll;	state Exp;
branches;
next	1.23;
commitid	0r6pPkie0NRL4qWA;

1.23
date	2018.07.14.15.09.41;	author maxv;	state Exp;
branches;
next	1.22;
commitid	pS1Vmgc7z1Iwf7KA;

1.22
date	2018.06.30.16.48.49;	author jmcneill;	state Exp;
branches;
next	1.21;
commitid	8dF5QXVERLHQfkIA;

1.21
date	2018.06.30.16.30.35;	author jmcneill;	state Exp;
branches;
next	1.20;
commitid	h7VSwO8FlLGy9kIA;

1.20
date	2018.06.30.16.22.56;	author jmcneill;	state Exp;
branches;
next	1.19;
commitid	ruX9AQ5f0zUF6kIA;

1.19
date	2018.06.11.19.49.18;	author jakllsch;	state Exp;
branches
	1.19.2.1;
next	1.18;
commitid	8qHIqLvwMKxCRTFA;

1.18
date	2018.06.06.20.38.00;	author jakllsch;	state Exp;
branches;
next	1.17;
commitid	tWRzs9pURRpChgFA;

1.17
date	2017.06.16.21.37.11;	author jmcneill;	state Exp;
branches
	1.17.4.1
	1.17.6.1;
next	1.16;
commitid	abjPNAAuoMO42EVz;

1.16
date	2017.06.08.21.01.31;	author jmcneill;	state Exp;
branches;
next	1.15;
commitid	TT5EFr43koWM5CUz;

1.15
date	2017.06.08.10.40.38;	author jmcneill;	state Exp;
branches;
next	1.14;
commitid	yqWvCHHQ45WMEyUz;

1.14
date	2017.06.08.10.05.32;	author jmcneill;	state Exp;
branches;
next	1.13;
commitid	GhC46ce9Bs0qsyUz;

1.13
date	2017.06.06.00.25.48;	author jmcneill;	state Exp;
branches;
next	1.12;
commitid	9q4SJ681GZXQjfUz;

1.12
date	2017.06.03.17.05.23;	author jmcneill;	state Exp;
branches
	1.12.2.1;
next	1.11;
commitid	dX1RmP88HWdqWWTz;

1.11
date	2017.06.03.14.51.15;	author jmcneill;	state Exp;
branches;
next	1.10;
commitid	IRVl2jDy9PEFcWTz;

1.10
date	2017.06.02.21.16.42;	author jmcneill;	state Exp;
branches;
next	1.9;
commitid	50nVJx8e5IZHmQTz;

1.9
date	2017.06.02.20.16.05;	author jmcneill;	state Exp;
branches;
next	1.8;
commitid	xCNVs7fx5EIY1QTz;

1.8
date	2017.06.02.15.22.47;	author jmcneill;	state Exp;
branches;
next	1.7;
commitid	jUlbrQzuIOB1pOTz;

1.7
date	2017.02.19.07.47.00;	author rin;	state Exp;
branches;
next	1.6;
commitid	ivCr5u3yfBMzbxGz;

1.6
date	2016.04.02.08.48.35;	author skrll;	state Exp;
branches
	1.6.2.1
	1.6.4.1;
next	1.5;
commitid	sIrJQQ9s4ry9V11z;

1.5
date	2015.11.27.22.02.15;	author skrll;	state Exp;
branches;
next	1.4;
commitid	8s1Vch1guWsBoMKy;

1.4
date	2015.10.29.00.15.48;	author mrg;	state Exp;
branches;
next	1.3;
commitid	vmvH6kqUU9XR5WGy;

1.3
date	2015.08.07.13.53.28;	author maxv;	state Exp;
branches;
next	1.2;
commitid	2i3gQF7Ksxo9ilwy;

1.2
date	2015.02.11.07.51.10;	author ozaki-r;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	wvFTAfbE0uY7Xy9y;

1.1
date	2015.02.09.07.50.24;	author slp;	state Exp;
branches;
next	;
commitid	Rhwl9w7dAQmg2j9y;

1.19.2.1
date	2019.06.10.22.06.04;	author christos;	state dead;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.17.4.1
date	2017.06.16.21.37.11;	author jdolecek;	state dead;
branches;
next	1.17.4.2;
commitid	XcIYRZTAh1LmerhA;

1.17.4.2
date	2017.12.03.11.36.03;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.17.6.1
date	2018.06.25.07.25.40;	author pgoyette;	state Exp;
branches;
next	1.17.6.2;
commitid	8PtAu9af7VvhiDHA;

1.17.6.2
date	2018.07.28.04.37.31;	author pgoyette;	state Exp;
branches;
next	1.17.6.3;
commitid	1UP1xAIUxv1ZgRLA;

1.17.6.3
date	2018.10.20.06.58.27;	author pgoyette;	state Exp;
branches;
next	1.17.6.4;
commitid	mTSoqZEZ4arHnFWA;

1.17.6.4
date	2019.01.26.22.00.02;	author pgoyette;	state dead;
branches;
next	;
commitid	JKpcmvSjdT25dl9B;

1.12.2.1
date	2017.06.06.16.26.53;	author snj;	state Exp;
branches;
next	1.12.2.2;
commitid	knrpdiWKV3siDkUz;

1.12.2.2
date	2017.06.09.16.59.20;	author snj;	state Exp;
branches;
next	1.12.2.3;
commitid	LkpFUjltpsTbIIUz;

1.12.2.3
date	2017.06.10.05.57.08;	author snj;	state Exp;
branches;
next	1.12.2.4;
commitid	mye48S3WOVht0NUz;

1.12.2.4
date	2017.07.18.19.13.09;	author snj;	state Exp;
branches;
next	;
commitid	xwp7839uh5fpcKZz;

1.6.2.1
date	2017.03.20.06.57.13;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.6.4.1
date	2017.04.21.16.53.26;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.2.2.1
date	2015.02.11.07.51.10;	author skrll;	state dead;
branches;
next	1.2.2.2;
commitid	pz01Zhy7RP6iGxgy;

1.2.2.2
date	2015.04.06.15.17.55;	author skrll;	state Exp;
branches;
next	1.2.2.3;
commitid	pz01Zhy7RP6iGxgy;

1.2.2.3
date	2015.09.22.12.05.40;	author skrll;	state Exp;
branches;
next	1.2.2.4;
commitid	CpNWKp3ozVNTafCy;

1.2.2.4
date	2015.12.27.12.09.34;	author skrll;	state Exp;
branches;
next	1.2.2.5;
commitid	BTSqUD4SdJ5k7AOy;

1.2.2.5
date	2016.04.22.15.44.09;	author skrll;	state Exp;
branches;
next	1.2.2.6;
commitid	bbo6x38wuxyZyD3z;

1.2.2.6
date	2017.08.28.17.51.34;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;


desc
@@


1.25
log
@G/C VEXPRESS_A15
@
text
@#
#	$NetBSD: VEXPRESS_A15,v 1.24 2018/10/18 09:01:54 skrll Exp $
#
#	ARM Versatile Express A15
#

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

makeoptions 	DTS="vexpress-v2p-ca15-tc1.dts"

options 	CPU_CORTEXA15
options 	MULTIPROCESSOR

pseudo-device 	openfirm	# /dev/openfirm

#options 	DIAGNOSTIC	# internal consistency checks
#options 	DEBUG
#options 	LOCKDEBUG
#options 	PMAP_DEBUG	# Enable pmap_debug_level code
#options 	VERBOSE_INIT_ARM # verbose bootstrapping messages
#options 	EARLYCONS=vexpress, CONSADDR=0x1c090000

makeoptions	DEBUG="-g"	# compile full symbol table
makeoptions	COPY_SYMTAB=1

config		netbsd		root on ? type ?

# Device tree support
armfdt0		at root
simplebus*	at fdt? pass 0

# CPUs
cpus*		at fdt? pass 0
cpu*		at fdt? pass 0

fclock*		at fdt? pass 4
fregulator*	at fdt? pass 4
gpiokeys*	at fdt?

# Timer
gtmr*		at fdt? pass 1		# ARM Generic Timer
armgtmr0	at gtmr?

# Interrupt controller
gic*		at fdt? pass 1		# GIC
armgic0		at gic?

# ARM Motherboard Express uATX system registers
vxsysreg*	at fdt?

# Ethernet
smsh*		at fdt?			# SMSC LAN9118
ukphy*		at mii? phy ?

# UART
plcom*		at fdt?			# ARM PL011 UART

# RTC
plrtc*		at fdt?			# ARM PrimeCell RTC

# SDMMC
plmmc*		at fdt?			# ARM PrimeCell MCI
sdmmc*		at sdmmcbus?
ld0		at sdmmc0
ld1		at sdmmc1
ld2		at sdmmc2
ld3		at sdmmc3
ld*		at sdmmc?

# Audio
aaci*		at fdt?			# ARM PrimeCell AACI
audio*		at audiobus?
spkr*		at audio?		# PC speaker (synthesized)

# Framebuffer
genfb*		at fdt?
wsdisplay*	at genfb?
options 	VCONS_DRAW_INTR
options 	WSEMUL_VT100
options 	WS_DEFAULT_FG=WSCOL_WHITE
options 	WS_DEFAULT_BG=WSCOL_BLACK
options 	WS_KERNEL_FG=WSCOL_GREEN
options 	WS_KERNEL_BG=WSCOL_BLACK
options 	WSDISPLAY_COMPAT_PCVT
options 	WSDISPLAY_COMPAT_SYSCONS
options 	WSDISPLAY_COMPAT_USL
options 	WSDISPLAY_COMPAT_RAWKBD
options 	WSDISPLAY_DEFAULTSCREENS=4

# PS/2 keyboard and mouse support
plkmi*		at fdt?
pckbd*		at pckbport?
wskbd*		at pckbd? console ?
pms*		at pckbport?
wsmouse*	at pms? mux 0

# Virtio devices
virtio*	at fdt?				# Virtio MMIO device
# the baloon driver can not work on machines with non-4k pages
#viomb*	at virtio?			# Virtio memory balloon device
ld*	at virtio?			# Virtio disk device
vioif*	at virtio?			# Virtio network device
viornd* at virtio?			# Virtio entropy device
vioscsi* at virtio?			# Virtio SCSI device

# SCSI
scsibus* at scsi?
sd*	at scsibus? target ? lun ?	# SCSI disks
st*	at scsibus? target ? lun ?	# SCSI tapes
cd*	at scsibus? target ? lun ?	# SCSI CD-ROMs
ch*	at scsibus? target ? lun ?	# SCSI changer devices
ss*	at scsibus? target ? lun ?	# SCSI scanners
ses*	at scsibus? target ? lun ?	# SCSI SES/SAF-TE devices
uk*	at scsibus? target ? lun ?	# unknown SCSI

# wscons pseudo-devices
pseudo-device	wsfont
pseudo-device	wsmux

cinclude "arch/evbarm/conf/VEXPRESS_A15.local"
@


1.24
log
@Provide generic start code that assumes the MMU is off and caches are
disabled as per the linux booting protocol for ARMv6 and ARMv7 boards.
u-boot image type should be changed to 'linux' for correct behaviour.

The new start code builds a minimal "bootstrap" L1PT with cached access
disabled and uses the same table for all processors.  AP startup is
performed in less steps and more code is written in C.

The bootstrap tables and stack are placed into an (orphaned) section
"_init_memory" which is given to uvm when it is no longer used.

Various kernels have been converted to use this code and tested.  Some
boards were provided by TNF. Thanks!

The GENERIC kernel now boots on boards using the TEGRA, SUNXI and EXYNOS
kernels. The GENERIC kernel will also work on RPI2 using u-boot.

Thanks to martin@@ and aymeric@@ for testing on parallella and nanosoc
respectively
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.23 2018/07/14 15:09:41 maxv Exp $
@


1.23
log
@Remove "options IPKDB", and the other associated options, from the config
files.

ipkdb is being retired. Its code is really old, and hasn't kept pace with
today's expectations: IPv6, SMP, modern NICs. The associated code for x86
was already removed because it was too incorrect to stay.

There are plans to rewrite a similar feature from scratch.

ok kamil christos
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.22 2018/06/30 16:48:49 jmcneill Exp $
d22 1
a22 1
#options 	CONSADDR=0x1c090000
@


1.22
log
@Attach simplebus on pass 0
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.21 2018/06/30 16:30:35 jmcneill Exp $
a20 1
#options 	IPKDB		# remote kernel debugging
@


1.21
log
@cpus: use fdt_add_bus
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.20 2018/06/30 16:22:56 jmcneill Exp $
d32 1
a32 1
simplebus*	at fdt?
@


1.20
log
@Allow nodes to attach child devices using the same sorting rules as used
by the simplebus driver.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.19 2018/06/11 19:49:18 jakllsch Exp $
d36 1
a36 1
cpu*		at cpus?
@


1.19
log
@fill in vexpress_platform_early_putchar(); make comment about CONSADDR
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.18 2018/06/06 20:38:00 jakllsch Exp $
d32 1
a32 1
fdt*		at fdtbus?
@


1.19.2.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.19 2018/06/11 19:49:18 jakllsch Exp $
@


1.18
log
@Add virtio drivers and potential children thereof.

In part from sparc64 GENERIC.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.17 2017/06/16 21:37:11 jmcneill Exp $
d23 1
@


1.17
log
@Set DTS makeoption in kernel config
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.16 2017/06/08 21:01:31 jmcneill Exp $
d98 19
@


1.17.6.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.19 2018/06/11 19:49:18 jakllsch Exp $
a22 1
#options 	CONSADDR=0x1c090000
a97 19
# Virtio devices
virtio*	at fdt?				# Virtio MMIO device
# the baloon driver can not work on machines with non-4k pages
#viomb*	at virtio?			# Virtio memory balloon device
ld*	at virtio?			# Virtio disk device
vioif*	at virtio?			# Virtio network device
viornd* at virtio?			# Virtio entropy device
vioscsi* at virtio?			# Virtio SCSI device

# SCSI
scsibus* at scsi?
sd*	at scsibus? target ? lun ?	# SCSI disks
st*	at scsibus? target ? lun ?	# SCSI tapes
cd*	at scsibus? target ? lun ?	# SCSI CD-ROMs
ch*	at scsibus? target ? lun ?	# SCSI changer devices
ss*	at scsibus? target ? lun ?	# SCSI scanners
ses*	at scsibus? target ? lun ?	# SCSI SES/SAF-TE devices
uk*	at scsibus? target ? lun ?	# unknown SCSI

@


1.17.6.2
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.23 2018/07/14 15:09:41 maxv Exp $
d21 1
d32 1
a32 1
simplebus*	at fdt? pass 0
d36 1
a36 1
cpu*		at fdt? pass 0
@


1.17.6.3
log
@Sync with head
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.24 2018/10/18 09:01:54 skrll Exp $
d22 1
a22 1
#options 	EARLYCONS=vexpress, CONSADDR=0x1c090000
@


1.17.6.4
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.17.6.3 2018/10/20 06:58:27 pgoyette Exp $
@


1.17.4.1
log
@file VEXPRESS_A15 was added on branch tls-maxphys on 2017-12-03 11:36:03 +0000
@
text
@d1 102
@


1.17.4.2
log
@update from HEAD
@
text
@a0 102
#
#	$NetBSD$
#
#	ARM Versatile Express A15
#

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

makeoptions 	DTS="vexpress-v2p-ca15-tc1.dts"

options 	CPU_CORTEXA15
options 	MULTIPROCESSOR

pseudo-device 	openfirm	# /dev/openfirm

#options 	DIAGNOSTIC	# internal consistency checks
#options 	DEBUG
#options 	LOCKDEBUG
#options 	PMAP_DEBUG	# Enable pmap_debug_level code
#options 	IPKDB		# remote kernel debugging
#options 	VERBOSE_INIT_ARM # verbose bootstrapping messages

makeoptions	DEBUG="-g"	# compile full symbol table
makeoptions	COPY_SYMTAB=1

config		netbsd		root on ? type ?

# Device tree support
armfdt0		at root
fdt*		at fdtbus?

# CPUs
cpus*		at fdt? pass 0
cpu*		at cpus?

fclock*		at fdt? pass 4
fregulator*	at fdt? pass 4
gpiokeys*	at fdt?

# Timer
gtmr*		at fdt? pass 1		# ARM Generic Timer
armgtmr0	at gtmr?

# Interrupt controller
gic*		at fdt? pass 1		# GIC
armgic0		at gic?

# ARM Motherboard Express uATX system registers
vxsysreg*	at fdt?

# Ethernet
smsh*		at fdt?			# SMSC LAN9118
ukphy*		at mii? phy ?

# UART
plcom*		at fdt?			# ARM PL011 UART

# RTC
plrtc*		at fdt?			# ARM PrimeCell RTC

# SDMMC
plmmc*		at fdt?			# ARM PrimeCell MCI
sdmmc*		at sdmmcbus?
ld0		at sdmmc0
ld1		at sdmmc1
ld2		at sdmmc2
ld3		at sdmmc3
ld*		at sdmmc?

# Audio
aaci*		at fdt?			# ARM PrimeCell AACI
audio*		at audiobus?
spkr*		at audio?		# PC speaker (synthesized)

# Framebuffer
genfb*		at fdt?
wsdisplay*	at genfb?
options 	VCONS_DRAW_INTR
options 	WSEMUL_VT100
options 	WS_DEFAULT_FG=WSCOL_WHITE
options 	WS_DEFAULT_BG=WSCOL_BLACK
options 	WS_KERNEL_FG=WSCOL_GREEN
options 	WS_KERNEL_BG=WSCOL_BLACK
options 	WSDISPLAY_COMPAT_PCVT
options 	WSDISPLAY_COMPAT_SYSCONS
options 	WSDISPLAY_COMPAT_USL
options 	WSDISPLAY_COMPAT_RAWKBD
options 	WSDISPLAY_DEFAULTSCREENS=4

# PS/2 keyboard and mouse support
plkmi*		at fdt?
pckbd*		at pckbport?
wskbd*		at pckbd? console ?
pms*		at pckbport?
wsmouse*	at pms? mux 0

# wscons pseudo-devices
pseudo-device	wsfont
pseudo-device	wsmux

cinclude "arch/evbarm/conf/VEXPRESS_A15.local"
@


1.16
log
@Add plrtc driver
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.15 2017/06/08 10:40:38 jmcneill Exp $
d10 2
@


1.15
log
@Enable aaci
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.14 2017/06/08 10:05:32 jmcneill Exp $
d57 3
@


1.14
log
@Add aaci at fdt, commented out for now. Driver should work (tm) but QEMU
and my old Thinkpad can't seem to keep up.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.13 2017/06/06 00:25:48 jmcneill Exp $
d67 3
a69 3
#aaci*		at fdt?			# ARM PrimeCell AACI
#audio*		at audiobus?
#spkr*		at audio?		# PC speaker (synthesized)
@


1.13
log
@Fix spelling of WS_DEFAULT_FG and WS_KERNEL_FG options.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.12 2017/06/03 17:05:23 jmcneill Exp $
d66 5
@


1.12
log
@Add and enable FDT glue for ARM PrimeCell PL050 (KMI) PS2 keyboard/mouse
interface.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.11 2017/06/03 14:51:15 jmcneill Exp $
d71 1
a71 1
options 	WS_DEFAULT_FB=WSCOL_WHITE
d73 1
a73 1
options 	WS_KERNEL_FB=WSCOL_GREEN
@


1.12.2.1
log
@Pull up following revision(s) (requested by jmcneill in ticket #13):
	sys/arch/arm/fdt/plfb_fdt.c: revision 1.2
	sys/arch/arm/vexpress/vexpress_platform.c: revision 1.3
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.13
	sys/arch/evbarm/fdt/fdt_machdep.c: revisions 1.5, 1.6
	sys/dev/ic/pl050.c: revision 1.2
Fix spelling of WS_DEFAULT_FG and WS_KERNEL_FG options.
--
Attach kbd slot to console
--
Allow plfb to be the console device
--
Add support for stdout-path= kernel cmdline option to override the
console device specified in the FDT.
--
Initialize boot_args before bootstrap for the benefit of platform code.
--
Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@@08000000/motherboard/iofpga@@3,00000000/clcd@@1f0000'
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.12 2017/06/03 17:05:23 jmcneill Exp $
d71 1
a71 1
options 	WS_DEFAULT_FG=WSCOL_WHITE
d73 1
a73 1
options 	WS_KERNEL_FG=WSCOL_GREEN
@


1.12.2.2
log
@Pull up following revision(s) (requested by jmcneill in ticket #17):
	sys/arch/arm/fdt/aaci_fdt.c: revision 1.1
	sys/arch/arm/fdt/files.fdt: revision 1.10
	sys/arch/evbarm/conf/VEXPRESS_A15: revisions 1.14, 1.15
	sys/conf/files: revision 1.1174
	sys/dev/ic/pl041.c: revisions 1.1-1.3
	sys/dev/ic/pl041var.h: revision 1.1
Add driver for ARM PrimeCell Advanced Audio CODEC interface (PL041).
Don't expect this driver to work on real hardware, but QEMU emulates it.
--
Add fdt glue for ARM PrimeCell Advanced Audio CODEC interface (PL041).
--
Add aaci at fdt, commented out for now. Driver should work (tm) but QEMU
and my old Thinkpad can't seem to keep up.
--
Fix two bugs:
 - Inverted test for fifo status in aaci_write_data
 - Return success from trigger_output (thanks nat)
--
Enable aaci
--
bus_space_write_multi_4 takes a count, not number of bytes. With this,
audio works in qemu.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.12.2.1 2017/06/06 16:26:53 snj Exp $
a65 5
# Audio
aaci*		at fdt?			# ARM PrimeCell AACI
audio*		at audiobus?
spkr*		at audio?		# PC speaker (synthesized)

@


1.12.2.3
log
@Pull up following revision(s) (requested by jmcneill in ticket #19):
	sys/arch/arm/fdt/files.fdt: revision 1.11
	sys/arch/arm/fdt/plrtc_fdt.c: revision 1.1
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.16
	sys/conf/files: revision 1.1175
	sys/dev/ic/pl031.c: revision 1.1
	sys/dev/ic/pl031var.h: revision 1.1
Add driver for ARM PrimeCell PL031 (RTC) Real Time Clock.
--
Add fdt glue for plrtc
--
Add plrtc driver
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.12.2.2 2017/06/09 16:59:20 snj Exp $
a56 3
# RTC
plrtc*		at fdt?			# ARM PrimeCell RTC

@


1.12.2.4
log
@Pull up following revision(s) (requested by jmcneill in ticket #114):
	sys/arch/arm/samsung/exynos_intr.h: revision 1.3
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_gates.c: revision 1.1
	distrib/utils/embedded/mkimage: revision 1.66
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_rsb.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.6
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.7
	sys/dev/gpio/gpio.c: revision 1.59
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.1
	sys/conf/Makefile.kern.inc: revision 1.257
	sys/arch/evbarm/conf/ODROID-XU_INSTALL: file removal
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.2
	sys/conf/Makefile.kern.inc: revision 1.258
	sys/arch/arm/fdt/psci_fdt.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_resets.c: revision 1.1
	sys/arch/evbarm/conf/files.sunxi: revision 1.1
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.8
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.9
	sys/arch/arm/samsung/files.exynos: revision 1.22
	distrib/utils/embedded/conf/armv7.conf: revision 1.13
	sys/arch/arm/samsung/files.exynos: revision 1.23
	sys/arch/evbarm/conf/std.tegra: revision 1.15
	distrib/utils/embedded/conf/armv7.conf: revision 1.14
	sys/arch/arm/samsung/files.exynos: revision 1.24
	distrib/utils/embedded/conf/armv7.conf: revision 1.15
	sys/arch/evbarm/sunxi/genassym.cf: revision 1.1
	sys/arch/arm/samsung/exynos_fdt.c: file removal
	sys/dev/fdt/fdt_pinctrl.c: revision 1.4
	sys/arch/arm/samsung/exynos_sysmmu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.1
	sys/dev/usb/ehci.c: revision 1.255
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_ccu.h: revision 1.1
	sys/dev/ic/dwc_mmc.c: revision 1.11
	sys/arch/arm/cortex/gic.c: revision 1.24
	distrib/evbarm/instkernel/ramdisk/Makefile: revision 1.17
	etc/etc.evbarm/Makefile.inc: revision 1.87
	etc/etc.evbarm/Makefile.inc: revision 1.88
	sys/arch/arm/fdt/gic_fdt.c: revision 1.5
	etc/Makefile: revision 1.429
	sys/arch/arm/fdt/gic_fdt.c: revision 1.6
	sys/arch/arm/fdt/gic_fdt.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.2
	sys/arch/evbarm/conf/std.sunxi: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.3
	sys/arch/evbarm/conf/std.sunxi: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.4
	sys/arch/evbarm/conf/std.sunxi: revision 1.3
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu_div.c: revision 1.1
	sys/dev/gpio/gpiovar.h: revision 1.17
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.8
	sys/arch/arm/sunxi/sunxi_rsb.h: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.12
	sys/dev/fdt/fdtvar.h: revision 1.21
	sys/arch/evbarm/sunxi/sunxi_start.S: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.13
	sys/dev/fdt/fdtvar.h: revision 1.22
	sys/arch/evbarm/conf/SUNXI: revision 1.10
	sys/dev/fdt/fdtvar.h: revision 1.23
	sys/arch/evbarm/conf/SUNXI: revision 1.11
	sys/dev/fdt/gpioleds.c: revision 1.1
	sys/dev/fdt/fdtvar.h: revision 1.24
	sys/arch/evbarm/conf/SUNXI: revision 1.12
	sys/arch/evbarm/conf/SUNXI: revision 1.13
	sys/arch/arm/cortex/gic.c: revision 1.30
	sys/arch/evbarm/conf/SUNXI: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.16
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.1
	etc/Makefile: revision 1.430
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.2
	etc/Makefile: revision 1.431
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.17
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.4
	sys/arch/arm/samsung/exynos5422_clock.c: revision 1.6
	sys/arch/arm/samsung/exynos_platform.c: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.29
	sys/arch/arm/samsung/exynos_platform.c: revision 1.2
	sys/arch/evbarm/conf/mk.vexpress: revision 1.3
	sys/arch/arm/samsung/exynos_platform.c: revision 1.3
	sys/arch/evbarm/conf/mk.vexpress: revision 1.4
	sys/arch/arm/samsung/exynos_platform.c: revision 1.4
	sys/arch/arm/arm/psci.h: revision 1.1
	sys/arch/arm/samsung/exynos_platform.c: revision 1.5
	sys/arch/arm/samsung/exynos_platform.c: revision 1.6
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.10
	external/bsd/mdocml/bin/mandoc/Makefile: revision 1.12
	sys/dev/fdt/files.fdt: revision 1.17
	sys/dev/fdt/files.fdt: revision 1.18
	sys/dev/fdt/files.fdt: revision 1.19
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.8
	sys/arch/arm/sunxi/sun8i_a83t_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_mmc.c: revision 1.1
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.9
	sys/arch/arm/conf/files.arm: revision 1.133
	sys/arch/arm/samsung/mct_var.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.2
	sys/arch/evbarm/conf/std.vexpress: revision 1.6
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.3
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.4
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.30
	sys/arch/arm/sunxi/files.sunxi: revision 1.2
	sys/dev/ofw/openfirm.h: revision 1.35
	sys/arch/arm/sunxi/files.sunxi: revision 1.3
	sys/dev/ofw/openfirm.h: revision 1.36
	sys/arch/arm/sunxi/files.sunxi: revision 1.4
	sys/arch/arm/sunxi/files.sunxi: revision 1.5
	sys/arch/evbarm/exynos/exynos_machdep.c: file removal
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.1
	sys/arch/arm/samsung/sscom.c: revision 1.9
	sys/arch/arm/sunxi/files.sunxi: revision 1.6
	sys/dev/fdt/ohci_fdt.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.7
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.8
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.9
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.10
	sys/arch/evbarm/conf/mk.tegra: revision 1.5
	sys/arch/arm/samsung/exynos_dwcmmc.c: revision 1.4
	sys/arch/evbarm/conf/mk.tegra: revision 1.6
	sys/arch/evbarm/conf/EXYNOS: revision 1.15
	sys/arch/evbarm/conf/EXYNOS: revision 1.16
	sys/arch/evbarm/conf/EXYNOS: revision 1.17
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.19
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_emac.h: revision 1.1
	sys/arch/evbarm/conf/mk.sunxi: revision 1.1
	sys/arch/evbarm/include/bootconfig.h: revision 1.7
	sys/arch/evbarm/conf/TEGRA: revision 1.24
	sys/arch/arm/arm/psci.c: revision 1.1
	sys/dev/led.c: revision 1.1
	sys/dev/led.c: revision 1.2
	sys/arch/arm/arm/psci_arm.S: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.2
	sys/dev/fdt/ehci_fdt.c: revision 1.1
	sys/dev/fdt/ehci_fdt.c: revision 1.2
	sys/arch/arm/sunxi/sun6i_a31_ccu.h: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.21
	sys/arch/arm/sunxi/files.sunxi: revision 1.10
	sys/arch/arm/sunxi/files.sunxi: revision 1.11
	sys/dev/fdt/fdtbus.c: revision 1.14
	sys/arch/arm/sunxi/sunxi_mmc.h: revision 1.1
	sys/arch/arm/samsung/exynos5422_dma.c: file removal
	usr.bin/config/mkmakefile.c: revision 1.69
	sys/conf/files: revision 1.1178
	sys/arch/arm/sunxi/sunxi_platform.h: revision 1.1
	sys/arch/evbarm/exynos/exynos_start.S: revision 1.4
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.11
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_rtc.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.h: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.2
	sys/arch/evbarm/conf/SUNXI: revision 1.1
	external/bsd/elftosb/usr.sbin/elftosb/Makefile: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.2
	sys/arch/arm/fdt/psci_fdt.c: revision 1.1
	sys/arch/evbarm/conf/SUNXI: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.4
	sys/arch/evbarm/conf/files.exynos: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.6
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.1
	sys/dev/fdt/fixedfactorclock.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.7
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_gpio.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.8
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.3
	sys/dev/ic/dwc_mmc_reg.h: revision 1.6
	sys/dev/fdt/fdt_subr.c: revision 1.16
	sys/arch/evbarm/conf/SUNXI: revision 1.9
	usr.bin/config/mkmakefile.c: revision 1.70
	sys/dev/fdt/fdt_phy.c: revision 1.1
	sys/arch/evbarm/conf/ODROID-XU: file removal
	sys/arch/arm/fdt/arm_fdt.c: revision 1.4
	sys/arch/arm/samsung/exynos_reg.h: revision 1.14
	sys/conf/files: revision 1.1180
	sys/arch/arm/samsung/exynos_reg.h: revision 1.15
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.6
	sys/dev/ic/dwc_mmc_var.h: revision 1.6
	sys/arch/arm/samsung/exynos_combiner.c: revision 1.7
	sys/arch/evbarm/exynos/platform.h: revision 1.2
	sys/arch/arm/fdt/files.fdt: revision 1.12
	sys/arch/evbarm/conf/std.exynos: revision 1.2
	sys/arch/evbarm/conf/std.exynos: revision 1.3
	sys/arch/arm/rockchip/rockchip_dwcmmc.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.1
	sys/dev/led.h: revision 1.1
	sys/arch/evbarm/conf/std.exynos: revision 1.5
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.2
	sys/arch/evbarm/conf/files.evbarm: revision 1.26
	usr.bin/config/defs.h: revision 1.99
	sys/arch/arm/fdt/arm_fdtvar.h: revision 1.6
	sys/arch/arm/samsung/exynos_soc.c: revision 1.32
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.2
	sys/arch/arm/samsung/mct.c: revision 1.11
	sys/arch/evbarm/conf/ODROID-U: file removal
	sys/arch/arm/samsung/mct.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.4
Get the EXYNOS kernel building again with recent FDT changes. Untested.
Use arm_fdt_cpu_hatch and add mmu entry for DTB
Fix exynos5 devmap, bootstrap, and implement early_putchar.
Calculate UART frequency based on bootloader config.
Fix KERNEL_BASE_PHYS (how did this ever work?)
Avoid divide-by-zero for unconfigured PLLs
Correctly initialize i2cbus attach args.
Add delay and enable mct timecounter.
Fix build w/o VERBOSE_INIT_ARM
Remove ODROID-U and ODROID-XU kernel configs as they no longer work.
- Replace CONSADDR with SSCOM2CONSOLE in example
- Remove gtmr (Exynos5422 uses mct)
- cinclude EXYNOS.local instead of TEGRA.local
Use fdtbus_intr_establish to hook in block interrupts instead of
intr_establish.
Simplify MCT; just enable it and then attach an ARMv7 generic timer.
Add support for building DTB files during kernel build, from christos.
build vexpress-v2p-ca15-tc1.dtb with the kernel
build tegra124-apalis-eval.dtb, tegra124-jetson-tk1.dtb, tegra124-nyan-big.dtb, tegra124-nyan-blaze.dtb, and tegra124-venice2.dtb with the kernel
Allow multiline makeoptions to work by quoting the newline..
Bump for quoting makeoptions with multiple lines.
un-c99
bump required config version for multiline makeoptions feature
Set DTS makeoption in kernel config
Assign DTB files to a variable so we can make -V DTB
put the dtb files with their kernels.
no need for debug printing.
Don't assume that CPU index = GIC CPU interface number. We can determine
the current CPU interface number by reading from the read-only
GICD_ITARGETSR0 through GICD_ITARGETSR7 registers.
This gets interrupts working on Exynos 5422, where the boot processor has
GIC CPU interface #4.
use -v to get the expanded variable.
Use -v to get the expanded variables.
Get baud rate from sclk_uartN instead of uartN. Print IRQ number at attach.
Fix PLL con0 register locations and add uart clocks
Disable exyortc for now, it doesn't work.
More or less a rewrite of dwc_mmc, based on awin_mmc, adding DMA support.
Update for new dwc_mmc driver
Fix dmesg
Add Exynos 5410 clock controller driver.
Fix a few typos in clock parent names for mmc clocks.
From jmcneill@@
Update for new dwc_mmc driver
Implement platform reset for exynos5
Attach fdtbus to a /clocks node with no compatible string.
Add support for ARM Power State Coordination Interface (PSCI).
Support interrupt sharing.
Add initial support for Allwinner H3 SoC.
ARM Trusted Firmware reserves SGIs 8-15 for secure use. Even without ATF,
U-Boot on some platforms may use SGIs in this range for the PSCI
implementation.
Change ARMGIC_IPI_BASE to 0 from (16 - NIPI) and add a compile-time assert
to ensure that we don't end up with a conflict.
Add H3 MMC support
SD/MMC clock fixes
Add FDT PHY interface.
Add glue for generic ehci/ohci bindings.
Rename a variable, NFC.
Support parents in different clock domains.
Add USB stuff. Doesn't quite work yet.
Synopsys DesignWare APB UART needs "options COM_AWIN" for now.
Add i2c glue.
Add RTC driver.
PHY registers start at index 1. Now USB works.
Don't allow sharing edge and level triggered interrupts.
Add arm_fdt_memory_dump helper for dumping physical addresses from ddb
Print clocks with aprint_debug
Remove unused defines
Add fdtbus_get_string helper
Add of_search_compatible, which searches an array of compat_data structures
for a matching "compatible" entry matching the supplied OFW node. This
allows us to associate data with compatible strings.
Add driver for Allwinner Gigabit Ethernet (EMAC) as found in sun8i and
later family SoCs.
This is a port of my FreeBSD driver which has been confirmed to work on
Allwinner H3, A83T, and A64 SoCs.
Fix dmesg
Add basic support for Allwinner A31.
Add basic FDT GPIO support.
Fix the pinctrl api to match the spec. A pinctrl config can have more
than one xref, and an xref may have specifier data associated with it.
Enable sunxi pinctrl support
Adjust to new pinctrl API
Add P2WI/RSB driver, based on awin_p2wi.c.
Fix typo in a compat string.
Configure pin defaults at attach
No need to explicitly set pinctrl config 0 now
Fix some register definitions.
Disallow sharing between MPSAFE and non-MPSAFE handlers.
Add of_match_compat_data.
This routine searches an array of compat_data structures for a
matching "compatible" entry matching the supplied OFW node.
Add options __HAVE_CPU_UAREA_ALLOC_IDLELWP
Add support for reserved memory and MEMORY_DISK_DYNAMIC for FDT-based
kernels.
the extent code cannot use the full range of u_long,
so ignore the last page before 4GB too.  ok jmcneill@@
Copy install ramdisk to releasedir. Provide both a raw ffs and
Legacy U-Boot version of it.
Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
Let the controller provide a default name for pins. This makes pins easier
to locate when we have multiple banks and a variable number of pins per
bank.
Attach gpio(4) to sunxigpio
Test for kernel build directory before reading DTB list
Add support for Allwinner A83T SoC.
Add A83T files
Fixup busdma sync and locking in the RX path. Disable batch RX/TX ints.
Fix AHB2 register definition and explicitly set AHB2 parent to PLL_PERIPH0/2 -- this gives us 50% more bus bandwidth for emac
Restore TX_INTERVAL_DEFAULT to 64
Drop the sunxi_emac_rx_batch feature. It was originally designed to
reduce the amount of mutex unlock/lock cycles during the RX path on
FreeBSD and if_input, but it is not required to drop the lock before
calling if_percpuq_enqueue on NetBSD.
Write back the data value instead of mask in sunxi_gpio_write
Add a helper for exposing LED controls via sysctl.
Add GPIO LED driver.
add gpioleds
Add misc. gates and resets driver, and explicitly enable PIO clocks
at attach.
Add fdtbus_get_string_index helper.
Add driver for fixed-factor clocks.
Add ffclock
Remove the requirement for ehci to attach after companion devices.
"go for it" - skrll@@
Remove the hack to find companion devices and just assume 1 companion if
ETTF flag is not set.
Remove pass numbers for ehci/ohci now that the attach order no longer matters
Use unsigned char for ctype functions, suggested by christos
Add : to body of populate_sunxi to appease bash.
port-evbarm/52388: Fix number of args to a debug printf.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.12.2.3 2017/06/10 05:57:08 snj Exp $
a9 2
makeoptions 	DTS="vexpress-v2p-ca15-tc1.dts"

@


1.11
log
@Add framebuffer support.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.10 2017/06/02 21:16:42 jmcneill Exp $
d80 10
a90 1
pseudo-device	wsfont
@


1.10
log
@Add driver for ARM Motherboard Express uATX system control registers. Use
this to make "poweroff" DTRT in qemu (and hopefully on real hardware too).
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.9 2017/06/02 20:16:05 jmcneill Exp $
d66 17
@


1.9
log
@Add SMP support to VEXPRESS_A15 kernel. Enable with '-smp 2' on qemu
command line.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.8 2017/06/02 15:22:47 jmcneill Exp $
d47 2
@


1.8
log
@Switch VEXPRESS_A15 kernel to use FDT and GENERIC.common. The dtb for this
kernel can be found in the sysutils/dtb-arm-vexpress package as
vexpress-v2p-ca15-tc1.dtb
@
text
@d2 1
a2 1
#	$NetBSD: TEGRA,v 1.23 2017/06/02 00:09:56 jmcneill Exp $
d11 1
a11 2
options 	SOC_TEGRA124
#options 	MULTIPROCESSOR
@


1.7
log
@PR kern/51208
Add DISKLABEL_EI option (and also FFS_EI if missing), commented out except for
ALL on amd64 and i386.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.6 2016/04/02 08:48:35 skrll Exp $
d4 1
a4 1
#	VEXPRESS_A15 -- Versatile Express A15 kernel
d8 1
a9 11
# estimated number of users

maxusers	32

# Standard system options

options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
#options 	NTP		# NTP phase/frequency locked loop

# CPU options
options 	CPU_CORTEX
d11 1
d14 5
a18 119
options 	PMAPCOUNTERS
options 	BUSDMA_COUNTERS
#options 	UVMHIST
#options 	USB_DEBUG
#options 	USBHIST_SIZE=100000
#options 	UVMHIST_PRINT,KERNHIST_DELAY=0
options 	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
options 	PMAP_NEED_ALLOC_POOLPAGE

# Specify the memory size in megabytes (optional).
#options 	MEMSIZE=512

# File systems
file-system	FFS		# UFS
#file-system	LFS		# log-structured file system
file-system	MFS		# memory file system
file-system	NFS		# Network file system
#file-system 	ADOSFS		# AmigaDOS-compatible file system
#file-system 	EXT2FS		# second extended file system (linux)
#file-system	CD9660		# ISO 9660 + Rock Ridge file system
file-system	MSDOSFS		# MS-DOS file system
#file-system	FDESC		# /dev/fd
file-system	KERNFS		# /kern
#file-system	NULLFS		# loopback file system
file-system	PROCFS		# /proc
#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
#file-system	UMAPFS		# NULLFS + uid and gid remapping
#file-system	UNION		# union file system
file-system	TMPFS		# memory file system
file-system	PTYFS		# /dev/pts/N support

# File system options
#options 	QUOTA		# legacy UFS quotas
#options 	QUOTA2		# new, in-filesystem UFS quotas
#options 	DISKLABEL_EI	# disklabel Endian Independent support
#options 	FFS_EI		# FFS Endian Independent support
#options 	NFSSERVER
options 	WAPBL		# File system journaling support
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

# Networking options

#options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# IP multicast routing
#options 	PIM		# Protocol Independent Multicast
#options 	NETATALK	# AppleTalk networking
#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
#options 	PPP_DEFLATE	# Deflate compression support for PPP
#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG

options 	NFS_BOOT_BOOTP
options 	NFS_BOOT_DHCP
#options 	NFS_BOOT_BOOTSTATIC
#options 	NFS_BOOTSTATIC_MYIP="\"192.168.1.4\""
#options 	NFS_BOOTSTATIC_GWIP="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
#options 	NFS_BOOTSTATIC_SERVADDR="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_SERVER="\"192.168.1.1:/nfs/sdp2430\""

options 	NFS_BOOT_RWSIZE=1024

# Compatibility options

options 	COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
#options 	COMPAT_43	# 4.3BSD compatibility.
#options 	COMPAT_09	# NetBSD 0.9,
#options 	COMPAT_10	# NetBSD 1.0,
#options 	COMPAT_11	# NetBSD 1.1,
#options 	COMPAT_12	# NetBSD 1.2,
#options 	COMPAT_13	# NetBSD 1.3,
#options 	COMPAT_14	# NetBSD 1.4,
#options 	COMPAT_15	# NetBSD 1.5,
#options 	COMPAT_16	# NetBSD 1.6,
#options 	COMPAT_20	# NetBSD 2.0,
options 	COMPAT_30	# NetBSD 3.0,
options 	COMPAT_40	# NetBSD 4.0,
options 	COMPAT_50	# NetBSD 5.0,
options 	COMPAT_60	# NetBSD 6.0, and
options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
#options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.

# Shared memory options

options 	SYSVMSG		# System V-like message queues
options 	SYSVSEM		# System V-like semaphores
options 	SYSVSHM		# System V-like memory sharing

# Device options

#options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
#options 	MEMORY_DISK_ROOT_SIZE=8192	# Size in blocks
#options 	MEMORY_DISK_DYNAMIC
#options 	MINIROOTSIZE=1000	# Size in blocks
#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root

# Wedge support
options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges

# Miscellaneous kernel options
options 	KTRACE		# system call tracing, a la ktrace(1)
#options 	SCSIVERBOSE	# Verbose SCSI errors
options 	MIIVERBOSE	# Verbose MII autoconfuration messages
#options 	DDB_KEYCODE=0x40
#options 	USERCONF	# userconf(4) support
#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

# Development and Debugging options

#options 	PERFCTRS	# performance counters
options 	DIAGNOSTIC	# internal consistency checks
options 	DEBUG
options 	LOCKDEBUG
d21 2
a22 5
options 	VERBOSE_INIT_ARM # verbose bootstraping messages
options 	DDB		# in-kernel debugger
options 	DDB_ONPANIC=1
options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
#options 	KGDB
a24 11
options 	PLCONSOLE

# Valid options for BOOT_ARGS:
#  single		Boot to single user only
#  kdb			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="\"\""
options		BOOT_ARGS="\"verbose\""
d28 36
a63 2
# The main bus device
mainbus0	at root
d65 1
a65 48
# The boot cpu and secondary CPUs
cpu0		at mainbus?
#cpu?		at mainbus?			# Multiprocessor

# A9 core devices
armperiph0	at mainbus?
armgic0 	at armperiph?			# Interrupt Controller
armgtmr0	at armperiph?			# Generic Timer

# VEXPRESS AXI0
axi0		at mainbus?

# PL011 uart
plcom0          at axi? addr 0x1c090000 irq 37

# PL181 MMCI host controller
plmmc0  	at axi? addr 0x1c050000 irq 41
sdmmc*  	at plmmc0
ld* 		at sdmmc?
#options 	SDMMC_DEBUG
#options 	SDMMCCISDEBUG

# LAN 9118
smsh0 		at axi? addr 0x1a000000 irq 47

# MII/PHY support
ukphy*  	at mii? phy ?		# smsh(4) internal PHY

# Pseudo-Devices

# disk/mass storage pseudo-devices
#pseudo-device	md			# memory disk device (ramdisk)
#pseudo-device	vnd			# disk-like interface to files
#pseudo-device	fss			# file system snapshot device
#pseudo-device	putter			# for puffs and pud
pseudo-device	drvctl			# driver control

# network pseudo-devices
pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	loop			# network loopback
#pseudo-device	kttcp			# network loopback

# miscellaneous pseudo-devices
pseudo-device	pty			# pseudo-terminals
#options	RND_COM
#pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	ksyms			# /dev/ksyms
#pseudo-device	lockstat		# lock profiling
@


1.6
log
@PR/51017: VEXPRESS_A15 doesn't compile

Don't pretend to be anything other than A15
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.5 2015/11/27 22:02:15 skrll Exp $
d57 1
@


1.6.4.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.7 2017/02/19 07:47:00 rin Exp $
a56 1
#options 	DISKLABEL_EI	# disklabel Endian Independent support
@


1.6.2.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.7 2017/02/19 07:47:00 rin Exp $
a56 1
#options 	DISKLABEL_EI	# disklabel Endian Independent support
@


1.5
log
@EXYNOS_CONSOLE_EARLY doesn't belong here
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.4 2015/10/29 00:15:48 mrg Exp $
a19 1
options 	CPU_CORTEXA7
@


1.4
log
@eliminate USBHIST as a define/option.  it was entangled with USB_DEBUG
and only referenced a handful of times.  rename any usage in configs.

fixes recent build problems i introduced with the previous files.usb
change.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.3 2015/08/07 13:53:28 maxv Exp $
a25 1
#options 	EXYNOS_CONSOLE_EARLY
@


1.3
log
@Remove KMEMSTATS.
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.2 2015/02/11 07:51:10 ozaki-r Exp $
d28 1
a28 1
#options 	USBHIST
@


1.2
log
@Remove unexpected code duplications

I don't know why this happened...
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.1 2015/02/09 07:50:24 slp Exp $
a130 1
#options 	KMEMSTATS	# kernel memory statistics
@


1.2.2.1
log
@file VEXPRESS_A15 was added on branch nick-nhusb on 2015-04-06 15:17:55 +0000
@
text
@d1 217
@


1.2.2.2
log
@Sync with HEAD
@
text
@a0 217
#
#	$NetBSD: VEXPRESS_A15,v 1.2 2015/02/11 07:51:10 ozaki-r Exp $
#
#	VEXPRESS_A15 -- Versatile Express A15 kernel
#

include	"arch/evbarm/conf/std.vexpress"

# estimated number of users

maxusers	32

# Standard system options

options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
#options 	NTP		# NTP phase/frequency locked loop

# CPU options
options 	CPU_CORTEX
options 	CPU_CORTEXA7
options 	CPU_CORTEXA15
#options 	MULTIPROCESSOR

options 	PMAPCOUNTERS
options 	BUSDMA_COUNTERS
#options 	EXYNOS_CONSOLE_EARLY
#options 	UVMHIST
#options 	USBHIST
#options 	USBHIST_SIZE=100000
#options 	UVMHIST_PRINT,KERNHIST_DELAY=0
options 	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
options 	PMAP_NEED_ALLOC_POOLPAGE

# Specify the memory size in megabytes (optional).
#options 	MEMSIZE=512

# File systems
file-system	FFS		# UFS
#file-system	LFS		# log-structured file system
file-system	MFS		# memory file system
file-system	NFS		# Network file system
#file-system 	ADOSFS		# AmigaDOS-compatible file system
#file-system 	EXT2FS		# second extended file system (linux)
#file-system	CD9660		# ISO 9660 + Rock Ridge file system
file-system	MSDOSFS		# MS-DOS file system
#file-system	FDESC		# /dev/fd
file-system	KERNFS		# /kern
#file-system	NULLFS		# loopback file system
file-system	PROCFS		# /proc
#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
#file-system	UMAPFS		# NULLFS + uid and gid remapping
#file-system	UNION		# union file system
file-system	TMPFS		# memory file system
file-system	PTYFS		# /dev/pts/N support

# File system options
#options 	QUOTA		# legacy UFS quotas
#options 	QUOTA2		# new, in-filesystem UFS quotas
#options 	FFS_EI		# FFS Endian Independent support
#options 	NFSSERVER
options 	WAPBL		# File system journaling support
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

# Networking options

#options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# IP multicast routing
#options 	PIM		# Protocol Independent Multicast
#options 	NETATALK	# AppleTalk networking
#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
#options 	PPP_DEFLATE	# Deflate compression support for PPP
#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG

options 	NFS_BOOT_BOOTP
options 	NFS_BOOT_DHCP
#options 	NFS_BOOT_BOOTSTATIC
#options 	NFS_BOOTSTATIC_MYIP="\"192.168.1.4\""
#options 	NFS_BOOTSTATIC_GWIP="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
#options 	NFS_BOOTSTATIC_SERVADDR="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_SERVER="\"192.168.1.1:/nfs/sdp2430\""

options 	NFS_BOOT_RWSIZE=1024

# Compatibility options

options 	COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
#options 	COMPAT_43	# 4.3BSD compatibility.
#options 	COMPAT_09	# NetBSD 0.9,
#options 	COMPAT_10	# NetBSD 1.0,
#options 	COMPAT_11	# NetBSD 1.1,
#options 	COMPAT_12	# NetBSD 1.2,
#options 	COMPAT_13	# NetBSD 1.3,
#options 	COMPAT_14	# NetBSD 1.4,
#options 	COMPAT_15	# NetBSD 1.5,
#options 	COMPAT_16	# NetBSD 1.6,
#options 	COMPAT_20	# NetBSD 2.0,
options 	COMPAT_30	# NetBSD 3.0,
options 	COMPAT_40	# NetBSD 4.0,
options 	COMPAT_50	# NetBSD 5.0,
options 	COMPAT_60	# NetBSD 6.0, and
options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
#options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.

# Shared memory options

options 	SYSVMSG		# System V-like message queues
options 	SYSVSEM		# System V-like semaphores
options 	SYSVSHM		# System V-like memory sharing

# Device options

#options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
#options 	MEMORY_DISK_ROOT_SIZE=8192	# Size in blocks
#options 	MEMORY_DISK_DYNAMIC
#options 	MINIROOTSIZE=1000	# Size in blocks
#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root

# Wedge support
options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges

# Miscellaneous kernel options
options 	KTRACE		# system call tracing, a la ktrace(1)
#options 	KMEMSTATS	# kernel memory statistics
#options 	SCSIVERBOSE	# Verbose SCSI errors
options 	MIIVERBOSE	# Verbose MII autoconfuration messages
#options 	DDB_KEYCODE=0x40
#options 	USERCONF	# userconf(4) support
#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

# Development and Debugging options

#options 	PERFCTRS	# performance counters
options 	DIAGNOSTIC	# internal consistency checks
options 	DEBUG
options 	LOCKDEBUG
#options 	PMAP_DEBUG	# Enable pmap_debug_level code
#options 	IPKDB		# remote kernel debugging
options 	VERBOSE_INIT_ARM # verbose bootstraping messages
options 	DDB		# in-kernel debugger
options 	DDB_ONPANIC=1
options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
#options 	KGDB
makeoptions	DEBUG="-g"	# compile full symbol table
makeoptions	COPY_SYMTAB=1
options 	PLCONSOLE

# Valid options for BOOT_ARGS:
#  single		Boot to single user only
#  kdb			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="\"\""
options		BOOT_ARGS="\"verbose\""

config		netbsd		root on ? type ?

# The main bus device
mainbus0	at root

# The boot cpu and secondary CPUs
cpu0		at mainbus?
#cpu?		at mainbus?			# Multiprocessor

# A9 core devices
armperiph0	at mainbus?
armgic0 	at armperiph?			# Interrupt Controller
armgtmr0	at armperiph?			# Generic Timer

# VEXPRESS AXI0
axi0		at mainbus?

# PL011 uart
plcom0          at axi? addr 0x1c090000 irq 37

# PL181 MMCI host controller
plmmc0  	at axi? addr 0x1c050000 irq 41
sdmmc*  	at plmmc0
ld* 		at sdmmc?
#options 	SDMMC_DEBUG
#options 	SDMMCCISDEBUG

# LAN 9118
smsh0 		at axi? addr 0x1a000000 irq 47

# MII/PHY support
ukphy*  	at mii? phy ?		# smsh(4) internal PHY

# Pseudo-Devices

# disk/mass storage pseudo-devices
#pseudo-device	md			# memory disk device (ramdisk)
#pseudo-device	vnd			# disk-like interface to files
#pseudo-device	fss			# file system snapshot device
#pseudo-device	putter			# for puffs and pud
pseudo-device	drvctl			# driver control

# network pseudo-devices
pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	loop			# network loopback
#pseudo-device	kttcp			# network loopback

# miscellaneous pseudo-devices
pseudo-device	pty			# pseudo-terminals
#options	RND_COM
#pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	ksyms			# /dev/ksyms
#pseudo-device	lockstat		# lock profiling
@


1.2.2.3
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.2.2.2 2015/04/06 15:17:55 skrll Exp $
d131 1
@


1.2.2.4
log
@Sync with HEAD (as of 26th Dec)
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.2.2.3 2015/09/22 12:05:40 skrll Exp $
d26 1
d28 1
a28 1
#options 	USB_DEBUG
@


1.2.2.5
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.2.2.4 2015/12/27 12:09:34 skrll Exp $
d20 1
@


1.2.2.6
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: VEXPRESS_A15,v 1.2.2.5 2016/04/22 15:44:09 skrll Exp $
d4 1
a4 1
#	ARM Versatile Express A15
a7 1
include	"arch/evbarm/conf/GENERIC.common"
d9 1
a9 1
makeoptions 	DTS="vexpress-v2p-ca15-tc1.dts"
d11 9
d21 1
a21 1
options 	MULTIPROCESSOR
d23 118
a140 5
pseudo-device 	openfirm	# /dev/openfirm

#options 	DIAGNOSTIC	# internal consistency checks
#options 	DEBUG
#options 	LOCKDEBUG
d143 5
a147 2
#options 	VERBOSE_INIT_ARM # verbose bootstrapping messages

d150 11
d164 2
a165 72
# Device tree support
armfdt0		at root
fdt*		at fdtbus?

# CPUs
cpus*		at fdt? pass 0
cpu*		at cpus?

fclock*		at fdt? pass 4
fregulator*	at fdt? pass 4
gpiokeys*	at fdt?

# Timer
gtmr*		at fdt? pass 1		# ARM Generic Timer
armgtmr0	at gtmr?

# Interrupt controller
gic*		at fdt? pass 1		# GIC
armgic0		at gic?

# ARM Motherboard Express uATX system registers
vxsysreg*	at fdt?

# Ethernet
smsh*		at fdt?			# SMSC LAN9118
ukphy*		at mii? phy ?

# UART
plcom*		at fdt?			# ARM PL011 UART

# RTC
plrtc*		at fdt?			# ARM PrimeCell RTC

# SDMMC
plmmc*		at fdt?			# ARM PrimeCell MCI
sdmmc*		at sdmmcbus?
ld0		at sdmmc0
ld1		at sdmmc1
ld2		at sdmmc2
ld3		at sdmmc3
ld*		at sdmmc?

# Audio
aaci*		at fdt?			# ARM PrimeCell AACI
audio*		at audiobus?
spkr*		at audio?		# PC speaker (synthesized)

# Framebuffer
genfb*		at fdt?
wsdisplay*	at genfb?
options 	VCONS_DRAW_INTR
options 	WSEMUL_VT100
options 	WS_DEFAULT_FG=WSCOL_WHITE
options 	WS_DEFAULT_BG=WSCOL_BLACK
options 	WS_KERNEL_FG=WSCOL_GREEN
options 	WS_KERNEL_BG=WSCOL_BLACK
options 	WSDISPLAY_COMPAT_PCVT
options 	WSDISPLAY_COMPAT_SYSCONS
options 	WSDISPLAY_COMPAT_USL
options 	WSDISPLAY_COMPAT_RAWKBD
options 	WSDISPLAY_DEFAULTSCREENS=4

# PS/2 keyboard and mouse support
plkmi*		at fdt?
pckbd*		at pckbport?
wskbd*		at pckbd? console ?
pms*		at pckbport?
wsmouse*	at pms? mux 0

# wscons pseudo-devices
pseudo-device	wsfont
pseudo-device	wsmux
d167 48
a214 1
cinclude "arch/evbarm/conf/VEXPRESS_A15.local"
@


1.1
log
@Add configuration file for Versatile Express A15 board.
@
text
@d2 1
a2 218
#	$NetBSD$
#
#	VEXPRESS_A15 -- Versatile Express A15 kernel
#

include	"arch/evbarm/conf/std.vexpress"

# estimated number of users

maxusers	32

# Standard system options

options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
#options 	NTP		# NTP phase/frequency locked loop

# CPU options
options 	CPU_CORTEX
options 	CPU_CORTEXA7
options 	CPU_CORTEXA15
#options 	MULTIPROCESSOR

options 	PMAPCOUNTERS
options 	BUSDMA_COUNTERS
#options 	EXYNOS_CONSOLE_EARLY
#options 	UVMHIST
#options 	USBHIST
#options 	USBHIST_SIZE=100000
#options 	UVMHIST_PRINT,KERNHIST_DELAY=0
options 	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
options 	PMAP_NEED_ALLOC_POOLPAGE

# Specify the memory size in megabytes (optional).
#options 	MEMSIZE=512

# File systems
file-system	FFS		# UFS
#file-system	LFS		# log-structured file system
file-system	MFS		# memory file system
file-system	NFS		# Network file system
#file-system 	ADOSFS		# AmigaDOS-compatible file system
#file-system 	EXT2FS		# second extended file system (linux)
#file-system	CD9660		# ISO 9660 + Rock Ridge file system
file-system	MSDOSFS		# MS-DOS file system
#file-system	FDESC		# /dev/fd
file-system	KERNFS		# /kern
#file-system	NULLFS		# loopback file system
file-system	PROCFS		# /proc
#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
#file-system	UMAPFS		# NULLFS + uid and gid remapping
#file-system	UNION		# union file system
file-system	TMPFS		# memory file system
file-system	PTYFS		# /dev/pts/N support

# File system options
#options 	QUOTA		# legacy UFS quotas
#options 	QUOTA2		# new, in-filesystem UFS quotas
#options 	FFS_EI		# FFS Endian Independent support
#options 	NFSSERVER
options 	WAPBL		# File system journaling support
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

# Networking options

#options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# IP multicast routing
#options 	PIM		# Protocol Independent Multicast
#options 	NETATALK	# AppleTalk networking
#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
#options 	PPP_DEFLATE	# Deflate compression support for PPP
#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG

options 	NFS_BOOT_BOOTP
options 	NFS_BOOT_DHCP
#options 	NFS_BOOT_BOOTSTATIC
#options 	NFS_BOOTSTATIC_MYIP="\"192.168.1.4\""
#options 	NFS_BOOTSTATIC_GWIP="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
#options 	NFS_BOOTSTATIC_SERVADDR="\"192.168.1.1\""
#options 	NFS_BOOTSTATIC_SERVER="\"192.168.1.1:/nfs/sdp2430\""

options 	NFS_BOOT_RWSIZE=1024

# Compatibility options

options 	COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
#options 	COMPAT_43	# 4.3BSD compatibility.
#options 	COMPAT_09	# NetBSD 0.9,
#options 	COMPAT_10	# NetBSD 1.0,
#options 	COMPAT_11	# NetBSD 1.1,
#options 	COMPAT_12	# NetBSD 1.2,
#options 	COMPAT_13	# NetBSD 1.3,
#options 	COMPAT_14	# NetBSD 1.4,
#options 	COMPAT_15	# NetBSD 1.5,
#options 	COMPAT_16	# NetBSD 1.6,
#options 	COMPAT_20	# NetBSD 2.0,
options 	COMPAT_30	# NetBSD 3.0,
options 	COMPAT_40	# NetBSD 4.0,
options 	COMPAT_50	# NetBSD 5.0,
options 	COMPAT_60	# NetBSD 6.0, and
options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
#options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.

# Shared memory options

options 	SYSVMSG		# System V-like message queues
options 	SYSVSEM		# System V-like semaphores
options 	SYSVSHM		# System V-like memory sharing

# Device options

#options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
#options 	MEMORY_DISK_ROOT_SIZE=8192	# Size in blocks
#options 	MEMORY_DISK_DYNAMIC
#options 	MINIROOTSIZE=1000	# Size in blocks
#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root

# Wedge support
options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges

# Miscellaneous kernel options
options 	KTRACE		# system call tracing, a la ktrace(1)
#options 	KMEMSTATS	# kernel memory statistics
#options 	SCSIVERBOSE	# Verbose SCSI errors
options 	MIIVERBOSE	# Verbose MII autoconfuration messages
#options 	DDB_KEYCODE=0x40
#options 	USERCONF	# userconf(4) support
#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

# Development and Debugging options

#options 	PERFCTRS	# performance counters
options 	DIAGNOSTIC	# internal consistency checks
options 	DEBUG
options 	LOCKDEBUG
#options 	PMAP_DEBUG	# Enable pmap_debug_level code
#options 	IPKDB		# remote kernel debugging
options 	VERBOSE_INIT_ARM # verbose bootstraping messages
options 	DDB		# in-kernel debugger
options 	DDB_ONPANIC=1
options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
#options 	KGDB
makeoptions	DEBUG="-g"	# compile full symbol table
makeoptions	COPY_SYMTAB=1
options 	PLCONSOLE

# Valid options for BOOT_ARGS:
#  single		Boot to single user only
#  kdb			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="\"\""
options		BOOT_ARGS="\"verbose\""

config		netbsd		root on ? type ?

# The main bus device
mainbus0	at root

# The boot cpu and secondary CPUs
cpu0		at mainbus?
#cpu?		at mainbus?			# Multiprocessor

# A9 core devices
armperiph0	at mainbus?
armgic0 	at armperiph?			# Interrupt Controller
armgtmr0	at armperiph?			# Generic Timer

# VEXPRESS AXI0
axi0		at mainbus?

# PL011 uart
plcom0          at axi? addr 0x1c090000 irq 37

# PL181 MMCI host controller
plmmc0  	at axi? addr 0x1c050000 irq 41
sdmmc*  	at plmmc0
ld* 		at sdmmc?
#options 	SDMMC_DEBUG
#options 	SDMMCCISDEBUG

# LAN 9118
smsh0 		at axi? addr 0x1a000000 irq 47

# MII/PHY support
ukphy*  	at mii? phy ?		# smsh(4) internal PHY

# Pseudo-Devices

# disk/mass storage pseudo-devices
#pseudo-device	md			# memory disk device (ramdisk)
#pseudo-device	vnd			# disk-like interface to files
#pseudo-device	fss			# file system snapshot device
#pseudo-device	putter			# for puffs and pud
pseudo-device	drvctl			# driver control

# network pseudo-devices
pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	loop			# network loopback
#pseudo-device	kttcp			# network loopback

# miscellaneous pseudo-devices
pseudo-device	pty			# pseudo-terminals
#options	RND_COM
#pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	ksyms			# /dev/ksyms
#pseudo-device	lockstat		# lock profiling
#
#	$NetBSD$
@

