developer | 2fddd72 | 2022-05-20 11:22:21 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (C) 2022 MediaTek Inc. All rights reserved. |
| 4 | * |
| 5 | * Author: Weijie Gao <weijie.gao@mediatek.com> |
| 6 | */ |
| 7 | |
| 8 | #include <asm/addrspace.h> |
| 9 | #include <asm/asm.h> |
| 10 | #include <asm/regdef.h> |
| 11 | #include "mt7621.h" |
| 12 | |
| 13 | LEAF(mips_sram_init) |
| 14 | li t0, KSEG1ADDR(FE_BASE) |
| 15 | li t1, FE_PSE_RESET |
| 16 | sw t1, FE_RST_GLO_REG(t0) |
| 17 | |
| 18 | li t1, (FE_PSE_RAM | FE_PSE_MEM_EN) |
| 19 | sw t1, FE_RST_GLO_REG(t0) |
| 20 | |
| 21 | jr ra |
| 22 | END(mips_sram_init) |