]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/integrator-common.h
integrator: break out common config
[people/ms/u-boot.git] / include / configs / integrator-common.h
CommitLineData
e62b008f
LW
1/*
2 * (C) Copyright 2012
3 * Linaro
4 * Linus Walleij <linus.walleij@linaro.org>
5 * Common ARM Integrator configuration settings
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
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.
14 *
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.
19 *
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,
23 * MA 02111-1307 USA
24 */
25
26#define CONFIG_INTEGRATOR
27
28#define CONFIG_SYS_TEXT_BASE 0x01000000
29#define CONFIG_SYS_MEMTEST_START 0x100000
30#define CONFIG_SYS_MEMTEST_END 0x10000000
31#define CONFIG_SYS_HZ 1000
32#define CONFIG_SYS_TIMERBASE 0x13000100 /* Timer1 */
33#define CONFIG_SYS_LOAD_ADDR 0x7fc0 /* default load address */
34#define CONFIG_SYS_LONGHELP
35#define CONFIG_SYS_HUSH_PARSER
36#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size*/
37#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
38#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
39#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size*/
40#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) /* Size of malloc() pool */
41
42#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
43#define CONFIG_SETUP_MEMORY_TAGS
44#define CONFIG_MISC_INIT_R /* call misc_init_r during start up */
45
46/*
47 * There are various dependencies on the core module (CM) fitted
48 * Users should refer to their CM user guide
49 */
50#include "armcoremodule.h"
51
52/*
53 * Initialize and remap the core module, use SPD to detect memory size
54 * If CONFIG_SKIP_LOWLEVEL_INIT is not defined &
55 * the core module has a CM_INIT register
56 * then the U-Boot initialisation code will
57 * e.g. ARM Boot Monitor or pre-loader is repeated once
58 * (to re-initialise any existing CM_INIT settings to safe values).
59 *
60 * This is usually not the desired behaviour since the platform
61 * will either reboot into the ARM monitor (or pre-loader)
62 * or continuously cycle thru it without U-Boot running,
63 * depending upon the setting of Integrator/CP switch S2-4.
64 *
65 * However it may be needed if Integrator/CP switch S2-1
66 * is set OFF to boot direct into U-Boot.
67 * In that case comment out the line below.
68 */
69#define CONFIG_CM_INIT
70#define CONFIG_CM_REMAP
71#define CONFIG_CM_SPD_DETECT
72
73/*
74 * The ARM boot monitor initializes the board.
75 * However, the default U-Boot code also performs the initialization.
76 * If desired, this can be prevented by defining SKIP_LOWLEVEL_INIT
77 * - see documentation supplied with board for details of how to choose the
78 * image to run at reset/power up
79 * e.g. whether the ARM Boot Monitor runs before U-Boot
80 */
81/* #define CONFIG_SKIP_LOWLEVEL_INIT */
82
83/*
84 * The ARM boot monitor does not relocate U-Boot.
85 * However, the default U-Boot code performs the relocation check,
86 * and may relocate the code if the memory map is changed.
87 * If necessary this can be prevented by defining SKIP_RELOCATE_UBOOT
88 */
89/* #define SKIP_CONFIG_RELOCATE_UBOOT */
90
91
92/*
93 * Physical Memory Map
94 */
95#define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
96#define PHYS_SDRAM_1 0x00000000 /* SDRAM Bank #1 */
97#define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB */
98#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
99#define CONFIG_SYS_INIT_RAM_SIZE PHYS_SDRAM_1_SIZE
100#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + \
101 CONFIG_SYS_INIT_RAM_SIZE - \
102 GENERATED_GBL_DATA_SIZE)
103#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_GBL_DATA_OFFSET