1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
4  */
5 #ifndef __CONFIGS_STEMMY_H
6 #define __CONFIGS_STEMMY_H
7 
8 #include <linux/sizes.h>
9 
10 #define CONFIG_SKIP_LOWLEVEL_INIT	/* Loaded by another bootloader */
11 #define CONFIG_SYS_MALLOC_LEN		SZ_2M
12 
13 /* Physical Memory Map */
14 #define PHYS_SDRAM_1			0x00000000	/* DDR-SDRAM Bank #1 */
15 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
16 #define CONFIG_SYS_SDRAM_SIZE		SZ_1G
17 #define CONFIG_SYS_INIT_RAM_SIZE	0x00100000
18 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_SDRAM_BASE + \
19 					 CONFIG_SYS_INIT_RAM_SIZE - \
20 					 GENERATED_GBL_DATA_SIZE)
21 #define CONFIG_SYS_INIT_SP_ADDR		CONFIG_SYS_GBL_DATA_OFFSET
22 
23 /* FIXME: This should be loaded from device tree... */
24 #define CONFIG_SYS_L2_PL310
25 #define CONFIG_SYS_PL310_BASE		0xa0412000
26 
27 #define CONFIG_SYS_LOAD_ADDR		0x00100000
28 
29 #endif
30