]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx51_bbg_mfg.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / include / configs / mx51_bbg_mfg.h
1 /*
2  * Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
3  *
4  * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
5  *
6  * Configuration settings for the MX51-3Stack Freescale board.
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_H
25 #define __CONFIG_H
26
27 #include <asm/arch/mx51.h>
28
29  /* High Level Configuration Options */
30 #define CONFIG_ARMV7            1       /* This is armv7 Cortex-A8 CPU core */
31
32 #define CONFIG_MFG              1
33 #define CONFIG_MXC              1
34 #define CONFIG_MX51_BBG         1       /* in a mx51 */
35 #define CONFIG_FLASH_HEADER     1
36 #define CONFIG_FLASH_HEADER_OFFSET 0x400
37 #define CONFIG_FLASH_HEADER_BARKER 0xB1
38
39 #define CONFIG_SKIP_RELOCATE_UBOOT
40
41 #define CONFIG_MX51_HCLK_FREQ   24000000        /* RedBoot says 26MHz */
42
43 #define CONFIG_ARCH_CPU_INIT
44 #define CONFIG_ARCH_MMU
45
46 #define CONFIG_DISPLAY_CPUINFO
47 #define CONFIG_DISPLAY_BOARDINFO
48
49 #define BOARD_LATE_INIT
50
51 /*
52  * Disabled for now due to build problems under Debian and a significant
53  * increase in the final file size: 144260 vs. 109536 Bytes.
54  */
55
56 #define CONFIG_CMDLINE_TAG              1       /* enable passing of ATAGs */
57 #define CONFIG_REVISION_TAG             1
58 #define CONFIG_SETUP_MEMORY_TAGS        1
59 #define CONFIG_INITRD_TAG               1
60
61 /*
62  * Size of malloc() pool
63  */
64 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
65 /* size in bytes reserved for initial data */
66 #define CONFIG_SYS_GBL_DATA_SIZE        128
67
68 /*
69  * Hardware drivers
70  */
71 #define CONFIG_MX51_UART        1
72 #define CONFIG_MX51_UART1       1
73
74 /*
75  * SPI Configs
76  * */
77 #define CONFIG_FSL_SF           1
78 #define CONFIG_SPI_FLASH_IMX_ATMEL      1
79 #define CONFIG_SPI_FLASH_CS     1
80 #define CONFIG_IMX_ECSPI
81 #define CONFIG_IMX_SPI_PMIC
82 #define CONFIG_IMX_SPI_PMIC_CS  0
83 #define IMX_CSPI_VER_2_3        1
84 #define MAX_SPI_BYTES           (64 * 4)
85
86 /*
87  * MMC Configs
88  * */
89
90 /*
91  * Eth Configs
92  */
93 #define CONFIG_HAS_ETH1
94 #define CONFIG_NET_MULTI 1
95 #define CONFIG_MXC_FEC
96 #define CONFIG_MII
97 #define CONFIG_DISCOVER_PHY
98
99 #define CONFIG_FEC0_IOBASE      FEC_BASE_ADDR
100 #define CONFIG_FEC0_PINMUX      -1
101 #define CONFIG_FEC0_PHY_ADDR    0x1F
102 #define CONFIG_FEC0_MIIBASE     -1
103
104 /* allow to overwrite serial and ethaddr */
105 #define CONFIG_ENV_OVERWRITE
106 #define CONFIG_CONS_INDEX               1
107 #define CONFIG_BAUDRATE                 115200
108 #define CONFIG_SYS_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
109
110 /***********************************************************
111  * Command definition
112  ***********************************************************/
113
114 #include <config_cmd_default.h>
115
116 #define CONFIG_CMD_PING
117 #define CONFIG_CMD_DHCP
118 #define CONFIG_CMD_MII
119 #define CONFIG_CMD_NET
120 #define CONFIG_NET_RETRY_COUNT  100
121
122 /*
123  * SPI Configs
124  * */
125
126 /*
127  * MMC Configs
128  * */
129 /*
130  * Eth Configs
131  */
132 #define CONFIG_HAS_ETH1
133 #define CONFIG_NET_MULTI 1
134 #define CONFIG_MXC_FEC
135 #define CONFIG_MII
136 #define CONFIG_DISCOVER_PHY
137
138 #define CONFIG_FEC0_IOBASE      FEC_BASE_ADDR
139 #define CONFIG_FEC0_PINMUX      -1
140 #define CONFIG_FEC0_PHY_ADDR    0x1F
141 #define CONFIG_FEC0_MIIBASE     -1
142
143
144
145 /* Enable below configure when supporting nand */
146 #define CONFIG_CMD_ENV
147
148 #undef CONFIG_CMD_IMLS
149
150 #define CONFIG_BOOTDELAY        0
151
152 #define CONFIG_PRIME    "FEC0"
153
154 #define CONFIG_LOADADDR         0x90100000      /* loadaddr env var */
155
156 #define CONFIG_BOOTARGS         "console=ttymxc0,115200 "\
157                                 "rdinit=/linuxrc"
158
159 #define CONFIG_BOOTCOMMAND      "bootm ${loadaddr} 0x90800000"
160 #define CONFIG_ENV_IS_EMBEDDED
161 /*
162  * The MX51 3stack board seems to have a hardware "peculiarity" confirmed under
163  * U-Boot, RedBoot and Linux: the ethernet Rx signal is reaching the CS8900A
164  * controller inverted. The controller is capable of detecting and correcting
165  * this, but it needs 4 network packets for that. Which means, at startup, you
166  * will not receive answers to the first 4 packest, unless there have been some
167  * broadcasts on the network, or your board is on a hub. Reducing the ARP
168  * timeout from default 5 seconds to 200ms we speed up the initial TFTP
169  * transfer, should the user wish one, significantly.
170  */
171 #define CONFIG_ARP_TIMEOUT      200UL
172
173 /*
174  * Miscellaneous configurable options
175  */
176 #define CONFIG_SYS_LONGHELP             /* undef to save memory */
177 #define CONFIG_SYS_PROMPT               "BBG U-Boot > "
178 #define CONFIG_AUTO_COMPLETE
179 #define CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
180 /* Print Buffer Size */
181 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
182 #define CONFIG_SYS_MAXARGS      16      /* max number of command args */
183 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
184
185 #define CONFIG_SYS_MEMTEST_START        0       /* memtest works on */
186 #define CONFIG_SYS_MEMTEST_END          0x10000
187
188 #undef  CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
189
190 #define CONFIG_SYS_LOAD_ADDR            CONFIG_LOADADDR
191
192 #define CONFIG_SYS_HZ                           1000
193
194 #define CONFIG_CMDLINE_EDITING  1
195
196 /*-----------------------------------------------------------------------
197  * Stack sizes
198  *
199  * The stack sizes are set up in start.S using the settings below
200  */
201 #define CONFIG_STACKSIZE        (128 * 1024)    /* regular stack */
202
203 /*-----------------------------------------------------------------------
204  * Physical Memory Map
205  */
206 #define CONFIG_NR_DRAM_BANKS    1
207 #define PHYS_SDRAM_1            CSD0_BASE_ADDR
208 /* TO1 boards */
209 /* #define PHYS_SDRAM_1_SIZE    (128 * 1024 * 1024) */
210 #define PHYS_SDRAM_1_SIZE       (512 * 1024 * 1024)
211 #define iomem_valid_addr(addr, size) \
212         (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
213
214 /*-----------------------------------------------------------------------
215  * FLASH and environment organization
216  */
217 #define CONFIG_SYS_NO_FLASH
218
219 /* Monitor at beginning of flash */
220 /* #define CONFIG_FSL_ENV_IN_SF
221 */
222 /* #define CONFIG_FSL_ENV_IN_MMC */
223
224 #define CONFIG_ENV_SECT_SIZE    (128 * 1024)
225 #define CONFIG_ENV_SIZE         CONFIG_ENV_SECT_SIZE
226 #define CONFIG_ENV_IS_NOWHERE
227
228 /*
229  * JFFS2 partitions
230  */
231 /*
232 #undef CONFIG_JFFS2_CMDLINE
233 #define CONFIG_JFFS2_DEV        "nand0"
234 */
235 #endif                          /* __CONFIG_H */