]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx50_arm2_iram.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / include / configs / mx50_arm2_iram.h
1 /*
2  * Copyright (C) 2010 Freescale Semiconductor, Inc.
3  *
4  * Configuration settings for the MX50-ARM2 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/mx50.h>
26
27  /* High Level Configuration Options */
28 #define CONFIG_ARMV7            1       /* This is armv7 Cortex-A8 CPU core */
29
30 #define CONFIG_MXC
31 #define CONFIG_MX50
32 #define CONFIG_MX50_ARM2
33 #define CONFIG_FLASH_HEADER
34 #define CONFIG_FLASH_HEADER_OFFSET 0x400
35
36 #define CONFIG_SKIP_RELOCATE_UBOOT
37
38 /*
39 #define CONFIG_ARCH_CPU_INIT
40 #define CONFIG_ARCH_MMU
41 */
42
43 #define CONFIG_MX50_HCLK_FREQ   24000000
44 #define CONFIG_SYS_PLL2_FREQ    600
45 #define CONFIG_SYS_AHB_PODF     4
46 #define CONFIG_SYS_AXIA_PODF    1
47 #define CONFIG_SYS_AXIB_PODF    2
48 #define CONFIG_DISPLAY_CPUINFO
49 #define CONFIG_DISPLAY_BOARDINFO
50
51 #define BOARD_LATE_INIT
52
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           (3 * 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_MX50_UART        1
74 #define CONFIG_MX50_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 #define CONFIG_CMD_BDI          /* bdinfo                       */
87 #define CONFIG_CMD_BOOTD        /* bootd                        */
88 #define CONFIG_CMD_CONSOLE      /* coninfo                      */
89 #define CONFIG_CMD_RUN          /* run command in env variable  */
90
91 /*
92  * SPI Configs
93  * */
94
95 /*
96  * MMC Configs
97  * */
98 /*
99  * Eth Configs
100  */
101
102
103 /* Enable below configure when supporting nand */
104 #define CONFIG_CMD_ENV
105
106 #define CONFIG_REF_CLK_FREQ CONFIG_MX50_HCLK_FREQ
107
108 #undef CONFIG_CMD_IMLS
109
110 #define CONFIG_BOOTDELAY        3
111
112 #define CONFIG_PRIME    "FEC0"
113
114 #define CONFIG_LOADADDR         0x70800000      /* loadaddr env var */
115 #define CONFIG_RD_LOADADDR      (CONFIG_LOADADDR + 0x300000)
116
117 #define CONFIG_BOOTARGS         "console=ttymxc0,115200 "\
118                                 "rdinit=/linuxrc"
119
120 #define CONFIG_BOOTCOMMAND      "bootm"
121 #define CONFIG_ENV_IS_EMBEDDED
122 /*
123  * The MX51 3stack board seems to have a hardware "peculiarity" confirmed under
124  * U-Boot, RedBoot and Linux: the ethernet Rx signal is reaching the CS8900A
125  * controller inverted. The controller is capable of detecting and correcting
126  * this, but it needs 4 network packets for that. Which means, at startup, you
127  * will not receive answers to the first 4 packest, unless there have been some
128  * broadcasts on the network, or your board is on a hub. Reducing the ARP
129  * timeout from default 5 seconds to 200ms we speed up the initial TFTP
130  * transfer, should the user wish one, significantly.
131  */
132 #define CONFIG_ARP_TIMEOUT      200UL
133
134 /*
135  * Miscellaneous configurable options
136  */
137 #define CONFIG_SYS_PROMPT               "ARM2 U-Boot > "
138 #define CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
139 /* Print Buffer Size */
140 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
141 #define CONFIG_SYS_MAXARGS      16      /* max number of command args */
142 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
143
144 #define CONFIG_SYS_MEMTEST_START        0       /* memtest works on */
145 #define CONFIG_SYS_MEMTEST_END          0x10000
146
147 #undef  CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
148
149 #define CONFIG_SYS_LOAD_ADDR            CONFIG_LOADADDR
150
151 #define CONFIG_SYS_HZ                           1000
152
153 #define CONFIG_CMDLINE_EDITING  1
154
155 /*-----------------------------------------------------------------------
156  * Stack sizes
157  *
158  * The stack sizes are set up in start.S using the settings below
159  */
160 #define CONFIG_STACKSIZE        (6 * 1024)      /* regular stack */
161
162 /*-----------------------------------------------------------------------
163  * Physical Memory Map
164  */
165 #define CONFIG_NR_DRAM_BANKS    1
166 #define PHYS_SDRAM_1            CSD0_BASE_ADDR
167 /* TO1 boards */
168 /* #define PHYS_SDRAM_1_SIZE    (128 * 1024 * 1024) */
169 #define PHYS_SDRAM_1_SIZE       (512 * 1024 * 1024)
170 #define iomem_valid_addr(addr, size) \
171         (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
172
173 /*-----------------------------------------------------------------------
174  * FLASH and environment organization
175  */
176 #define CONFIG_SYS_NO_FLASH
177
178 /* Monitor at beginning of flash */
179 /* #define CONFIG_FSL_ENV_IN_SF
180 */
181 /* #define CONFIG_FSL_ENV_IN_MMC */
182
183 #define CONFIG_ENV_SECT_SIZE    (1 * 1024)
184 #define CONFIG_ENV_SIZE         CONFIG_ENV_SECT_SIZE
185 #define CONFIG_ENV_IS_NOWHERE
186
187 /*
188  * JFFS2 partitions
189  */
190 /*
191 #undef CONFIG_JFFS2_CMDLINE
192 #define CONFIG_JFFS2_DEV        "nand0"
193 */
194 #endif                          /* __CONFIG_H */