| /* SPDX-License-Identifier: GPL-2.0 */ |
| * Copyright (C) 2020 MediaTek Inc. |
| * Author: Weijie Gao <weijie.gao@mediatek.com> |
| NESTED(lowlevel_init, 0, ra) |
| /* Save ra and do real lowlevel initialization */ |
| * Use SRAM from 802.11n MAC/BBP, 16KiB (0x10184000 ~ 0x10187fff) |
| * NOTE: non-word operations may fail in this SRAM. |
| * Use it as stack only for CPU/DRAM init which only has word operations. |
| /* We still need a temporary gd for udelay */ |
| sp, sp, GD_SIZE # reserve space for gd |
| and sp, sp, t0 # force 16 byte alignment |
| move k0, sp # save gd pointer |
| /* Do CPU & DRAM initialization */ |