blob: a4f1d09ff2e4e25b88067c8813e71ad766e70ba1 [file] [log] [blame]
Amit Pundire4ca84a2021-05-26 14:30:57 +05301include device/linaro/dragonboard/BoardConfigCommon.mk
2
Peter Collingbournec9341882022-02-02 11:33:05 -08003# Primary Arch
4TARGET_ARCH := arm64
5TARGET_ARCH_VARIANT := armv8-2a
6TARGET_CPU_VARIANT := kryo385
7TARGET_CPU_ABI := arm64-v8a
8
9# Secondary Arch
10TARGET_2ND_ARCH := arm
11TARGET_2ND_ARCH_VARIANT := armv8-2a
12TARGET_2ND_CPU_VARIANT := kryo385
13TARGET_2ND_CPU_ABI := armeabi-v7a
14TARGET_2ND_CPU_ABI2 := armeabi
15
Amit Pundire4ca84a2021-05-26 14:30:57 +053016# Board Information
17TARGET_BOOTLOADER_BOARD_NAME := rb5
18TARGET_BOARD_PLATFORM := rb5
19
20TARGET_NO_KERNEL := false
21BOARD_KERNEL_BASE := 0x80000000
22BOARD_KERNEL_PAGESIZE := 4096
23
24BOARD_INCLUDE_DTB_IN_BOOTIMG := true
25BOARD_BOOT_HEADER_VERSION := 3
26BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
27
28BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=rb5
29BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on
30BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work
31BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
32
33# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053034BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
35BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundire4ca84a2021-05-26 14:30:57 +053036BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480
37BOARD_FLASH_BLOCK_SIZE := 131072
38
39# Super/Dynamic partition
40BOARD_SUPER_PARTITION_SIZE := 12437225472
41BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
42BOARD_SUPER_PARTITION_METADATA_DEVICE := super
43BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true