enable-splash-bmp.patch
[u-boot-openmoko/mini2440.git] / include / configs / neo1973_gta01.h
blobd76593ec80af408a78d0c7d8725409a84ddc9f39
1 /*
2 * (C) Copyright 2006 OpenMoko, Inc.
3 * Author: Harald Welte <laforge@openmoko.org>
5 * Configuation settings for the FIC Neo1973 GTA01 Linux GSM phone
7 * See file CREDITS for list of people who contributed to this
8 * project.
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA
26 #ifndef __CONFIG_H
27 #define __CONFIG_H
29 /* we want to be able to start u-boot directly from within NAND flash */
30 #define CONFIG_LL_INIT_NAND_ONLY
31 #define CONFIG_S3C2410_NAND_BOOT 1
32 #define CONFIG_S3C2410_NAND_SKIP_BAD 1
34 #define CFG_UBOOT_SIZE 0x40000 /* size of u-boot, for NAND loading */
37 * High Level Configuration Options
38 * (easy to change)
40 #define CONFIG_ARM920T 1 /* This is an ARM920T Core */
41 #define CONFIG_S3C2410 1 /* in a SAMSUNG S3C2410 SoC */
42 #define CONFIG_SMDK2410 1 /* on a SAMSUNG SMDK2410 Board */
44 /* input clock of PLL */
45 #define CONFIG_SYS_CLK_FREQ 12000000/* the GTA01 has 12MHz input clock */
48 #define USE_920T_MMU 1
49 #define CONFIG_USE_IRQ 1
52 * Size of malloc() pool
54 #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 400*1024)
55 /* >> CFG_VIDEO_LOGO_MAX_SIZE */
56 #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
59 * Hardware drivers
63 * select serial console configuration
65 #define CONFIG_SERIAL1 1 /* we use SERIAL 1 on GTA01 */
66 #define CONFIG_SERIAL_MULTI
68 /* allow to overwrite serial and ethaddr */
69 #define CONFIG_ENV_OVERWRITE
71 #define CONFIG_BAUDRATE 115200
73 /***********************************************************
74 * Command definition
75 ***********************************************************/
76 #define CONFIG_CMD_BDI
77 #define CONFIG_CMD_LOADS
78 #define CONFIG_CMD_LOADB
79 #define CONFIG_CMD_IMI
80 #define CONFIG_CMD_CACHE
81 #define CONFIG_CMD_MEMORY
82 #define CONFIG_CMD_ENV
83 #define CONFIG_CMD_BOOTD
84 #define CONFIG_CMD_CONSOLE
85 #define CONFIG_CMD_BMP
86 #define CONFIG_CMD_ASKENV
87 #define CONFIG_CMD_RUN
88 #define CONFIG_CMD_ECHO
89 #define CONFIG_CMD_I2C
90 #define CONFIG_CMD_REGINFO
91 #define CONFIG_CMD_IMMAP
92 #define CONFIG_CMD_DATE
93 #define CONFIG_CMD_AUTOSCRIPT
94 #define CONFIG_CMD_BSP
95 #define CONFIG_CMD_ELF
96 #define CONFIG_CMD_MISC
97 #define CONFIG_CMD_JFFS2
98 #define CONFIG_CMD_DIAG
99 #define CONFIG_CMD_SAVES
100 #define CONFIG_CMD_NAND
101 #define CONFIG_CMD_PORTIO
102 #define CONFIG_CMD_MMC
103 #define CONFIG_CMD_FAT
104 #define CONFIG_CMD_EXT2
105 #define CONFIG_CMD_TERMINAL
107 #define CONFIG_BOOTDELAY 3
108 #define CONFIG_BOOTARGS "rootfstype=jffs2 root=/dev/mtdblock4 console=ttySAC0,115200 console=tty0 loglevel=8"
109 #define CONFIG_BOOTCOMMAND "nand read.e 0x32000000 0x34000 0x200000; bootm 0x32000000"
111 #define CONFIG_DOS_PARTITION 1
113 #if defined(CONFIG_CMD_KGDB)
114 #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
115 /* what's this ? it's not used anywhere */
116 #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
117 #endif
120 * Miscellaneous configurable options
122 #define CFG_LONGHELP /* undef to save memory */
123 #if defined(CONFIG_ARCH_GTA01_v3)
124 #define CFG_PROMPT "GTA01v3 # " /* Monitor Command Prompt */
125 #elif defined(CONFIG_ARCH_GTA01_v4)
126 #define CFG_PROMPT "GTA01v4 # " /* Monitor Command Prompt */
127 #elif defined(CONFIG_ARCH_GTA01B_v2)
128 #define CFG_PROMPT "GTA01Bv2 # " /* Monitor Command Prompt */
129 #elif defined(CONFIG_ARCH_GTA01B_v3)
130 #define CFG_PROMPT "GTA01Bv3 # " /* Monitor Command Prompt */
131 #elif defined(CONFIG_ARCH_GTA01B_v4)
132 #define CFG_PROMPT "GTA01Bv4 # " /* Monitor Command Prompt */
133 #endif
134 #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
135 #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
136 #define CFG_MAXARGS 64 /* max number of command args */
137 #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
139 #define CFG_MEMTEST_START 0x30000000 /* memtest works on */
140 #define CFG_MEMTEST_END 0x33F00000 /* 63 MB in DRAM */
142 #undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
144 #define CFG_LOAD_ADDR 0x33000000 /* default load address */
146 /* the PWM TImer 4 uses a counter of 15625 for 10 ms, so we need */
147 /* it to wrap 100 times (total 1562500) to get 1 sec. */
148 #define CFG_HZ 1562500
150 /* valid baudrates */
151 #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
153 /*-----------------------------------------------------------------------
154 * Stack sizes
156 * The stack sizes are set up in start.S using the settings below
158 #define CONFIG_STACKSIZE (128*1024) /* regular stack */
159 #ifdef CONFIG_USE_IRQ
160 #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
161 #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
162 #endif
164 #if 0
165 #define CONFIG_USB_OHCI 1
166 #endif
168 #define CONFIG_USB_DEVICE 1
169 #define CONFIG_USB_TTY 1
170 #define CFG_CONSOLE_IS_IN_ENV 1
171 #define CONFIG_USBD_VENDORID 0x1457 /* Linux/NetChip */
172 #define CONFIG_USBD_PRODUCTID_GSERIAL 0x5120 /* gserial */
173 #define CONFIG_USBD_PRODUCTID_CDCACM 0x5119 /* CDC ACM */
174 #define CONFIG_USBD_MANUFACTURER "OpenMoko, Inc"
175 #define CONFIG_USBD_PRODUCT_NAME "Neo1973 Bootloader " U_BOOT_VERSION
176 #define CONFIG_EXTRA_ENV_SETTINGS "usbtty=cdc_acm\0"
178 /*-----------------------------------------------------------------------
179 * Physical Memory Map
181 #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
182 #define PHYS_SDRAM_1 0x30000000 /* SDRAM Bank #1 */
183 #if defined(CONFIG_ARCH_GTA01_v3) || defined(CONFIG_ARCH_GTA01_v4)
184 #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
185 #elif defined(CONFIG_ARCH_GTA01B_v2) || defined(CONFIG_ARCH_GTA01B_v3) || \
186 defined(CONFIG_ARCH_GTA01B_v4)
187 #define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB */
188 #else
189 #error Please define GTA01 variant
190 #endif
191 #define PHYS_SDRAM_RES_SIZE 0x00200000 /* 2 MB for frame buffer */
193 /*-----------------------------------------------------------------------
194 * FLASH and environment organization
197 /* No NOR flash in this device */
198 #define CFG_NO_FLASH 1
200 #define CFG_ENV_IS_IN_NAND 1
201 #define CFG_ENV_SIZE 0x4000 /* 16k Total Size of Environment Sector */
202 #define CFG_ENV_OFFSET_OOB 1 /* Location of ENV stored in block 0 OOB */
204 #define NAND_MAX_CHIPS 1
205 #define CFG_NAND_BASE 0x4e000000
206 #define CFG_MAX_NAND_DEVICE 1
208 #define CONFIG_MMC 1
209 #define CFG_MMC_BASE 0xff000000
211 /* EXT2 driver */
212 #define CONFIG_EXT2 1
214 #define CONFIG_FAT 1
215 #define CONFIG_SUPPORT_VFAT
217 #if 1
218 /* JFFS2 driver */
219 #define CONFIG_JFFS2_CMDLINE 1
220 #define CONFIG_JFFS2_NAND 1
221 #define CONFIG_JFFS2_NAND_DEV 0
222 //#define CONFIG_JFFS2_NAND_OFF 0x634000
223 //#define CONFIG_JFFS2_NAND_SIZE 0x39cc000
224 #endif
226 /* ATAG configuration */
227 #define CONFIG_INITRD_TAG 1
228 #define CONFIG_SETUP_MEMORY_TAGS 1
229 #define CONFIG_CMDLINE_TAG 1
230 #define CONFIG_REVISION_TAG 1
231 #if 0
232 #define CONFIG_SERIAL_TAG 1
233 #endif
235 #define CONFIG_DRIVER_S3C24X0_I2C 1
236 #define CONFIG_HARD_I2C 1
237 #define CFG_I2C_SPEED 400000 /* 400kHz according to PCF50606 data sheet */
238 #define CFG_I2C_SLAVE 0x7f
240 /* we have a board_late_init() function */
241 #define BOARD_LATE_INIT 1
243 #define CONFIG_VIDEO
244 #define CONFIG_VIDEO_S3C2410
245 #define CONFIG_CFB_CONSOLE
246 #define CONFIG_VIDEO_LOGO
247 #define CONFIG_SPLASH_SCREEN
248 #define CFG_VIDEO_LOGO_MAX_SIZE (640*480+1024+100) /* 100 = slack */
249 #define CONFIG_VIDEO_BMP_GZIP
250 #define CONFIG_VGA_AS_SINGLE_DEVICE
251 #define CONFIG_CMD_UNZIP
253 #define VIDEO_FB_16BPP_PIXEL_SWAP
255 #define VIDEO_KBD_INIT_FCT 0
256 #define VIDEO_TSTC_FCT serial_tstc
257 #define VIDEO_GETC_FCT serial_getc
259 #define LCD_VIDEO_ADDR 0x33d00000
261 #define CONFIG_S3C2410_NAND_BBT 1
262 #define CONFIG_S3C2410_NAND_HWECC 1
264 #define CONFIG_DRIVER_PCF50606 1
265 #define CONFIG_RTC_PCF50606 1
267 #define MTDIDS_DEFAULT "nand0=neo1973-nand"
268 #define MTPARTS_DEFAULT "neo1973-nand:256k(u-boot),16k(u-boot_env),2M(kernel),640k(splash),-(jffs2)"
269 #define CFG_NAND_DYNPART_MTD_KERNEL_NAME "neo1973-nand"
270 #define CONFIG_NAND_DYNPART
272 #endif /* __CONFIG_H */