# Boot Configuration for MuntsOS on a Raspberry Pi 4

arm_64bit=1
kernel=RaspberryPi4.img

# Disable the rainbow splash screen
disable_splash=1

# Force HDMI video
hdmi_force_hotplug=1

[board-type=0x11]
# Force HDMI1 on Raspberry Pi 4 Model B (to avoid mechanical interference
# between the power plug and a HDMI micro adapter)
framebuffer_priority=7
[all]

# Minimize GPU memory
gpu_mem=16

# Configure LEDs
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=on

# Enable optional hardware subsystems
dtparam=i2c_arm=on,i2c_arm_baudrate=100000
#dtparam=i2c_vc=on,i2c_vc_baudrate=100000
dtparam=spi=on

# Enable USB host mode (needed for some CM4 carrier boards)
dtoverlay=dwc2,dr_mode=host

# Disable onboard Bluetooth and route /dev/ttyAMA0 to the expansion header
dtoverlay=disable-bt

# Disable onboard Ethernet
#dtoverlay=disable-ethernet

# Disable onboard WiFi
#dtoverlay=disable-wifi

# Additional device tree overlays go here.  See ./overlays/README.txt and
# https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
# for more information.

#dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
#dtoverlay=Pi3ClickShield
#dtoverlay=Pi4ClickShield
#dtoverlay=pwmchip0
