]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/manroland/common.h
led_display: split led display support into generic and hw-dependent parts
[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 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24 #ifndef __MANROLAND_COMMON_H
25 #define __MANROLAND_COMMON_H
26
27 /*
28 * High Level Configuration Options
29 * (easy to change)
30 */
31
32 #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
33 #define BOOTFLAG_WARM 0x02 /* Software reboot */
34
35 #define CONFIG_BOARD_EARLY_INIT_R
36
37 /* Partitions */
38 #define CONFIG_DOS_PARTITION
39
40 /*
41 * Command line configuration.
42 */
43 #include <config_cmd_default.h>
44
45 #define CONFIG_CMD_DATE
46 #define CONFIG_CMD_DISPLAY
47 #define CONFIG_CMD_DHCP
48 #define CONFIG_CMD_PING
49 #define CONFIG_CMD_EEPROM
50 #define CONFIG_CMD_I2C
51 #define CONFIG_CMD_DTT
52 #define CONFIG_CMD_IDE
53 #define CONFIG_CMD_FAT
54 #define CONFIG_CMD_NFS
55 #define CONFIG_CMD_MII
56 #define CONFIG_CMD_SNTP
57
58 /*
59 * 8-symbol LED display (can be accessed with 'display' command)
60 */
61 #define CONFIG_PDSP188x
62
63 #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */
64
65 /*
66 * Autobooting
67 */
68 #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
69
70 #define CONFIG_PREBOOT "echo;" \
71 "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
72 "echo"
73
74 #undef CONFIG_BOOTARGS
75
76 #define xstr(s) str(s)
77 #define str(s) #s
78
79 #define CONFIG_EXTRA_ENV_SETTINGS \
80 "netdev=eth0\0" \
81 "nfsargs=setenv bootargs root=/dev/nfs rw " \
82 "nfsroot=${serverip}:${rootpath}\0" \
83 "ramargs=setenv bootargs root=/dev/ram rw\0" \
84 "addwdt=setenv bootargs ${bootargs} wdt=off\0" \
85 "logval=4\0" \
86 "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \
87 "addip=setenv bootargs ${bootargs} " \
88 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
89 ":${hostname}:${netdev}:off panic=1\0" \
90 "kernel_addr=ff810000\0" \
91 "fdt_addr="xstr(CONFIG_SYS_FLASH_BASE)"\0" \
92 "flash_nfs=run nfsargs addip addcon addwdt addlog;" \
93 "bootm ${kernel_addr} - ${fdt_addr}\0" \
94 "rootpath=/opt/eldk/ppc_82xx\0" \
95 "kernel_addr_r=300000\0" \
96 "fdt_addr_r=200000\0" \
97 "fdt_file=" xstr(CONFIG_HOSTNAME) "/" \
98 xstr(CONFIG_HOSTNAME) ".dtb\0" \
99 "kernel_file=" xstr(CONFIG_HOSTNAME) "/uImage \0" \
100 "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \
101 "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \
102 "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\
103 "net_nfs=run load_fdt load_kernel; " \
104 "run nfsargs addip addcon addwdt addlog;" \
105 "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
106 "u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin \0" \
107 "u-boot_addr_r=200000\0" \
108 "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
109 "update=protect off " xstr(TEXT_BASE) " +${filesize};" \
110 "erase " xstr(TEXT_BASE) " +${filesize};" \
111 "cp.b ${u-boot_addr_r} " xstr(TEXT_BASE) \
112 " ${filesize};" \
113 "protect on " xstr(TEXT_BASE) " +${filesize}\0" \
114 ""
115
116 #define CONFIG_BOOTCOMMAND "run net_nfs"
117
118 #define CONFIG_MISC_INIT_R 1
119
120 /*
121 * Miscellaneous configurable options
122 */
123 #define CONFIG_SYS_LONGHELP /* undef to save memory */
124 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
125 #if defined(CONFIG_CMD_KGDB)
126 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
127 #else
128 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
129 #endif
130 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
131 #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
132 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
133 #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
134 #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
135
136 /* Enable an alternate, more extensive memory test */
137 #define CONFIG_SYS_ALT_MEMTEST
138
139 /*
140 * Enable loopw command.
141 */
142 #define CONFIG_LOOPW
143
144 /* pass open firmware flat tree */
145 #define CONFIG_OF_LIBFDT 1
146 #define CONFIG_OF_BOARD_SETUP 1
147
148 #endif /* __MANROLAND_COMMON_H */