Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | include device/linaro/dragonboard/BoardConfigCommon.mk |
| 2 | |
Peter Collingbourne | c934188 | 2022-02-02 11:33:05 -0800 | [diff] [blame] | 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 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 16 | # Board Information |
| 17 | TARGET_BOOTLOADER_BOARD_NAME := db845c |
| 18 | TARGET_BOARD_PLATFORM := db845c |
| 19 | |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 20 | TARGET_NO_KERNEL := false |
| 21 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 22 | ifeq ($(TARGET_USES_BOOT_HDR_V3), true) |
| 23 | BOARD_BOOT_HEADER_VERSION := 3 |
Amit Pundir | 21e42a3 | 2022-05-19 13:41:10 +0530 | [diff] [blame] | 24 | BOARD_KERNEL_CMDLINE += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc |
Amit Pundir | d1f1f83 | 2022-11-24 16:36:41 +0530 | [diff] [blame] | 25 | BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 26 | else |
Amit Pundir | 21e42a3 | 2022-05-19 13:41:10 +0530 | [diff] [blame] | 27 | BOARD_BOOT_HEADER_VERSION := 4 |
| 28 | BOARD_BOOTCONFIG += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc |
Amit Pundir | d1f1f83 | 2022-11-24 16:36:41 +0530 | [diff] [blame] | 29 | BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 30 | endif |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 31 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 32 | BOARD_KERNEL_BASE := 0x80000000 |
Amit Pundir | 21e42a3 | 2022-05-19 13:41:10 +0530 | [diff] [blame] | 33 | BOARD_KERNEL_PAGESIZE := 4096 |
| 34 | BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/ |
| 35 | BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on |
John Stultz | 64dbd9c | 2020-04-17 05:33:08 +0000 | [diff] [blame] | 36 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 37 | BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5 |
Amit Pundir | 8a3b0e3 | 2022-03-21 23:44:06 +0530 | [diff] [blame] | 38 | BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 |
Amit Pundir | c2840b7 | 2022-10-19 20:07:53 +0530 | [diff] [blame] | 39 | BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8 |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 40 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 41 | # Image Configuration |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 42 | BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
Amit Pundir | 21e42a3 | 2022-05-19 13:41:10 +0530 | [diff] [blame] | 43 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 44 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G |
Amit Pundir | 2a5ca1a | 2022-07-25 16:48:38 +0530 | [diff] [blame] | 45 | BOARD_FLASH_BLOCK_SIZE := 4096 |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 46 | # Super partition |
Amit Pundir | 7d3a1ac | 2020-10-07 18:26:24 +0530 | [diff] [blame] | 47 | BOARD_SUPER_PARTITION_SIZE := 12437225472 |
Tianjie | 78c2536 | 2021-03-18 12:08:46 -0700 | [diff] [blame] | 48 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 49 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
Todd Kjos | b611b16 | 2020-03-09 14:14:27 -0700 | [diff] [blame] | 50 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
Amit Pundir | b027405 | 2023-07-24 12:50:45 +0530 | [diff] [blame] | 51 | # dlkm partition |
| 52 | include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk |
| 53 | BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/ |
Amit Pundir | 6749c91 | 2023-09-12 10:52:20 +0530 | [diff] [blame^] | 54 | |
| 55 | # Graphics |
| 56 | include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk |
| 57 | include device/linaro/dragonboard/shared/graphics/mesa/BoardConfig.mk |
| 58 | BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy/ |