# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.

deviceinfo_format_version="0"
deviceinfo_name="Jolla C2"
deviceinfo_manufacturer="Reeder"
deviceinfo_codename="jolla-c2"
deviceinfo_uboot_boardname="reeder-s19mps"
deviceinfo_year="2024"
deviceinfo_dtb="sprd/ums9230-reeder-s19mps"
deviceinfo_arch="aarch64"

# Device related
deviceinfo_drm="true"
deviceinfo_chassis="handset"
deviceinfo_external_storage="true"

# Bootloader related

# Since the primary bootloader cannot be replaced, U-Boot is chainloaded using
# an Android boot image. The "initramfs" in this image could be used to provide
# a payload to U-Boot, but it is currently kept empty and U-Boot's standard
# boot method uses the extlinux config to find the real kernel and initramfs.
# This also simplifies kernel updates.
deviceinfo_generate_bootimg="true"
deviceinfo_generate_extlinux_config="true"
deviceinfo_bootimg_override_payload="u-boot.bin"
deviceinfo_bootimg_override_initramfs="dummy-initramfs"

# Use header version 4 so that the bootloader does not look for a device tree
# in the U-Boot image. The flash offsets are ignored when version 4 is used.
deviceinfo_bootimg_custom_args="--header_version 4"
deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00000000"
deviceinfo_flash_offset_ramdisk="0x00000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000000"
deviceinfo_flash_pagesize="4096"
deviceinfo_flash_method="fastboot"
deviceinfo_flash_fastboot_partition_kernel="boot_a"
deviceinfo_flash_fastboot_partition_rootfs="super"
