]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx23_evk.h
applied patches from Freescale and Ka-Ro
[karo-tx-uboot.git] / include / configs / mx23_evk.h
1 /*
2  * Copyright (C) 2008 Embedded Alley Solutions, Inc.
3  *
4  * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
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 #include <asm/sizes.h>
25
26 /*
27  * Define this to make U-Boot skip low level initialization when loaded
28  * by initial bootloader. Not required by NAND U-Boot version but IS
29  * required for a NOR version used to burn the real NOR U-Boot into
30  * NOR Flash. NAND and NOR support for DaVinci chips is mutually exclusive
31  * so it is NOT possible to build a U-Boot with both NAND and NOR routines.
32  * NOR U-Boot is loaded directly from Flash so it must perform all the
33  * low level initialization itself. NAND version is loaded by an initial
34  * bootloader (UBL in TI-ese) that performs such an initialization so it's
35  * skipped in NAND version. The third DaVinci boot mode loads a bootloader
36  * via UART0 and that bootloader in turn loads and runs U-Boot (or whatever)
37  * performing low level init prior to loading. All that means we can NOT use
38  * NAND version to put U-Boot into NOR because it doesn't have NOR support and
39  * we can NOT use NOR version because it performs low level initialization
40  * effectively destroying itself in DDR memory. That's why a separate NOR
41  * version with this define is needed. It is loaded via UART, then one uses
42  * it to somehow download a proper NOR version built WITHOUT this define to
43  * RAM (tftp?) and burn it to NOR Flash. I would be probably able to squeeze
44  * NOR support into the initial bootloader so it won't be needed but DaVinci
45  * static RAM might be too small for this (I have something like 2Kbytes left
46  * as of now, without NOR support) so this might've not happened...
47  *
48  */
49
50 /*===================*/
51 /* SoC Configuration */
52 /*===================*/
53 #define CONFIG_ARM926EJS                        /* arm926ejs CPU core */
54 #define CONFIG_MX23                             /* MX23 SoC */
55 #define CONFIG_MX23_EVK                         /* MX23 EVK board */
56 #define CONFIG_SYS_CLK_FREQ     120000000       /* Arm Clock frequency */
57 #define CONFIG_USE_TIMER0                       /* use timer 0 */
58 #define CONFIG_SYS_HZ           1000            /* Ticks per second */
59 /*=============*/
60 /* Memory Info */
61 /*=============*/
62 #define CONFIG_SYS_MALLOC_LEN   (0x10000 + 128*1024)    /* malloc() len */
63 #define CONFIG_SYS_GBL_DATA_SIZE 128            /* reserved for initial data */
64 #define CONFIG_SYS_MEMTEST_START 0x40000000     /* memtest start address */
65 #define CONFIG_SYS_MEMTEST_END   0x41000000     /* 16MB RAM test */
66 #define CONFIG_NR_DRAM_BANKS    1               /* we have 1 bank of DRAM */
67 #define CONFIG_STACKSIZE        (256*1024)      /* regular stack */
68 #define PHYS_SDRAM_1            0x40000000      /* mDDR Start */
69 #define PHYS_SDRAM_1_SIZE       0x02000000      /* mDDR size 32MB */
70
71 /*====================*/
72 /* Serial Driver info */
73 /*====================*/
74 #define CONFIG_STMP3XXX_DBGUART                 /* 378x debug UART */
75 #define CONFIG_DBGUART_CLK      24000000
76 #define CONFIG_BAUDRATE         115200          /* Default baud rate */
77 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
78
79 /*====================*/
80 /* SPI Driver info */
81 /*====================*/
82 #define CONFIG_SSP_CLK          48000000
83 #define CONFIG_SPI_CLK          3000000
84 #define CONFIG_SPI_SSP1
85 #undef CONFIG_SPI_SSP2
86
87 /*=====================*/
88 /* Flash & Environment */
89 /*=====================*/
90 #define CONFIG_SYS_NO_FLASH                     /* Flash is not supported */
91 #define CONFIG_ENV_IS_NOWHERE           /* Store ENV in memory only */
92 #define CONFIG_ENV_SIZE         0x20000
93
94 /*==============================*/
95 /* U-Boot general configuration */
96 /*==============================*/
97 #undef  CONFIG_USE_IRQ                          /* No IRQ/FIQ in U-Boot */
98 #define CONFIG_MISC_INIT_R
99 #define CONFIG_NETMASK          255.255.255.0
100 #define CONFIG_IPADDR           192.167.10.2
101 #define CONFIG_SERVERIP         192.167.10.1
102 #define CONFIG_BOOTDELAY        2
103 #define CONFIG_BOOTFILE         "uImage"        /* Boot file name */
104 #define CONFIG_SYS_PROMPT       "MX23 U-Boot > "
105                                                 /* Monitor Command Prompt */
106 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size  */
107 #define CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
108                                                 /* Print buffer sz */
109 #define CONFIG_SYS_MAXARGS      16              /* max number of command args */
110 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE
111                                                 /* Boot Argument Buffer Size */
112 #define CONFIG_SYS_LOAD_ADDR    0x40400000
113                                 /* default Linux kernel load address */
114 #define CONFIG_VERSION_VARIABLE
115 #define CONFIG_AUTO_COMPLETE    /* Won't work with hush so far, may be later */
116 #define CFG_HUSH_PARSER
117 #define CFG_PROMPT_HUSH_PS2     "> "
118 #define CONFIG_CMDLINE_EDITING
119 #define CFG_LONGHELP
120 #define CONFIG_CRC32_VERIFY
121 #define CONFIG_MX_CYCLIC
122
123 /*===================*/
124 /* Linux Information */
125 /*===================*/
126 #define LINUX_BOOT_PARAM_ADDR   0x40000100
127 #define CONFIG_CMDLINE_TAG
128 #define CONFIG_SETUP_MEMORY_TAGS
129 #define CONFIG_BOOTARGS         "console=ttyAM0,115200n8 "\
130                         "root=/dev/mtdblock1 rootfstype=jffs2 lcd_panel=lms350"
131 #define CONFIG_BOOTCOMMAND      "tftpboot ; bootm"
132
133 /*=================*/
134 /* U-Boot commands */
135 /*=================*/
136 #include <config_cmd_default.h>
137 #define CONFIG_CMD_ASKENV
138 #define CONFIG_CMD_DHCP
139 #define CONFIG_BOOTP_SUBNETMASK
140 #define CONFIG_BOOTP_GATEWAY
141 #define CONFIG_BOOTP_DNS
142 #undef CONFIG_CMD_DIAG
143 #define CONFIG_CMD_MII
144 #define CONFIG_CMD_PING
145 #define CONFIG_CMD_NET
146 #define CONFIG_CMD_SAVES
147 #undef CONFIG_CMD_IMLS
148
149 /* Ethernet chip - select an alternative driver */
150 #define CONFIG_ENC28J60_ETH
151 #define CONFIG_ENC28J60_ETH_SPI_BUS     0
152 #define CONFIG_ENC28J60_ETH_SPI_CS      0
153
154 #endif /* __CONFIG_H */