]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/manroland/common.h
configs: Re-sync almost all of cmd/Kconfig
[people/ms/u-boot.git] / include / configs / manroland / common.h
1 /*
2 * (C) Copyright 2009
3 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8 #ifndef __MANROLAND_COMMON_H
9 #define __MANROLAND_COMMON_H
10
11 /*
12 * High Level Configuration Options
13 * (easy to change)
14 */
15
16 #define CONFIG_BOARD_EARLY_INIT_R
17
18 /* Partitions */
19 #define CONFIG_DOS_PARTITION
20
21 /*
22 * Command line configuration.
23 */
24 #define CONFIG_CMD_DATE
25 #define CONFIG_CMD_DISPLAY
26 #define CONFIG_CMD_EEPROM
27 #define CONFIG_CMD_DTT
28 #define CONFIG_CMD_IDE
29 #define CONFIG_CMD_FAT
30 #define CONFIG_CMD_MII
31
32 /*
33 * 8-symbol LED display (can be accessed with 'display' command)
34 */
35 #define CONFIG_PDSP188x
36
37 #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */
38
39 /*
40 * Autobooting
41 */
42 #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
43
44 #define CONFIG_PREBOOT "echo;" \
45 "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
46 "echo"
47
48 #undef CONFIG_BOOTARGS
49
50 #define CONFIG_EXTRA_ENV_SETTINGS \
51 "netdev=eth0\0" \
52 "nfsargs=setenv bootargs root=/dev/nfs rw " \
53 "nfsroot=${serverip}:${rootpath}\0" \
54 "ramargs=setenv bootargs root=/dev/ram rw\0" \
55 "addwdt=setenv bootargs ${bootargs} wdt=off\0" \
56 "logval=4\0" \
57 "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \
58 "addip=setenv bootargs ${bootargs} " \
59 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
60 ":${hostname}:${netdev}:off panic=1\0" \
61 "kernel_addr=ff810000\0" \
62 "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \
63 "flash_nfs=run nfsargs addip addcon addwdt addlog;" \
64 "bootm ${kernel_addr} - ${fdt_addr}\0" \
65 "rootpath=/opt/eldk/ppc_82xx\0" \
66 "kernel_addr_r=300000\0" \
67 "fdt_addr_r=200000\0" \
68 "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \
69 __stringify(CONFIG_HOSTNAME) ".dtb\0" \
70 "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \
71 "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \
72 "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \
73 "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\
74 "net_nfs=run load_fdt load_kernel; " \
75 "run nfsargs addip addcon addwdt addlog;" \
76 "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
77 "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \
78 "u-boot_addr_r=200000\0" \
79 "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
80 "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
81 "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
82 "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \
83 " ${filesize};" \
84 "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\
85 ""
86
87 #define CONFIG_BOOTCOMMAND "run net_nfs"
88
89 #define CONFIG_MISC_INIT_R 1
90
91 /*
92 * Miscellaneous configurable options
93 */
94 #define CONFIG_SYS_LONGHELP /* undef to save memory */
95 #if defined(CONFIG_CMD_KGDB)
96 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
97 #else
98 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
99 #endif
100 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
101 #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
102 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
103 #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
104 #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
105
106 /* Enable an alternate, more extensive memory test */
107 #define CONFIG_SYS_ALT_MEMTEST
108
109 /*
110 * Enable loopw command.
111 */
112
113 #endif /* __MANROLAND_COMMON_H */