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