blob: 24195a57566a83aebd9553e3cbda73936010ccac [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
Amit Pundir21e42a32022-05-19 13:41:10 +053025BOARD_BOOT_HEADER_VERSION := 4
Amit Pundire4ca84a2021-05-26 14:30:57 +053026BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
27
Amit Pundir21e42a32022-05-19 13:41:10 +053028BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/
29BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on
Amit Pundire4ca84a2021-05-26 14:30:57 +053030BOARD_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
Peter Collingbournea0d7e982022-05-23 14:19:21 -070033BOARD_KERNEL_CMDLINE += console=ttyMSM0
Amit Pundir21e42a32022-05-19 13:41:10 +053034BOARD_BOOTCONFIG += androidboot.hardware=rb5 androidboot.boot_devices=soc@0/1d84000.ufshc
Amit Pundird1f1f832022-11-24 16:36:41 +053035BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange
Amit Pundire4ca84a2021-05-26 14:30:57 +053036
37# Image Configuration
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053038BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
39BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
Amit Pundire4ca84a2021-05-26 14:30:57 +053040BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480
41BOARD_FLASH_BLOCK_SIZE := 131072
42
43# Super/Dynamic partition
44BOARD_SUPER_PARTITION_SIZE := 12437225472
45BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata
46BOARD_SUPER_PARTITION_METADATA_DEVICE := super
47BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true
Amit Pundirb0274052023-07-24 12:50:45 +053048# dlkm partition
49include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk
50BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/
Amit Pundir6749c912023-09-12 10:52:20 +053051
52# Graphics
53include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk
54include device/linaro/dragonboard/shared/graphics/mesa/BoardConfig.mk
55BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy/