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 | e65975f | 2023-05-04 10:20:35 +0200 | [diff] [blame] | 17 | #define CFG_SYS_INIT_SP (CONFIG_SYS_IMMR + 0x3c00) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 18 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 19 | /* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */ |
| 20 | #define CFG_SYS_SDRAM_BASE 0x00000000 |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 21 | |
| 22 | /* FLASH organization */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 23 | #define CFG_SYS_FLASH_BASE CONFIG_TEXT_BASE |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 24 | |
| 25 | /* |
| 26 | * For booting Linux, the board info and command line data |
Christophe Leroy | 74fab16 | 2023-02-06 19:33:53 +0100 | [diff] [blame] | 27 | * have to be in the first 32 MB of memory, since this is |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 28 | * the maximum mapped by the Linux kernel during initialization. |
| 29 | */ |
Christophe Leroy | 74fab16 | 2023-02-06 19:33:53 +0100 | [diff] [blame] | 30 | #define CFG_SYS_BOOTMAPSZ (32 << 20) |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 31 | |
| 32 | /* Environment Configuration */ |
| 33 | |
| 34 | /* environment is in FLASH */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 35 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 36 | /* Ethernet configuration part */ |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 37 | |
| 38 | /* NAND configuration part */ |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 39 | #define CFG_SYS_NAND_BASE 0x0C000000 |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 40 | |
Christophe Leroy | 3598295 | 2017-07-07 10:16:42 +0200 | [diff] [blame] | 41 | #endif /* __CONFIG_H */ |