Module Name:    src
Committed By:   matt
Date:           Wed Dec 13 01:24:08 UTC 2017

Added Files:
        src/sys/arch/evbarm/conf [matt-nb8-mediatek]: MTKATLAS MTKATLAS_INSTALL
            files.mtkatlas mk.mtkatlas std.mtkatlas

Log Message:
Add Mediatek ATLAS configury


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.1 src/sys/arch/evbarm/conf/MTKATLAS \
    src/sys/arch/evbarm/conf/MTKATLAS_INSTALL \
    src/sys/arch/evbarm/conf/files.mtkatlas \
    src/sys/arch/evbarm/conf/mk.mtkatlas \
    src/sys/arch/evbarm/conf/std.mtkatlas

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/arch/evbarm/conf/MTKATLAS
diff -u /dev/null src/sys/arch/evbarm/conf/MTKATLAS:1.1.2.1
--- /dev/null	Wed Dec 13 01:24:08 2017
+++ src/sys/arch/evbarm/conf/MTKATLAS	Wed Dec 13 01:24:08 2017
@@ -0,0 +1,159 @@
+# $NetBSD: MTKATLAS,v 1.1.2.1 2017/12/13 01:24:08 matt Exp $
+#
+#	MTK ATLAS board
+#
+
+include	"arch/evbarm/conf/std.mtkatlas"
+include	"arch/evbarm/conf/GENERIC.common"
+
+makeoptions	DTS="
+	mtkatlas.dts
+"
+
+no makeoptions	CPUFLAGS
+makeoptions	CPUFLAGS="-mcpu=cortex-a7 -mfpu=neon"
+#no makeoptions	BOARDTYPE
+#makeoptions	BOARDTYPE="mtkatlas"
+#no makeoptions	KERNEL_BASE_PHYS
+#no makeoptions	KERNEL_BASE_VIRT
+#makeoptions 	KERNEL_BASE_PHYS="0x40100000"
+#makeoptions 	KERNEL_BASE_VIRT="0x80100000"
+#options 	PMAP_NEED_ALLOC_POOLPAGE
+options 	CPU_CORTEXA7
+options 	CPU_CORTEXA35
+
+options 	MULTIPROCESSOR
+options 	MEMSIZE=384
+options 	MTK_CONSOLE_EARLY
+options 	MTK_MERCURY	# MTK chipname
+
+pseudo-device 	openfirm	# /dev/openfirm
+
+#options 	DEBUG
+options 	VERBOSE_INIT_ARM # verbose bootstraping messages
+makeoptions	DEBUG="-g"	# compile full symbol table
+makeoptions	COPY_SYMTAB=1
+
+## USB Debugging options
+options USB_DEBUG
+options MOTG_DEBUG
+options UMASS_DEBUG
+options UHUB_DEBUG
+options KERNHIST_PRINT
+
+config		netbsd		root on ? type ?
+
+# Device tree support
+armfdt0		at root
+fdt*		at fdtbus?
+
+# PMIC Pwrap
+mtkpwrap*	at fdt?
+pwrap0		at mtkpwrap?
+mt6392pmic*	at pwrap0
+mt6392reg*	at mt6392pmic?
+
+# CPUs
+cpus*		at fdt? pass 0
+cpu*		at cpus?
+
+# Power state coordination interface
+psci*		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?
+
+# UART
+com*		at fdt?			# UART
+options 	CONADDR=0x11005000, CONSPEED=921600
+
+# SPI controller
+mtkspi0		at fdt?
+spi* 		at spibus?
+
+#spidev0 at spi? slave 0 flags 0
+
+# PWM
+mtkpwm*        at fdt?
+
+# MMC/SD controllers
+mtkmmc0		at fdt? 
+sdmmc0		at mtkmmc0
+ld0			at sdmmc0
+
+# GPIO controller
+mtkgpio*	at fdt?
+
+# External interrupt controller
+eint*		at fdt?
+
+# On-board I2C busses
+mtki2c0		at fdt? 			# I2C0
+iic0		at mtki2c0
+seeprom0	at iic0 addr 0x50
+
+mtki2c1		at fdt? 			# I2C1
+iic1		at mtki2c1
+seeprom1	at iic1 addr 0x50
+
+mtki2c2		at fdt? 			# I2C2
+iic2		at mtki2c2
+seeprom2	at iic2 addr 0x50
+
+# SCSI bus support
+scsibus* at scsi?
+
+# SCSI devices
+sd*	at scsibus? target ? lun ?	# SCSI disk drives
+st*	at scsibus? target ? lun ?	# SCSI tape drives
+cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
+ch*	at scsibus? target ? lun ?	# SCSI autochangers
+ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
+ss*	at scsibus? target ? lun ?	# SCSI scanners
+uk*	at scsibus? target ? lun ?	# SCSI unknown
+
+# On-board MUSB 2.0 phy Port0
+usbphy*		at fdt?
+
+# On-board MUSB 2.0 Port0
+motg*		at fdt?
+
+usb*	at motg?
+
+# USB Hubs
+uhub*	at usb?
+uhub*	at uhub? port ?
+
+# USB HID device
+uhidev*	at uhub? port ? configuration ? interface ?
+# USB Mice
+ums*	at uhidev? reportid ?
+wsmouse* at ums? mux 0
+
+# USB Keyboards
+ukbd*	at uhidev? reportid ?
+wskbd*	at ukbd? console ? mux 1
+
+# USB serial adapter
+ucycom*	at uhidev? reportid ?
+
+# USB Generic HID devices
+uhid*	at uhidev? reportid ?
+
+# USB Mass Storage
+umass*	at uhub? port ? configuration ? interface ?
+wd* at umass?
+
+# Prolific PL2301/PL2302 host-to-host adapter
+upl*	at uhub? port ?
+
+# USB Generic driver
+ugen*	at uhub? port ?
+
+pseudo-device 	wsmux
+pseudo-device 	wsfont
Index: src/sys/arch/evbarm/conf/MTKATLAS_INSTALL
diff -u /dev/null src/sys/arch/evbarm/conf/MTKATLAS_INSTALL:1.1.2.1
--- /dev/null	Wed Dec 13 01:24:08 2017
+++ src/sys/arch/evbarm/conf/MTKATLAS_INSTALL	Wed Dec 13 01:24:08 2017
@@ -0,0 +1,10 @@
+# $NetBSD: MTKATLAS_INSTALL,v 1.1.2.1 2017/12/13 01:24:08 matt Exp $
+#
+#	installation-sized ramdisk
+#
+
+include "arch/evbarm/conf/MTKATLAS"
+include "arch/evbarm/conf/INSTALL"
+
+options 	BOOTHOWTO=RB_SINGLE
+#makeoption 	DEBUG
Index: src/sys/arch/evbarm/conf/files.mtkatlas
diff -u /dev/null src/sys/arch/evbarm/conf/files.mtkatlas:1.1.2.1
--- /dev/null	Wed Dec 13 01:24:08 2017
+++ src/sys/arch/evbarm/conf/files.mtkatlas	Wed Dec 13 01:24:08 2017
@@ -0,0 +1,9 @@
+# $NetBSD: files.mtkatlas,v 1.1.2.1 2017/12/13 01:24:08 matt Exp $
+#
+# Mediatek Atlas evaluation board configuration info
+#
+
+include "arch/evbarm/conf/files.fdt"
+
+include "arch/arm/mediatek/files.mtk"
+
Index: src/sys/arch/evbarm/conf/mk.mtkatlas
diff -u /dev/null src/sys/arch/evbarm/conf/mk.mtkatlas:1.1.2.1
--- /dev/null	Wed Dec 13 01:24:08 2017
+++ src/sys/arch/evbarm/conf/mk.mtkatlas	Wed Dec 13 01:24:08 2017
@@ -0,0 +1,39 @@
+# $NetBSD: mk.mtkatlas,v 1.1.2.1 2017/12/13 01:24:08 matt Exp $
+
+.if !empty(MACHINE_ARCH:M*eb)
+EXTRA_LINKFLAGS+=	--be8
+.endif
+
+SYSTEM_FIRST_OBJ=	mtk_start.o
+SYSTEM_FIRST_SFILE=	${THISARM}/mediatek/mtk_start.S
+
+#CPPFLAGS.mtk_machdep.c+=       -DBOARDTYPE='"${BOARDTYPE}"'
+
+GENASSYM_EXTRAS+=	${THISARM}/mediatek/genassym.cf
+
+_OSRELEASE!=		${HOST_SH} $S/conf/osrelease.sh
+
+KERNEL_BASE_PHYS?=0x40100000
+KERNEL_BASE_VIRT?=0x80100000
+
+MKUBOOTIMAGEARGS=	-A arm -T kernel
+MKUBOOTIMAGEARGS+=	-a $(KERNEL_BASE_PHYS) -e $(KERNEL_BASE_PHYS)
+MKUBOOTIMAGEARGS+=	-n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
+MKUBOOTIMAGEARGS_NONE=	${MKUBOOTIMAGEARGS} -C none
+MKUBOOTIMAGEARGS_GZ=	${MKUBOOTIMAGEARGS} -C gz
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+	echo ${OBJCOPY} -S -O binary $@ [email protected]; \
+	${OBJCOPY} -S -O binary $@ [email protected]; \
+	echo ${TOOL_GZIP} -9c [email protected] > [email protected]; \
+	${TOOL_GZIP} -9c [email protected] > [email protected]; \
+	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} [email protected] [email protected]; \
+	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} [email protected] [email protected]; \
+	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} [email protected] [email protected]; \
+	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} [email protected] [email protected]; \
+	echo
+
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ub@}
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin.gz@}
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gz.ub@}
Index: src/sys/arch/evbarm/conf/std.mtkatlas
diff -u /dev/null src/sys/arch/evbarm/conf/std.mtkatlas:1.1.2.1
--- /dev/null	Wed Dec 13 01:24:08 2017
+++ src/sys/arch/evbarm/conf/std.mtkatlas	Wed Dec 13 01:24:08 2017
@@ -0,0 +1,32 @@
+# $NetBSD: std.mtkatlas,v 1.1.2.1 2017/12/13 01:24:08 matt Exp $
+#
+# standard NetBSD/evbarm for Medaitek based options
+
+machine	evbarm arm
+include 	"arch/evbarm/conf/std.evbarm"
+
+# Pull in config definitions.
+include		"arch/evbarm/conf/files.mtkatlas"
+
+options 	FDT				# Flattened Device Tree support
+options 	MODULAR
+options 	MODULAR_DEFAULT_AUTOLOAD
+options 	__HAVE_CPU_COUNTER
+#options 	CORTEX_PMC
+options 	__HAVE_FAST_SOFTINTS		# should be in types.h
+options 	ARM_HAS_VBAR
+options 	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
+options 	TPIDRPRW_IS_CURCPU
+options 	FPU_VFP
+
+options         KERNEL_BASE_EXT=0x80000000
+makeoptions     LOADADDRESS="0x40100000"
+
+makeoptions	KERNEL_BASE_PHYS="0x40100000"
+makeoptions	KERNEL_BASE_VIRT="0x80100000"
+makeoptions	BOARDTYPE="mtkatlas"
+makeoptions	BOARDMKFRAG="${THISARM}/conf/mk.${BOARDTYPE:tl}"
+makeoptions	CPUFLAGS="-mcpu=generic-armv7-a -mfpu=neon"
+
+options 	ARM_INTR_IMPL="<arch/arm/fdt/fdt_intr.h>"
+options		ARM_GENERIC_TODR

Reply via email to