summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2024-06-14 17:57:18 -0400
committerRyan Eatmon <reatmon@ti.com>2024-06-15 08:05:34 -0500
commitfdfa6e2f13f5d58223b82819cbf87081d7b11750 (patch)
treeb383d776538b664fbb55aba2291d8fe32240a224
parent16a40af52202e0a44b3009b9674bd2b5c899e709 (diff)
downloadmeta-ti-fdfa6e2f13f5d58223b82819cbf87081d7b11750.tar.gz
conf/machine, ti-bsp: add support for multiple BSP providers
This adds a facility to define multiple supported BSPs with their own preferences for individual components, as well as lets machine configs specify conditional configurations for different BSPs. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/machine/beagleplay-k3r5.conf3
-rw-r--r--meta-ti-bsp/conf/machine/beagleplay.conf5
-rw-r--r--meta-ti-bsp/conf/machine/include/am62pxx.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/am62xx.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/am65xx.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/am68.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/am69.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/beagle.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/j721e.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/j721s2.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/j722s.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/j784s4.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/k3.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/k3r5.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/omap-a15.inc6
-rw-r--r--meta-ti-bsp/conf/machine/include/omapl138.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-bsp.inc109
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-soc.inc3
-rw-r--r--meta-ti-bsp/conf/machine/include/ti33x.inc7
-rw-r--r--meta-ti-bsp/conf/machine/include/ti43x.inc7
20 files changed, 131 insertions, 43 deletions
diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
index 601cbbf7..e38029ff 100644
--- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
@@ -4,9 +4,6 @@
4 4
5require conf/machine/include/k3r5.inc 5require conf/machine/include/k3r5.inc
6 6
7PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
8PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
9
10SYSFW_SOC = "am62x" 7SYSFW_SOC = "am62x"
11SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
12SYSFW_SUFFIX = "gp" 9SYSFW_SUFFIX = "gp"
diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
index 02bc6566..a09c0d13 100644
--- a/meta-ti-bsp/conf/machine/beagleplay.conf
+++ b/meta-ti-bsp/conf/machine/beagleplay.conf
@@ -11,7 +11,7 @@ MACHINE_FEATURES += "screen gpu"
11SERIAL_CONSOLES = "115200;ttyS2" 11SERIAL_CONSOLES = "115200;ttyS2"
12 12
13require conf/machine/include/mesa-pvr.inc 13require conf/machine/include/mesa-pvr.inc
14PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 14PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
15 15
16TFA_BOARD = "lite" 16TFA_BOARD = "lite"
17TFA_K3_SYSTEM_SUSPEND = "1" 17TFA_K3_SYSTEM_SUSPEND = "1"
@@ -25,9 +25,6 @@ UBOOT_MACHINE = "am62x_evm_a53_defconfig"
25# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. 25# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
26UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_a53.config" 26UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_a53.config"
27 27
28PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
29PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
30
31KERNEL_DEVICETREE_PREFIX = " \ 28KERNEL_DEVICETREE_PREFIX = " \
32 ti/k3-am625 \ 29 ti/k3-am625 \
33 ti/k3-am62x-sk \ 30 ti/k3-am62x-sk \
diff --git a/meta-ti-bsp/conf/machine/include/am62pxx.inc b/meta-ti-bsp/conf/machine/include/am62pxx.inc
index 38e35851..a2825905 100644
--- a/meta-ti-bsp/conf/machine/include/am62pxx.inc
+++ b/meta-ti-bsp/conf/machine/include/am62pxx.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am62pxx"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on AM62Px is for HS-FS 9# Default tiboot3.bin on AM62Px is for HS-FS
10IMAGE_BOOT_FILES += "tiboot3-am62px-hs-fs-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-am62px-hs-fs-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/am62xx.inc b/meta-ti-bsp/conf/machine/include/am62xx.inc
index a0ec944f..070a691b 100644
--- a/meta-ti-bsp/conf/machine/include/am62xx.inc
+++ b/meta-ti-bsp/conf/machine/include/am62xx.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am62xx"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on AM62x is for HS-FS 9# Default tiboot3.bin on AM62x is for HS-FS
10IMAGE_BOOT_FILES += "tiboot3-am62x-hs-fs-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-am62x-hs-fs-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/am65xx.inc b/meta-ti-bsp/conf/machine/include/am65xx.inc
index 48b89638..e033c09b 100644
--- a/meta-ti-bsp/conf/machine/include/am65xx.inc
+++ b/meta-ti-bsp/conf/machine/include/am65xx.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am65xx"
4MACHINE_FEATURES += "screen touchscreen gpu" 4MACHINE_FEATURES += "screen touchscreen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
8 8
9KERNEL_DEVICETREE_PREFIX = "ti/k3-am654" 9KERNEL_DEVICETREE_PREFIX = "ti/k3-am654"
10 10
diff --git a/meta-ti-bsp/conf/machine/include/am68.inc b/meta-ti-bsp/conf/machine/include/am68.inc
index cb3d1026..327366be 100644
--- a/meta-ti-bsp/conf/machine/include/am68.inc
+++ b/meta-ti-bsp/conf/machine/include/am68.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j721s2"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on AM68 is for SR1.0 HS-FS 9# Default tiboot3.bin on AM68 is for SR1.0 HS-FS
10IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-fs-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-fs-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/am69.inc b/meta-ti-bsp/conf/machine/include/am69.inc
index 81be1397..488f9c33 100644
--- a/meta-ti-bsp/conf/machine/include/am69.inc
+++ b/meta-ti-bsp/conf/machine/include/am69.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j784s4"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on AM69 is for SR1.0 HS-FS 9# Default tiboot3.bin on AM69 is for SR1.0 HS-FS
10IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-fs-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-fs-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/beagle.inc b/meta-ti-bsp/conf/machine/include/beagle.inc
index 27e3298d..4d5942c2 100644
--- a/meta-ti-bsp/conf/machine/include/beagle.inc
+++ b/meta-ti-bsp/conf/machine/include/beagle.inc
@@ -1,3 +1 @@
1 TI_PREFERRED_BSP ?= "bb_org"
2PREFERRED_PROVIDER_virtual/kernel ?= "linux-bb.org"
3
diff --git a/meta-ti-bsp/conf/machine/include/j721e.inc b/meta-ti-bsp/conf/machine/include/j721e.inc
index 6040feb0..a54c3f2f 100644
--- a/meta-ti-bsp/conf/machine/include/j721e.inc
+++ b/meta-ti-bsp/conf/machine/include/j721e.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j721e"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9IMAGE_BOOT_FILES += "sysfw.itb" 9IMAGE_BOOT_FILES += "sysfw.itb"
10 10
diff --git a/meta-ti-bsp/conf/machine/include/j721s2.inc b/meta-ti-bsp/conf/machine/include/j721s2.inc
index 5289ec5a..9cd88d9b 100644
--- a/meta-ti-bsp/conf/machine/include/j721s2.inc
+++ b/meta-ti-bsp/conf/machine/include/j721s2.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j721s2"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on J721S2 is for GP 9# Default tiboot3.bin on J721S2 is for GP
10IMAGE_BOOT_FILES += "tiboot3-j721s2-gp-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-j721s2-gp-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/j722s.inc b/meta-ti-bsp/conf/machine/include/j722s.inc
index 3b051f1b..3c0717a0 100644
--- a/meta-ti-bsp/conf/machine/include/j722s.inc
+++ b/meta-ti-bsp/conf/machine/include/j722s.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j722s"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on J722S is for HS-FS 9# Default tiboot3.bin on J722S is for HS-FS
10IMAGE_BOOT_FILES += "tiboot3-j722s-hs-fs-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-j722s-hs-fs-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/j784s4.inc b/meta-ti-bsp/conf/machine/include/j784s4.inc
index 92062cdf..883c4a6e 100644
--- a/meta-ti-bsp/conf/machine/include/j784s4.inc
+++ b/meta-ti-bsp/conf/machine/include/j784s4.inc
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j784s4"
4MACHINE_FEATURES += "screen gpu" 4MACHINE_FEATURES += "screen gpu"
5 5
6require conf/machine/include/mesa-pvr.inc 6require conf/machine/include/mesa-pvr.inc
7PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" 7PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
8 8
9# Default tiboot3.bin on J784S4 is for GP 9# Default tiboot3.bin on J784S4 is for GP
10IMAGE_BOOT_FILES += "tiboot3-j784s4-gp-evm.bin" 10IMAGE_BOOT_FILES += "tiboot3-j784s4-gp-evm.bin"
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index e3da9e12..2b82cb82 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -10,9 +10,7 @@ BBMULTICONFIG += "k3r5"
10# Increase this everytime you change something in the kernel 10# Increase this everytime you change something in the kernel
11MACHINE_KERNEL_PR = "r0" 11MACHINE_KERNEL_PR = "r0"
12 12
13PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" 13require conf/machine/include/ti-bsp.inc
14PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
15PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
16 14
17KERNEL_IMAGETYPE = "Image" 15KERNEL_IMAGETYPE = "Image"
18KERNEL_IMAGETYPES = "Image fitImage" 16KERNEL_IMAGETYPES = "Image fitImage"
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
index 63267a5e..fcd54254 100644
--- a/meta-ti-bsp/conf/machine/include/k3r5.inc
+++ b/meta-ti-bsp/conf/machine/include/k3r5.inc
@@ -11,9 +11,9 @@ require conf/machine/include/arm/armv7a/tune-cortexa8.inc
11# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst 11# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
12# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst 12# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
13# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst 13# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
14
15require conf/machine/include/ti-bsp.inc
14PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" 16PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
15PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
16PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
17 17
18SPL_SUFFIX = "bin" 18SPL_SUFFIX = "bin"
19SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" 19SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc b/meta-ti-bsp/conf/machine/include/omap-a15.inc
index 9ca41403..3637ad0a 100644
--- a/meta-ti-bsp/conf/machine/include/omap-a15.inc
+++ b/meta-ti-bsp/conf/machine/include/omap-a15.inc
@@ -7,13 +7,11 @@ require conf/machine/include/arm/armv7a/tune-cortexa15.inc
7# Increase this everytime you change something in the kernel 7# Increase this everytime you change something in the kernel
8MACHINE_KERNEL_PR = "r7" 8MACHINE_KERNEL_PR = "r7"
9 9
10PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" 10require conf/machine/include/ti-bsp.inc
11PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
12PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
13 11
14# Graphics providers and variables 12# Graphics providers and variables
15require conf/machine/include/mesa-pvr.inc 13require conf/machine/include/mesa-pvr.inc
16PREFERRED_PROVIDER_virtual/gpudriver ?= "" 14PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
17PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" 15PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm"
18 16
19KERNEL_IMAGETYPE = "zImage" 17KERNEL_IMAGETYPE = "zImage"
diff --git a/meta-ti-bsp/conf/machine/include/omapl138.inc b/meta-ti-bsp/conf/machine/include/omapl138.inc
index 7f8262a5..486de05d 100644
--- a/meta-ti-bsp/conf/machine/include/omapl138.inc
+++ b/meta-ti-bsp/conf/machine/include/omapl138.inc
@@ -5,9 +5,7 @@ require conf/machine/include/arm/armv5/tune-arm926ejs.inc
5 5
6KERNEL_IMAGETYPE = "zImage" 6KERNEL_IMAGETYPE = "zImage"
7 7
8PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" 8require conf/machine/include/ti-bsp.inc
9PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
10PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
11 9
12EXTRA_IMAGEDEPENDS += "virtual/bootloader" 10EXTRA_IMAGEDEPENDS += "virtual/bootloader"
13 11
diff --git a/meta-ti-bsp/conf/machine/include/ti-bsp.inc b/meta-ti-bsp/conf/machine/include/ti-bsp.inc
new file mode 100644
index 00000000..953737a0
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti-bsp.inc
@@ -0,0 +1,109 @@
1# Support multiple BSP providers
2# The main input is TI_PREFERRED_BSP, which translates into default
3# preferences for kernel, bootloader and graphics components, as
4# well as a dedicated machine override.
5
6# Supported options are: mainline, ti-6_6, ti-6_1, bb_org
7TI_PREFERRED_BSP ??= "ti-6_6"
8
9# Use bsp-* namespace for overrides
10MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:"
11
12# ==========
13# mainline
14# latest upstream/mainline kernel, u-boot
15# ==========
16BSP_KERNEL_PROVIDER:bsp-mainline = "linux-ti-mainline"
17BSP_KERNEL_VERSION:bsp-mainline = "%"
18BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline"
19BSP_BOOTLOADER_VERSION:bsp-mainline = "%"
20
21# GPU support requires out-of-tree SGX and Rogue drivers not available
22# in mainline, usually present in TI staging or derivative like BB.org
23MACHINE_FEATURES:remove:bsp-mainline = "gpu"
24
25# ==========
26# ti-6_6
27# TI staging kernel 6.6, u-boot 2024.04
28# ==========
29BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging"
30BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6%"
31BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging"
32BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%"
33
34# Only Rogue is enabled so far, SGX falls back to SW rendering
35BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver"
36BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%"
37BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%"
38BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "23%"
39
40# ==========
41# ti-6_1
42# TI staging kernel 6.1, u-boot 2023.04
43# ==========
44BSP_KERNEL_PROVIDER:bsp-ti-6_1 = "linux-ti-staging"
45BSP_KERNEL_VERSION:bsp-ti-6_1 = "6.1%"
46BSP_BOOTLOADER_PROVIDER:bsp-ti-6_1 = "u-boot-ti-staging"
47BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023%"
48
49BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-sgx-ddk-km"
50BSP_SGX_DRIVER_VERSION:bsp-ti-6_1 = "1.17%"
51BSP_SGX_UMLIBS_VERSION:bsp-ti-6_1 = "1.17%"
52BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-img-rogue-driver"
53BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_1 = "23%"
54BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_1 = "23%"
55BSP_MESA_PVR_VERSION:bsp-ti-6_1 = "22%"
56
57# ==========
58# bb_org
59# BeagleBoard.org kernel 6.1, u-boot 2023.04
60# based on TI staging trees with extra Beagle-specific features
61# but may not be up-to-date with TI version
62# ==========
63BSP_KERNEL_PROVIDER:bsp-bb_org = "linux-bb.org"
64BSP_KERNEL_VERSION:bsp-bb_org = "%"
65BSP_BOOTLOADER_PROVIDER:bsp-bb_org = "u-boot-bb.org"
66BSP_BOOTLOADER_VERSION:bsp-bb_org = "%"
67
68BSP_SGX_DRIVER_PROVIDER:bsp-bb_org = "ti-sgx-ddk-km"
69BSP_SGX_DRIVER_VERSION:bsp-bb_org = "1.17%"
70BSP_SGX_UMLIBS_VERSION:bsp-bb_org = "1.17%"
71BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org = "ti-img-rogue-driver"
72BSP_ROGUE_DRIVER_VERSION:bsp-bb_org = "23%"
73BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org = "23%"
74BSP_MESA_PVR_VERSION:bsp-bb_org = "22%"
75
76# ==========
77# sane fallback defaults
78# if specific values are not defined or bsp is set incorrectly
79# use default preference TI staging and SW-rendering graphics
80# ==========
81BSP_KERNEL_PROVIDER ?= "linux-ti-staging"
82BSP_KERNEL_VERSION ?= "%"
83BSP_BOOTLOADER_PROVIDER ?= "u-boot-ti-staging"
84BSP_BOOTLOADER_VERSION ?= "%"
85
86BSP_SGX_DRIVER_PROVIDER ?= ""
87BSP_SGX_DRIVER_VERSION ?= ""
88BSP_ROGUE_DRIVER_PROVIDER ?= ""
89BSP_ROGUE_DRIVER_VERSION ?= ""
90BSP_SGX_UMLIBS_VERSION ?= ""
91BSP_ROGUE_UMLIBS_VERSION ?= ""
92BSP_MESA_PVR_VERSION ?= ""
93
94# ==========
95# global preferences
96# ==========
97PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}"
98PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${BSP_KERNEL_VERSION}"
99PREFERRED_PROVIDER_virtual/bootloader ?= "${BSP_BOOTLOADER_PROVIDER}"
100PREFERRED_PROVIDER_u-boot ?= "${BSP_BOOTLOADER_PROVIDER}"
101PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}"
102
103# GPU provider gets set in machine configs, as some machines are headless
104# Select default preferred versions here
105PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}"
106PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}"
107PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}"
108PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}"
109PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
index a1fd3cbf..5d77e719 100644
--- a/meta-ti-bsp/conf/machine/include/ti-soc.inc
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -1,9 +1,8 @@
1# This is a generic TI SOC family. It is a superset of all other SOCs 1# This is a generic TI SOC family. It is a superset of all other SOCs
2# and platforms defined in meta-ti to allow BSP-level overrides. 2# and platforms defined in meta-ti to allow BSP-level overrides.
3SOC_FAMILY = "ti-soc" 3SOC_FAMILY = "ti-soc"
4require conf/machine/include/soc-family.inc
4 5
5# TI platforms all use devicetrees with overlays 6# TI platforms all use devicetrees with overlays
6MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" 7MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
7KERNEL_DTB_OVERLAY_SUPPORT ?= "1" 8KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
8
9require conf/machine/include/soc-family.inc
diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc
index 6fd65b2d..45934aa0 100644
--- a/meta-ti-bsp/conf/machine/include/ti33x.inc
+++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
@@ -7,14 +7,11 @@ require conf/machine/include/arm/armv7a/tune-cortexa8.inc
7# Increase this everytime you change something in the kernel 7# Increase this everytime you change something in the kernel
8MACHINE_KERNEL_PR = "r22" 8MACHINE_KERNEL_PR = "r22"
9 9
10# Default providers, may need to override for specific machines 10require conf/machine/include/ti-bsp.inc
11PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
12PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
13PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
14 11
15# Graphics providers and variables 12# Graphics providers and variables
16require conf/machine/include/mesa-pvr.inc 13require conf/machine/include/mesa-pvr.inc
17PREFERRED_PROVIDER_virtual/gpudriver ?= "" 14PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
18PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc" 15PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc"
19 16
20KERNEL_IMAGETYPE = "zImage" 17KERNEL_IMAGETYPE = "zImage"
diff --git a/meta-ti-bsp/conf/machine/include/ti43x.inc b/meta-ti-bsp/conf/machine/include/ti43x.inc
index 0a3ef4c3..c6a3c510 100644
--- a/meta-ti-bsp/conf/machine/include/ti43x.inc
+++ b/meta-ti-bsp/conf/machine/include/ti43x.inc
@@ -7,14 +7,11 @@ require conf/machine/include/arm/armv7a/tune-cortexa9.inc
7# Increase this everytime you change something in the kernel 7# Increase this everytime you change something in the kernel
8MACHINE_KERNEL_PR = "r3" 8MACHINE_KERNEL_PR = "r3"
9 9
10# Default providers, may need to override for specific machines 10require conf/machine/include/ti-bsp.inc
11PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
12PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
13PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
14 11
15# Graphics providers and variables 12# Graphics providers and variables
16require conf/machine/include/mesa-pvr.inc 13require conf/machine/include/mesa-pvr.inc
17PREFERRED_PROVIDER_virtual/gpudriver ?= "" 14PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
18PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" 15PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm"
19 16
20KERNEL_IMAGETYPE = "zImage" 17KERNEL_IMAGETYPE = "zImage"