]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - cpu/arm926ejs/mx23/reset.S
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / cpu / arm926ejs / mx23 / reset.S
1 /*
2  * Processor reset for Freescale MX23 SoC.
3  *
4  * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
5  *
6  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
7  *
8  * -----------------------------------------------------
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License as
12  * published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  */
25
26 .globl reset_cpu
27 reset_cpu:
28         ldr     r0, POWER_CHARGE
29         mov     r1, #0x0
30         str     r1, [r0]
31         ldr     r0, POWER_MINPWR
32         str     r1, [r0]
33         ldr     r0, CLKCTRL_RESET
34         mov     r1, #0x1
35         str     r1, [r0]
36 _loop_forever:
37         b       _loop_forever
38
39 POWER_MINPWR:
40         .word 0x80044020
41 POWER_CHARGE:
42         .word 0x80044030
43 CLKCTRL_RESET:
44         .word 0x80040120
45