1*a9643ea8Slogwang# 2*a9643ea8Slogwang# std.mtk -- Base kernel configuration file for FreeBSD/MIPS Mediatek/Ralink 3*a9643ea8Slogwang# SoCs. 4*a9643ea8Slogwang# 5*a9643ea8Slogwang# This includes all the required drivers for the SoCs. 6*a9643ea8Slogwang# 7*a9643ea8Slogwang# $FreeBSD$ 8*a9643ea8Slogwang# 9*a9643ea8Slogwang 10*a9643ea8Slogwang# Include the standard file list for Mediatek SoCs. 11*a9643ea8Slogwangfiles "../mediatek/files.mediatek" 12*a9643ea8Slogwang 13*a9643ea8Slogwang# Building a mips/mipsel kernel 14*a9643ea8Slogwangmachine mips mipsel 15*a9643ea8Slogwang 16*a9643ea8Slogwang# Little-endian machine 17*a9643ea8Slogwangmakeoptions MIPS_LITTLE_ENDIAN=defined 18*a9643ea8Slogwang 19*a9643ea8Slogwang# Default kernel load address 20*a9643ea8Slogwangmakeoptions KERNLOADADDR=0x80001000 21*a9643ea8Slogwang 22*a9643ea8Slogwang# Mediatek/Ralink SoC support depends on FDT (with static DTB for the moment) 23*a9643ea8Slogwangoptions FDT 24*a9643ea8Slogwangoptions FDT_DTB_STATIC 25*a9643ea8Slogwang 26*a9643ea8Slogwang# We rely on INTRNG code 27*a9643ea8Slogwangoptions INTRNG 28*a9643ea8Slogwangoptions MIPS_NIRQ=256 29*a9643ea8Slogwang 30*a9643ea8Slogwang# We rely on NEW_PCIB code 31*a9643ea8Slogwangoptions NEW_PCIB 32*a9643ea8Slogwang 33*a9643ea8Slogwang# Build kernel with gdb(1) debug symbols 34*a9643ea8Slogwangmakeoptions DEBUG=-g 35*a9643ea8Slogwang 36*a9643ea8Slogwang# Support for DDB and KDB 37*a9643ea8Slogwangoptions DDB 38*a9643ea8Slogwangoptions KDB 39*a9643ea8Slogwang 40*a9643ea8Slogwang# Debugging for use in -current 41*a9643ea8Slogwangoptions INVARIANTS 42*a9643ea8Slogwangoptions INVARIANT_SUPPORT 43*a9643ea8Slogwangoptions WITNESS 44*a9643ea8Slogwangoptions WITNESS_SKIPSPIN 45*a9643ea8Slogwangoptions DEBUG_REDZONE 46*a9643ea8Slogwangoptions DEBUG_MEMGUARD 47*a9643ea8Slogwang 48*a9643ea8Slogwang# For small memory footprints 49*a9643ea8Slogwangoptions VM_KMEM_SIZE_SCALE=1 50*a9643ea8Slogwang 51*a9643ea8Slogwang# General options, including scheduler, etc. 52*a9643ea8Slogwangoptions SCHED_ULE # ULE scheduler 53*a9643ea8Slogwangoptions INET # InterNETworking 54*a9643ea8Slogwang#options INET6 # IPv6 55*a9643ea8Slogwangoptions PSEUDOFS # Pseude-filesystem framework 56*a9643ea8Slogwangoptions FFS # Berkeley Fast Filesystem 57*a9643ea8Slogwang#options SOFTUPDATES # Enable FFS soft updates support 58*a9643ea8Slogwang#options UFS_ACL # Support for access control lists 59*a9643ea8Slogwang#options UFS_DIRHASH # Improve big directory performance 60*a9643ea8Slogwang#options MSDOSFS # Enable support for MSDOS filesystems 61*a9643ea8Slogwangoptions _KPOSIX_PRIORITY_SCHEDULING # Posix P1003_1B real-time ext. 62*a9643ea8Slogwang 63*a9643ea8Slogwang# 64*a9643ea8Slogwang# Standard drivers section 65*a9643ea8Slogwang# 66*a9643ea8Slogwang# The drivers in the following section are required in order to successfully 67*a9643ea8Slogwang# compile the kernel. 68*a9643ea8Slogwang# 69*a9643ea8Slogwang 70*a9643ea8Slogwang# FDT clock and pinctrl framework 71*a9643ea8Slogwangdevice fdt_clock 72*a9643ea8Slogwangdevice fdt_pinctrl 73*a9643ea8Slogwang 74*a9643ea8Slogwang# UART support 75*a9643ea8Slogwangdevice uart 76*a9643ea8Slogwang 77*a9643ea8Slogwang# loop device support 78*a9643ea8Slogwangdevice loop 79*a9643ea8Slogwang 80*a9643ea8Slogwang# ether device support 81*a9643ea8Slogwangdevice ether 82*a9643ea8Slogwang 83*a9643ea8Slogwang# ether switch support 84*a9643ea8Slogwangdevice etherswitch 85*a9643ea8Slogwangdevice miibus 86*a9643ea8Slogwangdevice mtkswitch 87*a9643ea8Slogwangdevice mdio 88