2 * Copyright (C) 2010 Freescale Semiconductor, Inc.
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.
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.
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,
22 #include <asm/arch/mx28.h>
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
34 * Memory configurations
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 */
46 * U-Boot general configurations
48 #define CONFIG_SYS_LONGHELP
49 #define CONFIG_DISPLAY_BOARDINFO
50 #define CONFIG_SYS_PROMPT "MX28 U-Boot > "
51 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */
52 #define CONFIG_SYS_PBSIZE \
53 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
54 /* Print buffer size */
55 #define CONFIG_SYS_MAXARGS 16 /* Max number of command args */
56 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
57 /* Boot argument buffer size */
58 #define CONFIG_VERSION_VARIABLE /* U-BOOT version */
59 #define CONFIG_AUTO_COMPLETE /* Command auto complete */
60 #define CONFIG_CMDLINE_EDITING /* Command history etc */
62 #define CONFIG_SYS_64BIT_VSPRINTF
67 #define CONFIG_CMDLINE_TAG
68 #define CONFIG_SETUP_MEMORY_TAGS
69 #define CONFIG_BOOTDELAY 3
70 #define CONFIG_BOOTFILE "uImage"
71 #define CONFIG_BOOTARGS "console=ttyAM0,115200n8 "
72 #define CONFIG_BOOTCOMMAND "run bootcmd_net"
73 #define CONFIG_LOADADDR 0x42000000
74 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
79 #define CONFIG_EXTRA_ENV_SETTINGS \
80 "nfsroot=/home/notroot/nfs/rootfs\0" \
81 "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs " \
82 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp " \
83 "fec_mac=${ethaddr}\0" \
84 "bootcmd_net=run bootargs_nfs; dhcp; bootm\0" \
85 "bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p3 " \
86 "rw rootwait ip=dhcp fec_mac=${ethaddr}\0" \
87 "bootcmd_mmc=run bootargs_mmc; " \
88 "mmc read 0 ${loadaddr} 100 3000; bootm\0" \
93 #define CONFIG_SYS_NO_FLASH
94 #include <config_cmd_default.h>
95 #define CONFIG_ARCH_CPU_INIT
96 #define CONFIG_DISPLAY_CPUINFO
101 #define CONFIG_UARTDBG_CLK 24000000
102 #define CONFIG_BAUDRATE 115200 /* Default baud rate */
103 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
108 #define CONFIG_MXC_FEC
109 #define CONFIG_GET_FEC_MAC_ADDR_FROM_IIM
110 #define CONFIG_FEC0_IOBASE ((volatile void *)REGS_ENET_BASE)
111 #define CONFIG_FEC0_PHY_ADDR 0
112 #define CONFIG_NET_MULTI
113 #define CONFIG_ETH_PRIME
115 #define CONFIG_CMD_MII
116 #define CONFIG_CMD_DHCP
117 #define CONFIG_CMD_PING
118 /* Add for working with "strict" DHCP server */
119 #define CONFIG_BOOTP_SUBNETMASK
120 #define CONFIG_BOOTP_GATEWAY
121 #define CONFIG_BOOTP_DNS
126 #define CONFIG_CMD_MMC
128 #define CONFIG_IMX_SSP_MMC /* MMC driver based on SSP */
129 #define CONFIG_GENERIC_MMC
130 #define CONFIG_SYS_MMC_ENV_DEV 0
131 #define CONFIG_DOS_PARTITION
132 #define CONFIG_CMD_FAT
133 #define CONFIG_SYS_SSP_MMC_NUM 2
135 #define CONFIG_BOOT_PARTITION_ACCESS
136 #define CONFIG_DOS_PARTITION
137 #define CONFIG_CMD_FAT
138 #define CONFIG_CMD_EXT2
141 * Environments on MMC
143 #define CONFIG_CMD_ENV
144 #define CONFIG_ENV_OVERWRITE
145 #define CONFIG_ENV_IS_IN_MMC
146 /* Assoiated with the MMC layout defined in mmcops.c */
147 #define CONFIG_ENV_OFFSET 0x400 /* 1 KB */
148 #define CONFIG_ENV_SIZE (0x20000 - 0x400) /* 127 KB */
149 #define CONFIG_DYNAMIC_MMC_DEVNO
151 /* The global boot mode will be detected by ROM code and
152 * a boot mode value will be stored at fixed address:
153 * TO1.0 addr 0x0001a7f0
154 * TO1.2 addr 0x00019BF0
156 #ifndef MX28_EVK_TO1_0
157 #define GLOBAL_BOOT_MODE_ADDR 0x00019BF0
159 #define GLOBAL_BOOT_MODE_ADDR 0x0001a7f0
161 #define BOOT_MODE_SD0 0x9
162 #define BOOT_MODE_SD1 0xa
164 #endif /* __MX28_EVK_H */