2 * board/mx1ads/lowlevel_init.S
5 * Techware Information Technology, Inc.
6 * http://www.techware.com.tw/
8 * Ming-Len Wu <minglen_wu@techware.com.tw>
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.
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.
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,
29 #define SDCTL0 0x221000
30 #define SDCTL1 0x221004
38 /* memory controller init */
42 /* Set Precharge Command */
45 /* ldr r3, =0x92120251
49 /* Issue Precharge All Commad */
53 /* Set AutoRefresh Command */
57 /* Issue AutoRefresh Command */
68 /* Set Mode Register */
72 /* Issue Mode Register Command */
73 ldr r3, =0x08111800 /* Mode Register Value */
80 /* everything is fine now */