# Raspberry Pi 4b
{# set device_type = "bcm2711-rpi-4-b" #}

{% extends 'base-uboot.jinja2' %}

{% set interrupt_ctrl_list = ['c'] %}
{% set action_timeout_bootloader_interrupt = '60' %}

{% set booti_kernel_addr = booti_kernel_addr|default('0x00200000') %}
{% set booti_ramdisk_addr = booti_ramdisk_addr|default('0x09900000') %}
{% set booti_dtb_addr = booti_dtb_addr|default('0x09800000') %}

{% set bootm_kernel_addr = bootm_kernel_addr|default('0x00200000') %}
{% set bootm_ramdisk_addr = bootm_ramdisk_addr|default('0x09900000') %}
{% set bootm_dtb_addr = bootm_dtb_addr|default('0x09800000') %}

{% set uboot_mkimage_arch = 'arm64' %}

{% set bootloader_prompt = bootloader_prompt|default('U-Boot>') %}
{% set console_device = console_device|default('ttyS1') %}
# rpi-sources does not boot without 8250.nr_uarts=1
# The normal console (on pinouts) is ttyS1, but with 8250.nr_uarts=1, ttyS1 become ttyS0
# The earlycon is for this console
# rpi-sources need also the cma to be >= 64M
# so a job with rpi-sources probably need to set in job definitions:
# context:
#   extra_kernel_args: "8250.nr_uarts=1 cma=64M"
#   console_device: ttyS0

{% set extra_kernel_args = extra_kernel_args|default("earlycon=uart,mmio32,0xfe215040") %}
