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