Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2010-2017 CS Systemes d'Information |
| 4 | * Christophe Leroy <christophe.leroy@c-s.fr> |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_H |
| 8 | #define __CONFIG_H |
| 9 | |
| 10 | /* High Level Configuration Options */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 11 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 12 | /* Miscellaneous configurable options */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 13 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 14 | /* Definitions for initial stack pointer and data area (in DPRAM) */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 15 | #define CFG_SYS_INIT_RAM_ADDR (CONFIG_SYS_IMMR + 0x2800) |
| 16 | #define CFG_SYS_INIT_RAM_SIZE (0x2e00 - 0x2800) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 17 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 18 | /* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */ |
| 19 | #define CFG_SYS_SDRAM_BASE 0x00000000 |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 20 | |
| 21 | /* FLASH organization */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 22 | #define CFG_SYS_FLASH_BASE CONFIG_TEXT_BASE |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 23 | |
| 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 Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 29 | #define CFG_SYS_BOOTMAPSZ (8 << 20) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 30 | |
| 31 | /* Environment Configuration */ |
| 32 | |
| 33 | /* environment is in FLASH */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 34 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 35 | /* Ethernet configuration part */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 36 | |
| 37 | /* NAND configuration part */ |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 38 | #define CFG_SYS_NAND_BASE 0x0C000000 |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 39 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 40 | #endif /* __CONFIG_H */ |