aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2019-05-02 16:36:14 -0500
committerAníbal Limón <anibal.limon@linaro.org>2019-05-09 13:54:18 -0500
commita749ee4fbb0c815624168cc44a098fea15a1f683 (patch)
tree19906d1f6e9e7ba4f9a2e951653095fdf06787f1
parent8ac86cd465d73da78e24620e4695176138d17fc3 (diff)
downloadmeta-qcom-a749ee4fbb0c815624168cc44a098fea15a1f683.tar.gz
meta-qcom-a749ee4fbb0c815624168cc44a098fea15a1f683.tar.bz2
meta-qcom-a749ee4fbb0c815624168cc44a098fea15a1f683.zip
conf/machine: Add initial machine definitions for db845c
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
-rw-r--r--conf/machine/dragonboard-845c.conf21
-rw-r--r--conf/machine/include/qcom-sdm845.inc32
2 files changed, 53 insertions, 0 deletions
diff --git a/conf/machine/dragonboard-845c.conf b/conf/machine/dragonboard-845c.conf
new file mode 100644
index 0000000..8b82657
--- /dev/null
+++ b/conf/machine/dragonboard-845c.conf
@@ -0,0 +1,21 @@
+#@TYPE: Machine
+#@NAME: dragonboard-845c
+#@DESCRIPTION: Machine configuration for the DragonBoard 845c (96boards), with Qualcomm Snapdragon 845 SDM845.
+
+require conf/machine/include/qcom-sdm845.inc
+
+MACHINE_FEATURES = "usbhost usbgadget alsa screen wifi bluetooth ext2"
+
+KERNEL_IMAGETYPE ?= "Image.gz"
+KERNEL_DEVICETREE ?= "qcom/sdm845-db845c.dtb"
+
+SERIAL_CONSOLE ?= "115200 ttyMSM0"
+
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
+ kernel-modules \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-msm', '', d)} \
+"
+
+# XXX: The sda10 is userdata we need to create an Linux gpt to have more space
+# and use rootfs
+QCOM_BOOTIMG_ROOTFS ?= "sda10"
diff --git a/conf/machine/include/qcom-sdm845.inc b/conf/machine/include/qcom-sdm845.inc
new file mode 100644
index 0000000..2526d2f
--- /dev/null
+++ b/conf/machine/include/qcom-sdm845.inc
@@ -0,0 +1,32 @@
+SOC_FAMILY = "sdm845"
+require conf/machine/include/soc-family.inc
+require conf/machine/include/arm/arch-armv8.inc
+
+XSERVER_OPENGL ?= " \
+ xf86-video-modesetting \
+ xserver-xorg-extension-glx \
+"
+
+XSERVER ?= " \
+ xserver-xorg \
+ xserver-xorg-module-libint10 \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${XSERVER_OPENGL}', 'xf86-video-fbdev', d)} \
+ xf86-input-evdev \
+ xf86-input-mouse \
+ xf86-input-keyboard \
+"
+
+PREFERRED_PROVIDER_virtual/egl ?= "mesa"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
+PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
+PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
+PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-linaro-qcomlt"
+
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
+"
+
+IMAGE_FSTYPES ?= "ext4.gz"
+
+QCOM_BOOTIMG_KERNEL_BASE ?= "0x80000000"
+QCOM_BOOTIMG_PAGE_SIZE ?= "4096"