mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 19:53:43 +00:00
* KERNEL_DEVICETREE is now specified in the machine configuration and
these appends have already been added there.
- This removes the duplcitaion of these device trees in this list and
thus resolves the "duplicate node name" failure during the fitImage
creation.
* Extend am57xx-evm dts injection to dra7xx family
- Now that KERNEL_DEVICETREE is specified in the machine
configuration, am57xx-hs-evm inherits this list from am57xx-evm.
- Extending these injectionsto the entire family allows these device
trees to be availble for am57xx-hs-evm as well.
- For dra7xx-evm and dra7xx-hs-evm, these device trees will not be
built as they are not included in their KERNEL_DEVICETREE list.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
88 lines
2.8 KiB
PHP
88 lines
2.8 KiB
PHP
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_k2g = " file://keystone-k2g-pru-uio.dtsi"
|
|
SRC_URI_append_dra7xx = " 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"
|
|
|
|
DTSI_LIST = ""
|
|
DTSI_LIST_append_keystone = " keystone-uio.dtsi"
|
|
DTSI_LIST_append_k2hk = " k2hk-uio.dtsi"
|
|
DTSI_LIST_append_k2l-evm = " k2l-uio.dtsi"
|
|
DTSI_LIST_append_k2e = " k2e-uio.dtsi"
|
|
|
|
do_setup_uio() {
|
|
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
|
|
then
|
|
for dtsi in ${DTSI_LIST}
|
|
do
|
|
cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
|
|
for dtb in ${KERNEL_DEVICETREE}
|
|
do
|
|
dts=`echo $dtb | sed -e 's|dtb$|dts|'`
|
|
echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
|
|
done
|
|
done
|
|
fi
|
|
}
|
|
|
|
do_setup_uio_append_dra7xx() {
|
|
|
|
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
|
|
|
|
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
|
|
}
|
|
|
|
do_setup_uio_append_ti33x() {
|
|
|
|
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
|
|
then
|
|
dts="am335x-icev2-pru-excl-uio.dts"
|
|
dtsi="am335x-pru-uio.dtsi"
|
|
cp ${S}/arch/arm/boot/dts/am335x-icev2.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_setup_uio_append_ti43x() {
|
|
|
|
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
|
|
then
|
|
dts="am437x-idk-pru-excl-uio.dts"
|
|
dtsi="am437x-pru-uio.dtsi"
|
|
cp ${S}/arch/arm/boot/dts/am437x-idk-evm.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_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"
|