cf988341263dd9e3aa1006a0c1eed21d83d58e50
[platform/kernel/u-boot.git] / include / configs / integrator-common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2012
4  * Linaro
5  * Linus Walleij <linus.walleij@linaro.org>
6  * Common ARM Integrator configuration settings
7  */
8
9 #define CONFIG_SYS_TIMERBASE            0x13000100      /* Timer1 */
10
11 #define CONFIG_CMDLINE_TAG              /* enable passing of ATAGs  */
12 #define CONFIG_SETUP_MEMORY_TAGS
13
14 /*
15  * There are various dependencies on the core module (CM) fitted
16  * Users should refer to their CM user guide
17  */
18 #include "armcoremodule.h"
19
20 /*
21  * Initialize and remap the core module, use SPD to detect memory size
22  * If CONFIG_SKIP_LOWLEVEL_INIT is not defined &
23  * the core module has a CM_INIT register
24  * then the U-Boot initialisation code will
25  * e.g. ARM Boot Monitor or pre-loader is repeated once
26  * (to re-initialise any existing CM_INIT settings to safe values).
27  *
28  * This is usually not the desired behaviour since the platform
29  * will either reboot into the ARM monitor (or pre-loader)
30  * or continuously cycle thru it without U-Boot running,
31  * depending upon the setting of Integrator/CP switch S2-4.
32  *
33  * However it may be needed if Integrator/CP switch S2-1
34  * is set OFF to boot direct into U-Boot.
35  * In that case comment out the line below.
36  */
37 #define CONFIG_CM_INIT
38 #define CONFIG_CM_REMAP
39 #define CONFIG_CM_SPD_DETECT
40
41 /*
42  * The ARM boot monitor initializes the board.
43  * However, the default U-Boot code also performs the initialization.
44  * If desired, this can be prevented by defining SKIP_LOWLEVEL_INIT
45  * - see documentation supplied with board for details of how to choose the
46  * image to run at reset/power up
47  * e.g. whether the ARM Boot Monitor runs before U-Boot
48  */
49
50 /*
51  * The ARM boot monitor does not relocate U-Boot.
52  * However, the default U-Boot code performs the relocation check,
53  * and may relocate the code if the memory map is changed.
54  * If necessary this can be prevented by defining SKIP_RELOCATE_UBOOT
55  */
56 /* #define SKIP_CONFIG_RELOCATE_UBOOT */
57
58 /*
59  * Physical Memory Map
60  */
61 #define PHYS_SDRAM_1            0x00000000      /* SDRAM Bank #1 */
62 #define PHYS_SDRAM_1_SIZE       0x08000000      /* 128 MB */
63 #define CONFIG_SYS_SDRAM_BASE   PHYS_SDRAM_1
64 #define CONFIG_SYS_INIT_RAM_SIZE PHYS_SDRAM_1_SIZE
65 #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_BASE + \
66                                     CONFIG_SYS_INIT_RAM_SIZE - \
67                                     GENERATED_GBL_DATA_SIZE)
68 #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_GBL_DATA_OFFSET
69
70 /*
71  * FLASH and environment organization
72  * Top varies according to amount fitted
73  * Reserve top 4 blocks of flash
74  * - ARM Boot Monitor
75  * - Unused
76  * - SIB block
77  * - U-Boot environment
78  */
79 #define CONFIG_SYS_FLASH_BASE           0x24000000
80 #define CONFIG_SYS_MAX_FLASH_BANKS      1
81
82 /* Timeout values in ticks */
83 #define CONFIG_SYS_FLASH_ERASE_TOUT     (2 * CONFIG_SYS_HZ) /* Erase Timeout */
84 #define CONFIG_SYS_FLASH_WRITE_TOUT     (2 * CONFIG_SYS_HZ) /* Write Timeout */
85 #define CONFIG_SYS_FLASH_EMPTY_INFO     /* flinfo indicates empty blocks */