blob: d70bc4808259ceb70d42fb44ab6c639d9ae35834 [file] [log] [blame]
Heiko Schocher1e8f4e72008-11-20 09:59:09 +01001/*
2 * (C) Copyright 2008
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 __CONFIG_KEYMILE_H
25#define __CONFIG_KEYMILE_H
26
27/* Do boardspecific init for all boards */
28#define CONFIG_BOARD_EARLY_INIT_R 1
29
30#if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
31#define CONFIG_BOOTCOUNT_LIMIT
32#endif
33
34/*
35 * Command line configuration.
36 */
37#include <config_cmd_default.h>
38
39#define CONFIG_CMD_ASKENV
40#define CONFIG_CMD_DHCP
41#define CONFIG_CMD_ECHO
42#define CONFIG_CMD_IMMAP
43#define CONFIG_CMD_MII
44#define CONFIG_CMD_PING
45
46/* should go away, if kmeter I2C support is enabled */
47#if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
48#define CONFIG_CMD_DTT
49#define CONFIG_CMD_EEPROM
50#define CONFIG_CMD_I2C
51#endif
52
53#undef CONFIG_WATCHDOG /* disable platform specific watchdog */
54
55#define CONFIG_BOOTCOMMAND "run net_nfs"
56#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
57#undef CONFIG_BOOTARGS /* the boot command will set bootargs */
58
59/*
60 * Miscellaneous configurable options
61 */
62#define CONFIG_SYS_HUSH_PARSER
63#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
64#define CONFIG_SYS_LONGHELP /* undef to save memory */
65#define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
66#if defined(CONFIG_CMD_KGDB)
67#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
68#else
69#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
70#endif
71#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
72#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
73#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
74#define CONFIG_CMDLINE_EDITING 1 /* add command line history */
75
76/* should go away, if kmeter I2C support is enabled */
77#if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
78#define CONFIG_HUSH_INIT_VAR 1
79#endif
80
81#define CONFIG_SYS_ALT_MEMTEST /* memory test, takes time */
82#define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
83#define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
84
85#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
86
87#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
88
89#define CONFIG_BAUDRATE 115200
90#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
91
92#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
93#define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
94
95/*
96 * How to get access to the slot ID. Put this here to make it easy
97 * to modify in a centralized location. This is used in the HDLC
98 * driver to set the MAC.
99*/
100#define CONFIG_CHECK_ETHERNET_PRESENT 1
101#define CONFIG_SYS_SLOT_ID_BASE CONFIG_SYS_PIGGY_BASE
102#define CONFIG_SYS_SLOT_ID_OFF (0x07) /* register offset */
103#define CONFIG_SYS_SLOT_ID_MASK (0x3f) /* mask for slot ID bits */
104
105/*
106 * BOOTP options
107 */
108#define CONFIG_BOOTP_BOOTFILESIZE
109#define CONFIG_BOOTP_BOOTPATH
110#define CONFIG_BOOTP_GATEWAY
111#define CONFIG_BOOTP_HOSTNAME
112
113#endif /* __CONFIG_KEYMILE_H */