wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 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 <version.h> |
| 14 | #include <asm/regdef.h> |
| 15 | |
| 16 | |
wdenk | 336b2bc | 2005-04-02 23:52:25 +0000 | [diff] [blame^] | 17 | .globl lowlevel_init |
| 18 | lowlevel_init: |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 19 | |
| 20 | /* BCUCNTREG1 = 0x0040 */ |
| 21 | la t0, 0xaf000000 |
| 22 | li t1, 0x0040 |
| 23 | sh t1, 0(t0) |
| 24 | |
| 25 | /* ROMSIZEREG = 0x3333 */ |
| 26 | la t0, 0xaf000004 |
| 27 | li t1, 0x3333 |
| 28 | sh t1, 0(t0) |
| 29 | |
| 30 | /* ROMSPEEDREG = 0x3003 */ |
| 31 | la t0, 0xaf000006 |
| 32 | li t1, 0x3003 |
| 33 | sh t1, 0(t0) |
| 34 | |
| 35 | /* BCUCNTREG3 = 0 */ |
| 36 | la t0, 0xaf000016 |
| 37 | li t1, 0x0000 |
| 38 | sh t1, 0(t0) |
| 39 | |
| 40 | /* CMUCLKMSK */ |
| 41 | la t0, 0xaf000060 |
| 42 | li t1, 0x39a2 |
| 43 | sh t1, 0(t0) |
| 44 | |
| 45 | /* PMUCNTREG */ |
| 46 | la t0, 0xaf0000c2 |
| 47 | li t1, 0x0006 |
| 48 | sh t1, 0(t0) |
| 49 | |
| 50 | /* SDRAMMODEREG = 0x8029 */ |
| 51 | la t0, 0xaf000400 |
| 52 | li t1, 0x8029 |
| 53 | sh t1, 0(t0) |
| 54 | |
| 55 | /* SDRAMCNTREG = 0x2322 */ |
| 56 | la t0, 0xaf000402 |
| 57 | li t1, 0x2322 |
| 58 | sh t1, 0(t0) |
| 59 | |
| 60 | /* BCURFCNTREG = 0x0106 */ |
| 61 | la t0, 0xaf000404 |
| 62 | li t1, 0x0106 |
| 63 | sh t1, 0(t0) |
| 64 | |
| 65 | /* RAMSZEREG = 0x5555 (64MB Bank) */ |
| 66 | la t0, 0xaf000408 |
| 67 | li t1, 0x5555 |
| 68 | sh t1, 0(t0) |
| 69 | |
| 70 | j ra |
| 71 | nop |