| OLD | NEW |
| (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 * MSM8x60 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_8660_COMMON_H | |
| 34 #define __CONFIGS_CHROMEOS_8660_COMMON_H | |
| 35 | |
| 36 #define CPU_IS_MSM8x60 | |
| 37 | |
| 38 #include <asm/arch/MSM8x60_reg.h> | |
| 39 #include <asm-armv7Scorpion/armv7Scorpion.h> | |
| 40 #include <config.h> | |
| 41 | |
| 42 #define CONFIG_CHROMEOS_HWID "ARM MSM8x60 TEST 1635" | |
| 43 | |
| 44 #define IO_READ32(addr) (*((volatile unsigned int *) (addr))) | |
| 45 #define IO_WRITE32(addr, val) (*((volatile unsigned int *) (addr)) = ((unsigned
int) (val))) | |
| 46 #define IO_READ16(addr) (*((volatile unsigned short *) (addr))) | |
| 47 #define IO_WRITE16(addr, val) (*((volatile unsigned short *) (addr)) = ((unsign
ed short) (val))) | |
| 48 #define IO_READ8(addr) (*((volatile char *) (addr))) | |
| 49 #define IO_WRITE8(addr, val) (*((volatile unsigned char *) (addr)) = ((unsigne
d char) (val))) | |
| 50 | |
| 51 /* | |
| 52 * High Level Configuration Options | |
| 53 * (easy to change) | |
| 54 */ | |
| 55 | |
| 56 #define CONFIG_STACK_BASE | |
| 57 | |
| 58 | |
| 59 /* | |
| 60 * Machine ID for FFA | |
| 61 */ | |
| 62 #define LINUX_MACH_TYPE (0xf656b) | |
| 63 | |
| 64 #define CONFIG_SYS_HZ (32768) /* GPT Timer frequency */ | |
| 65 #define CONFIG_TCXO_HZ 19200000 /* TCX0 frequency */ | |
| 66 | |
| 67 #undef CONFIG_SHOW_BOOT_PROGRESS | |
| 68 | |
| 69 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ | |
| 70 #define CONFIG_SETUP_MEMORY_TAGS | |
| 71 //#define CONFIG_INITRD_TAG | |
| 72 | |
| 73 /* | |
| 74 * Enable to pass framebuffer info to kernel | |
| 75 * but after implementing calc_fbsize() in lcdc.c | |
| 76 */ | |
| 77 #define CONFIG_VIDEOFLB_ATAG_NOT_SUPPORTED | |
| 78 | |
| 79 #define ATAG_CORE_FLAGS 0x00000004 | |
| 80 #define ATAG_PAGE_SIZE 0x00001000 | |
| 81 #define ATAG_CORE_RDEV 0x000000FF | |
| 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_CMD_SOURCE | |
| 126 | |
| 127 #define CONFIG_BOOTDELAY 0 | |
| 128 | |
| 129 #define CONFIG_BOOTARGS "console=tty0 root=/dev/mmcblk1p3 rootwait init=/sbin/in
it pmem_kernel_ebi1_size=32M" | |
| 130 | |
| 131 #define CONFIG_BOOTCOMMAND \ | |
| 132 "if mmcinfo 1; then " \ | |
| 133 "if ext2load mmc 1:3 0x40200000 boot/boot_script.uimg; then "\ | |
| 134 "source 0x40200000; " \ | |
| 135 "elif ext2load mmc 1:3 0x40207fc0 boot/vmlinux.uimg; then " \ | |
| 136 "bootm 0x40207fc0; " \ | |
| 137 "fi; " \ | |
| 138 "elif mmcinfo 0; then " \ | |
| 139 "if ext2load mmc 0:3 0x40200000 boot/boot_script.uimg; then "\ | |
| 140 "source 0x40200000; " \ | |
| 141 "elif ext2load mmc 0:3 0x40207fc0 boot/vmlinux.uimg; then " \ | |
| 142 "bootm 0x40207fc0; " \ | |
| 143 "fi; " \ | |
| 144 "fi;" | |
| 145 | |
| 146 /* | |
| 147 * Miscellaneous configurable options | |
| 148 */ | |
| 149 #define CONFIG_SYS_NO_FLASH | |
| 150 #define CONFIG_SYS_LONGHELP | |
| 151 #define CONFIG_SYS_HUSH_PARSER | |
| 152 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " | |
| 153 #define CONFIG_SYS_PROMPT "ChromeOS> " | |
| 154 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ | |
| 155 /* Print Buffer Size */ | |
| 156 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) | |
| 157 #define CONFIG_SYS_MAXARGS 16 /* max number of command args
*/ | |
| 158 #define CONFIG_SYS_BARGSIZE 2048 /* Boot Argument Buffer Size */ | |
| 159 | |
| 160 #define CONFIG_SYS_LOAD_ADDR (PHYS_SDRAM_1 + 0x7FC0) /* default load
address in EBI1 SDRAM */ | |
| 161 | |
| 162 /*----------------------------------------------------------------------- | |
| 163 * Stack sizes | |
| 164 * | |
| 165 * The stack sizes are set up in start.S using the settings below | |
| 166 */ | |
| 167 #define CONFIG_STACKSIZE (128*1024) /* regular stack */ | |
| 168 #ifdef CONFIG_USE_IRQ | |
| 169 #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */ | |
| 170 #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */ | |
| 171 #endif | |
| 172 | |
| 173 /* | |
| 174 * SDRAM: Memory available for kernel: 510MB. | |
| 175 */ | |
| 176 #define CONFIG_NR_DRAM_BANKS 1 | |
| 177 #define PHYS_SDRAM_1 0x40200000 | |
| 178 #define PHYS_SDRAM_1_SIZE 0x1FE00000 /* 510MB */ | |
| 179 | |
| 180 #define CONFIG_ARM_DCC | |
| 181 #define CONFIG_ARM_DCC_MULTI | |
| 182 #define CONFIG_CPU_V7 | |
| 183 #define CONFIG_SERIAL_CONSOLE | |
| 184 //#define CONFIG_DCC_CONSOLE | |
| 185 | |
| 186 /* Console setup */ | |
| 187 #if defined(CONFIG_SERIAL_CONSOLE) | |
| 188 #define CONFIG_STDOUT "serial" | |
| 189 #define CONFIG_STDERR "serial" | |
| 190 #define CONFIG_STDIN "serial" | |
| 191 #elif defined(CONFIG_DCC_CONSOLE) | |
| 192 #define CONFIG_STDOUT "dcc" | |
| 193 #define CONFIG_STDERR "dcc" | |
| 194 #define CONFIG_STDIN "dcc" | |
| 195 #else /* default */ | |
| 196 #define CONFIG_STDOUT "lcd" | |
| 197 #define CONFIG_STDERR "lcd" | |
| 198 #define CONFIG_STDIN "dcc" | |
| 199 #endif | |
| 200 | |
| 201 #define CONFIG_SYS_CONSOLE_IS_IN_ENV | |
| 202 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE | |
| 203 | |
| 204 /*----------------------------------------------------------------------- | |
| 205 * Shared Memory Location - | |
| 206 */ | |
| 207 #define SMEM_START 0xE0100000 | |
| 208 #define SMEM_SIZE 0x00100000 | |
| 209 | |
| 210 /*----------------------------------------------------------------------- | |
| 211 * Physical Memory Map - | |
| 212 * U-Boot code, data, stack, etc. reside in external RAM. | |
| 213 */ | |
| 214 #define UBOOT_SDRAM_BASE 0x40100000 /* external ram */ | |
| 215 #define UBOOT_SDRAM_SIZE 0x00100000 | |
| 216 | |
| 217 /* Memory Test */ | |
| 218 #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1 | |
| 219 #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE) | |
| 220 | |
| 221 /* Environment */ | |
| 222 #define CONFIG_ENV_IS_NOWHERE | |
| 223 #define CONFIG_ENV_SIZE 0x2000 | |
| 224 | |
| 225 /* Boot parameter address - offset of 0x100 from base of first sdram region */ | |
| 226 #define CFG_QC_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100) | |
| 227 | |
| 228 /*----------------------------------------------------------------------- | |
| 229 * The qc_serial driver uses the register names below. Set UART_BASE | |
| 230 * for the desired UART. | |
| 231 */ | |
| 232 #define UART_BASE UART3_BASE | |
| 233 | |
| 234 /* MMC interface */ | |
| 235 #define CONFIG_GENERIC_MMC | |
| 236 #define CONFIG_GENERIC_MMC_MULTI_BLOCK_READ | |
| 237 #define CONFIG_QSD_SDCC | |
| 238 | |
| 239 /* Ethernet support */ | |
| 240 #define CONFIG_CMD_NET | |
| 241 #define CONFIG_NET_MULTI | |
| 242 #define CONFIG_CMD_DHCP | |
| 243 #define CONFIG_CMD_PING | |
| 244 | |
| 245 #define CONFIG_SMC911X | |
| 246 #define CONFIG_SMC911X_16_BIT | |
| 247 #define CONFIG_SMC911X_BASE 0x1B800000 | |
| 248 | |
| 249 #endif /* __CONFIGS_CHROMEOS_8660_COMMON_H */ | |
| OLD | NEW |