]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx28_evk.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / include / configs / mx28_evk.h
1 /*
2  * Copyright (C) 2010 Freescale Semiconductor, Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17  * MA 02111-1307 USA
18  */
19 #ifndef __MX28_EVK_H
20 #define __MX28_EVK_H
21
22 #include <asm/arch/mx28.h>
23
24 /*
25  * SoC configurations
26  */
27 #define CONFIG_MX28                             /* i.MX28 SoC */
28 #define CONFIG_MX28_TO1_2
29 #define CONFIG_SYS_HZ           1000            /* Ticks per second */
30 /* ROM loads UBOOT into DRAM */
31 #define CONFIG_SKIP_RELOCATE_UBOOT
32
33 /*
34  * Memory configurations
35  */
36 #define CONFIG_NR_DRAM_BANKS    1               /* 1 bank of DRAM */
37 #define PHYS_SDRAM_1            0x40000000      /* Base address */
38 #define PHYS_SDRAM_1_SIZE       0x08000000      /* 128 MB */
39 #define CONFIG_STACKSIZE        0x00020000      /* 128 KB stack */
40 #define CONFIG_SYS_MALLOC_LEN   0x00400000      /* 4 MB for malloc */
41 #define CONFIG_SYS_GBL_DATA_SIZE 128            /* Reserved for initial data */
42 #define CONFIG_SYS_MEMTEST_START 0x40000000     /* Memtest start address */
43 #define CONFIG_SYS_MEMTEST_END   0x40400000     /* 4 MB RAM test */
44
45 /*
46  * U-Boot general configurations
47  */
48 #define CONFIG_SYS_PROMPT       "MX28 U-Boot > "
49 #define CONFIG_SYS_CBSIZE       1024            /* Console I/O buffer size */
50 #define CONFIG_SYS_PBSIZE \
51         (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
52                                                 /* Print buffer size */
53 #define CONFIG_SYS_MAXARGS      16              /* Max number of command args */
54 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE
55                                                 /* Boot argument buffer size */
56 #define CONFIG_VERSION_VARIABLE                 /* U-BOOT version */
57 #define CONFIG_AUTO_COMPLETE                    /* Command auto complete */
58 #define CONFIG_CMDLINE_EDITING                  /* Command history etc */
59
60 #define CONFIG_SYS_64BIT_VSPRINTF
61
62 /*
63  * Boot Linux
64  */
65 #define CONFIG_CMDLINE_TAG
66 #define CONFIG_SETUP_MEMORY_TAGS
67 #define CONFIG_BOOTDELAY        3
68 #define CONFIG_BOOTFILE         "uImage"
69 #define CONFIG_BOOTARGS         "console=ttyAM0,115200n8 "
70 #define CONFIG_BOOTCOMMAND      "run bootcmd_net"
71 #define CONFIG_LOADADDR         0x42000000
72 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
73
74 /*
75  * Extra Environments
76  */
77 #define CONFIG_EXTRA_ENV_SETTINGS \
78         "nfsroot=/home/notroot/nfs/rootfs\0" \
79         "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs " \
80                 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp " \
81                 "fec_mac=${ethaddr}\0" \
82         "bootcmd_net=run bootargs_nfs; dhcp; bootm\0" \
83         "bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p3 " \
84                 "rw rootwait ip=dhcp fec_mac=${ethaddr}\0" \
85         "bootcmd_mmc=run bootargs_mmc; " \
86                 "mmc read 0 ${loadaddr} 100 3000; bootm\0" \
87
88 /*
89  * U-Boot Commands
90  */
91 #define CONFIG_SYS_NO_FLASH
92 #include <config_cmd_default.h>
93 #define CONFIG_ARCH_CPU_INIT
94 #define CONFIG_DISPLAY_CPUINFO
95
96 /*
97  * Serial Driver
98  */
99 #define CONFIG_UARTDBG_CLK              24000000
100 #define CONFIG_BAUDRATE                 115200          /* Default baud rate */
101 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
102
103 /*
104  * FEC Driver
105  */
106 #define CONFIG_MXC_FEC
107 #define CONFIG_GET_FEC_MAC_ADDR_FROM_IIM
108 #define CONFIG_FEC0_IOBASE              REGS_ENET_BASE
109 #define CONFIG_FEC0_PHY_ADDR            0
110 #define CONFIG_NET_MULTI
111 #define CONFIG_ETH_PRIME
112 #define CONFIG_RMII
113 #define CONFIG_CMD_MII
114 #define CONFIG_CMD_DHCP
115 #define CONFIG_CMD_PING
116 #define CONFIG_IPADDR                   192.168.1.103
117 #define CONFIG_SERVERIP                 192.168.1.101
118 #define CONFIG_NETMASK                  255.255.255.0
119 /* Add for working with "strict" DHCP server */
120 #define CONFIG_BOOTP_SUBNETMASK
121 #define CONFIG_BOOTP_GATEWAY
122 #define CONFIG_BOOTP_DNS
123
124 /*
125  * MMC Driver
126  */
127 #define CONFIG_CMD_MMC
128 #define CONFIG_MMC
129 #define CONFIG_IMX_SSP_MMC              /* MMC driver based on SSP */
130 #define CONFIG_GENERIC_MMC
131 #define CONFIG_SYS_MMC_ENV_DEV  0
132 #define CONFIG_DOS_PARTITION
133 #define CONFIG_CMD_FAT
134 #define CONFIG_SYS_SSP_MMC_NUM 2
135
136 /*
137  * Environments on MMC
138  */
139 #define CONFIG_CMD_ENV
140 #define CONFIG_ENV_OVERWRITE
141 #define CONFIG_ENV_IS_IN_MMC
142 /* Assoiated with the MMC layout defined in mmcops.c */
143 #define CONFIG_ENV_OFFSET               (0x400) /* 1 KB */
144 #define CONFIG_ENV_SIZE                 (0x20000 - 0x400) /* 127 KB */
145 #define CONFIG_DYNAMIC_MMC_DEVNO
146
147 /* The global boot mode will be detected by ROM code and
148  * a boot mode value will be stored at fixed address:
149  * TO1.0 addr 0x0001a7f0
150  * TO1.2 addr 0x00019BF0
151  */
152 #ifndef MX28_EVK_TO1_0
153  #define GLOBAL_BOOT_MODE_ADDR 0x00019BF0
154 #else
155  #define GLOBAL_BOOT_MODE_ADDR 0x0001a7f0
156 #endif
157 #define BOOT_MODE_SD0 0x9
158 #define BOOT_MODE_SD1 0xa
159
160 #endif /* __MX28_EVK_H */