detect the cpu model to dynamise the periphs mapping currently only tested on qemu but should work on real hardware Cortex-A9 if you use 1GiB of ram you can run the same barebox on Cortex-A15 or Cortex-A9 otherwise use vexpress_ca9_defconfig where the TEXT_BASE is at 0x63f00000 when we will add the relocation support this defconfig will be drop qemu/arm-softmmu/qemu-system-arm -M vexpress-a9 -m 1024 -smp 1 -kernel build/vexpress/barebox -pflash build/vexpress/flash0 -nographic Cortex-A15 qemu/arm-softmmu/qemu-system-arm -M vexpress-a15 -m 1024 -smp 1 -kernel build/vexpress/barebox -pflash build/vexpress/flash0 -nographic Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
23 lines
366 B
C
23 lines
366 B
C
/*
|
|
* Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
|
|
*
|
|
* GPLv2 only
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <io.h>
|
|
#include <linux/amba/sp805.h>
|
|
|
|
#include <mach/devices.h>
|
|
|
|
void __iomem *v2m_wdt_base;
|
|
|
|
void reset_cpu(ulong addr)
|
|
{
|
|
writel(LOAD_MIN, v2m_wdt_base + WDTLOAD);
|
|
writeb(RESET_ENABLE, v2m_wdt_base + WDTCONTROL);
|
|
|
|
while (1)
|
|
;
|
|
}
|