]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx31_3stack.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / include / configs / mx31_3stack.h
1 /*
2  * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
3  *
4  * Configuration settings for the MX31 3Stack Freescale board.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19  * MA 02111-1307 USA
20  */
21
22 #ifndef __CONFIG_H
23 #define __CONFIG_H
24
25 #include <asm/arch/mx31-regs.h>
26
27  /* High Level Configuration Options */
28 #define CONFIG_ARM1136          1       /* This is an arm1136 CPU core */
29 #define CONFIG_MX31             1       /* in a mx31 */
30 #define CONFIG_MX31_HCLK_FREQ   26000000
31 #define CONFIG_MX31_CLK32       32768
32
33 #define CONFIG_MX31_NAND
34
35 #define CONFIG_DISPLAY_CPUINFO
36 #define CONFIG_DISPLAY_BOARDINFO
37
38 #define CONFIG_SKIP_RELOCATE_UBOOT
39
40 #define CONFIG_CMDLINE_TAG              1       /* enable passing of ATAGs */
41 #define CONFIG_SETUP_MEMORY_TAGS        1
42 #define CONFIG_INITRD_TAG               1
43
44 /*
45  * Size of malloc() pool
46  */
47 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 512 * 1024)
48 #define CONFIG_SYS_GBL_DATA_SIZE        128
49
50 /*
51  * Hardware drivers
52  */
53 #define CONFIG_MXC_UART 1
54 #define CONFIG_SYS_MX31_UART1   1
55
56 #define CONFIG_MXC_SPI          1
57
58 #define CONFIG_RTC_MC13783      1
59 #define CONFIG_MC13783_SPI_BUS  1
60 #define CONFIG_MC13783_SPI_CS   0
61
62 /* allow to overwrite serial and ethaddr */
63 #define CONFIG_ENV_OVERWRITE
64 #define CONFIG_CONS_INDEX       1
65 #define CONFIG_BAUDRATE         115200
66 #define CONFIG_SYS_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
67
68 /***********************************************************
69  * Command definition
70  ***********************************************************/
71
72 #include <config_cmd_default.h>
73
74 #define CONFIG_CMD_PING
75 #define CONFIG_CMD_DHCP
76 #define CONFIG_CMD_SPI
77 #define CONFIG_CMD_DATE
78 #define CONFIG_CMD_NAND
79 #undef CONFIG_CMD_IMLS
80
81 #define CONFIG_BOOTDELAY        3
82
83 #define CONFIG_LOADADDR         0x80800000      /* loadaddr env var */
84
85 #define CONFIG_EXTRA_ENV_SETTINGS                               \
86         "netdev=eth0\0"                                         \
87         "uboot=u-boot.bin\0"                                    \
88         "kernel=uImage\0"                                       \
89         "loadaddr=0x80010000\0"                                 \
90         "tftp_server=10.192.225.58\0"           \
91         "serverip=10.192.225.211\0"                     \
92         "nfsroot=/tools/rootfs/rootfs-2.6.24\0"                 \
93         "bootargs_base=setenv bootargs console=ttymxc0,115200\0"        \
94         "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "       \
95                 "ip=dhcp nfsroot=${serverip}:${nfsroot} rw\0"   \
96         "bootcmd=run bootcmd_net\0"                                     \
97         "bootcmd_net=run bootargs_base bootargs_nfs; "                  \
98                 "tftpboot ${loadaddr} ${tftp_server}:${kernel}; bootm\0"
99
100 /* configure for smc91xx debug board ethernet */
101 #define CONFIG_NET_MULTI
102 #define CONFIG_SMC911X          1
103 #define CONFIG_SMC911X_16_BIT   1
104 #define CONFIG_SMC911X_BASE     CS5_BASE
105
106 #define CONFIG_ARP_TIMEOUT      200UL
107
108 /*
109  * Miscellaneous configurable options
110  */
111 #define CONFIG_SYS_LONGHELP     /* undef to save memory */
112 #define CONFIG_SYS_PROMPT       "MX31 U-Boot > "
113 #define CONFIG_AUTO_COMPLETE
114 #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
115 /* Print Buffer Size */
116 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
117 #define CONFIG_SYS_MAXARGS      16              /* max number of command args */
118 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
119
120 #define CONFIG_SYS_MEMTEST_START        0       /* memtest works on */
121 #define CONFIG_SYS_MEMTEST_END          0x10000
122
123 #undef  CONFIG_SYS_CLKS_IN_HZ   /* everything, incl board info, in Hz */
124
125 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
126
127 #define CONFIG_SYS_HZ           CONFIG_MX31_CLK32
128
129 #define CONFIG_CMDLINE_EDITING  1
130
131 /*-----------------------------------------------------------------------
132  * Stack sizes
133  *
134  * The stack sizes are set up in start.S using the settings below
135  */
136 #define CONFIG_STACKSIZE        (128 * 1024)    /* regular stack */
137
138 /*-----------------------------------------------------------------------
139  * Physical Memory Map
140  */
141 #define CONFIG_NR_DRAM_BANKS    1
142 #define PHYS_SDRAM_1            CSD0_BASE
143 #define PHYS_SDRAM_1_SIZE       (128 * 1024 * 1024)
144
145 /*
146  * TODO: NAND Flash configure
147  */
148
149 #define CONFIG_SYS_NO_FLASH
150 #define NAND_MAX_CHIPS         1
151 #define CONFIG_SYS_MAX_NAND_DEVICE    1
152 #define CONFIG_SYS_NAND_BASE          0x40000000
153
154 #define CONFIG_ENV_IS_IN_NAND   1
155 #define CONFIG_ENV_OFFSET       0x40000 /* 2nd block */
156 #define CONFIG_ENV_SIZE         (128*1024)
157 /*
158  * JFFS2 partitions TODO:
159  */
160 #undef CONFIG_JFFS2_CMDLINE
161 #define CONFIG_JFFS2_DEV        "nand0"
162
163 #endif /* __CONFIG_H */