blob: 937febea214473e000687876e45affe78517ff2b [file] [log] [blame]
Heiko Schocher7f625fc2009-09-23 07:56:04 +02001/*
2 * (C) Copyright 2009
3 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
4 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02005 * SPDX-License-Identifier: GPL-2.0+
Heiko Schocher7f625fc2009-09-23 07:56:04 +02006 */
7
8#ifndef __MANROLAND_COMMON_H
9#define __MANROLAND_COMMON_H
10
11/*
12 * High Level Configuration Options
13 * (easy to change)
14 */
15
Heiko Schocher7f625fc2009-09-23 07:56:04 +020016#define CONFIG_BOARD_EARLY_INIT_R
17
18/* Partitions */
19#define CONFIG_DOS_PARTITION
20
21/*
22 * Command line configuration.
23 */
Heiko Schocher7f625fc2009-09-23 07:56:04 +020024#define CONFIG_CMD_DATE
25#define CONFIG_CMD_DISPLAY
Heiko Schocher7f625fc2009-09-23 07:56:04 +020026#define CONFIG_CMD_EEPROM
Heiko Schocher7f625fc2009-09-23 07:56:04 +020027#define CONFIG_CMD_DTT
28#define CONFIG_CMD_IDE
Heiko Schocher7f625fc2009-09-23 07:56:04 +020029
Ilya Yanok7f0d2412010-09-09 23:03:32 +020030/*
31 * 8-symbol LED display (can be accessed with 'display' command)
32 */
33#define CONFIG_PDSP188x
34
Heiko Schocher7f625fc2009-09-23 07:56:04 +020035#define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */
36
37/*
38 * Autobooting
39 */
Heiko Schocher7f625fc2009-09-23 07:56:04 +020040
41#define CONFIG_PREBOOT "echo;" \
42 "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
43 "echo"
44
45#undef CONFIG_BOOTARGS
46
Heiko Schocher7f625fc2009-09-23 07:56:04 +020047#define CONFIG_EXTRA_ENV_SETTINGS \
48 "netdev=eth0\0" \
49 "nfsargs=setenv bootargs root=/dev/nfs rw " \
50 "nfsroot=${serverip}:${rootpath}\0" \
51 "ramargs=setenv bootargs root=/dev/ram rw\0" \
52 "addwdt=setenv bootargs ${bootargs} wdt=off\0" \
53 "logval=4\0" \
54 "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \
55 "addip=setenv bootargs ${bootargs} " \
56 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
57 ":${hostname}:${netdev}:off panic=1\0" \
58 "kernel_addr=ff810000\0" \
Marek Vasut93ea89f2012-09-23 17:41:23 +020059 "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \
Heiko Schocher7f625fc2009-09-23 07:56:04 +020060 "flash_nfs=run nfsargs addip addcon addwdt addlog;" \
61 "bootm ${kernel_addr} - ${fdt_addr}\0" \
62 "rootpath=/opt/eldk/ppc_82xx\0" \
63 "kernel_addr_r=300000\0" \
64 "fdt_addr_r=200000\0" \
Marek Vasut93ea89f2012-09-23 17:41:23 +020065 "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \
66 __stringify(CONFIG_HOSTNAME) ".dtb\0" \
67 "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \
Heiko Schocher7f625fc2009-09-23 07:56:04 +020068 "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \
69 "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \
70 "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\
71 "net_nfs=run load_fdt load_kernel; " \
72 "run nfsargs addip addcon addwdt addlog;" \
73 "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
Marek Vasut93ea89f2012-09-23 17:41:23 +020074 "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \
Heiko Schocher7f625fc2009-09-23 07:56:04 +020075 "u-boot_addr_r=200000\0" \
76 "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
Marek Vasut93ea89f2012-09-23 17:41:23 +020077 "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
78 "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
79 "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \
Heiko Schocher7f625fc2009-09-23 07:56:04 +020080 " ${filesize};" \
Marek Vasut93ea89f2012-09-23 17:41:23 +020081 "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\
Heiko Schocher7f625fc2009-09-23 07:56:04 +020082 ""
83
84#define CONFIG_BOOTCOMMAND "run net_nfs"
85
86#define CONFIG_MISC_INIT_R 1
87
88/*
89 * Miscellaneous configurable options
90 */
91#define CONFIG_SYS_LONGHELP /* undef to save memory */
Heiko Schocher7f625fc2009-09-23 07:56:04 +020092#if defined(CONFIG_CMD_KGDB)
93#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
94#else
95#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
96#endif
97#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
98#define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
99#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
Heiko Schocher7cb5fc12009-12-03 11:20:42 +0100100#define CONFIG_CMDLINE_EDITING 1 /* add command line history */
Heiko Schocher7cb5fc12009-12-03 11:20:42 +0100101#define CONFIG_AUTO_COMPLETE /* add autocompletion support */
Heiko Schocher7f625fc2009-09-23 07:56:04 +0200102
103/* Enable an alternate, more extensive memory test */
104#define CONFIG_SYS_ALT_MEMTEST
105
106/*
107 * Enable loopw command.
108 */
Heiko Schocher7f625fc2009-09-23 07:56:04 +0200109
Heiko Schocher7f625fc2009-09-23 07:56:04 +0200110#endif /* __MANROLAND_COMMON_H */