]>
Commit | Line | Data |
---|---|---|
7f625fc6 HS |
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 | ||
7f625fc6 HS |
32 | #define CONFIG_BOARD_EARLY_INIT_R |
33 | ||
34 | /* Partitions */ | |
35 | #define CONFIG_DOS_PARTITION | |
36 | ||
37 | /* | |
38 | * Command line configuration. | |
39 | */ | |
40 | #include <config_cmd_default.h> | |
41 | ||
42 | #define CONFIG_CMD_DATE | |
43 | #define CONFIG_CMD_DISPLAY | |
44 | #define CONFIG_CMD_DHCP | |
45 | #define CONFIG_CMD_PING | |
46 | #define CONFIG_CMD_EEPROM | |
47 | #define CONFIG_CMD_I2C | |
48 | #define CONFIG_CMD_DTT | |
49 | #define CONFIG_CMD_IDE | |
50 | #define CONFIG_CMD_FAT | |
51 | #define CONFIG_CMD_NFS | |
52 | #define CONFIG_CMD_MII | |
53 | #define CONFIG_CMD_SNTP | |
54 | ||
7f0d241d IY |
55 | /* |
56 | * 8-symbol LED display (can be accessed with 'display' command) | |
57 | */ | |
58 | #define CONFIG_PDSP188x | |
59 | ||
7f625fc6 HS |
60 | #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */ |
61 | ||
62 | /* | |
63 | * Autobooting | |
64 | */ | |
65 | #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ | |
66 | ||
67 | #define CONFIG_PREBOOT "echo;" \ | |
68 | "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \ | |
69 | "echo" | |
70 | ||
71 | #undef CONFIG_BOOTARGS | |
72 | ||
7f625fc6 HS |
73 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
74 | "netdev=eth0\0" \ | |
75 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ | |
76 | "nfsroot=${serverip}:${rootpath}\0" \ | |
77 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ | |
78 | "addwdt=setenv bootargs ${bootargs} wdt=off\0" \ | |
79 | "logval=4\0" \ | |
80 | "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \ | |
81 | "addip=setenv bootargs ${bootargs} " \ | |
82 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ | |
83 | ":${hostname}:${netdev}:off panic=1\0" \ | |
84 | "kernel_addr=ff810000\0" \ | |
93ea89f0 | 85 | "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \ |
7f625fc6 HS |
86 | "flash_nfs=run nfsargs addip addcon addwdt addlog;" \ |
87 | "bootm ${kernel_addr} - ${fdt_addr}\0" \ | |
88 | "rootpath=/opt/eldk/ppc_82xx\0" \ | |
89 | "kernel_addr_r=300000\0" \ | |
90 | "fdt_addr_r=200000\0" \ | |
93ea89f0 MV |
91 | "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \ |
92 | __stringify(CONFIG_HOSTNAME) ".dtb\0" \ | |
93 | "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \ | |
7f625fc6 HS |
94 | "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \ |
95 | "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \ | |
96 | "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\ | |
97 | "net_nfs=run load_fdt load_kernel; " \ | |
98 | "run nfsargs addip addcon addwdt addlog;" \ | |
99 | "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ | |
93ea89f0 | 100 | "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \ |
7f625fc6 HS |
101 | "u-boot_addr_r=200000\0" \ |
102 | "load=tftp ${u-boot_addr_r} ${u-boot}\0" \ | |
93ea89f0 MV |
103 | "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ |
104 | "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ | |
105 | "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \ | |
7f625fc6 | 106 | " ${filesize};" \ |
93ea89f0 | 107 | "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\ |
7f625fc6 HS |
108 | "" |
109 | ||
110 | #define CONFIG_BOOTCOMMAND "run net_nfs" | |
111 | ||
112 | #define CONFIG_MISC_INIT_R 1 | |
113 | ||
114 | /* | |
115 | * Miscellaneous configurable options | |
116 | */ | |
117 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ | |
118 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ | |
119 | #if defined(CONFIG_CMD_KGDB) | |
120 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ | |
121 | #else | |
122 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ | |
123 | #endif | |
124 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) | |
125 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/ | |
126 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | |
7cb5fc15 | 127 | #define CONFIG_CMDLINE_EDITING 1 /* add command line history */ |
7cb5fc15 | 128 | #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ |
7f625fc6 HS |
129 | |
130 | /* Enable an alternate, more extensive memory test */ | |
131 | #define CONFIG_SYS_ALT_MEMTEST | |
132 | ||
133 | /* | |
134 | * Enable loopw command. | |
135 | */ | |
136 | #define CONFIG_LOOPW | |
137 | ||
138 | /* pass open firmware flat tree */ | |
139 | #define CONFIG_OF_LIBFDT 1 | |
140 | #define CONFIG_OF_BOARD_SETUP 1 | |
141 | ||
142 | #endif /* __MANROLAND_COMMON_H */ |