blob: cab6ae506984d10a39bca6eddaf7f95006087255 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Wenyou Yangc64a75a2015-10-30 09:55:52 +08002/*
3 * Configuration file for the SAMA5D2 Xplained Board.
4 *
5 * Copyright (C) 2015 Atmel Corporation
6 * Wenyou Yang <wenyou.yang@atmel.com>
Wenyou Yangc64a75a2015-10-30 09:55:52 +08007 */
8
9#ifndef __CONFIG_H
10#define __CONFIG_H
11
Wenyou Yangc64a75a2015-10-30 09:55:52 +080012#include "at91-sama5_common.h"
13
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080014#ifdef CONFIG_SPL_BUILD
Wenyou Yanga4db4492017-03-23 14:26:28 +080015#define CONFIG_SYS_INIT_SP_ADDR 0x218000
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080016#else
Wenyou Yangc64a75a2015-10-30 09:55:52 +080017#define CONFIG_SYS_INIT_SP_ADDR \
Clément Légerb5f81872021-08-16 14:25:43 +020018 (0x22000000 + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080019#endif
Wenyou Yangc64a75a2015-10-30 09:55:52 +080020
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080021/* SPL */
Wenyou Yang8344ebd2017-09-13 14:58:50 +080022#define CONFIG_SPL_MAX_SIZE 0x10000
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080023#define CONFIG_SPL_BSS_START_ADDR 0x20000000
24#define CONFIG_SPL_BSS_MAX_SIZE 0x80000
25#define CONFIG_SYS_SPL_MALLOC_START 0x20080000
26#define CONFIG_SYS_SPL_MALLOC_SIZE 0x80000
27
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080028#define CONFIG_SYS_MONITOR_LEN (512 << 10)
29
Wenyou Yange035ea72017-09-14 11:07:44 +080030#ifdef CONFIG_SD_BOOT
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080031#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080032#endif
33
Wenyou Yangc64a75a2015-10-30 09:55:52 +080034#endif