3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
11 * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
14 * Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com>
16 * See file CREDITS for list of people who contributed to this
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License as
21 * published by the Free Software Foundation; either version 2 of
22 * the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
37 #include <asm/arch/sci_types.h>
38 #include <asm/arch/chip_drv_config_extern.h>
39 #include <asm/arch/ldo.h>
40 #include <asm/arch/sprd_reg.h>
42 * Reset the cpu by setting up the watchdog timer and let it time out
44 void reset_cpu (ulong ignored)
50 void rtc_clean_all_int(void);
51 void power_down_cpu(ulong ignored)
53 #if defined(CONFIG_SPX15) || defined(CONFIG_ADIE_SC2723) || defined(CONFIG_ADIE_SC2723S)
57 v = ANA_REG_GET(ANA_REG_GLB_POR_SRC_FLAG);
58 printf("power on src = 0x%.8x\n", v);
60 while (v--); // log delay
63 sci_adi_set(ANA_REG_GLB_MP_PWR_CTRL0, BIT_PWR_OFF_SEQ_EN); //auto poweroff by chip