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

Side by Side Diff: include/configs/chromeos/st15/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/asm-arm/arch-QSD8x50/QSD8x50A_reg.h ('k') | include/configs/chromeos/st15/fast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
3 *
4 * (C) Copyright 2002-2005
5 * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Marius Groeger <mgroeger@sysgo.de>
9 * Gary Jennejohn <gj@denx.de>
10 *
11 * Configuation settings for the st1q board, based on the Qualcomm
12 * QSD8x50 surf board.
13 *
14 * See file CREDITS for list of people who contributed to this
15 * project.
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation; either version 2 of
20 * the License, or (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 * MA 02111-1307 USA
31 */
32
33 #ifndef __CONFIGS_CHROMEOS_ST15_COMMON_H
34 #define __CONFIGS_CHROMEOS_ST15_COMMON_H
35
36 #define CPU_IS_QSD8x50A
37
38 #include <asm/arch/QSD8x50A_reg.h>
39 #include <asm-armv7Scorpion/armv7Scorpion.h>
40 #include <config.h>
41
42 #define IO_READ32(addr) (*((volatile unsigned int *) (addr)))
43 #define IO_WRITE32(addr, val) (*((volatile unsigned int *) (addr)) = ((unsigned int) (val)))
44 #define IO_READ16(addr) (*((volatile unsigned short *) (addr)))
45 #define IO_WRITE16(addr, val) (*((volatile unsigned short *) (addr)) = ((unsign ed short) (val)))
46 #define IO_READ8(addr) (*((volatile char *) (addr)))
47 #define IO_WRITE8(addr, val) (*((volatile unsigned char *) (addr)) = ((unsigne d char) (val)))
48
49 /*
50 * High Level Configuration Options
51 * (easy to change)
52 */
53
54 #define CONFIG_STACK_BASE
55
56 #define CONFIG_ARCH_CPU_INIT
57
58 /*
59 * Machine ID for ST1.5
60 */
61 #define LINUX_MACH_TYPE 2627
62
63 #define CONFIG_SYS_HZ (32768) /* GPT Timer frequency */
64 #define CONFIG_TCXO_HZ 19200000 /* TCX0 frequency */
65
66 #undef CONFIG_SHOW_BOOT_PROGRESS
67
68 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
69 #define CONFIG_SETUP_MEMORY_TAGS
70 #define CONFIG_INITRD_TAG
71
72 /*
73 * Enable to pass framebuffer info to kernel
74 * but after implementing calc_fbsize() in lcdc.c
75 */
76 #define CONFIG_VIDEOFLB_ATAG_NOT_SUPPORTED
77
78 #define ATAG_CORE_FLAGS 0x00000001
79 #define ATAG_PAGE_SIZE 0x00001000
80 #define ATAG_CORE_RDEV 0x000000FF
81
82 #define CONFIG_MISC_INIT_R 1 /* call misc_init_r during start up */
83
84 /* Warm boot related constants */
85 #define CONFIG_WARMBOOT_TRUE 0xBAC4F00D
86 #define CONFIG_WARMBOOT_FALSE 0x15FA15E2
87
88 /*
89 * Address where ATAGs are stored and where bootwedge used to be.
90 * 2 words at ATAGs are overwritten by power collapse routine
91 * in the kernel to cause a jump back to the
92 * power collapse exit routine in the kernel.
93 * These are restored back to their original values
94 * after successful power collapse .
95 */
96 #define CONFIG_WARMBOOT_POWER_COLLAPSE_EXIT_ADDRESS PHYS_SDRAM_1
97
98 /*
99 * Size of malloc() pool
100 */
101 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
102
103 /* size in bytes reserved for initial data */
104 #define CONFIG_SYS_GBL_DATA_SIZE 128
105
106 /*
107 * Stack space needed =
108 * Stack + Global Data + 3 words abort stack
109 * This is checked by linker script to define stack section
110 */
111 #define CONFIG_SYS_MAX_STACK_SPACE (CONFIG_STACKSIZE + \
112 CONFIG_SYS_GBL_DATA_SIZE + 12)
113
114 /*
115 * Serial port Configuration
116 */
117 #undef CONFIG_SILENT_CONSOLE
118 #define CFG_QC_SERIAL
119 #define CONFIG_CONS_INDEX 0
120 #define CONFIG_BAUDRATE 115200
121 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
122
123 #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT
124
125 #define CONFIG_BOOTDELAY 0
126 #define CONFIG_BOOTARGS "quiet root=/dev/mmcblk0p3 rootwait nore sume noswap ro loglevel=1 pmem_kernel_ebi1_size=32M pmem_gpu1_size=0 vmalloc=224 M"
127 #define CONFIG_BOOTCOMMAND "if mmcinfo 0; then ext2load mmc 0:3 0x0 0007fc0 boot/vmlinux.uimg; bootm 0x00007fc0; fi;"
128
129 /*
130 * Miscellaneous configurable options
131 */
132 #define CONFIG_SYS_NO_FLASH
133 #define CONFIG_SYS_LONGHELP
134 #define CONFIG_SYS_HUSH_PARSER
135 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
136 #define CONFIG_SYS_PROMPT "ChromeOS> "
137 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
138 /* Print Buffer Size */
139 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
140 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
141 #define CONFIG_SYS_BARGSIZE 2048 /* Boot Argument Buffer Size */
142
143 #define CONFIG_SYS_LOAD_ADDR (PHYS_SDRAM_1 + 0x7FC0) /* default load address in EBI1 SDRAM */
144
145 /*-----------------------------------------------------------------------
146 * Stack sizes
147 *
148 * The stack sizes are set up in start.S using the settings below
149 */
150 #define CONFIG_STACKSIZE (128*1024) /* regular stack */
151 #ifdef CONFIG_USE_IRQ
152 #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
153 #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
154 #endif
155
156 /*
157 * SDRAM is split into 2 regions to accommodate ADSP as a memory hole.
158 * Memory available for kernel: 224 + 768 = 992MB.
159 */
160 #define CONFIG_NR_DRAM_BANKS 2
161 #define PHYS_SDRAM_1 0x00000000 /* EBI1 start */
162 #define PHYS_SDRAM_1_SIZE 0x0E000000 /* 256 - 32(adsp) = 224MB (0 x0E000000)*/
163 #define PHYS_SDRAM_2 0x10000000 /* EBI1, AFTER ADSP */
164 #define PHYS_SDRAM_2_SIZE 0x30000000 /* 768MB */
165
166 /*
167 * Use the serial console.
168 */
169 #define CONFIG_SERIAL_CONSOLE
170
171 /* Console setup */
172 #if defined(CONFIG_SERIAL_CONSOLE)
173 #define CONFIG_STDOUT "serial"
174 #define CONFIG_STDERR "serial"
175 #define CONFIG_STDIN "serial"
176 #else
177 #define CONFIG_ARM_DCC
178 #define CONFIG_ARM_DCC_MULTI
179 #define CONFIG_CPU_V7
180
181 #define CONFIG_STDOUT "dcc"
182 #define CONFIG_STDERR "dcc"
183 #define CONFIG_STDIN "dcc"
184 #endif
185
186 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
187 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
188
189 /*-----------------------------------------------------------------------
190 * Shared Memory Location -
191 */
192 #define SMEM_START 0xE0100000
193 #define SMEM_SIZE 0x00100000
194
195 /*-----------------------------------------------------------------------
196 * Physical Memory Map -
197 * U-Boot code, data, stack, etc. reside in SMI SDRAM 0x00000000-0x000FFFFF.
198 * There are similar parameters in the u-boot.lds linker script which also
199 * need to be updated.
200 */
201 #define UBOOT_SDRAM_BASE 0xE0000000 /* SMI */
202 #define UBOOT_SDRAM_SIZE 0x00100000
203
204 /* Memory Test */
205 #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1
206 #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)
207
208 /* Environment */
209 #define CONFIG_ENV_IS_NOWHERE
210 #define CONFIG_ENV_SIZE 0x2000
211
212 /* Boot parameter address - offset of 0x100 from base of first sdram region */
213 #define CFG_QC_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100)
214
215 /*-----------------------------------------------------------------------
216 * The qc_serial driver uses the register names below. Set UART_BASE
217 * for the desired UART.
218 */
219 #define UART_BASE UART3_BASE
220
221 /* MMC interface */
222 #define CONFIG_GENERIC_MMC
223 #define CONFIG_QSD_SDCC
224
225
226 #ifndef CONFIG_GENERIC_MMC
227 /* This section regarding legacy mmc will be removed once the new
228 * mmc framework has been verified/tested sufficiently. If there are
229 * any major issues, you could go back to the legacy mmc by undefining
230 * the generic mmc code.
231 */
232
233 /*-----------------------------------------------------------------------
234 * Choose the SD controller to use. SDC1, 2, 3, or 4.
235 */
236 #define SDC_INSTANCE 1
237 #define USE_DM
238 #define USE_HIGH_SPEED_MODE
239 #define USE_4_BIT_BUS_MODE
240 #define CONFIG_SYS_MMC_BASE 0xF0000000 // not used, but defined t o prevent compile error
241 #define PROC_COMM_VREG_SDC PM_VREG_WLAN_ID
242 #endif
243
244 /*-----------------------------------------------------------------------
245 * NAND configuration
246 */
247 #define CONFIG_USE_ACCELERATED_PAGE_READ
248
249 #define CONFIG_SYS_MAX_NAND_DEVICE 1
250 #define CONFIG_SYS_NAND_BASE 0xF0000000 // not used, but defined to prev ent compile error
251
252 // NAND device specific register values for the NAND controller
253 // These values are for the Samsung MFG=0xEC DEV=0xAA device (x8, 1.65~1.95V, 2K page)
254 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for page r/w
255 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_VAL 0xAAD400C0
256 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_VAL 0x0004745C
257
258 // NAND_DEVn_CFG0 and 1 registers. These parameters are are used for READ ID com mand
259 #define CONFIG_QC_NAND_NAND_DEVn_CFG0_RD_ID_VAL 0xA2D40000;
260 #define CONFIG_QC_NAND_NAND_DEVn_CFG1_RD_ID_VAL 0x0005019C;
261
262 //Decide whether to use proc comm to communicate with modem
263 //This will eventually go away.
264 #define USE_PROC_COMM
265 #define PROC_COMM_MPP_FOR_USB_VBUS PM_MPP_16
266 #undef USE_PROC_COMM_USB_PHY_RESET /* proc_comm cmd to reset phy not working
267 rt now, but eventually it will*/
268
269 #endif /* __CONFIGS_CHROMEOS_ST15_COMMON_H */
OLDNEW
« no previous file with comments | « include/asm-arm/arch-QSD8x50/QSD8x50A_reg.h ('k') | include/configs/chromeos/st15/fast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698