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