mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-26 05:48:04 +00:00
linux-ti-staging: include pru-uio device tree files for am571x and k2g
* The pru-uio device tree file for am572x is also updated to support icss-emac-lld in Linux userspace. * The new dtbs are added only if ENABLE_TI_UIO_DEVICES is enabled. Signed-off-by: Hongmei Gou <a0271529@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
committed by
Denys Dmytriyenko
parent
aab57f6f5f
commit
a62a97bd3d
@@ -2,7 +2,10 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi"
|
||||
SRC_URI_append_k2hk = " file://k2hk-uio.dtsi"
|
||||
SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi"
|
||||
SRC_URI_append_k2e = " file://k2e-uio.dtsi"
|
||||
SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi"
|
||||
SRC_URI_append_k2g = " file://keystone-k2g-pru-uio.dtsi"
|
||||
SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi \
|
||||
file://am571x-pru-uio.dtsi \
|
||||
"
|
||||
SRC_URI_append_ti33x = " file://am335x-pru-uio.dtsi"
|
||||
SRC_URI_append_ti43x = " file://am437x-pru-uio.dtsi"
|
||||
|
||||
@@ -12,9 +15,10 @@ DTSI_LIST_append_k2hk = " k2hk-uio.dtsi"
|
||||
DTSI_LIST_append_k2l-evm = " k2l-uio.dtsi"
|
||||
DTSI_LIST_append_k2e = " k2e-uio.dtsi"
|
||||
|
||||
KERNEL_DEVICETREE_append_am57xx-evm = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am572x-idk-pru-excl-uio.dtb", "", d)}"
|
||||
KERNEL_DEVICETREE_append_am57xx-evm = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am572x-idk-pru-excl-uio.dtb am571x-idk-pru-excl-uio.dtb", "", d)}"
|
||||
KERNEL_DEVICETREE_append_ti33x = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am335x-icev2-pru-excl-uio.dtb", "", d)}"
|
||||
KERNEL_DEVICETREE_append_ti43x = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am437x-idk-pru-excl-uio.dtb", "", d)}"
|
||||
KERNEL_DEVICETREE_append_k2g = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " keystone-k2g-ice-pru-excl-uio.dtb", "", d)}"
|
||||
|
||||
do_setup_uio() {
|
||||
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
|
||||
@@ -40,6 +44,12 @@ do_setup_uio_append_am57xx-evm() {
|
||||
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
|
||||
|
||||
dts="am571x-idk-pru-excl-uio.dts"
|
||||
dtsi="am571x-pru-uio.dtsi"
|
||||
cp ${S}/arch/arm/boot/dts/am571x-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
|
||||
}
|
||||
|
||||
@@ -67,4 +77,16 @@ do_setup_uio_append_ti43x() {
|
||||
fi
|
||||
}
|
||||
|
||||
do_setup_uio_append_k2g() {
|
||||
|
||||
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
|
||||
then
|
||||
dts="keystone-k2g-ice-pru-excl-uio.dts"
|
||||
dtsi="keystone-k2g-pru-uio.dtsi"
|
||||
cp ${S}/arch/arm/boot/dts/keystone-k2g-ice.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"
|
||||
|
||||
Reference in New Issue
Block a user