mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
Merge "ipq40xx: Support cpu reset" into eggplant
This commit is contained in:
commit
b893fade6f
1 changed files with 10 additions and 4 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <asm/arch-qcom-common/scm.h>
|
||||
#include <asm/arch-qcom-common/qpic_nand.h>
|
||||
#include <asm/arch-qcom-common/gpio.h>
|
||||
#include <asm/arch-qcom-common/iomap.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <fdtdec.h>
|
||||
#include <asm/arch-qcom-common/uart.h>
|
||||
|
|
@ -77,10 +78,6 @@ void qca_serial_init(struct ipq_serial_platdata *plat)
|
|||
qca_gpio_init(node);
|
||||
}
|
||||
|
||||
void reset_cpu(ulong addr)
|
||||
{
|
||||
}
|
||||
|
||||
void reset_crashdump(void)
|
||||
{
|
||||
unsigned int magic_cookie = CLEAR_MAGIC;
|
||||
|
|
@ -92,6 +89,15 @@ void reset_crashdump(void)
|
|||
sizeof(magic_cookie), NULL, 0);
|
||||
}
|
||||
|
||||
void reset_cpu(ulong addr)
|
||||
{
|
||||
/* Clear Debug sw entry register */
|
||||
reset_crashdump();
|
||||
/* clear ps-hold bit to reset the soc */
|
||||
writel(0, GCNT_PSHOLD);
|
||||
while (1);
|
||||
}
|
||||
|
||||
void board_nand_init(void)
|
||||
{
|
||||
struct qpic_nand_init_config config;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue