blob: 887bb3057421e877b6f05a4c6f76274f5853b930 [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 Pundirdd5bd1b2020-12-22 13:46:24 +053025else
Amit Pundir21e42a32022-05-19 13:41:10 +053026 BOARD_BOOT_HEADER_VERSION := 4
27 BOARD_BOOTCONFIG += androidboot.hardware=db845c androidboot.boot_devices=soc@0/1d84000.ufshc
Amit Pundirdd5bd1b2020-12-22 13:46:24 +053028endif
John Stultzf36354e2020-01-14 00:10:06 +000029BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
30BOARD_KERNEL_BASE := 0x80000000
Amit Pundir21e42a32022-05-19 13:41:10 +053031BOARD_KERNEL_PAGESIZE := 4096
32BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/
33BOARD_KERNEL_CMDLINE += init=/init 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
Amit Pundirc2840b72022-10-19 20:07:53 +053037BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8
John Stultzf36354e2020-01-14 00:10:06 +000038
Amit Pundir4e375822019-04-18 16:46:10 +053039# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053040BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundir21e42a32022-05-19 13:41:10 +053041BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundir4e375822019-04-18 16:46:10 +053042BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G
Amit Pundir2a5ca1a2022-07-25 16:48:38 +053043BOARD_FLASH_BLOCK_SIZE := 4096
Amit Pundir4e375822019-04-18 16:46:10 +053044# Super partition
Amit Pundir7d3a1ac2020-10-07 18:26:24 +053045BOARD_SUPER_PARTITION_SIZE := 12437225472
Tianjie78c25362021-03-18 12:08:46 -070046BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
Amit Pundir4e375822019-04-18 16:46:10 +053047BOARD_SUPER_PARTITION_METADATA_DEVICE := super
Todd Kjosb611b162020-03-09 14:14:27 -070048BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true