Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +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 | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 16 | # Board Information |
| 17 | TARGET_BOOTLOADER_BOARD_NAME := rb5 |
| 18 | TARGET_BOARD_PLATFORM := rb5 |
| 19 | |
| 20 | TARGET_NO_KERNEL := false |
| 21 | BOARD_KERNEL_BASE := 0x80000000 |
| 22 | BOARD_KERNEL_PAGESIZE := 4096 |
| 23 | |
| 24 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 25 | BOARD_BOOT_HEADER_VERSION := 3 |
| 26 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 27 | |
| 28 | BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=rb5 |
| 29 | BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on |
| 30 | BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work |
| 31 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
| 32 | |
| 33 | # Image Configuration |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 34 | BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
| 35 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M |
Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 36 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 |
| 37 | BOARD_FLASH_BLOCK_SIZE := 131072 |
| 38 | |
| 39 | # Super/Dynamic partition |
| 40 | BOARD_SUPER_PARTITION_SIZE := 12437225472 |
| 41 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata |
| 42 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
| 43 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |