16b29cf33SWarner Losh# arm-specific changes for doing a LINT build. 2ef01f773SMarcel Moolenaar# $FreeBSD$ 3ef01f773SMarcel Moolenaar 46b29cf33SWarner Losh 56b29cf33SWarner Loshmachine arm armv7 66b29cf33SWarner Loshcpu CPU_CORTEXA 76b29cf33SWarner Loshcpu CPU_MV_PJ4B 86b29cf33SWarner Loshmakeoptions CONF_CFLAGS+="-march=armv7a" 96b29cf33SWarner Losh 106b29cf33SWarner Losh# Add options for armv7 that are not in sys/conf/NOTES... 116b29cf33SWarner Losh 126b29cf33SWarner Loshoptions ARM_L2_PIPT # Only L2 PIPT is supported 136b29cf33SWarner Loshoptions FDT # Flattened device tree support 146b29cf33SWarner Loshoptions FREEBSD_BOOT_LOADER # Process metadata passed from loader(8) 156b29cf33SWarner Loshoptions INTRNG # Include INTRNG framework 166b29cf33SWarner Loshoptions LINUX_BOOT_ABI # Process metadata passed from U-Boot 176b29cf33SWarner Loshoptions PLATFORM # Include platform_if support 186b29cf33SWarner Loshoptions SMP # Nearly all v7 SoCs are multicore 196b29cf33SWarner Loshoptions VFP # Enable floating point hardware support 206b29cf33SWarner Losh 216b29cf33SWarner Losh# NOTE: dtrace introduces CDDL-licensed components into the kernel 226b29cf33SWarner Loshdevice dtrace # dtrace core 236b29cf33SWarner Loshdevice dtraceall # include all dtrace modules 246b29cf33SWarner Loshoptions KDTRACE_HOOKS 256b29cf33SWarner Losh 266b29cf33SWarner Losh# Add misc devices which are specific to various arm platforms... 276b29cf33SWarner Losh 286b29cf33SWarner Loshdevice generic_timer # ARM Generic Timer 296b29cf33SWarner Loshdevice gic # Interrupt controller 306b29cf33SWarner Loshdevice gpio # gpio interface and bus 316b29cf33SWarner Loshdevice mpcore_timer # ARM MPCore Timer 326b29cf33SWarner Loshdevice pl310 # PL310 L2 cache controller 336b29cf33SWarner Loshdevice pl330 # ARM PL330 dma controller 346b29cf33SWarner Loshdevice pmu # PMU support (for CCNT). 356b29cf33SWarner Loshdevice twsi # i2c controller on Marvel and Allwinner 366b29cf33SWarner Loshdevice xdma # xDMA framework for SoC on-chip dma controllers 376b29cf33SWarner Losh 386b29cf33SWarner Losh# Add EXT_RESOURCES pseudo devices... 396b29cf33SWarner Losh 406b29cf33SWarner Loshoptions EXT_RESOURCES 416b29cf33SWarner Loshdevice clk 426b29cf33SWarner Loshdevice phy 436b29cf33SWarner Loshdevice hwreset 446b29cf33SWarner Loshdevice nvmem 456b29cf33SWarner Loshdevice regulator 466b29cf33SWarner Loshdevice syscon 47ef01f773SMarcel Moolenaar 48*90b8c0eaSEmmanuel Vadot# Backlight subsystem 49*90b8c0eaSEmmanuel Vadotdevice backlight 50*90b8c0eaSEmmanuel Vadot 515364951dSIan Lepore# Undo options from sys/conf/NOTES that we do not want... 52ef01f773SMarcel Moolenaar 53ef01f773SMarcel Moolenaarnooptions COMPAT_FREEBSD4 548ef1f44aSAndrew Turnernooptions COMPAT_FREEBSD5 558ef1f44aSAndrew Turnernooptions COMPAT_FREEBSD6 568ef1f44aSAndrew Turnernooptions COMPAT_FREEBSD7 578ef1f44aSAndrew Turnernooptions COMPAT_FREEBSD9 585364951dSIan Leporenooptions PPC_PROBE_CHIPSET 595364951dSIan Leporenooptions MAXCPU # value is set in machine/param.h 605364951dSIan Lepore 61ef01f773SMarcel Moolenaarnodevice sym 62ef01f773SMarcel Moolenaar 631ec22b44SJohn Baldwinnodevice ccr 64ca7fe84aSNavdeep Parharnodevice cxgbe 656af45170SJohn Baldwinnodevice cxgbev 66ef01f773SMarcel Moolenaarnodevice snd_cmi 674f4d15f0SRuslan Bukin 68f7ab0158SWarner Loshnodevice mpr 69f7ab0158SWarner Loshnodevice mps 705364951dSIan Lepore 716b29cf33SWarner Losh# Build SOC-specific modules... 725364951dSIan Lepore 736b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="allwinner" 746b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="arm_ti" 756b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="imx" 76fce985b0SIan Lepore 776b29cf33SWarner Losh# Build dtb files... 78fce985b0SIan Lepore 796b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/allwinner" 806b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/am335x" 816b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/imx6" 826b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/nvidia" 836b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/omap4" 846b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/rpi" 856b29cf33SWarner Loshmakeoptions MODULES_EXTRA+="dtb/zynq" 86