blob: 11c13c65d8debb03b9295c987c9177da0e897039 [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 Yangc64a75a2015-10-30 09:55:52 +080021/* SerialFlash */
Wenyou Yangc64a75a2015-10-30 09:55:52 +080022
Wenyou Yange035ea72017-09-14 11:07:44 +080023#ifdef CONFIG_SD_BOOT
Wenyou Yangc64a75a2015-10-30 09:55:52 +080024
25/* bootstrap + u-boot + env in sd card */
Wenyou Yangc64a75a2015-10-30 09:55:52 +080026
Eugen Hristev8b252f12018-05-11 11:14:32 +030027#elif CONFIG_SPI_BOOT
28
29/* bootstrap + u-boot + env in sd card, but kernel + dtb in eMMC */
Eugen Hristev8b252f12018-05-11 11:14:32 +030030
Wenyou Yangc64a75a2015-10-30 09:55:52 +080031#endif
32
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080033/* SPL */
Wenyou Yang8344ebd2017-09-13 14:58:50 +080034#define CONFIG_SPL_MAX_SIZE 0x10000
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080035#define CONFIG_SPL_BSS_START_ADDR 0x20000000
36#define CONFIG_SPL_BSS_MAX_SIZE 0x80000
37#define CONFIG_SYS_SPL_MALLOC_START 0x20080000
38#define CONFIG_SYS_SPL_MALLOC_SIZE 0x80000
39
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080040#define CONFIG_SYS_MONITOR_LEN (512 << 10)
41
Wenyou Yange035ea72017-09-14 11:07:44 +080042#ifdef CONFIG_SD_BOOT
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080043#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
Wenyou Yang3acd9cc2016-02-01 18:18:21 +080044#endif
45
Wenyou Yangc64a75a2015-10-30 09:55:52 +080046#endif