~ubuntu-branches/ubuntu/maverick/uboot-imx/maverick

« back to all changes in this revision

Viewing changes to include/configs/M54451EVB.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-01-20 15:41:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100120154126-7bha1jeyjegu7xm5
Tags: 2009.08+really2009.01-0ubuntu1
* revert to the 2009.01 upstream version, 2009.08 has still to 
  many work in progress items in the freescale patchset (MMC and NIC
  dont work at all)
* add the latest patchset from freescale for 2009.01
* add 1002_enable_hush_shell_and_ext2.patch to enable hush shell and ext2 
* add 1003_fix_board_revision_numbers to make sure babbage 2.5 boards have 
  revision 51120 and babbage 3.0 boards have revision 51130 properly set in 
  their cpuinfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
#define CONFIG_CMD_MISC
71
71
#define CONFIG_CMD_MII
72
72
#define CONFIG_CMD_NET
73
 
#define CONFIG_CMD_NFS
74
73
#define CONFIG_CMD_PING
75
74
#define CONFIG_CMD_REGINFO
76
75
#define CONFIG_CMD_SPI
94
93
#       define MCFFEC_TOUT_LOOP 50000
95
94
 
96
95
#       define CONFIG_BOOTDELAY 1       /* autoboot after 5 seconds */
97
 
#       define CONFIG_BOOTARGS          "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:2M(kernel)ro,-(jffs2)"
 
96
#       define CONFIG_BOOTARGS          "root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)"
98
97
#       define CONFIG_ETHADDR           00:e0:0c:bc:e5:60
99
98
#       define CONFIG_ETHPRIME          "FEC0"
100
99
#       define CONFIG_IPADDR            192.162.1.2
164
163
#define CONFIG_SYS_I2C_SPEED            80000   /* I2C speed and slave address  */
165
164
#define CONFIG_SYS_I2C_SLAVE            0x7F
166
165
#define CONFIG_SYS_I2C_OFFSET           0x58000
167
 
#define CONFIG_SYS_IMMR                 CONFIG_SYS_MBAR
 
166
#define CONFIG_SYS_IMMR         CONFIG_SYS_MBAR
168
167
 
169
168
/* DSPI and Serial Flash */
170
 
#define CONFIG_CF_SPI
171
169
#define CONFIG_CF_DSPI
172
170
#define CONFIG_SERIAL_FLASH
173
171
#define CONFIG_HARD_SPI
 
172
#define CONFIG_SYS_SER_FLASH_BASE       0x01000000
174
173
#define CONFIG_SYS_SBFHDR_SIZE          0x7
175
174
#ifdef CONFIG_CMD_SPI
176
175
#       define CONFIG_SPI_FLASH
177
176
#       define CONFIG_SPI_FLASH_STMICRO
178
177
 
179
 
#       define CONFIG_SYS_DSPI_CTAR0    (DSPI_CTAR_TRSZ(7) | \
180
 
                                         DSPI_CTAR_PCSSCK_1CLK | \
181
 
                                         DSPI_CTAR_PASC(0) | \
182
 
                                         DSPI_CTAR_PDT(0) | \
183
 
                                         DSPI_CTAR_CSSCK(0) | \
184
 
                                         DSPI_CTAR_ASC(0) | \
185
 
                                         DSPI_CTAR_DT(1))
186
 
#       define CONFIG_SYS_DSPI_CTAR1    (CONFIG_SYS_DSPI_CTAR0)
187
 
#       define CONFIG_SYS_DSPI_CTAR2    (CONFIG_SYS_DSPI_CTAR0)
 
178
#       define CONFIG_SYS_DSPI_DCTAR0           (DSPI_DCTAR_TRSZ(7) | \
 
179
                                         DSPI_DCTAR_CPOL | \
 
180
                                         DSPI_DCTAR_CPHA | \
 
181
                                         DSPI_DCTAR_PCSSCK_1CLK | \
 
182
                                         DSPI_DCTAR_PASC(0) | \
 
183
                                         DSPI_DCTAR_PDT(0) | \
 
184
                                         DSPI_DCTAR_CSSCK(0) | \
 
185
                                         DSPI_DCTAR_ASC(0) | \
 
186
                                         DSPI_DCTAR_PBR(0) | \
 
187
                                         DSPI_DCTAR_DT(1) | \
 
188
                                         DSPI_DCTAR_BR(1))
188
189
#endif
189
190
 
190
191
/* Input, PCI, Flexbus, and VCO */
191
192
#define CONFIG_EXTRA_CLOCK
192
193
 
193
 
#define CONFIG_PRAM                     2048    /* 2048 KB */
 
194
#define CONFIG_PRAM             2048    /* 2048 KB */
194
195
 
195
196
#define CONFIG_SYS_PROMPT               "-> "
196
197
#define CONFIG_SYS_LONGHELP             /* undef to save memory */
208
209
 
209
210
#define CONFIG_SYS_HZ                   1000
210
211
 
211
 
#define CONFIG_SYS_MBAR                 0xFC000000
 
212
#define CONFIG_SYS_MBAR         0xFC000000
212
213
 
213
214
/*
214
215
 * Low Level Configuration Settings
264
265
/* Configuration for environment
265
266
 * Environment is embedded in u-boot in the second sector of the flash
266
267
 */
267
 
#if defined(CONFIG_SYS_STMICRO_BOOT)
 
268
#if defined(CONFIG_CF_SBF)
268
269
#       define CONFIG_ENV_IS_IN_SPI_FLASH       1
269
270
#       define CONFIG_ENV_SPI_CS                1
270
271
#       define CONFIG_ENV_OFFSET                0x20000
272
273
#       define CONFIG_ENV_SECT_SIZE     0x10000
273
274
#else
274
275
#       define CONFIG_ENV_IS_IN_FLASH   1
275
 
#       define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x8000)
276
 
#       define CONFIG_ENV_SIZE          0x2000
277
 
#       define CONFIG_ENV_SECT_SIZE     0x8000
 
276
#       define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x4000)
 
277
#       define CONFIG_ENV_SECT_SIZE     0x2000
278
278
#endif
279
279
#undef CONFIG_ENV_OVERWRITE
280
280
#undef CONFIG_ENV_IS_EMBEDDED
281
281
 
282
 
/* FLASH organization */
283
 
#define CONFIG_SYS_FLASH_BASE           CONFIG_SYS_CS0_BASE
 
282
/*-----------------------------------------------------------------------
 
283
 * FLASH organization
 
284
 */
 
285
#ifdef CONFIG_SYS_STMICRO_BOOT
 
286
#       define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_SER_FLASH_BASE
 
287
#       define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_SER_FLASH_BASE
 
288
#       define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_CS0_BASE
 
289
#endif
 
290
#ifdef CONFIG_SYS_SPANSION_BOOT
 
291
#       define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_CS0_BASE
 
292
#       define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_CS0_BASE
 
293
#       define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_SER_FLASH_BASE
 
294
#endif
284
295
 
285
296
#define CONFIG_SYS_FLASH_CFI
286
297
#ifdef CONFIG_SYS_FLASH_CFI
287
298
 
288
299
#       define CONFIG_FLASH_CFI_DRIVER  1
289
 
#       define CONFIG_SYS_FLASH_USE_BUFFER_WRITE        1
290
300
#       define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
291
301
#       define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
292
302
#       define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
301
311
 * This is setting for JFFS2 support in u-boot.
302
312
 * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
303
313
 */
304
 
#ifdef CONFIG_CMD_JFFS2
 
314
#ifdef CONFIG_SYS_SPANSION_BOOT
 
315
#       define CONFIG_JFFS2_DEV         "nor0"
 
316
#       define CONFIG_JFFS2_PART_SIZE   0x01000000
 
317
#       define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000)
 
318
#endif
 
319
#ifdef CONFIG_SYS_STMICRO_BOOT
305
320
#       define CONFIG_JFFS2_DEV         "nor0"
306
321
#       define CONFIG_JFFS2_PART_SIZE   0x01000000
307
322
#       define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000)
308
323
#endif
309
324
 
310
 
/* Cache Configuration */
 
325
/*-----------------------------------------------------------------------
 
326
 * Cache Configuration
 
327
 */
311
328
#define CONFIG_SYS_CACHELINE_SIZE               16
312
329
 
313
330
/*-----------------------------------------------------------------------
314
331
 * Memory bank definitions
315
332
 */
316
333
/*
317
 
 * CS0 - NOR Flash 16MB
 
334
 * CS0 - NOR Flash 8MB
318
335
 * CS1 - Available
319
336
 * CS2 - Available
320
337
 * CS3 - Available
322
339
 * CS5 - Available
323
340
 */
324
341
 
325
 
 /* Flash */
 
342
 /* SPANSION Flash */
326
343
#define CONFIG_SYS_CS0_BASE             0x00000000
327
 
#define CONFIG_SYS_CS0_MASK             0x00FF0001
328
 
#define CONFIG_SYS_CS0_CTRL             0x00004D80
 
344
#define CONFIG_SYS_CS0_MASK             0x007F0001
 
345
#define CONFIG_SYS_CS0_CTRL             0x00001180
329
346
 
330
347
#define CONFIG_SYS_SPANSION_BASE        CONFIG_SYS_CS0_BASE
331
348