Merge branch 'master' of git://git.denx.de/u-boot-uniphier
This commit is contained in:
@@ -85,3 +85,11 @@
|
||||
&serial0 {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&mio {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
&emmc {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
interrupt-parent = <&intc>;
|
||||
u-boot,dm-pre-reloc;
|
||||
|
||||
timer@20000200 {
|
||||
compatible = "arm,cortex-a9-global-timer";
|
||||
|
||||
@@ -151,3 +151,8 @@ int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point)
|
||||
|
||||
return PSCI_RET_SUCCESS;
|
||||
}
|
||||
|
||||
void __secure psci_system_reset(u32 function_id)
|
||||
{
|
||||
reset_cpu(0);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||
* Copyright (C) 2012-2015 Panasonic Corporation
|
||||
* Copyright (C) 2015-2016 Socionext Inc.
|
||||
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
@@ -38,7 +40,12 @@ static int support_card_show_revision(void)
|
||||
u32 revision;
|
||||
|
||||
revision = readl(MICRO_SUPPORT_CARD_REVISION);
|
||||
printf("(CPLD version %d.%d)\n", revision >> 4, revision & 0xf);
|
||||
revision &= 0xff;
|
||||
|
||||
/* revision 3.6.x card changed the revision format */
|
||||
printf("(CPLD version %s%d.%d)\n", revision >> 4 == 6 ? "3." : "",
|
||||
revision >> 4, revision & 0xf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||
* Copyright (C) 2012-2014 Panasonic Corporation
|
||||
* Copyright (C) 2015-2016 Socionext Inc.
|
||||
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <linux/io.h>
|
||||
#include <asm/secure.h>
|
||||
|
||||
#include "sc-regs.h"
|
||||
|
||||
void reset_cpu(unsigned long ignored)
|
||||
/* If PSCI is enabled, this is used for SYSTEM_RESET function */
|
||||
#ifdef CONFIG_ARMV7_PSCI
|
||||
#define __SECURE __secure
|
||||
#else
|
||||
#define __SECURE
|
||||
#endif
|
||||
|
||||
void __SECURE reset_cpu(unsigned long ignored)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user