2 * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
4 * Configuration settings for the MX31 3Stack Freescale board.
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.
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.
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,
25 #include <asm/arch/mx31-regs.h>
27 /* High Level Configuration Options */
28 #define CONFIG_ARM1136 1 /* This is an arm1136 CPU core */
29 #define CONFIG_MX31 1 /* in a mx31 */
30 #define CONFIG_MX31_HCLK_FREQ 26000000
31 #define CONFIG_MX31_CLK32 32768
33 #define CONFIG_MX31_NAND
35 #define CONFIG_DISPLAY_CPUINFO
36 #define CONFIG_DISPLAY_BOARDINFO
38 #define CONFIG_SKIP_RELOCATE_UBOOT
40 #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
41 #define CONFIG_SETUP_MEMORY_TAGS 1
42 #define CONFIG_INITRD_TAG 1
45 * Size of malloc() pool
47 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 512 * 1024)
48 #define CONFIG_SYS_GBL_DATA_SIZE 128
53 #define CONFIG_MXC_UART 1
54 #define CONFIG_SYS_MX31_UART1 1
56 #define CONFIG_MXC_SPI 1
58 #define CONFIG_RTC_MC13783 1
59 #define CONFIG_MC13783_SPI_BUS 1
60 #define CONFIG_MC13783_SPI_CS 0
62 /* allow to overwrite serial and ethaddr */
63 #define CONFIG_ENV_OVERWRITE
64 #define CONFIG_CONS_INDEX 1
65 #define CONFIG_BAUDRATE 115200
66 #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200}
68 /***********************************************************
70 ***********************************************************/
72 #include <config_cmd_default.h>
74 #define CONFIG_CMD_PING
75 #define CONFIG_CMD_DHCP
76 #define CONFIG_CMD_SPI
77 #define CONFIG_CMD_DATE
78 #define CONFIG_CMD_NAND
79 #undef CONFIG_CMD_IMLS
81 #define CONFIG_BOOTDELAY 3
83 #define CONFIG_LOADADDR 0x80800000 /* loadaddr env var */
85 #define CONFIG_EXTRA_ENV_SETTINGS \
87 "uboot=u-boot.bin\0" \
89 "loadaddr=0x80010000\0" \
90 "tftp_server=10.192.225.58\0" \
91 "serverip=10.192.225.211\0" \
92 "nfsroot=/tools/rootfs/rootfs-2.6.24\0" \
93 "bootargs_base=setenv bootargs console=ttymxc0,115200\0" \
94 "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs " \
95 "ip=dhcp nfsroot=${serverip}:${nfsroot} rw\0" \
96 "bootcmd=run bootcmd_net\0" \
97 "bootcmd_net=run bootargs_base bootargs_nfs; " \
98 "tftpboot ${loadaddr} ${tftp_server}:${kernel}; bootm\0"
100 /* configure for smc91xx debug board ethernet */
101 #define CONFIG_NET_MULTI
102 #define CONFIG_SMC911X 1
103 #define CONFIG_SMC911X_16_BIT 1
104 #define CONFIG_SMC911X_BASE CS5_BASE
106 #define CONFIG_ARP_TIMEOUT 200UL
109 * Miscellaneous configurable options
111 #define CONFIG_SYS_LONGHELP /* undef to save memory */
112 #define CONFIG_SYS_PROMPT "MX31 U-Boot > "
113 #define CONFIG_AUTO_COMPLETE
114 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
115 /* Print Buffer Size */
116 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
117 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
118 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
120 #define CONFIG_SYS_MEMTEST_START 0 /* memtest works on */
121 #define CONFIG_SYS_MEMTEST_END 0x10000
123 #undef CONFIG_SYS_CLKS_IN_HZ /* everything, incl board info, in Hz */
125 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
127 #define CONFIG_SYS_HZ CONFIG_MX31_CLK32
129 #define CONFIG_CMDLINE_EDITING 1
131 /*-----------------------------------------------------------------------
134 * The stack sizes are set up in start.S using the settings below
136 #define CONFIG_STACKSIZE (128 * 1024) /* regular stack */
138 /*-----------------------------------------------------------------------
139 * Physical Memory Map
141 #define CONFIG_NR_DRAM_BANKS 1
142 #define PHYS_SDRAM_1 CSD0_BASE
143 #define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
146 * TODO: NAND Flash configure
149 #define CONFIG_SYS_NO_FLASH
150 #define NAND_MAX_CHIPS 1
151 #define CONFIG_SYS_MAX_NAND_DEVICE 1
152 #define CONFIG_SYS_NAND_BASE 0x40000000
154 #define CONFIG_ENV_IS_IN_NAND 1
155 #define CONFIG_ENV_OFFSET 0x40000 /* 2nd block */
156 #define CONFIG_ENV_SIZE (128*1024)
158 * JFFS2 partitions TODO:
160 #undef CONFIG_JFFS2_CMDLINE
161 #define CONFIG_JFFS2_DEV "nand0"
163 #endif /* __CONFIG_H */