arm: mediatek: add support for MediaTek MT7987 SoC
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 23 Jan 2025 08:55:01 +0000 (16:55 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 30 Jan 2025 20:35:14 +0000 (14:35 -0600)
commit2d6962e0618aab4cf91784aae4ea06d8f88128e2
tree56271460857a498f1df7eb0676396020d8c59d1b
parente5d20906f7a62c431b4ccf3cd5eaa49254853960
arm: mediatek: add support for MediaTek MT7987 SoC

This patch adds basic support for MediaTek MT7987 SoC.
This includes files that will initialize the SoC after boot and
its device tree.

In order to maximize the continuous usable  memory space, MT7987 has its
ATF BL31 loaded at the top of RAM. Since u-boot will also locate itself to
top of RAM, u-boot will read the actual memory region of BL31 and set
correct gd->ram_top to avoid u-boot overlapping with BL31.

As now support for mt7987 hasn't been submitted to linux kernel, all dts
filed will be put to arch/arm/dts. They'll be removed after successfully
being merged by linux kernel, and OF_UPSTREAM will also be switched on.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
14 files changed:
arch/arm/dts/mt7987-emmc.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987-netsys-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987-pinctrl-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987-pinctrl.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987-sd.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987a-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/mt7987a.dtsi [new file with mode: 0644]
arch/arm/mach-mediatek/Kconfig
arch/arm/mach-mediatek/Makefile
arch/arm/mach-mediatek/mt7987/Makefile [new file with mode: 0644]
arch/arm/mach-mediatek/mt7987/init.c [new file with mode: 0644]
arch/arm/mach-mediatek/mt7987/lowlevel_init.S [new file with mode: 0644]
arch/arm/mach-mediatek/tzcfg.c [new file with mode: 0644]