2016-11-19 17:46:18 +00:00
|
|
|
# JZ4780 -- Kernel config for Ingenic JZ47XX boards
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-11-26 10:20:33 +00:00
|
|
|
#NO_UNIVERSE
|
|
|
|
|
2018-12-19 23:22:14 +00:00
|
|
|
# Note: SMP on 32-bit mips is no longer supported, which affects this config file.
|
|
|
|
|
2016-11-19 17:46:18 +00:00
|
|
|
ident JZ4780
|
2016-12-30 00:34:52 +00:00
|
|
|
machine mips mipselhf
|
2016-11-19 17:46:18 +00:00
|
|
|
cpu CPU_XBURST
|
|
|
|
cpu CPU_MIPS4KC
|
|
|
|
|
|
|
|
makeoptions KERNLOADADDR=0x80020000
|
2019-10-15 17:11:42 +00:00
|
|
|
makeoptions ARCH_FLAGS="-march=mips32r2"
|
2016-11-19 17:46:18 +00:00
|
|
|
|
|
|
|
# Don't build any modules yet.
|
|
|
|
makeoptions MODULES_OVERRIDE=""
|
|
|
|
|
|
|
|
files "../ingenic/files.jz4780"
|
|
|
|
hints "JZ4780.hints" #Default places to look for devices.
|
|
|
|
|
|
|
|
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
|
|
|
|
|
|
|
options INTRNG # Borrow interrupt code from ARM
|
|
|
|
options MIPS_NIRQ=264 # 8 cpuintc + 64 intc + 6 * 23 gpio
|
|
|
|
|
|
|
|
options DDB
|
|
|
|
options KDB
|
|
|
|
options BREAK_TO_DEBUGGER
|
|
|
|
|
|
|
|
options COMPAT_FREEBSD10
|
2016-12-09 18:54:12 +00:00
|
|
|
options COMPAT_FREEBSD11
|
2019-05-02 18:10:23 +00:00
|
|
|
options COMPAT_FREEBSD12
|
2016-11-19 17:46:18 +00:00
|
|
|
|
|
|
|
options SCHED_4BSD #4BSD scheduler
|
|
|
|
options INET #InterNETworking
|
|
|
|
options NFSCL #Network Filesystem Client
|
|
|
|
options NFS_ROOT #NFS usable as /, requires NFSCL
|
|
|
|
options NFSLOCKD #Network Lock Manager
|
|
|
|
options PSEUDOFS #Pseudo-filesystem framework
|
|
|
|
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
|
|
|
|
|
|
|
|
options FFS #Berkeley Fast Filesystem
|
|
|
|
options SOFTUPDATES #Enable FFS soft updates support
|
|
|
|
options UFS_ACL #Support for access control lists
|
|
|
|
options UFS_DIRHASH #Improve performance on big directories
|
|
|
|
#options ROOTDEVNAME=\"ufs:ada0\"
|
|
|
|
|
|
|
|
options GEOM_LABEL # Provides labelization
|
|
|
|
options GEOM_PART_GPT # GUID Partition Tables.
|
|
|
|
#options GEOM_RAID # Soft RAID functionality.
|
|
|
|
|
|
|
|
# Debugging for use in -current
|
|
|
|
#options DEADLKRES #Enable the deadlock resolver
|
|
|
|
options INVARIANTS #Enable calls of extra sanity checking
|
|
|
|
options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS
|
|
|
|
#options WITNESS #Enable checks to detect deadlocks and cycles
|
|
|
|
#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed
|
|
|
|
|
|
|
|
# Make an SMP-capable kernel by default
|
2016-11-19 18:03:46 +00:00
|
|
|
options SMP # Symmetric MultiProcessor Kernel
|
2016-11-19 17:46:18 +00:00
|
|
|
|
|
|
|
device loop
|
|
|
|
device ether
|
|
|
|
#device le
|
|
|
|
device miibus
|
|
|
|
device bpf
|
|
|
|
device md
|
|
|
|
device uart
|
|
|
|
|
|
|
|
device fdt_pinctrl
|
|
|
|
|
|
|
|
device clk
|
|
|
|
device regulator
|
2017-03-12 07:09:50 +00:00
|
|
|
options EXT_RESOURCES
|
2016-11-19 17:46:18 +00:00
|
|
|
|
|
|
|
device gpio
|
|
|
|
|
|
|
|
device scbus
|
|
|
|
device da
|
|
|
|
|
|
|
|
device mmc
|
|
|
|
device mmcsd
|
|
|
|
|
2016-11-21 15:35:56 +00:00
|
|
|
device dme
|
|
|
|
|
2016-12-20 01:51:09 +00:00
|
|
|
device iic
|
|
|
|
device iicbus
|
|
|
|
|
|
|
|
# Framebuffer console support
|
|
|
|
device vt
|
|
|
|
device kbdmux
|
|
|
|
device hdmi
|
|
|
|
device videomode
|
|
|
|
device pty
|
|
|
|
|
2016-11-19 17:46:18 +00:00
|
|
|
# USB support
|
|
|
|
options USB_DEBUG # enable debug msgs
|
|
|
|
options USB_HOST_ALIGN=128 # L2 cache line size
|
|
|
|
device ohci # OHCI PCI->USB interface
|
|
|
|
device ehci # EHCI PCI->USB interface (USB 2.0)
|
|
|
|
device dwcotg # DesignWare HS OTG controller
|
|
|
|
device usb # USB Bus (required)
|
|
|
|
#device udbp # USB Double Bulk Pipe devices
|
|
|
|
device uhid # "Human Interface Devices"
|
2016-12-20 01:51:09 +00:00
|
|
|
device ukbd # Allow keyboard like HIDs to control console
|
2016-11-19 17:46:18 +00:00
|
|
|
#device ulpt # Printer
|
|
|
|
device umass # Disks/Mass storage - Requires scbus and da
|
|
|
|
device ums # Mouse
|
2016-11-21 15:35:56 +00:00
|
|
|
|
2020-10-04 22:21:08 +00:00
|
|
|
# HID support
|
2020-10-05 09:38:11 +00:00
|
|
|
options HID_DEBUG # enable debug msgs
|
2020-10-04 22:21:08 +00:00
|
|
|
device hid # Generic HID support
|
|
|
|
|
2016-11-21 15:35:56 +00:00
|
|
|
# FDT support
|
|
|
|
options FDT
|