# Get more options/information on http://elinux.org/RPiconfig
# or on https://www.raspberrypi.com/documentation/computers/configuration.html
#
# !!!!! This file will get overwritten by updates. Please use !!!!!
# !!!!! extraconfig.txt if you want to set additional         !!!!!
# !!!!! configuration options or add dt overlays.             !!!!!

# Our kernels are located on a Linux partition. Chainload U-Boot to load them.
kernel=u-boot.bin

# Default gpu_mem value is 76 for 1GB (or greater) and 64 for less. Min 16 - Max 512 MB
# See: https://www.raspberrypi.com/documentation/computers/config_txt.html#gpu_mem
# We don't need that much memory reserved for it, because we drive most hardware
# from Linux, not the VPU OS
gpu_mem=32

# start_x is used to enable the camera module (and must be set here - boo#1192047) 
# and requires to install raspberrypi-firmware-extra or raspberrypi-firmware-extra-pi4
# start_x=1
# gpu_mem needs to be increased when start_x is used, 128 is the minimum there
# gpu_mem=128

# Turbo mode: 0 = enable dynamic freq/voltage - 1 = always max
force_turbo=0
# Start in turbo mode for 30 seconds or until cpufreq sets a frequency
initial_turbo=30

# DO NOT overvoltage manually to not void warranty!
over_voltage=0

# Fix mini UART input frequency, and setup/enable up the UART.
enable_uart=1

# Disable warning overlays as they don't work well together with linux's graphical output
avoid_warnings=1

# This overlay fixes divergences between the RPi device tree and what
# upstream provides
dtoverlay=upstream

# overscan is only needed on old TV sets and if analog gear is in the chain (e.g. DPI)
disable_overscan=1

# u-boot expects RPi's UART to have a compatible string not supported anymore in
# linux upstream, while this is fixed, make sure the name shows up in the
# device-tree. This is only needed for RPi, RPi2 and RPi0, but applied
# generally so as to avoid complexity.
dtoverlay=uboot-bcm2835-pl011

# Enables Bluetooth over the PL011 UART. Users wanting to disable it should add
# 'dtoverlay=disable-bt' in 'extraconfig.txt'.
dtoverlay=enable-bt

# Add minimal SMBIOS info
dtoverlay=smbios

[pi1]

# Max ARM freq (default 700 MHz)
arm_freq=840

# Max core (GPU) freq (default 250 MHz)
core_freq=375

# SDRAM freq (default 400)
sdram_freq=400

[pi3]

# These are not applied automatically? Needed to use respective upstream drivers.
dtoverlay=vc4-kms-v3d,cma-default
dtoverlay=dwc2

[pi4]

armstub=armstub8-rpi4.bin
# Note that the 7" DSI panel isn't supported at the moment through VC4, users
# can still use it through efifb by adding 'dtoverlay=disable-vc4' in
# 'extraconfig.txt'.
dtoverlay=vc4-kms-v3d-pi4,cma-default
dtoverlay=disable-v3d

[cm4]

# The USB interface is disabled to save power by default on CM4. Enable it
# to ease the installation process. For more information see:
# https://datasheets.raspberrypi.org/cm4/cm4-datasheet.pdf
dtoverlay=dwc2

[all]

# Allow u-boot to set arm_control
include ubootconfig.txt

# Allow user overrides of config options
include extraconfig.txt