]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx53_evk_mfg.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / include / configs / mx53_evk_mfg.h
1 /*
2  * Copyright (C) 2010 Freescale Semiconductor, Inc.
3  *
4  * Configuration settings for the MX53-EVK 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/mx53.h>
26
27  /* High Level Configuration Options */
28 #define CONFIG_MFG      1
29 #define CONFIG_ARMV7            /* This is armv7 Cortex-A8 CPU core */
30 #define CONFIG_MXC
31 #define CONFIG_MX53
32 #define CONFIG_MX53_EVK
33 #define CONFIG_FLASH_HEADER
34 #define CONFIG_FLASH_HEADER_OFFSET 0x400
35
36 #define CONFIG_SKIP_RELOCATE_UBOOT
37
38 #define CONFIG_ARCH_CPU_INIT
39 #define CONFIG_ARCH_MMU
40
41 #define CONFIG_MX53_HCLK_FREQ   24000000
42 #define CONFIG_SYS_PLL2_FREQ    600
43 #define CONFIG_SYS_AHB_PODF     4
44 #define CONFIG_SYS_AXIA_PODF    1
45 #define CONFIG_SYS_AXIB_PODF    2
46
47 #define CONFIG_DISPLAY_CPUINFO
48 #define CONFIG_DISPLAY_BOARDINFO
49
50 #define CONFIG_SYS_64BIT_VSPRINTF
51
52 #define BOARD_LATE_INIT
53 /*
54  * Disabled for now due to build problems under Debian and a significant
55  * increase in the final file size: 144260 vs. 109536 Bytes.
56  */
57
58 #define CONFIG_CMDLINE_TAG              1       /* enable passing of ATAGs */
59 #define CONFIG_REVISION_TAG             1
60 #define CONFIG_SETUP_MEMORY_TAGS        1
61 #define CONFIG_INITRD_TAG               1
62
63 /*
64  * Size of malloc() pool
65  */
66 #define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
67 /* size in bytes reserved for initial data */
68 #define CONFIG_SYS_GBL_DATA_SIZE        128
69
70 /*
71  * Hardware drivers
72  */
73 #define CONFIG_MX53_UART        1
74 #define CONFIG_MX53_UART1       1
75
76 /* allow to overwrite serial and ethaddr */
77 #define CONFIG_ENV_OVERWRITE
78 #define CONFIG_CONS_INDEX               1
79 #define CONFIG_BAUDRATE                 115200
80 #define CONFIG_SYS_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
81
82 /***********************************************************
83  * Command definition
84  ***********************************************************/
85
86 #include <config_cmd_default.h>
87
88 #define CONFIG_CMD_PING
89 #define CONFIG_CMD_DHCP
90 #define CONFIG_CMD_MII
91 #define CONFIG_CMD_NET
92 #define CONFIG_NET_RETRY_COUNT  100
93 #define CONFIG_NET_MULTI 1
94 #define CONFIG_BOOTP_SUBNETMASK
95 #define CONFIG_BOOTP_GATEWAY
96 #define CONFIG_BOOTP_DNS
97
98 #define CONFIG_CMD_MMC
99 #define CONFIG_CMD_ENV
100
101 #define CONFIG_CMD_CLOCK
102 #define CONFIG_REF_CLK_FREQ CONFIG_MX53_HCLK_FREQ
103
104 #undef CONFIG_CMD_IMLS
105
106 #define CONFIG_BOOTDELAY        0
107
108 #define CONFIG_PRIME    "FEC0"
109
110 #define CONFIG_LOADADDR         0x70800000      /* loadaddr env var */
111 #define CONFIG_RD_LOADADDR      (CONFIG_LOADADDR + 0x300000)
112
113 #define CONFIG_BOOTARGS         "console=ttymxc0,115200 "\
114                                 "rdinit=/linuxrc"
115 #define CONFIG_BOOTCOMMAND      "bootm 0x70800000 0x70B00000"
116 #define CONFIG_ENV_IS_EMBEDDED
117
118 #define CONFIG_ARP_TIMEOUT      200UL
119
120 /*
121  * Miscellaneous configurable options
122  */
123 #define CONFIG_SYS_LONGHELP             /* undef to save memory */
124 #define CONFIG_SYS_PROMPT               "EVK MFG U-Boot > "
125 #define CONFIG_AUTO_COMPLETE
126 #define CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
127 /* Print Buffer Size */
128 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
129 #define CONFIG_SYS_MAXARGS      16      /* max number of command args */
130 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
131
132 #define CONFIG_SYS_MEMTEST_START        0       /* memtest works on */
133 #define CONFIG_SYS_MEMTEST_END          0x10000
134
135 #undef  CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
136
137 #define CONFIG_SYS_LOAD_ADDR            CONFIG_LOADADDR
138
139 #define CONFIG_SYS_HZ                           1000
140
141 #define CONFIG_CMDLINE_EDITING  1
142
143 #define CONFIG_FEC0_IOBASE      FEC_BASE_ADDR
144 #define CONFIG_FEC0_PINMUX      -1
145 #define CONFIG_FEC0_PHY_ADDR    -1
146 #define CONFIG_FEC0_MIIBASE     -1
147
148 #define CONFIG_MXC_FEC
149 #define CONFIG_MII
150 #define CONFIG_MII_GASKET
151 #define CONFIG_DISCOVER_PHY
152
153 /*
154  * I2C Configs
155  */
156 #define CONFIG_CMD_I2C          1
157 #define CONFIG_HARD_I2C         1
158 #define CONFIG_I2C_MXC          1
159 #define CONFIG_SYS_I2C_PORT             I2C2_BASE_ADDR
160 #define CONFIG_SYS_I2C_SPEED            100000
161 #define CONFIG_SYS_I2C_SLAVE            0xfe
162
163
164 /*
165  * SPI Configs
166  */
167 #define CONFIG_FSL_SF           1
168 #define CONFIG_CMD_SPI
169 #define CONFIG_CMD_SF
170 #define CONFIG_SPI_FLASH_IMX_ATMEL      1
171 #define CONFIG_SPI_FLASH_CS     1
172 #define CONFIG_IMX_ECSPI
173 #define IMX_CSPI_VER_2_3        1
174 #define MAX_SPI_BYTES           (64 * 4)
175
176 /*
177  * MMC Configs
178  */
179 #ifdef CONFIG_CMD_MMC
180         #define CONFIG_MMC                              1
181         #define CONFIG_GENERIC_MMC
182         #define CONFIG_IMX_MMC
183         #define CONFIG_SYS_FSL_ESDHC_NUM        2
184         #define CONFIG_SYS_FSL_ESDHC_ADDR       0
185         #define CONFIG_SYS_MMC_ENV_DEV  0
186         #define CONFIG_DOS_PARTITION    1
187         #define CONFIG_CMD_FAT          1
188         #define CONFIG_CMD_EXT2         1
189 #endif
190 /*-----------------------------------------------------------------------
191  * Stack sizes
192  *
193  * The stack sizes are set up in start.S using the settings below
194  */
195 #define CONFIG_STACKSIZE        (128 * 1024)    /* regular stack */
196
197 /*-----------------------------------------------------------------------
198  * Physical Memory Map
199  */
200 #define CONFIG_NR_DRAM_BANKS    1
201 #define PHYS_SDRAM_1            CSD0_BASE_ADDR
202 #define PHYS_SDRAM_1_SIZE       (1024 * 1024 * 1024)
203 #define iomem_valid_addr(addr, size) \
204         (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
205
206 /*-----------------------------------------------------------------------
207  * FLASH and environment organization
208  */
209 #define CONFIG_SYS_NO_FLASH
210
211
212 #define CONFIG_ENV_SECT_SIZE    (128 * 1024)
213 #define CONFIG_ENV_SIZE         CONFIG_ENV_SECT_SIZE
214
215 #define CONFIG_ENV_IS_NOWHERE
216
217 #endif                          /* __CONFIG_H */