blob: 8d78fd362a9fec0de2b52895a3dc0e18d8adf610 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Christophe Leroy35982952017-07-07 10:16:42 +02002/*
3 * Copyright (C) 2010-2017 CS Systemes d'Information
4 * Christophe Leroy <christophe.leroy@c-s.fr>
Christophe Leroy35982952017-07-07 10:16:42 +02005 */
6
7#ifndef __CONFIG_H
8#define __CONFIG_H
9
10/* High Level Configuration Options */
Christophe Leroy35982952017-07-07 10:16:42 +020011
Christophe Leroy35982952017-07-07 10:16:42 +020012/* Miscellaneous configurable options */
Christophe Leroy35982952017-07-07 10:16:42 +020013
Christophe Leroy35982952017-07-07 10:16:42 +020014/* Definitions for initial stack pointer and data area (in DPRAM) */
Tom Rini6a5dccc2022-11-16 13:10:41 -050015#define CFG_SYS_INIT_RAM_ADDR (CONFIG_SYS_IMMR + 0x2800)
16#define CFG_SYS_INIT_RAM_SIZE (0x2e00 - 0x2800)
Christophe Leroy35982952017-07-07 10:16:42 +020017
Tom Rinibb4dd962022-11-16 13:10:37 -050018/* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */
19#define CFG_SYS_SDRAM_BASE 0x00000000
Christophe Leroy35982952017-07-07 10:16:42 +020020
21/* FLASH organization */
Tom Rini6a5dccc2022-11-16 13:10:41 -050022#define CFG_SYS_FLASH_BASE CONFIG_TEXT_BASE
Christophe Leroy35982952017-07-07 10:16:42 +020023
24/*
25 * For booting Linux, the board info and command line data
26 * have to be in the first 8 MB of memory, since this is
27 * the maximum mapped by the Linux kernel during initialization.
28 */
Tom Rini6a5dccc2022-11-16 13:10:41 -050029#define CFG_SYS_BOOTMAPSZ (8 << 20)
Christophe Leroy35982952017-07-07 10:16:42 +020030
31/* Environment Configuration */
32
33/* environment is in FLASH */
Christophe Leroy35982952017-07-07 10:16:42 +020034
Christophe Leroy35982952017-07-07 10:16:42 +020035/* Ethernet configuration part */
Christophe Leroy35982952017-07-07 10:16:42 +020036
37/* NAND configuration part */
Tom Rinib4213492022-11-12 17:36:51 -050038#define CFG_SYS_NAND_BASE 0x0C000000
Christophe Leroy35982952017-07-07 10:16:42 +020039
Christophe Leroy35982952017-07-07 10:16:42 +020040#endif /* __CONFIG_H */