mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
ARM: mediatek: mt8516: use PSCI to reset the SoC
Instead of using the watchdog, let's use PSCI to perform the reset of the SoC. Signed-off-by: Fabien Parent <fparent@baylibre.com>
This commit is contained in:
parent
29383f2043
commit
47f30aaa36
1 changed files with 1 additions and 8 deletions
|
@ -14,14 +14,10 @@
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
#include <linux/io.h>
|
|
||||||
#include <dt-bindings/clock/mt8516-clk.h>
|
#include <dt-bindings/clock/mt8516-clk.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define WDOG_SWRST 0x10007014
|
|
||||||
#define WDOG_SWRST_KEY 0x1209
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -87,10 +83,7 @@ int mtk_soc_early_init(void)
|
||||||
|
|
||||||
void reset_cpu(ulong addr)
|
void reset_cpu(ulong addr)
|
||||||
{
|
{
|
||||||
while (1) {
|
psci_system_reset();
|
||||||
writel(WDOG_SWRST_KEY, WDOG_SWRST);
|
|
||||||
mdelay(5);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int print_cpuinfo(void)
|
int print_cpuinfo(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue