summaryrefslogtreecommitdiff
path: root/db845c
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2021-12-14 19:45:56 +0530
committerAmit Pundir <amit.pundir@linaro.org>2022-02-10 20:57:46 +0530
commitc0ad894bfadcce4be4778e1773aeb09f8f19ef47 (patch)
tree0b37cba5912518ae69736e8b7aabe6183990a37d /db845c
parentbf57637c5bf8889e2ff03792f82b5dbc120ec9d7 (diff)
db845c: Add rb5 support in db845c-userdebug build target
* Enabled multiple appended DTBs support to allow db845c boot.img/vendor_boot.img to boot on rb5 as well. * Introduced a vendor.hw property which will be used to run device specific services. * Folded Caleb's HDMI audio routing fix. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I779d01946ae359d5c405d959419e29460083e5df
Diffstat (limited to 'db845c')
-rw-r--r--db845c/BoardConfig.mk1
-rw-r--r--db845c/device.mk5
-rw-r--r--db845c/eth_mac_addr.rc2
3 files changed, 5 insertions, 3 deletions
diff --git a/db845c/BoardConfig.mk b/db845c/BoardConfig.mk
index 99b94f6..7ef8549 100644
--- a/db845c/BoardConfig.mk
+++ b/db845c/BoardConfig.mk
@@ -19,6 +19,7 @@ BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c
BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on
BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
+BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5
# Image Configuration
BOARD_BOOTIMAGE_PARTITION_SIZE := 103079215104 #96M
diff --git a/db845c/device.mk b/db845c/device.mk
index c08bbc4..b8332a0 100644
--- a/db845c/device.mk
+++ b/db845c/device.mk
@@ -34,7 +34,6 @@ endif
PRODUCT_COPY_FILES := \
$(DB845C_KERNEL_DIR)/Image.gz:kernel \
- $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \
device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \
device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \
device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \
@@ -50,8 +49,9 @@ PRODUCT_PACKAGES += \
android.hardware.boot@1.2-impl.recovery \
android.hardware.boot@1.2-service
-# Install script to set *.usb.controller properties
+# Install scripts to set vendor.* properties
PRODUCT_COPY_FILES += \
+ device/linaro/dragonboard/qcom/set_hw.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_hw.sh \
device/linaro/dragonboard/qcom/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh
# Install scripts to set Ethernet MAC address
@@ -66,3 +66,4 @@ PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=160
# Copy firmware files
$(call inherit-product-if-exists, vendor/linaro/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk)
+$(call inherit-product-if-exists, vendor/linaro/rb5/$(EXPECTED_LINARO_VENDOR_VERSION)/device.mk)
diff --git a/db845c/eth_mac_addr.rc b/db845c/eth_mac_addr.rc
index e710c19..a30c0a5 100644
--- a/db845c/eth_mac_addr.rc
+++ b/db845c/eth_mac_addr.rc
@@ -5,5 +5,5 @@ service eth_mac_addr /system/bin/eth_mac_addr.sh
disabled
oneshot
-on post-fs-data
+on post-fs-data && property:vendor.hw=db45c
start eth_mac_addr