blob: 018213ae6b88e952e17380cf7e11de9b50964b79 [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
24 BOARD_KERNEL_PAGESIZE := 4096
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053025 BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053026else
27 BOARD_BOOT_HEADER_VERSION := 2
28 BOARD_KERNEL_PAGESIZE := 2048
29endif
John Stultzf36354e2020-01-14 00:10:06 +000030BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
31BOARD_KERNEL_BASE := 0x80000000
John Stultzd66daf42020-01-15 18:28:42 +000032BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c
Yongqin Liuf227a812020-03-27 18:31:25 +080033BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on
John Stultz64dbd9c2020-04-17 05:33:08 +000034BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
Amit Pundirc0ad8942021-12-14 19:45:56 +053035BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5
Amit Pundir8a3b0e32022-03-21 23:44:06 +053036BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1
John Stultzf36354e2020-01-14 00:10:06 +000037
Amit Pundir4e375822019-04-18 16:46:10 +053038# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053039BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundir4e375822019-04-18 16:46:10 +053040BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G
41BOARD_FLASH_BLOCK_SIZE := 512
42# Super partition
Amit Pundir7d3a1ac2020-10-07 18:26:24 +053043BOARD_SUPER_PARTITION_SIZE := 12437225472
Tianjie78c25362021-03-18 12:08:46 -070044BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
Amit Pundir4e375822019-04-18 16:46:10 +053045BOARD_SUPER_PARTITION_METADATA_DEVICE := super
Todd Kjosb611b162020-03-09 14:14:27 -070046BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true