Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: include/configs/chromeos/st1q/common.h

Issue 1329001: ST1.5 board support and some ST1.0/1.5 common changes. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/configs/chromeos/st15/stub.h ('k') | include/configs/chromeos/st1q/recovery.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Code Aurora Forum. All rights reserved. 2 * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
3 * 3 *
4 * (C) Copyright 2002-2005 4 * (C) Copyright 2002-2005
5 * Wolfgang Denk, DENX Software Engineering, <wd@denx.de> 5 * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
6 * (C) Copyright 2002 6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Marius Groeger <mgroeger@sysgo.de> 8 * Marius Groeger <mgroeger@sysgo.de>
9 * Gary Jennejohn <gj@denx.de> 9 * Gary Jennejohn <gj@denx.de>
10 * 10 *
11 * Configuation settings for the st1q board, based on the Qualcomm 11 * Configuation settings for the st1q board, based on the Qualcomm
12 * QSD8x50 surf board. 12 * QSD8x50 surf board.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #undef CONFIG_SILENT_CONSOLE 115 #undef CONFIG_SILENT_CONSOLE
116 #define CFG_QC_SERIAL 116 #define CFG_QC_SERIAL
117 #define CONFIG_CONS_INDEX 0 117 #define CONFIG_CONS_INDEX 0
118 #define CONFIG_BAUDRATE 115200 118 #define CONFIG_BAUDRATE 115200
119 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } 119 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
120 120
121 #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT 121 #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT
122 122
123 #define CONFIG_BOOTDELAY 0 123 #define CONFIG_BOOTDELAY 0
124 #define CONFIG_BOOTARGS "quiet root=/dev/mmcblk0p3 rootwait nore sume noswap ro loglevel=1" 124 #define CONFIG_BOOTARGS "quiet root=/dev/mmcblk0p3 rootwait nore sume noswap ro loglevel=1"
125 #define CONFIG_BOOTCOMMAND» » "if mmc init; then ext2load mmc 0:3 0x20 007fc0 boot/vmlinux.uimg; bootm 0x20007fc0; fi;" 125 #define CONFIG_BOOTCOMMAND» » "if mmcinfo 0; then ext2load mmc 0:3 0x2 0007fc0 boot/vmlinux.uimg; bootm 0x20007fc0; fi;"
126 126
127 /* 127 /*
128 * Miscellaneous configurable options 128 * Miscellaneous configurable options
129 */ 129 */
130 #define CONFIG_SYS_NO_FLASH 130 #define CONFIG_SYS_NO_FLASH
131 #define CONFIG_SYS_LONGHELP 131 #define CONFIG_SYS_LONGHELP
132 #define CONFIG_SYS_HUSH_PARSER 132 #define CONFIG_SYS_HUSH_PARSER
133 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 133 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
134 #define CONFIG_SYS_PROMPT "ChromeOS> " 134 #define CONFIG_SYS_PROMPT "ChromeOS> "
135 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 135 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
(...skipping 22 matching lines...) Expand all
158 #define CONFIG_NR_DRAM_BANKS 2 158 #define CONFIG_NR_DRAM_BANKS 2
159 #define PHYS_SDRAM_1 0x20000000 /* EBI1 start */ 159 #define PHYS_SDRAM_1 0x20000000 /* EBI1 start */
160 #define PHYS_SDRAM_1_SIZE 0x0E000000 /* 256 - 32(adsp) = 224MB (0 x0E000000)*/ 160 #define PHYS_SDRAM_1_SIZE 0x0E000000 /* 256 - 32(adsp) = 224MB (0 x0E000000)*/
161 #define PHYS_SDRAM_2 0x30000000 /* EBI1, AFTER ADSP */ 161 #define PHYS_SDRAM_2 0x30000000 /* EBI1, AFTER ADSP */
162 #define PHYS_SDRAM_2_SIZE 0x30000000 /* For 1024MB on new memory map */ 162 #define PHYS_SDRAM_2_SIZE 0x30000000 /* For 1024MB on new memory map */
163 163
164 /* 164 /*
165 * Use the serial console. 165 * Use the serial console.
166 */ 166 */
167 #define CONFIG_SERIAL_CONSOLE 167 #define CONFIG_SERIAL_CONSOLE
168 #define CONFIG_STDOUT "serial" 168
169 #define CONFIG_STDERR "serial" 169 /* Console setup */
170 #define CONFIG_STDIN "serial" 170 #if defined(CONFIG_SERIAL_CONSOLE)
171 #define CONFIG_STDOUT "serial"
172 #define CONFIG_STDERR "serial"
173 #define CONFIG_STDIN "serial"
174 #else
175 #define CONFIG_ARM_DCC
176 #define CONFIG_ARM_DCC_MULTI
177 #define CONFIG_CPU_V7
178
179 #define CONFIG_STDOUT "dcc"
180 #define CONFIG_STDERR "dcc"
181 #define CONFIG_STDIN "dcc"
182 #endif
183
171 #define CONFIG_SYS_CONSOLE_IS_IN_ENV 184 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
172 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 185 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
173 186
174 /*----------------------------------------------------------------------- 187 /*-----------------------------------------------------------------------
175 * Shared Memory Location - 188 * Shared Memory Location -
176 */ 189 */
177 #define SMEM_START 0x00100000 190 #define SMEM_START 0x00100000
178 #define SMEM_SIZE 0x00100000 191 #define SMEM_SIZE 0x00100000
179 192
180 /*----------------------------------------------------------------------- 193 /*-----------------------------------------------------------------------
181 * Physical Memory Map - 194 * Physical Memory Map -
182 * U-Boot code, data, stack, etc. reside in SMI SDRAM 0x00000000-0x000FFFFF. 195 * U-Boot code, data, stack, etc. reside in SMI SDRAM 0x00000000-0x000FFFFF.
183 * There are similar parameters in the u-boot.lds linker script which also 196 * There are similar parameters in the u-boot.lds linker script which also
184 * need to be updated. 197 * need to be updated.
185 */ 198 */
186 #define UBOOT_SDRAM_BASE 0x00000000 /* SMI */ 199 #define UBOOT_SDRAM_BASE 0x00000000 /* SMI */
187 #define UBOOT_SDRAM_SIZE 0x00100000 200 #define UBOOT_SDRAM_SIZE 0x00100000
188 201
189 /* Memory Test */ 202 /* Memory Test */
190 #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1 203 #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1
191 #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE) 204 #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)
192 205
193 /* Environment */ 206 /* Environment */
194 #define CONFIG_ENV_IS_NOWHERE 207 #define CONFIG_ENV_IS_NOWHERE
195 #define CONFIG_ENV_SIZE 0x2000 208 #define CONFIG_ENV_SIZE 0x2000
196 209
197 /* Boot parameter address */ 210 /* Boot parameter address - offset of 0x100 from base of first sdram region */
198 #define CFG_QC_BOOT_PARAM_ADDR PHYS_SDRAM_1 211 #define CFG_QC_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100)
199 212
200 /*----------------------------------------------------------------------- 213 /*-----------------------------------------------------------------------
201 * The qc_serial driver uses the register names below. Set UART_BASE 214 * The qc_serial driver uses the register names below. Set UART_BASE
202 * for the desired UART. 215 * for the desired UART.
203 */ 216 */
204 #define UART_BASE UART3_BASE 217 #define UART_BASE UART3_BASE
205 218
219 #define CONFIG_GENERIC_MMC
220 #define CONFIG_QSD_SDCC
221
222
223 #ifndef CONFIG_GENERIC_MMC
224 /* This section regarding legacy mmc will be removed once the new
225 * mmc framework has been verified/tested sufficiently. If there are
226 * any major issues, you could go back to the legacy mmc by undefining
227 * the generic mmc code.
228 */
206 229
207 /*----------------------------------------------------------------------- 230 /*-----------------------------------------------------------------------
208 * Choose the SD controller to use. SDC1, 2, 3, or 4. 231 * Choose the SD controller to use. SDC1, 2, 3, or 4.
209 */ 232 */
210 #define SDC_INSTANCE 1 233 #define SDC_INSTANCE 1
211 #define USE_DM 234 #define USE_DM
212 #define USE_HIGH_SPEED_MODE 235 #define USE_HIGH_SPEED_MODE
213 #define USE_4_BIT_BUS_MODE 236 #define USE_4_BIT_BUS_MODE
214 #define CONFIG_SYS_MMC_BASE 0xF0000000 // not used, but defined t o prevent compile error 237 #define CONFIG_SYS_MMC_BASE 0xF0000000 // not used, but defined t o prevent compile error
215 #define PROC_COMM_VREG_SDC PM_VREG_GP6_ID 238 #define PROC_COMM_VREG_SDC PM_VREG_GP6_ID
239 #endif
216 240
217 /*----------------------------------------------------------------------- 241 /*-----------------------------------------------------------------------
218 * NAND configuration 242 * NAND configuration
219 */ 243 */
220 #define CONFIG_USE_ACCELERATED_PAGE_READ 244 #define CONFIG_USE_ACCELERATED_PAGE_READ
221 245
222 #define CONFIG_SYS_MAX_NAND_DEVICE 1 246 #define CONFIG_SYS_MAX_NAND_DEVICE 1
223 #define CONFIG_SYS_NAND_BASE 0xF0000000 // not used, but defined to prev ent compile error 247 #define CONFIG_SYS_NAND_BASE 0xF0000000 // not used, but defined to prev ent compile error
224 248
225 // NAND device specific register values for the NAND controller 249 // NAND device specific register values for the NAND controller
226 // These values are for the Samsung MFG=0xEC DEV=0xAA device (x8, 1.65~1.95V, 2K page) 250 // These values are for the Samsung MFG=0xEC DEV=0xAA device (x8, 1.65~1.95V, 2K page)
227 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for page r/w 251 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for page r/w
228 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_VAL 0xAAD400C0 252 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_VAL 0xAAD400C0
229 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_VAL 0x0004745C 253 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_VAL 0x0004745C
230 254
231 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for READ ID com mand 255 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for READ ID com mand
232 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_RD_ID_VAL 0xA2D40000; 256 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_RD_ID_VAL 0xA2D40000;
233 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_RD_ID_VAL 0x0005019C; 257 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_RD_ID_VAL 0x0005019C;
234 258
235 //Decide whether to use proc comm to communicate with modem 259 //Decide whether to use proc comm to communicate with modem
236 //This will eventually go away. 260 //This will eventually go away.
237 #define USE_PROC_COMM 261 #define USE_PROC_COMM
238 #define PROC_COMM_MPP_FOR_USB_VBUS PM_MPP_16 262 #define PROC_COMM_MPP_FOR_USB_VBUS PM_MPP_16
239 #undef USE_PROC_COMM_USB_PHY_RESET /* proc_comm cmd to reset phy not working 263 #undef USE_PROC_COMM_USB_PHY_RESET /* proc_comm cmd to reset phy not working
240 rt now, but eventually it will*/ 264 rt now, but eventually it will*/
241 265
242 #endif /* __CONFIGS_CHROMEOS_ST1Q_COMMON_H */ 266 #endif /* __CONFIGS_CHROMEOS_ST1Q_COMMON_H */
OLDNEW
« no previous file with comments | « include/configs/chromeos/st15/stub.h ('k') | include/configs/chromeos/st1q/recovery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698