2 * Memory Setup stuff - taken from blob memsetup.S
4 * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) and
5 * Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
6 * 2004 (c) MontaVista Software, Inc.
8 * See file CREDITS for list of people who contributed to this
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 /*-----------------------------------------------------------------------
50 #define ASSABET_BCR (0x12000000)
51 #define ASSABET_BCR_DB1110 (0x00a07490 | (0<<16) | (0<<17))
52 #define ASSABET_SCR_nNEPONSET (1 << 9)
53 #define NEPONSET_LEDS (0x10000010)
56 /*-----------------------------------------------------------------------
57 * Setup parameters for the board:
61 MEM_BASE: .long 0xa0000000
62 MEM_START: .long 0xc0000000
64 mdcnfg: .long 0x72547254
65 mdcas00: .long 0xaaaaaa7f
66 mdcas01: .long 0xaaaaaaaa
67 mdcas02: .long 0xaaaaaaaa
68 msc0: .long 0x4b384370
69 msc1: .long 0x22212419
70 mecr: .long 0x994a994a
71 mdrefr: .long 0x04340327
72 mdcas20: .long 0xaaaaaa7f
73 mdcas21: .long 0xaaaaaaaa
74 mdcas22: .long 0xaaaaaaaa
75 msc2: .long 0x42196669
76 smcnfg: .long 0x00000000
78 BCR: .long ASSABET_BCR
79 BCR_DB1110: .long ASSABET_BCR_DB1110
80 LEDS: .long NEPONSET_LEDS
86 /* Setting up the memory and stuff */
90 str r1, [r0, #MDCAS00]
92 str r1, [r0, #MDCAS01]
94 str r1, [r0, #MDCAS02]
96 str r1, [r0, #MDCAS20]
98 str r1, [r0, #MDCAS21]
100 str r1, [r0, #MDCAS22]
102 str r1, [r0, #MDREFR]
112 str r1, [r0, #SMCNFG]
115 str r1, [r0, #MDCNFG]
117 /* Load something to activate bank */
124 orr r1, r1, #0x00000001
125 str r1, [r0, #MDCNFG]