83xx, kmeter1: add I2C, dtt, eeprom support
[platform/kernel/u-boot.git] / include / configs / keymile-common.h
1 /*
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 #define CONFIG_CMD_DTT
46 #define CONFIG_CMD_EEPROM
47 #define CONFIG_CMD_I2C
48
49 #undef  CONFIG_WATCHDOG                 /* disable platform specific watchdog */
50
51 #define CONFIG_BOOTCOMMAND      "run net_nfs"
52 #define CONFIG_BOOTDELAY        5       /* autoboot after 5 seconds */
53 #undef  CONFIG_BOOTARGS                 /* the boot command will set bootargs */
54
55 /*
56  * Miscellaneous configurable options
57  */
58 #define CONFIG_SYS_HUSH_PARSER
59 #define CONFIG_SYS_PROMPT_HUSH_PS2      "> "
60 #define CONFIG_SYS_LONGHELP                     /* undef to save memory     */
61 #define CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt   */
62 #if defined(CONFIG_CMD_KGDB)
63 #define CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size  */
64 #else
65 #define CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size  */
66 #endif
67 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)      /* Print Buffer Size  */
68 #define CONFIG_SYS_MAXARGS              16      /* max number of command args */
69 #define CONFIG_SYS_BARGSIZE             CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
70 #define CONFIG_CMDLINE_EDITING          1       /* add command line history     */
71
72 #define CONFIG_HUSH_INIT_VAR    1
73
74 #define CONFIG_SYS_ALT_MEMTEST          /* memory test, takes time */
75 #define CONFIG_SYS_MEMTEST_START        0x00100000      /* memtest works on */
76 #define CONFIG_SYS_MEMTEST_END          0x00f00000      /* 1 ... 15 MB in DRAM  */
77
78 #define CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
79
80 #define CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
81
82 #define CONFIG_BAUDRATE         115200
83 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200, 230400 }
84
85 #define CONFIG_LOADS_ECHO       1       /* echo on for serial download */
86 #define CONFIG_SYS_LOADS_BAUD_CHANGE    1       /* allow baudrate change */
87
88 /*
89  * How to get access to the slot ID.  Put this here to make it easy
90  * to modify in a centralized location.  This is used in the HDLC
91  * driver to set the MAC.
92 */
93 #define CONFIG_CHECK_ETHERNET_PRESENT   1
94 #define CONFIG_SYS_SLOT_ID_BASE         CONFIG_SYS_PIGGY_BASE
95 #define CONFIG_SYS_SLOT_ID_OFF          (0x07)  /* register offset */
96 #define CONFIG_SYS_SLOT_ID_MASK         (0x3f)  /* mask for slot ID bits */
97
98 /*
99  * BOOTP options
100  */
101 #define CONFIG_BOOTP_BOOTFILESIZE
102 #define CONFIG_BOOTP_BOOTPATH
103 #define CONFIG_BOOTP_GATEWAY
104 #define CONFIG_BOOTP_HOSTNAME
105
106 #endif /* __CONFIG_KEYMILE_H */