blob: 96765545f8b321c0a629034082170544c6d7be94 [file] [log] [blame]
Amit Pundirb2534ba2023-09-12 19:16:36 +05301include device/linaro/dragonboard/BoardConfigCommon.mk
2
3# Primary Arch
4TARGET_ARCH := arm64
5TARGET_ARCH_VARIANT := armv8-2a
6TARGET_CPU_VARIANT := kryo385
7TARGET_CPU_ABI := arm64-v8a
8
Amit Pundirb2534ba2023-09-12 19:16:36 +05309# Board Information
10TARGET_BOOTLOADER_BOARD_NAME := linaro_swr
11TARGET_BOARD_PLATFORM := linaro_swr
12
13TARGET_NO_KERNEL := false
14BOARD_INCLUDE_DTB_IN_BOOTIMG := true
15BOARD_BOOT_HEADER_VERSION := 4
16BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
17
18BOARD_KERNEL_BASE := 0x80000000
19BOARD_KERNEL_PAGESIZE := 4096
20BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/
21BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on
22BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
23BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5
24BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1
25BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8
26BOARD_BOOTCONFIG := androidboot.hardware=linaro_swr androidboot.boot_devices=soc@0/1d84000.ufshc
27BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange
28
29# Image Configuration
Amit Pundirdfe152c2024-02-22 19:06:49 +053030BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296 #96M
31BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296 #96M
Amit Pundirb2534ba2023-09-12 19:16:36 +053032BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G
33BOARD_FLASH_BLOCK_SIZE := 4096
34# Super partition
35BOARD_SUPER_PARTITION_SIZE := 12437225472
36BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
37BOARD_SUPER_PARTITION_METADATA_DEVICE := super
38BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true
Amit Pundirdfe152c2024-02-22 19:06:49 +053039BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
40
41# dlkm partitions
Amit Pundirb2534ba2023-09-12 19:16:36 +053042include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk
Amit Pundirdfe152c2024-02-22 19:06:49 +053043BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST += system_dlkm vendor_dlkm
Amit Pundirb2534ba2023-09-12 19:16:36 +053044BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/
45
46# Graphics
47include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk
48BOARD_SEPOLICY_DIRS += \
49 device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy \
50 device/linaro/dragonboard/shared/graphics/swangle/sepolicy