1 /* 2 * (C) Copyright 2000-2009 3 * Vipin Kumar, ST Microelectronics, vipin.kumar@st.com 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of 11 * the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 * MA 02111-1307 USA 22 */ 23 24 #include <common.h> 25 26 #if (CONFIG_DDR_PLL2 || CONFIG_DDR_2HCLK) 27 28 const u32 mpmc_conf_vals[CONFIG_SPEAR_MPMCREGS] = { 29 #if (CONFIG_DDR_PLL2) 30 0x00000001, 31 0x00000000, 32 #elif (CONFIG_DDR_2HCLK) 33 0x02020201, 34 0x02020202, 35 #endif 36 0x01000000, 37 0x00000101, 38 0x00000101, 39 0x01000000, 40 0x00010001, 41 0x00000100, 42 0x01010001, 43 0x00000201, 44 0x01000101, 45 0x06000002, 46 0x06060106, 47 0x03050502, 48 0x03040404, 49 0x02020503, 50 #ifdef CONFIG_X600 51 0x02030206, 52 #else 53 0x02010106, 54 #endif 55 0x03000405, 56 0x03040202, 57 0x04000305, 58 0x0707073f, 59 0x07070707, 60 0x06060607, 61 0x06060606, 62 0x05050506, 63 0x05050505, 64 0x04040405, 65 0x04040404, 66 0x03030304, 67 0x03030303, 68 0x02020203, 69 0x02020202, 70 0x01010102, 71 0x01010101, 72 0x0a0a0a01, 73 0x0000023f, 74 0x00050a00, 75 0x11000000, 76 0x00001302, 77 0x00000A0A, 78 #ifdef CONFIG_X600 79 0x7f000000, 80 0x005c0000, 81 #else 82 0x72000000, 83 0x00550000, 84 #endif 85 0x2b050e86, 86 0x00640064, 87 0x00640064, 88 0x00640064, 89 0x00000064, 90 0x00200020, 91 0x00200020, 92 0x00200020, 93 0x00200020, 94 0x00200020, 95 0x00200020, 96 0x00200020, 97 0x00000a24, 98 0x43C20000, 99 0x5b1c00c8, 100 0x00c8002e, 101 0x00000000, 102 0x0001046b, 103 0x00000000, 104 0x03030100, 105 0x03030303, 106 0x03030303, 107 0x03030303, 108 0x00210000, 109 0x00010021, 110 0x00200000, 111 0x006c0090, 112 0x003fffff, 113 0x003fffff, 114 0x00000000, 115 0x00000000, 116 0x003fffff, 117 0x003fffff, 118 0x00000000, 119 0x00000000, 120 0x003fffff, 121 0x003fffff, 122 0x00000000, 123 0x00000000, 124 0x003fffff, 125 0x003fffff, 126 0x00000000, 127 0x00000000, 128 0x003fffff, 129 0x003fffff, 130 0x00000000, 131 0x00000000, 132 0x003fffff, 133 0x003fffff, 134 0x00000000, 135 0x00000000, 136 0x003fffff, 137 0x003fffff, 138 0x00000000, 139 0x00000000, 140 0x00000000, 141 0x00000000, 142 0x00000000 143 }; 144 #endif 145