2002-11-02 23:30:20 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2002 ELTEC Elektronik AG
|
|
|
|
* Frank Gottschling <fgottschling@eltec.de>
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* board/config.h - configuration options, board specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#define GTREGREAD(x) 0xffffffff /* needed for debug */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* High Level Configuration Options
|
|
|
|
* (easy to change)
|
|
|
|
*/
|
|
|
|
|
2010-10-06 07:05:45 +00:00
|
|
|
#define CONFIG_SYS_TEXT_BASE 0xFFF00000
|
|
|
|
|
2002-11-02 23:30:20 +00:00
|
|
|
/* these hardware addresses are pretty bogus, please change them to
|
|
|
|
suit your needs */
|
|
|
|
|
|
|
|
/* first ethernet */
|
|
|
|
#define CONFIG_ETHADDR 00:00:5b:ee:de:ad
|
|
|
|
|
|
|
|
#define CONFIG_IPADDR 192.168.0.105
|
|
|
|
#define CONFIG_SERVERIP 192.168.0.100
|
|
|
|
|
|
|
|
#define CONFIG_BAB7xx 1 /* this is an BAB740/BAB750 board */
|
|
|
|
|
|
|
|
#define CONFIG_BAUDRATE 9600 /* console baudrate */
|
|
|
|
|
|
|
|
#undef CONFIG_WATCHDOG
|
|
|
|
|
|
|
|
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
|
|
|
|
|
|
|
|
#define CONFIG_ZERO_BOOTDELAY_CHECK
|
|
|
|
|
|
|
|
#undef CONFIG_BOOTARGS
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
|
|
"bootp 1000000; " \
|
|
|
|
"setenv bootargs root=ramfs console=ttyS00,9600 " \
|
2005-11-20 20:40:11 +00:00
|
|
|
"ip=${ipaddr}:${serverip}:${rootpath}:${gatewayip}:" \
|
|
|
|
"${netmask}:${hostname}:eth0:none; " \
|
2002-11-02 23:30:20 +00:00
|
|
|
"bootm"
|
|
|
|
|
|
|
|
#define CONFIG_LOADS_ECHO 0 /* echo off for serial download */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate changes */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2007-07-10 02:16:53 +00:00
|
|
|
/*
|
|
|
|
* BOOTP options
|
|
|
|
*/
|
|
|
|
#define CONFIG_BOOTP_SUBNETMASK
|
|
|
|
#define CONFIG_BOOTP_GATEWAY
|
|
|
|
#define CONFIG_BOOTP_HOSTNAME
|
|
|
|
#define CONFIG_BOOTP_BOOTPATH
|
|
|
|
|
|
|
|
#define CONFIG_BOOTP_BOOTFILESIZE
|
|
|
|
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2007-07-06 00:32:07 +00:00
|
|
|
/*
|
|
|
|
* Command line configuration.
|
|
|
|
*/
|
|
|
|
#include <config_cmd_default.h>
|
|
|
|
|
|
|
|
#define CONFIG_CMD_PCI
|
|
|
|
#define CONFIG_CMD_JFFS2
|
2007-08-05 23:01:49 +00:00
|
|
|
#define CONFIG_CMD_SCSI
|
2007-07-06 00:32:07 +00:00
|
|
|
#define CONFIG_CMD_IDE
|
2007-08-05 23:01:49 +00:00
|
|
|
#define CONFIG_CMD_DATE
|
|
|
|
#define CONFIG_CMD_FDC
|
2007-07-06 00:32:07 +00:00
|
|
|
#define CONFIG_CMD_ELF
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Miscellaneous configurable options
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LONGHELP /* undef to save memory */
|
|
|
|
#define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* choose between COM1 and COM2 as serial console
|
|
|
|
*/
|
|
|
|
#define CONFIG_CONS_INDEX 1
|
|
|
|
|
2007-07-06 00:32:07 +00:00
|
|
|
#if defined(CONFIG_CMD_KGDB)
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
|
2002-11-02 23:30:20 +00:00
|
|
|
#else
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
|
2002-11-02 23:30:20 +00:00
|
|
|
#endif
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
|
|
|
|
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
|
|
|
|
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest works on */
|
|
|
|
#define CONFIG_SYS_MEMTEST_END 0x04000000 /* 0 ... 64 MB in DRAM */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LOAD_ADDR 0x1000000 /* default load address */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_HZ 1000 /* dec. freq: 1 ms ticks */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Low Level Configuration Settings
|
|
|
|
* (address mappings, register initial values, etc.)
|
|
|
|
* You should know what you are doing if you make changes here.
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BOARD_ASM_INIT
|
2002-11-02 23:30:20 +00:00
|
|
|
#define CONFIG_MISC_INIT_R
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Choose the address mapping scheme for the MPC106 mem controller.
|
|
|
|
* Default is mapping B (CHRP), set this define to choose mapping A (PReP).
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ADDRESS_MAP_A
|
|
|
|
#ifdef CONFIG_SYS_ADDRESS_MAP_A
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_MEMORY_BUS 0x80000000
|
|
|
|
#define CONFIG_SYS_PCI_MEMORY_PHYS 0x00000000
|
|
|
|
#define CONFIG_SYS_PCI_MEMORY_SIZE 0x80000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_MEM_BUS 0x00000000
|
|
|
|
#define CONFIG_SYS_PCI_MEM_PHYS 0xc0000000
|
|
|
|
#define CONFIG_SYS_PCI_MEM_SIZE 0x3f000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ISA_MEM_BUS 0
|
|
|
|
#define CONFIG_SYS_ISA_MEM_PHYS 0
|
|
|
|
#define CONFIG_SYS_ISA_MEM_SIZE 0
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_IO_BUS 0x1000
|
|
|
|
#define CONFIG_SYS_PCI_IO_PHYS 0x81000000
|
|
|
|
#define CONFIG_SYS_PCI_IO_SIZE 0x01000000-CONFIG_SYS_PCI_IO_BUS
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ISA_IO_BUS 0x00000000
|
|
|
|
#define CONFIG_SYS_ISA_IO_PHYS 0x80000000
|
|
|
|
#define CONFIG_SYS_ISA_IO_SIZE 0x00800000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_MEMORY_BUS 0x00000000
|
|
|
|
#define CONFIG_SYS_PCI_MEMORY_PHYS 0x00000000
|
|
|
|
#define CONFIG_SYS_PCI_MEMORY_SIZE 0x40000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_MEM_BUS 0x80000000
|
|
|
|
#define CONFIG_SYS_PCI_MEM_PHYS 0x80000000
|
|
|
|
#define CONFIG_SYS_PCI_MEM_SIZE 0x7d000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ISA_MEM_BUS 0x00000000
|
|
|
|
#define CONFIG_SYS_ISA_MEM_PHYS 0xfd000000
|
|
|
|
#define CONFIG_SYS_ISA_MEM_SIZE 0x01000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_IO_BUS 0x00800000
|
|
|
|
#define CONFIG_SYS_PCI_IO_PHYS 0xfe800000
|
|
|
|
#define CONFIG_SYS_PCI_IO_SIZE 0x00400000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ISA_IO_BUS 0x00000000
|
|
|
|
#define CONFIG_SYS_ISA_IO_PHYS 0xfe000000
|
|
|
|
#define CONFIG_SYS_ISA_IO_SIZE 0x00800000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#endif /*CONFIG_SYS_ADDRESS_MAP_A */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_60X_PCI_MEM_OFFSET 0x00000000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/* driver defines FDC,IDE,... */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_ISA_IO_PHYS
|
|
|
|
#define CONFIG_SYS_ISA_IO CONFIG_SYS_ISA_IO_PHYS
|
|
|
|
#define CONFIG_SYS_60X_PCI_IO_OFFSET CONFIG_SYS_ISA_IO_PHYS
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Start addresses for the final memory configuration
|
|
|
|
* (Set up by the startup code)
|
2008-10-16 13:01:15 +00:00
|
|
|
* Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
|
2002-11-02 23:30:20 +00:00
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x00000000
|
|
|
|
#define CONFIG_SYS_FLASH_BASE 0xfff00000
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Definitions for initial stack pointer and data area
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_ADDR 0x00fd0000 /* above the memtest region */
|
2010-10-26 11:32:32 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_SIZE 0x4000
|
2010-10-26 12:34:52 +00:00
|
|
|
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Flash mapping/organization on the MPC10x.
|
|
|
|
*/
|
|
|
|
#define FLASH_BASE0_PRELIM 0xff800000
|
|
|
|
#define FLASH_BASE1_PRELIM 0xffc00000
|
|
|
|
|
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 67 /* max number of sectors on one chip */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
|
|
|
|
#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2005-08-07 23:03:24 +00:00
|
|
|
/*
|
|
|
|
* JFFS2 partitions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/* No command line, one static partition */
|
2009-03-19 12:30:36 +00:00
|
|
|
#undef CONFIG_CMD_MTDPARTS
|
2005-08-07 23:03:24 +00:00
|
|
|
#define CONFIG_JFFS2_DEV "nor"
|
|
|
|
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
|
|
|
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
|
|
|
|
|
|
|
/* mtdparts command line support
|
|
|
|
*
|
|
|
|
* Note: fake mtd_id used, no linux mtd map file
|
|
|
|
*/
|
|
|
|
/*
|
2009-03-19 12:30:36 +00:00
|
|
|
#define CONFIG_CMD_MTDPARTS
|
2005-08-07 23:03:24 +00:00
|
|
|
#define MTDIDS_DEFAULT "nor0=bab7xx-0"
|
|
|
|
#define MTDPARTS_DEFAULT "mtdparts=bab7xx-0:-(jffs2)"
|
|
|
|
*/
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
|
|
|
|
#define CONFIG_SYS_MONITOR_LEN 0x40000 /* Reserve 256 kB for Monitor */
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN 0x20000 /* Reserve 128 kB for malloc() */
|
|
|
|
#undef CONFIG_SYS_MEMTEST
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Environment settings
|
|
|
|
*/
|
|
|
|
#define CONFIG_ENV_OVERWRITE
|
2008-09-10 20:47:59 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NVRAM_SIZE 0x1ff0 /* NVRAM size (8kB), we must protect the clock data (16 bytes) */
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_SIZE 0x400 /* Size of Environment vars (1kB) */
|
2002-11-02 23:30:20 +00:00
|
|
|
/*
|
|
|
|
* We store the environment and an image of revision eeprom in the upper part of the NVRAM. Thus,
|
|
|
|
* user applications can use the remaining space for other purposes.
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_ENV_ADDR (CONFIG_SYS_NVRAM_SIZE +0x10 -0x800)
|
|
|
|
#define CONFIG_SYS_NV_SROM_COPY_ADDR (CONFIG_SYS_NVRAM_SIZE +0x10 -0x400)
|
|
|
|
#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE /* This board needs a special routine to access the NVRAM */
|
|
|
|
#define CONFIG_SYS_SROM_SIZE 0x100 /* shadow of revision info is in nvram */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Serial devices
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NS16550
|
|
|
|
#define CONFIG_SYS_NS16550_SERIAL
|
|
|
|
#define CONFIG_SYS_NS16550_REG_SIZE 1
|
|
|
|
#define CONFIG_SYS_NS16550_CLK 1843200
|
|
|
|
#define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART1_BASE)
|
|
|
|
#define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART2_BASE)
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* PCI stuff
|
|
|
|
*/
|
|
|
|
#define CONFIG_PCI /* include pci support */
|
2010-10-05 09:59:31 +00:00
|
|
|
#define CONFIG_SYS_EARLY_PCI_INIT
|
2002-11-02 23:30:20 +00:00
|
|
|
#define CONFIG_PCI_PNP /* pci plug-and-play */
|
|
|
|
#define CONFIG_PCI_HOST PCI_HOST_AUTO
|
|
|
|
#undef CONFIG_PCI_SCAN_SHOW
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Video console (graphic: SMI LynxEM, keyboard: i8042)
|
|
|
|
*/
|
|
|
|
#define CONFIG_VIDEO
|
|
|
|
#define CONFIG_CFB_CONSOLE
|
|
|
|
#define CONFIG_VIDEO_SMI_LYNXEM
|
|
|
|
#define CONFIG_I8042_KBD
|
|
|
|
#define CONFIG_VIDEO_LOGO
|
|
|
|
#define CONFIG_CONSOLE_TIME
|
|
|
|
#define CONFIG_CONSOLE_EXTRA_INFO
|
|
|
|
#define CONFIG_CONSOLE_CURSOR
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CONSOLE_BLINK_COUNT 30000 /* approx. 2 HZ */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* IDE/SCSI globals
|
|
|
|
*/
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern unsigned int eltec_board;
|
|
|
|
extern unsigned int ata_reset_time;
|
|
|
|
extern unsigned int scsi_reset_time;
|
|
|
|
extern unsigned short scsi_dev_id;
|
|
|
|
extern unsigned int scsi_max_scsi_id;
|
|
|
|
extern unsigned char scsi_sym53c8xx_ccf;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ATAPI Support (experimental)
|
|
|
|
*/
|
|
|
|
#define CONFIG_ATAPI
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IDE_MAXBUS 1 /* max. 2 IDE busses */
|
|
|
|
#define CONFIG_SYS_IDE_MAXDEVICE (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_60X_PCI_IO_OFFSET /* base address */
|
|
|
|
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x1F0 /* default ide0 offste */
|
|
|
|
#define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 /* default ide1 offset */
|
|
|
|
#define CONFIG_SYS_ATA_DATA_OFFSET 0 /* data reg offset */
|
|
|
|
#define CONFIG_SYS_ATA_REG_OFFSET 0 /* reg offset */
|
|
|
|
#define CONFIG_SYS_ATA_ALT_OFFSET 0x200 /* alternate register offset */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#define ATA_RESET_TIME (ata_reset_time)
|
|
|
|
|
|
|
|
#undef CONFIG_IDE_PCMCIA /* no pcmcia interface required */
|
|
|
|
#undef CONFIG_IDE_LED /* no led for ide supported */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SCSI support (experimental) only SYM53C8xx supported
|
|
|
|
*/
|
|
|
|
#define CONFIG_SCSI_SYM53C8XX
|
|
|
|
#define CONFIG_SCSI_DEV_ID (scsi_dev_id) /* 875 or 860 */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SCSI_SYM53C8XX_CCF (scsi_sym53c8xx_ccf) /* value for none 40 mhz clocks */
|
|
|
|
#define CONFIG_SYS_SCSI_MAX_LUN 8 /* number of supported LUNs */
|
|
|
|
#define CONFIG_SYS_SCSI_MAX_SCSI_ID (scsi_max_scsi_id) /* max SCSI ID (0-6) */
|
|
|
|
#define CONFIG_SYS_SCSI_MAX_DEVICE (15 * CONFIG_SYS_SCSI_MAX_LUN) /* max. Target devices */
|
|
|
|
#define CONFIG_SYS_SCSI_SPIN_UP_TIME (scsi_reset_time)
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Partion suppport
|
|
|
|
*/
|
|
|
|
#define CONFIG_DOS_PARTITION
|
|
|
|
#define CONFIG_MAC_PARTITION
|
|
|
|
#define CONFIG_ISO_PARTITION
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Winbond Configuration
|
|
|
|
*/
|
2008-08-12 23:40:40 +00:00
|
|
|
#define CONFIG_WINBOND_83C553 1 /* has a winbond bridge */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_USE_WINBOND_IDE 0 /* use winbond 83c553 internal ide */
|
|
|
|
#define CONFIG_SYS_WINBOND_ISA_CFG_ADDR 0x80005800 /* pci-isa bridge config addr */
|
|
|
|
#define CONFIG_SYS_WINBOND_IDE_CFG_ADDR 0x80005900 /* ide config addr */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* NS87308 Configuration
|
|
|
|
*/
|
2008-08-12 23:40:40 +00:00
|
|
|
#define CONFIG_NS87308 /* Nat Semi super-io cntr on ISA bus */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NS87308_BADDR_10 1
|
|
|
|
#define CONFIG_SYS_NS87308_DEVS (CONFIG_SYS_NS87308_UART1 | \
|
|
|
|
CONFIG_SYS_NS87308_UART2 | \
|
|
|
|
CONFIG_SYS_NS87308_KBC1 | \
|
|
|
|
CONFIG_SYS_NS87308_MOUSE | \
|
|
|
|
CONFIG_SYS_NS87308_FDC | \
|
|
|
|
CONFIG_SYS_NS87308_RARP | \
|
|
|
|
CONFIG_SYS_NS87308_GPIO | \
|
|
|
|
CONFIG_SYS_NS87308_POWRMAN | \
|
|
|
|
CONFIG_SYS_NS87308_RTC_APC )
|
|
|
|
|
|
|
|
#define CONFIG_SYS_NS87308_PS2MOD
|
|
|
|
#define CONFIG_SYS_NS87308_GPIO_BASE 0x0220
|
|
|
|
#define CONFIG_SYS_NS87308_PWMAN_BASE 0x0460
|
|
|
|
#define CONFIG_SYS_NS87308_PMC2 0x00 /* SuperI/O clock source is 24MHz via X1 */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* set up the NVRAM access registers
|
|
|
|
* NVRAM's controlled by the configurable CS line from the 87308
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NS87308_CS0_BASE 0x0076
|
|
|
|
#define CONFIG_SYS_NS87308_CS0_CONF 0x40
|
|
|
|
#define CONFIG_SYS_NS87308_CS1_BASE 0x0070
|
|
|
|
#define CONFIG_SYS_NS87308_CS1_CONF 0x1C
|
|
|
|
#define CONFIG_SYS_NS87308_CS2_BASE 0x0071
|
|
|
|
#define CONFIG_SYS_NS87308_CS2_CONF 0x1C
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#define CONFIG_RTC_MK48T59
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Initial BATs
|
|
|
|
*/
|
|
|
|
#if 1
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT0L 0
|
|
|
|
#define CONFIG_SYS_IBAT0U 0
|
|
|
|
#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
|
|
|
|
#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT1L 0
|
|
|
|
#define CONFIG_SYS_IBAT1U 0
|
|
|
|
#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
|
|
|
|
#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT2L 0
|
|
|
|
#define CONFIG_SYS_IBAT2U 0
|
|
|
|
#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
|
|
|
|
#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT3L 0
|
|
|
|
#define CONFIG_SYS_IBAT3U 0
|
|
|
|
#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
|
|
|
|
#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
/* SDRAM */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_RW)
|
|
|
|
#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
|
|
|
|
#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
|
|
|
|
#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/* address range for flashes */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT1L (CONFIG_SYS_FLASH_BASE | BATL_RW | BATL_CACHEINHIBIT)
|
|
|
|
#define CONFIG_SYS_IBAT1U (CONFIG_SYS_FLASH_BASE | BATU_BL_16M | BATU_VS | BATU_VP)
|
|
|
|
#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
|
|
|
|
#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/* ISA IO space */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT2L (CONFIG_SYS_ISA_IO | BATL_RW | BATL_CACHEINHIBIT)
|
|
|
|
#define CONFIG_SYS_IBAT2U (CONFIG_SYS_ISA_IO | BATU_BL_16M | BATU_VS | BATU_VP)
|
|
|
|
#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
|
|
|
|
#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/* ISA memory space */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_IBAT3L (CONFIG_SYS_ISA_MEM | BATL_RW | BATL_CACHEINHIBIT)
|
|
|
|
#define CONFIG_SYS_IBAT3U (CONFIG_SYS_ISA_MEM | BATU_BL_16M | BATU_VS | BATU_VP)
|
|
|
|
#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
|
|
|
|
#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Speed settings are board specific
|
|
|
|
*/
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern unsigned long bab7xx_get_bus_freq (void);
|
|
|
|
extern unsigned long bab7xx_get_gclk_freq (void);
|
|
|
|
#endif
|
2010-06-13 16:38:23 +00:00
|
|
|
#define CONFIG_SYS_BUS_CLK bab7xx_get_bus_freq()
|
|
|
|
#define CONFIG_SYS_CPU_CLK bab7xx_get_gclk_freq()
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* For booting Linux, the board info and command line data
|
|
|
|
* have to be in the first 8 MB of memory, since this is
|
|
|
|
* the maximum mapped by the Linux kernel during initialization.
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Cache Configuration
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CACHELINE_SIZE 32 /* For all MPC74xx CPUs */
|
2007-07-06 00:32:07 +00:00
|
|
|
#if defined(CONFIG_CMD_KGDB)
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */
|
2002-11-02 23:30:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* L2 Cache Configuration is board specific for BAB740/BAB750
|
|
|
|
* Init values read from revision srom.
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#undef CONFIG_SYS_L2
|
2002-11-02 23:30:20 +00:00
|
|
|
#define L2_INIT (L2CR_L2SIZ_HM | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
|
2003-06-27 21:31:46 +00:00
|
|
|
L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
|
2002-11-02 23:30:20 +00:00
|
|
|
#define L2_ENABLE (L2_INIT | L2CR_L2E)
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_L2_BAB7xx
|
2002-11-02 23:30:20 +00:00
|
|
|
|
|
|
|
#define CONFIG_NET_MULTI /* Multi ethernet cards support */
|
|
|
|
#define CONFIG_TULIP
|
|
|
|
#define CONFIG_TULIP_SELECT_MEDIA
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|