diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-10-31 14:12:39 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-12-06 23:59:31 +0100 |
commit | 20f7b1b745f1dff6e7a02b2160c688e5276b52e4 (patch) | |
tree | 5b284c67982c08ac9e23e0a859d3bfb6ba5472d1 /arch/arm/cpu/pxa/cpu.c | |
parent | c477d72c04916b10efb32deb112905d2680ad4a2 (diff) | |
download | u-boot-imx-20f7b1b745f1dff6e7a02b2160c688e5276b52e4.zip u-boot-imx-20f7b1b745f1dff6e7a02b2160c688e5276b52e4.tar.gz u-boot-imx-20f7b1b745f1dff6e7a02b2160c688e5276b52e4.tar.bz2 |
PXA: Rework start.S to be closer to other ARMs
The start.S on PXA was very obscure. This reworks it back to be close to arm1136
start.S and others.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
V2: Don't compile in relocation support if building SPL
Diffstat (limited to 'arch/arm/cpu/pxa/cpu.c')
-rw-r--r-- | arch/arm/cpu/pxa/cpu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/cpu/pxa/cpu.c b/arch/arm/cpu/pxa/cpu.c index df351c7..c48b2ef 100644 --- a/arch/arm/cpu/pxa/cpu.c +++ b/arch/arm/cpu/pxa/cpu.c @@ -328,3 +328,19 @@ void i2c_clk_enable(void) writel(readl(CKEN) | CKEN14_I2C, CKEN); #endif } + +void reset_cpu(ulong ignored) __attribute__((noreturn)); + +void reset_cpu(ulong ignored) +{ + uint32_t tmp; + + setbits_le32(OWER, OWER_WME); + + tmp = readl(OSCR); + tmp += 0x1000; + writel(tmp, OSMR3); + + for (;;) + ; +} |