1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-26 22:07:51 +00:00

linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtb

This new device tree file is to support pruss with uio based drivers
alone.
Adds uio entries for pruss susbsystem and disables other drivers
controlling the same.
New dtb is added only if ENABLE_TI_UIO_DEVICES is enabled.

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Sam Nelson
2016-05-17 17:54:12 +00:00
committed by Denys Dmytriyenko
parent 8166221b76
commit 2a8d94c1fa
2 changed files with 206 additions and 0 deletions
+15
View File
@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi"
SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi"
SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi"
SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi"
SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi"
DTSI_LIST = ""
DTSI_LIST_append_keystone = " keystone-uio.dtsi"
@@ -9,6 +10,8 @@ DTSI_LIST_append_k2hk-evm = " k2hk-uio.dtsi"
DTSI_LIST_append_k2l-evm = " k2l-uio.dtsi"
DTSI_LIST_append_k2e-evm = " k2e-uio.dtsi"
KERNEL_DEVICETREE_append_am57xx-evm = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am572x-idk-pru-excl-uio.dtb", "", d)}"
do_setup_uio() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
@@ -24,4 +27,16 @@ do_setup_uio() {
fi
}
do_setup_uio_append_am57xx-evm() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
dts="am572x-idk-pru-excl-uio.dts"
dtsi="am572x-pru-uio.dtsi"
cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts
cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
fi
}
do_patch[postfuncs] += "do_setup_uio"