1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2010-2017 CS Systemes d'Information
4 * Christophe Leroy <christophe.leroy@c-s.fr>
10 /* High Level Configuration Options */
12 #define CFG_EXTRA_ENV_SETTINGS \
13 "sdram_type=SDRAM\0" \
14 "flash_type=AM29LV160DB\0" \
15 "loadaddr=0x400000\0" \
16 "filename=uImage.lzma\0" \
17 "nfsroot=/opt/ofs\0" \
18 "dhcp_ip=ip=:::::eth0:dhcp\0" \
19 "console_args=console=ttyCPM0,115200N8\0" \
20 "flashboot=setenv bootargs " \
22 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
25 "bootm 0x04060000 - 0x04050000\0" \
26 "tftpboot=setenv bootargs " \
28 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
31 "tftp ${loadaddr} ${filename};" \
32 "tftp 0xf00000 mcr3000.dtb;" \
33 "bootm ${loadaddr} - 0xf00000\0" \
34 "netboot=dhcp ${loadaddr} ${filename};" \
35 "tftp 0xf00000 mcr3000.dtb;" \
40 "bootm ${loadaddr} - 0xf00000\0" \
41 "nfsboot=setenv bootargs " \
42 "root=/dev/nfs rw nfsroot=${serverip}:${nfsroot} " \
44 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
46 "bootm 0x04060000 - 0x04050000\0" \
47 "dhcpboot=dhcp ${loadaddr} ${filename};" \
48 "tftp 0xf00000 mcr3000.dtb;" \
53 "bootm ${loadaddr} - 0xf00000\0"
55 /* Miscellaneous configurable options */
57 /* Definitions for initial stack pointer and data area (in DPRAM) */
58 #define CFG_SYS_INIT_RAM_ADDR (CONFIG_SYS_IMMR + 0x2800)
59 #define CFG_SYS_INIT_RAM_SIZE (0x2e00 - 0x2800)
61 /* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */
62 #define CFG_SYS_SDRAM_BASE 0x00000000
64 /* FLASH organization */
65 #define CFG_SYS_FLASH_BASE CONFIG_TEXT_BASE
68 * For booting Linux, the board info and command line data
69 * have to be in the first 8 MB of memory, since this is
70 * the maximum mapped by the Linux kernel during initialization.
72 #define CFG_SYS_BOOTMAPSZ (8 << 20)
74 /* Environment Configuration */
76 /* environment is in FLASH */
78 /* Ethernet configuration part */
80 /* NAND configuration part */
81 #define CFG_SYS_NAND_BASE 0x0C000000
83 #endif /* __CONFIG_H */