mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 02:33:07 +00:00
ed86e4fba1
This patch adds basic support for MediaTek MT7981 SoC. This include the file that will initialize the SoC after boot and its device tree. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
32 lines
699 B
ArmAsm
32 lines
699 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2022 MediaTek Inc.
|
|
* Author: Sam Shih <sam.shih@mediatek.com>
|
|
*/
|
|
|
|
/*
|
|
* Switch from AArch64 EL2 to AArch32 EL2
|
|
* @param inputs:
|
|
* x0: argument, zero
|
|
* x1: machine nr
|
|
* x2: fdt address
|
|
* x3: input argument
|
|
* x4: kernel entry point
|
|
* @param outputs for secure firmware:
|
|
* x0: function id
|
|
* x1: kernel entry point
|
|
* x2: machine nr
|
|
* x3: fdt address
|
|
*
|
|
* [1] https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/plat/mediatek/common/mtk_sip_svc.c
|
|
*/
|
|
|
|
.global armv8_el2_to_aarch32
|
|
armv8_el2_to_aarch32:
|
|
mov x3, x2
|
|
mov x2, x1
|
|
mov x1, x4
|
|
mov x4, #0
|
|
ldr x0, =0x82000200 /* MTK_SIP_KERNEL_BOOT_AARCH32 */
|
|
SMC #0
|
|
ret
|