1/* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * 17 */ 18 19#include <config.h> 20 21.global reset_cpu 22reset_cpu: 23 ldr r1, rstctl @ get addr for global reset 24 @ reg 25 mov r3, #0x2 @ full reset pll + mpu 26 str r3, [r1] @ force reset 27 mov r0, r0 28 29_loop_forever: 30 b _loop_forever 31rstctl: 32 .word SYS_CTRL_REG_BASE + REG_SC_SYSRES 33