#AmiKit config.txt for booting Emu68 with PiStorm32-lite or PiStorm
#14-January-2024

disable_splash=1
arm_64bit=1

# Limit total memory size to 2GB for now. Necessary for CM4/Pi4
total_mem=2048

# Default boot delay is one second. Uncomment this line if you want zero second delay
boot_delay=0

# This is important so that GPU firmware does not add its overlay icons on the screen
# If you also want to disable speed throttling in case of undervoltage, set this value to 2
avoid_warnings=1

# Force HDMI signal even if nothing is connected
hdmi_force_hotplug=1

# Limit GPU memory a little, force 1080p video mode. Comment out the hdmi_mode line if your monitor
# does not like it. For list of all modes please refer to RasPi documentation
# https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi-mode
gpu_mem=32
hdmi_group=2
hdmi_mode=82

# Experimental 2560x1440 50Hz mode for RaspberryPi which you can give a try. If you do, comment out the hdmi_mode above
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=2560 1440 50 3 0 0 1
#max_framebuffer_width=2560
#max_framebuffer_height=1440
#hdmi_pixel_freq_limit=400000000

[pi02]
# Enable the options below to increase speed of your Raspberry Pi Zero 2 W to 1.3GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=1300
#core_freq=550
#sdram_freq=550

[pi3]
# Enable the options below to increase speed of your Raspberry Pi 3 to 1.8GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=4
#arm_freq=1800
#core_freq=500
#sdram_freq=600

[pi4]
# Enable the option below, if you have Pi4B with 8GB RAM or a 2GB or 4GB board with the extra components, to safely overclock it from 1.5GHz to 1.8GHz
# Note that arm_freq option, if enabled below, has a higher priority than this option
arm_boost=1

# Enable the options below to increase speed of your Raspberry Pi 4 to 2.0GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=2000

[cm4]
# Enable the options below to increase speed of your Raspberry Pi Compute Module 4 to 2.0GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=2000

[all]
# PiStorm ID
gpio=0-27=ip
gpio=0-27=pu

# PiStorm32-lite
[gpio24=0]
[gpio4=1]
kernel=Emu68-pistorm32lite

# The ROM is selected through initramfs parameter. As a file name give the full name of your
# kickstart file which you have placed on the RasPi boot partition. If there is a development version
# of FPGA firmware to load (PS32Lite) or to upgrade (all others, not yet implemented), it must be
# gzip-compressed and passed **before** the ROM name, separated from the rom with a comma.
# NOTE: The default firmware for PS32Lite is already embedded in Emu68!!! Above instruction is
# for test/development purposes **ONLY**
#initramfs firmware.bin.gz,kick.rom
initramfs +KickstartROM/kick.rom

# PiStorm
[gpio24=1]
kernel=Emu68-pistorm

# The ROM is selected through initramfs parameter. As a file name give the full name of your
# kickstart file which you have placed on the RasPi boot partition. If there is a development version
# of FPGA firmware to load (PS32Lite) or to upgrade (all others, not yet implemented), it must be
# gzip-compressed and passed **before** the ROM name, separated from the rom with a comma.
# NOTE: The default firmware for PS32Lite is already embedded in Emu68!!! Above instruction is
# for test/development purposes **ONLY**
#initramfs firmware.bin.gz,kick.rom
initramfs +KickstartROM/kick.rom
