blob: bca7166cb9bcc501196579536a4e70b5ec816dcf [file] [log] [blame]
Eugen Hristev0de35aa2020-03-10 11:56:38 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Configuration file for the SAMA7G5EK Board.
4 *
5 * Copyright (C) 2020 Microchip Corporation
6 * Eugen Hristev <eugen.hristev@microchip.com>
7 */
8
9#ifndef __CONFIG_H
10#define __CONFIG_H
11
12#define CONFIG_SYS_AT91_SLOW_CLOCK 32768
13#define CONFIG_SYS_AT91_MAIN_CLOCK 24000000 /* from 24 MHz crystal */
Eugen Hristev6ed2a982021-04-29 14:58:21 +030014#define CONFIG_SYS_BOOTM_LEN SZ_32M
Eugen Hristev0de35aa2020-03-10 11:56:38 +020015/* SDRAM */
16#define CONFIG_SYS_SDRAM_BASE 0x60000000
17#define CONFIG_SYS_SDRAM_SIZE 0x20000000
18
19#ifdef CONFIG_SPL_BUILD
20#define CONFIG_SYS_INIT_SP_ADDR 0x218000
21#else
22#define CONFIG_SYS_INIT_SP_ADDR \
Claudiu Beznea8d68daa2020-06-02 10:32:08 +030023 (CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \
24 GENERATED_GBL_DATA_SIZE)
Eugen Hristev0de35aa2020-03-10 11:56:38 +020025#endif
26
Eugen Hristev0de35aa2020-03-10 11:56:38 +020027#endif