summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/conf/machine/include
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:45 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:38 -0600
commit20f3191aeb592dd889eeaf96a31526297de95306 (patch)
treeaec879b9855ff8a54df171ee808e30ac26f1c80b /meta-ti-bsp/conf/machine/include
parentbea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff)
downloadmeta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/conf/machine/include')
-rw-r--r--meta-ti-bsp/conf/machine/include/am64xx.inc24
-rw-r--r--meta-ti-bsp/conf/machine/include/am65xx.inc32
-rw-r--r--meta-ti-bsp/conf/machine/include/dra7xx.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/j7.inc7
-rw-r--r--meta-ti-bsp/conf/machine/include/k3.inc55
-rw-r--r--meta-ti-bsp/conf/machine/include/k3r5.inc24
-rw-r--r--meta-ti-bsp/conf/machine/include/omap-a15.inc55
-rw-r--r--meta-ti-bsp/conf/machine/include/omapl1.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/omapl138.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-soc.inc5
-rw-r--r--meta-ti-bsp/conf/machine/include/ti33x.inc70
-rw-r--r--meta-ti-bsp/conf/machine/include/ti43x.inc67
12 files changed, 347 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/machine/include/am64xx.inc b/meta-ti-bsp/conf/machine/include/am64xx.inc
new file mode 100644
index 00000000..afb96a22
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/am64xx.inc
@@ -0,0 +1,24 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":am64xx"
3
4MACHINE_FEATURES += "screen touchscreen"
5
6SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9KERNEL_DEVICETREE = " \
10 ti/k3-am642-evm.dtb \
11 ti/k3-am642-sk.dtb \
12 ti/k3-am642-evm-icssg1-dualemac.dtbo \
13 ti/k3-am642-evm-nand.dtbo \
14"
15
16# AM64 supports multi-certificate images, use the same
17IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
18
19do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
20do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
21
22TFA_BOARD = "lite"
23OPTEEMACHINE = "k3-am65x"
24OPTEEOUTPUTMACHINE = "k3"
diff --git a/meta-ti-bsp/conf/machine/include/am65xx.inc b/meta-ti-bsp/conf/machine/include/am65xx.inc
new file mode 100644
index 00000000..111ef96f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/am65xx.inc
@@ -0,0 +1,32 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":am65xx"
3
4MACHINE_FEATURES += "screen touchscreen gpu"
5
6SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9KERNEL_DEVICETREE = " \
10 ti/k3-am654-base-board.dtb \
11 ti/k3-am654-base-board-sr1.dtbo \
12 ti/k3-am654-gp.dtbo \
13 ti/k3-am654-idk.dtbo \
14 ti/k3-am654-idk-sr1.dtbo \
15 ti/k3-am654-sr1.dtbo \
16 ti/k3-am654-pcie-usb2.dtbo \
17 ti/k3-am654-pcie-usb3.dtbo \
18 ti/k3-am654-evm-tc358876.dtbo \
19 ti/k3-am654-evm-oldi-lcd1evm.dtbo \
20 ti/k3-am654-evm-ov5640.dtbo \
21"
22
23BBMULTICONFIG += "k3r5-sr2"
24
25# Use default IMAGE_BOOT_FILES_LEGACY files
26# Since default sysfw.itb on AM65x is for SR2.0, add a version for SR1.0
27IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb"
28do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
29do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
30
31OPTEEMACHINE = "k3-am65x"
32OPTEEOUTPUTMACHINE = "k3"
diff --git a/meta-ti-bsp/conf/machine/include/dra7xx.inc b/meta-ti-bsp/conf/machine/include/dra7xx.inc
new file mode 100644
index 00000000..a02421d9
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/dra7xx.inc
@@ -0,0 +1,4 @@
1require conf/machine/include/omap-a15.inc
2SOC_FAMILY:append = ":dra7xx"
3
4MACHINE_FEATURES += "pci"
diff --git a/meta-ti-bsp/conf/machine/include/j7.inc b/meta-ti-bsp/conf/machine/include/j7.inc
new file mode 100644
index 00000000..4ea3a5d8
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/j7.inc
@@ -0,0 +1,7 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":j7"
3
4OPTEEMACHINE = "k3-j721e"
5OPTEEOUTPUTMACHINE = "k3"
6
7# Use default IMAGE_BOOT_FILES_LEGACY files
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
new file mode 100644
index 00000000..a39ddd2a
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -0,0 +1,55 @@
1# TI K3 Aarch64 profile for Cortex-A53/A72 cores
2
3require conf/machine/include/ti-soc.inc
4SOC_FAMILY:append = ":k3"
5
6require conf/machine/include/arm/arch-arm64.inc
7
8BBMULTICONFIG += "k3r5"
9
10# Increase this everytime you change something in the kernel
11MACHINE_KERNEL_PR = "r0"
12
13PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
14PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
15PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16
17KERNEL_IMAGETYPE = "Image"
18KERNEL_IMAGETYPES = "Image vmlinux.gz"
19
20UBOOT_ARCH = "arm"
21UBOOT_ENTRYPOINT = "0x80008000"
22UBOOT_LOADADDRESS = "0x80008000"
23
24SPL_BINARY = "tispl.bin"
25UBOOT_SUFFIX = "img"
26
27EXTRA_IMAGEDEPENDS += "virtual/bootloader"
28
29TFA_PLATFORM = "k3"
30TFA_BOARD = "generic"
31
32MACHINE_GUI_CLASS = "smallscreen"
33
34# Use the expected value of the ubifs filesystem's volume name in the kernel
35# and u-boot.
36UBI_VOLNAME = "rootfs"
37
38# List common SoC features, may need to add touchscreen for specific machines
39MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci"
40
41IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
42
43IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
44IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
45
46IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
47IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
48
49EFI_PROVIDER ?= "grub-efi"
50MACHINE_FEATURES += "efi"
51
52WKS_FILE ?= "sdimage-2part-efi.wks"
53do_image_wic[depends] += "virtual/bootloader:do_deploy"
54do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
55do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
new file mode 100644
index 00000000..3cc79061
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/k3r5.inc
@@ -0,0 +1,24 @@
1# TI K3 Armv7 profile for Cortex-R5F cores
2
3require conf/machine/include/ti-soc.inc
4SOC_FAMILY:append = ":k3r5"
5
6# The closest of existing tunes for Cortex-R5F
7DEFAULTTUNE = "armv7athf"
8require conf/machine/include/arm/armv7a/tune-cortexa8.inc
9
10# R5 runs early bootloader and loads SYSFW
11# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README
12# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README
13PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
14PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
15PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16
17SPL_BINARY = ""
18UBOOT_SUFFIX = "bin"
19UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
20UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
21UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
22
23PACKAGECONFIG:pn-u-boot-ti-staging = ""
24PACKAGECONFIG:pn-u-boot-ti-mainline = ""
diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc b/meta-ti-bsp/conf/machine/include/omap-a15.inc
new file mode 100644
index 00000000..9a2e0044
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omap-a15.inc
@@ -0,0 +1,55 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":omap-a15"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa15.inc
6
7# Increase this everytime you change something in the kernel
8MACHINE_KERNEL_PR = "r7"
9
10PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
11PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
12PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
13
14KERNEL_IMAGETYPE = "zImage"
15KERNEL_IMAGETYPES = "zImage uImage"
16KERNEL_CLASSES += "kernel-uimage"
17
18UBOOT_ARCH = "arm"
19UBOOT_ENTRYPOINT = "0x80008000"
20UBOOT_LOADADDRESS = "0x80008000"
21
22DEVICETREE_FILE = "${@d.getVar('KERNEL_DEVICETREE').replace("ti/","")}"
23
24# Generate an extlinux.conf file
25UBOOT_EXTLINUX = "1"
26UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
27UBOOT_EXTLINUX_BOOT_FILES = " \
28 extlinux.conf;extlinux/extlinux.conf \
29 ${KERNEL_IMAGETYPE} \
30 ${DEVICETREE_FILE} \
31"
32
33SPL_BINARY = "MLO"
34UBOOT_SUFFIX = "img"
35
36EXTRA_IMAGEDEPENDS += "virtual/bootloader"
37
38PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
39XSERVER = "xserver-xorg \
40 xf86-input-evdev \
41 xf86-video-fbdev"
42
43MACHINE_GUI_CLASS = "smallscreen"
44
45# Use the expected value of the ubifs filesystem's volume name in the kernel
46# and u-boot.
47UBI_VOLNAME = "rootfs"
48
49# List common SoC features, may need to add touchscreen for specific machines
50MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320"
51
52IMAGE_FSTYPES += "tar.xz wic.xz"
53WKS_FILE ?= "sdimage-2part.wks"
54IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
55do_image_wic[depends] += "u-boot:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/omapl1.inc b/meta-ti-bsp/conf/machine/include/omapl1.inc
new file mode 100644
index 00000000..d0262c3f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omapl1.inc
@@ -0,0 +1,2 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":omapl1"
diff --git a/meta-ti-bsp/conf/machine/include/omapl138.inc b/meta-ti-bsp/conf/machine/include/omapl138.inc
new file mode 100644
index 00000000..c6eb0cd9
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omapl138.inc
@@ -0,0 +1,2 @@
1require conf/machine/include/omapl1.inc
2SOC_FAMILY:append = ":omapl138"
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
new file mode 100644
index 00000000..2792d2a0
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -0,0 +1,5 @@
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.
3SOC_FAMILY = "ti-soc"
4KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
5require 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
new file mode 100644
index 00000000..afb80fd6
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
@@ -0,0 +1,70 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":ti33x"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa8.inc
6
7PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
8
9# For built-in LCD, add xf86-input-tslib
10XSERVER = "xserver-xorg \
11 xf86-input-evdev \
12 xf86-input-mouse \
13 xf86-video-fbdev \
14 xf86-input-keyboard"
15
16# Default to external video, change to smallscreen for built-in LCD
17MACHINE_GUI_CLASS = "bigscreen"
18
19# Increase this everytime you change something in the kernel
20MACHINE_KERNEL_PR = "r22"
21
22# Default providers, may need to override for specific machines
23PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
24PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
25PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
26
27KERNEL_IMAGETYPE = "zImage"
28
29KERNEL_DEVICETREE = " \
30 am335x-evm.dtb am335x-evmsk.dtb \
31 am335x-icev2.dtb \
32 am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \
33 am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \
34 am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
35 am335x-sancloud-bbe.dtb \
36"
37
38KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}"
39
40UBOOT_ARCH = "arm"
41UBOOT_MACHINE = "am335x_evm_config"
42
43UBOOT_ENTRYPOINT = "0x80008000"
44UBOOT_LOADADDRESS = "0x80008000"
45
46# Generate an extlinux.conf file
47UBOOT_EXTLINUX = "1"
48UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
49UBOOT_EXTLINUX_BOOT_FILES = " \
50 extlinux.conf;extlinux/extlinux.conf \
51 ${KERNEL_IMAGETYPE} \
52 ${KERNEL_DEVICETREE} \
53"
54
55SPL_BINARY = "MLO"
56UBOOT_SUFFIX = "img"
57
58# Use the expected value of the ubifs filesystem's volume name in the kernel
59# and u-boot.
60UBI_VOLNAME = "rootfs"
61
62EXTRA_IMAGEDEPENDS += "virtual/bootloader"
63
64# List common SoC features, may need to add touchscreen for specific machines
65MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
66
67IMAGE_FSTYPES += "tar.xz wic.xz"
68WKS_FILE ?= "sdimage-2part.wks"
69IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
70do_image_wic[depends] += "virtual/bootloader:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/ti43x.inc b/meta-ti-bsp/conf/machine/include/ti43x.inc
new file mode 100644
index 00000000..2c3a3770
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti43x.inc
@@ -0,0 +1,67 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":ti43x"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa9.inc
6
7PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
8
9# For built-in LCD, add xf86-input-tslib
10XSERVER = "xserver-xorg \
11 xf86-input-evdev \
12 xf86-input-mouse \
13 xf86-video-fbdev \
14 xf86-input-keyboard"
15
16# Default to external video, change to smallscreen for built-in LCD
17MACHINE_GUI_CLASS = "bigscreen"
18
19# Increase this everytime you change something in the kernel
20MACHINE_KERNEL_PR = "r3"
21
22# Default providers, may need to override for specific machines
23PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
24PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
25PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
26
27KERNEL_IMAGETYPE = "zImage"
28
29KERNEL_DEVICETREE = " \
30 am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb \
31 am437x-sk-evm.dtb am437x-idk-evm.dtb \
32 am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb \
33"
34
35KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}"
36
37UBOOT_ARCH = "arm"
38UBOOT_MACHINE = "am43xx_evm_config"
39
40UBOOT_ENTRYPOINT = "0x80008000"
41UBOOT_LOADADDRESS = "0x80008000"
42
43# Generate an extlinux.conf file
44UBOOT_EXTLINUX = "1"
45UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
46UBOOT_EXTLINUX_BOOT_FILES = " \
47 extlinux.conf;extlinux/extlinux.conf \
48 ${KERNEL_IMAGETYPE} \
49 ${KERNEL_DEVICETREE} \
50"
51
52SPL_BINARY = "MLO"
53UBOOT_SUFFIX = "img"
54
55# Use the expected value of the ubifs filesystem's volume name in the kernel
56# and u-boot.
57UBI_VOLNAME = "rootfs"
58
59EXTRA_IMAGEDEPENDS += "u-boot"
60
61# List common SoC features, may need to add touchscreen for specific machines
62MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
63
64IMAGE_FSTYPES += "tar.xz wic.xz"
65WKS_FILE ?= "sdimage-2part.wks"
66IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
67do_image_wic[depends] += "u-boot:do_deploy"