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