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 |
| 24 | BOARD_KERNEL_PAGESIZE := 4096 |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 25 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
Amit Pundir | dd5bd1b | 2020-12-22 13:46:24 +0530 | [diff] [blame] | 26 | else |
| 27 | BOARD_BOOT_HEADER_VERSION := 2 |
| 28 | BOARD_KERNEL_PAGESIZE := 2048 |
| 29 | endif |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 30 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 31 | BOARD_KERNEL_BASE := 0x80000000 |
John Stultz | d66daf4 | 2020-01-15 18:28:42 +0000 | [diff] [blame] | 32 | BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c |
Yongqin Liu | f227a81 | 2020-03-27 18:31:25 +0800 | [diff] [blame] | 33 | BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on |
John Stultz | 64dbd9c | 2020-04-17 05:33:08 +0000 | [diff] [blame] | 34 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
Amit Pundir | c0ad894 | 2021-12-14 19:45:56 +0530 | [diff] [blame] | 35 | BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5 |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 36 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 37 | # Image Configuration |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 38 | BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 39 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G |
| 40 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 41 | # Super partition |
Amit Pundir | 7d3a1ac | 2020-10-07 18:26:24 +0530 | [diff] [blame] | 42 | BOARD_SUPER_PARTITION_SIZE := 12437225472 |
Tianjie | 78c2536 | 2021-03-18 12:08:46 -0700 | [diff] [blame] | 43 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 44 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
Todd Kjos | b611b16 | 2020-03-09 14:14:27 -0700 | [diff] [blame] | 45 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |