blob: 644f9a89577bff51c71aac28049d111ef4120ea2 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +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 Pundir4e375822019-04-18 16:46:10 +053016# Board Information
17TARGET_BOOTLOADER_BOARD_NAME := db845c
18TARGET_BOARD_PLATFORM := db845c
19
John Stultzf36354e2020-01-14 00:10:06 +000020TARGET_NO_KERNEL := false
21BOARD_INCLUDE_DTB_IN_BOOTIMG := true
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053022ifeq ($(TARGET_USES_BOOT_HDR_V3), true)
23 BOARD_BOOT_HEADER_VERSION := 3
Amit Pundir21e42a32022-05-19 13:41:10 +053024 BOARD_KERNEL_CMDLINE += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc
Amit Pundird1f1f832022-11-24 16:36:41 +053025 BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053026else
Amit Pundir21e42a32022-05-19 13:41:10 +053027 BOARD_BOOT_HEADER_VERSION := 4
28 BOARD_BOOTCONFIG += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc
Amit Pundird1f1f832022-11-24 16:36:41 +053029 BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053030endif
John Stultzf36354e2020-01-14 00:10:06 +000031BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
32BOARD_KERNEL_BASE := 0x80000000
Amit Pundir21e42a32022-05-19 13:41:10 +053033BOARD_KERNEL_PAGESIZE := 4096
34BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/
35BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on
John Stultz64dbd9c2020-04-17 05:33:08 +000036BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
Amit Pundirc0ad8942021-12-14 19:45:56 +053037BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5
Amit Pundir8a3b0e32022-03-21 23:44:06 +053038BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1
Amit Pundirc2840b72022-10-19 20:07:53 +053039BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8
John Stultzf36354e2020-01-14 00:10:06 +000040
Amit Pundir4e375822019-04-18 16:46:10 +053041# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053042BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundir21e42a32022-05-19 13:41:10 +053043BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundir4e375822019-04-18 16:46:10 +053044BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G
Amit Pundir2a5ca1a2022-07-25 16:48:38 +053045BOARD_FLASH_BLOCK_SIZE := 4096
Amit Pundir4e375822019-04-18 16:46:10 +053046# Super partition
Amit Pundir7d3a1ac2020-10-07 18:26:24 +053047BOARD_SUPER_PARTITION_SIZE := 12437225472
Tianjie78c25362021-03-18 12:08:46 -070048BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
Amit Pundir4e375822019-04-18 16:46:10 +053049BOARD_SUPER_PARTITION_METADATA_DEVICE := super
Todd Kjosb611b162020-03-09 14:14:27 -070050BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true