2003-10-09 20:09:04 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2003
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2003-10-09 20:09:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file contains the configuration parameters for the dbau1x00 board.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#define CONFIG_DBAU1X00 1
|
2008-06-07 11:51:56 +00:00
|
|
|
#define CONFIG_SOC_AU1X00 1 /* alchemy series cpu */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2003-12-07 18:32:37 +00:00
|
|
|
#ifdef CONFIG_DBAU1000
|
2003-10-09 20:09:04 +00:00
|
|
|
/* Also known as Merlot */
|
2008-06-07 11:51:56 +00:00
|
|
|
#define CONFIG_SOC_AU1000 1
|
2003-12-07 18:32:37 +00:00
|
|
|
#else
|
|
|
|
#ifdef CONFIG_DBAU1100
|
2008-06-07 11:51:56 +00:00
|
|
|
#define CONFIG_SOC_AU1100 1
|
2003-12-07 18:32:37 +00:00
|
|
|
#else
|
|
|
|
#ifdef CONFIG_DBAU1500
|
2008-06-07 11:51:56 +00:00
|
|
|
#define CONFIG_SOC_AU1500 1
|
2004-01-02 14:00:00 +00:00
|
|
|
#else
|
2005-01-09 22:28:56 +00:00
|
|
|
#ifdef CONFIG_DBAU1550
|
|
|
|
/* Cabernet */
|
2008-06-07 11:51:56 +00:00
|
|
|
#define CONFIG_SOC_AU1550 1
|
2005-01-09 22:28:56 +00:00
|
|
|
#else
|
2003-12-07 18:32:37 +00:00
|
|
|
#error "No valid board set"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
2005-01-09 22:28:56 +00:00
|
|
|
#endif
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* valid baudrates */
|
|
|
|
|
|
|
|
#define CONFIG_TIMESTAMP /* Print image info with timestamp */
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2005-11-20 20:40:11 +00:00
|
|
|
"addmisc=setenv bootargs ${bootargs} " \
|
|
|
|
"console=ttyS0,${baudrate} " \
|
2003-10-09 20:09:04 +00:00
|
|
|
"panic=1\0" \
|
|
|
|
"bootfile=/tftpboot/vmlinux.srec\0" \
|
2005-11-20 20:40:11 +00:00
|
|
|
"load=tftp 80500000 ${u-boot}\0" \
|
2003-10-09 20:09:04 +00:00
|
|
|
""
|
2005-01-09 22:28:56 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_DBAU1550
|
|
|
|
/* Boot from flash by default, revert to bootp */
|
|
|
|
#define CONFIG_BOOTCOMMAND "bootm 0xbfc20000; bootp; bootm"
|
|
|
|
#else /* CONFIG_DBAU1550 */
|
2006-04-11 12:53:29 +00:00
|
|
|
#define CONFIG_BOOTCOMMAND "bootp;bootm"
|
2005-01-09 22:28:56 +00:00
|
|
|
#endif /* CONFIG_DBAU1550 */
|
|
|
|
|
2007-07-10 14:29:01 +00:00
|
|
|
/*
|
|
|
|
* BOOTP options
|
|
|
|
*/
|
|
|
|
#define CONFIG_BOOTP_BOOTFILESIZE
|
|
|
|
#define CONFIG_BOOTP_BOOTPATH
|
|
|
|
#define CONFIG_BOOTP_GATEWAY
|
|
|
|
#define CONFIG_BOOTP_HOSTNAME
|
|
|
|
|
2007-07-05 03:32:03 +00:00
|
|
|
/*
|
|
|
|
* Command line configuration.
|
|
|
|
*/
|
|
|
|
|
2003-10-09 20:09:04 +00:00
|
|
|
/*
|
|
|
|
* Miscellaneous configurable options
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LONGHELP /* undef to save memory */
|
2005-01-09 22:28:56 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MALLOC_LEN 128*1024
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BOOTPARAMS_LEN 128*1024
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MHZ 396
|
2005-01-09 22:28:56 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#if (CONFIG_SYS_MHZ % 12) != 0
|
2005-01-09 22:28:56 +00:00
|
|
|
#error "Invalid CPU frequency - must be multiple of 12!"
|
|
|
|
#endif
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
2008-06-05 13:29:00 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000 /* Cached addr */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LOAD_ADDR 0x81000000 /* default load address */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MEMTEST_START 0x80100000
|
|
|
|
#define CONFIG_SYS_MEMTEST_END 0x80800000
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* FLASH and environment organization
|
|
|
|
*/
|
2005-01-09 22:28:56 +00:00
|
|
|
#ifdef CONFIG_DBAU1550
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */
|
|
|
|
#define CONFIG_SYS_MAX_FLASH_SECT (512) /* max number of sectors on one chip */
|
2005-01-09 22:28:56 +00:00
|
|
|
|
|
|
|
#define PHYS_FLASH_1 0xb8000000 /* Flash Bank #1 */
|
|
|
|
#define PHYS_FLASH_2 0xbc000000 /* Flash Bank #2 */
|
|
|
|
|
|
|
|
#else /* CONFIG_DBAU1550 */
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */
|
|
|
|
#define CONFIG_SYS_MAX_FLASH_SECT (128) /* max number of sectors on one chip */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
#define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */
|
|
|
|
#define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */
|
|
|
|
|
2005-01-09 22:28:56 +00:00
|
|
|
#endif /* CONFIG_DBAU1550 */
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
|
2006-04-11 12:53:29 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_CFI 1
|
2008-08-12 23:40:42 +00:00
|
|
|
#define CONFIG_FLASH_CFI_DRIVER 1
|
2005-01-09 22:28:56 +00:00
|
|
|
|
2010-10-07 19:51:12 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_LEN (192 << 10)
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET 0x400000
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* We boot from this flash, selected with dip switch */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_2
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* timeout values are in ticks */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_ERASE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
|
|
|
|
#define CONFIG_SYS_FLASH_WRITE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* Address and size of Primary Environment Sector */
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_ADDR 0xB0030000
|
|
|
|
#define CONFIG_ENV_SIZE 0x10000
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
#define CONFIG_FLASH_16BIT
|
|
|
|
|
|
|
|
#define CONFIG_NR_DRAM_BANKS 2
|
|
|
|
|
2005-01-09 22:28:56 +00:00
|
|
|
#ifdef CONFIG_DBAU1550
|
|
|
|
#define MEM_SIZE 192
|
|
|
|
#else
|
|
|
|
#define MEM_SIZE 64
|
|
|
|
#endif
|
|
|
|
|
2003-10-09 20:09:04 +00:00
|
|
|
#define CONFIG_MEMSIZE_IN_BYTES
|
|
|
|
|
2005-01-09 22:28:56 +00:00
|
|
|
#ifndef CONFIG_DBAU1550
|
2003-10-09 20:09:04 +00:00
|
|
|
/*---ATA PCMCIA ------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
|
|
|
|
#define CONFIG_SYS_PCMCIA_MEM_ADDR 0x20000000
|
2003-10-09 20:09:04 +00:00
|
|
|
#define CONFIG_PCMCIA_SLOT_A
|
|
|
|
|
|
|
|
#define CONFIG_ATAPI 1
|
|
|
|
|
|
|
|
/* We run CF in "true ide" mode or a harddrive via pcmcia */
|
|
|
|
#define CONFIG_IDE_PCMCIA 1
|
|
|
|
|
|
|
|
/* We only support one slot for now */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IDE_MAXBUS 1 /* max. 1 IDE bus */
|
|
|
|
#define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
#undef CONFIG_IDE_RESET /* reset for ide not supported */
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_PCMCIA_MEM_ADDR
|
2003-10-09 20:09:04 +00:00
|
|
|
|
2004-01-02 14:00:00 +00:00
|
|
|
/* Offset for data I/O */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_DATA_OFFSET 8
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* Offset for normal register accesses */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_REG_OFFSET 0
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
/* Offset for alternate registers */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_ALT_OFFSET 0x0100
|
2005-01-09 22:28:56 +00:00
|
|
|
#endif /* CONFIG_DBAU1550 */
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|