mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq9048: Enable reset support
Change-Id: I4ba557fe62c5f41a4c2072739d0d7d9a16e262fb Signed-off-by: anusha <anusharao@codeaurora.org>
This commit is contained in:
parent
6470b8c616
commit
5d0d1f21f9
3 changed files with 23 additions and 6 deletions
|
|
@ -21,6 +21,8 @@
|
|||
#include <asm/arch-qca-common/qpic_nand.h>
|
||||
#include <asm/arch-qca-common/gpio.h>
|
||||
#include <asm/arch-qca-common/uart.h>
|
||||
#include <asm/arch-qca-common/scm.h>
|
||||
#include <asm/arch-qca-common/iomap.h>
|
||||
#include <ipq9048.h>
|
||||
#include <mmc.h>
|
||||
#include <sdhci.h>
|
||||
|
|
@ -49,11 +51,6 @@ void qca_serial_init(struct ipq_serial_platdata *plat)
|
|||
return;
|
||||
}
|
||||
|
||||
void reset_crashdump(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void fdt_fixup_qpic(void *blob)
|
||||
{
|
||||
int node_off, ret;
|
||||
|
|
@ -306,8 +303,27 @@ unsigned long timer_read_counter(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void reset_crashdump(void)
|
||||
{
|
||||
unsigned int ret = 0;
|
||||
qca_scm_sdi();
|
||||
ret = qca_scm_dload(CLEAR_MAGIC);
|
||||
if (ret)
|
||||
printf ("Error in reseting the Magic cookie\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void psci_sys_reset(void)
|
||||
{
|
||||
__invoke_psci_fn_smc(PSCI_RESET_SMC_ID, 0, 0, 0);
|
||||
}
|
||||
|
||||
void reset_cpu(unsigned long a)
|
||||
{
|
||||
reset_crashdump();
|
||||
|
||||
psci_sys_reset();
|
||||
|
||||
while (1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
#define GCC_SDCC1_BCR 0x1833000
|
||||
#define GCC_SDCC1_AHB_CBCR 0x1833034
|
||||
|
||||
|
||||
#define PSCI_RESET_SMC_ID 0x84000009
|
||||
unsigned int __invoke_psci_fn_smc(unsigned int, unsigned int,
|
||||
unsigned int, unsigned int);
|
||||
|
||||
|
|
|
|||
|
|
@ -281,4 +281,5 @@ extern loff_t board_env_size;
|
|||
#define IPQ_UBI_VOL_WRITE_SUPPORT
|
||||
#define CONFIG_IPQ_TZT
|
||||
#define CONFIG_IPQ_FDT_FIXUP
|
||||
#define CONFIG_ARMV7_PSCI
|
||||
#endif /* _IPQ9048_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue