tizen 2.4 release
[kernel/u-boot-tm1.git] / board / tb0229 / lowlevel_init.S
1 /*
2  *  Memory sub-system initialization code for TANBAC Evaluation board TB0229.
3  *
4  *  Copyright (c) 2003  Masami Komiya <mkomiya@sonare.it>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2, or (at
9  * your option) any later version.
10  */
11
12 #include <config.h>
13 #include <asm/regdef.h>
14
15
16         .globl  lowlevel_init
17 lowlevel_init:
18
19         /* BCUCNTREG1 = 0x0040 */
20         la      t0, 0xaf000000
21         li      t1, 0x0040
22         sh      t1, 0(t0)
23
24         /* ROMSIZEREG = 0x3333 */
25         la      t0, 0xaf000004
26         li      t1, 0x3333
27         sh      t1, 0(t0)
28
29         /* ROMSPEEDREG = 0x3003 */
30         la      t0, 0xaf000006
31         li      t1, 0x3003
32         sh      t1, 0(t0)
33
34         /* BCUCNTREG3 = 0 */
35         la      t0, 0xaf000016
36         li      t1, 0x0000
37         sh      t1, 0(t0)
38
39         /* CMUCLKMSK */
40         la      t0, 0xaf000060
41         li      t1, 0x39a2
42         sh      t1, 0(t0)
43
44         /* PMUCNTREG */
45         la      t0, 0xaf0000c2
46         li      t1, 0x0006
47         sh      t1, 0(t0)
48
49         /* SDRAMMODEREG = 0x8029 */
50         la      t0, 0xaf000400
51         li      t1, 0x8029
52         sh      t1, 0(t0)
53
54         /* SDRAMCNTREG = 0x2322 */
55         la      t0, 0xaf000402
56         li      t1, 0x2322
57         sh      t1, 0(t0)
58
59         /* BCURFCNTREG = 0x0106 */
60         la      t0, 0xaf000404
61         li      t1, 0x0106
62         sh      t1, 0(t0)
63
64         /* RAMSZEREG = 0x5555 (64MB Bank) */
65         la      t0, 0xaf000408
66         li      t1, 0x5555
67         sh      t1, 0(t0)
68
69         j       ra
70         nop