Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame^] | 1 | include device/linaro/dragonboard/BoardConfigCommon.mk |
| 2 | |
| 3 | # Primary Arch |
| 4 | TARGET_ARCH := arm64 |
| 5 | TARGET_ARCH_VARIANT := armv8-2a |
| 6 | TARGET_CPU_VARIANT := kryo385 |
| 7 | TARGET_CPU_ABI := arm64-v8a |
| 8 | |
| 9 | # Secondary Arch |
| 10 | TARGET_2ND_ARCH := arm |
| 11 | TARGET_2ND_ARCH_VARIANT := armv8-2a |
| 12 | TARGET_2ND_CPU_VARIANT := kryo385 |
| 13 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 14 | TARGET_2ND_CPU_ABI2 := armeabi |
| 15 | |
| 16 | # Board Information |
| 17 | TARGET_BOOTLOADER_BOARD_NAME := linaro_swr |
| 18 | TARGET_BOARD_PLATFORM := linaro_swr |
| 19 | |
| 20 | TARGET_NO_KERNEL := false |
| 21 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 22 | BOARD_BOOT_HEADER_VERSION := 4 |
| 23 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 24 | |
| 25 | BOARD_KERNEL_BASE := 0x80000000 |
| 26 | BOARD_KERNEL_PAGESIZE := 4096 |
| 27 | BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/ |
| 28 | BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on |
| 29 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
| 30 | BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5 |
| 31 | BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 |
| 32 | BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8 |
| 33 | BOARD_BOOTCONFIG := androidboot.hardware=linaro_swr androidboot.boot_devices=soc@0/1d84000.ufshc |
| 34 | BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange |
| 35 | |
| 36 | # Image Configuration |
| 37 | BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
| 38 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
| 39 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G |
| 40 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 41 | # Super partition |
| 42 | BOARD_SUPER_PARTITION_SIZE := 12437225472 |
| 43 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata |
| 44 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
| 45 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
| 46 | # dlkm partition |
| 47 | include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk |
| 48 | BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/ |
| 49 | |
| 50 | # Graphics |
| 51 | include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk |
| 52 | BOARD_SEPOLICY_DIRS += \ |
| 53 | device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy \ |
| 54 | device/linaro/dragonboard/shared/graphics/swangle/sepolicy |