blob: 53b21f0175f61c692e780bc3adb47f46dab5a2db [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
Amit Pundir8a3b0e32022-03-21 23:44:06 +053032BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1
Amit Pundire4ca84a2021-05-26 14:30:57 +053033
34# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053035BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
36BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundire4ca84a2021-05-26 14:30:57 +053037BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480
38BOARD_FLASH_BLOCK_SIZE := 131072
39
40# Super/Dynamic partition
41BOARD_SUPER_PARTITION_SIZE := 12437225472
42BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
43BOARD_SUPER_PARTITION_METADATA_DEVICE := super
44BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true