2002-09-20 09:17:33 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
|
|
|
|
*
|
2013-10-07 11:07:26 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2002-09-20 09:17:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/************************************************************************
|
2005-09-23 09:05:55 +00:00
|
|
|
* board/config_EBONY.h - configuration for AMCC 440GP Ref (Ebony)
|
2002-09-20 09:17:33 +00:00
|
|
|
***********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* High Level Configuration Options
|
|
|
|
*----------------------------------------------------------------------*/
|
|
|
|
#define CONFIG_EBONY 1 /* Board is ebony */
|
2005-09-07 14:21:12 +00:00
|
|
|
#define CONFIG_440GP 1 /* Specifc GP support */
|
2007-06-15 09:19:28 +00:00
|
|
|
#define CONFIG_440 1 /* ... PPC440 family */
|
2004-01-20 23:12:12 +00:00
|
|
|
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
|
2002-09-20 09:17:33 +00:00
|
|
|
#define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */
|
|
|
|
|
2010-10-06 07:05:45 +00:00
|
|
|
#define CONFIG_SYS_TEXT_BASE 0xFFFC0000
|
|
|
|
|
2008-06-06 13:55:03 +00:00
|
|
|
/*
|
|
|
|
* Include common defines/options for all AMCC eval boards
|
|
|
|
*/
|
|
|
|
#define CONFIG_HOSTNAME ebony
|
|
|
|
#include "amcc-common.h"
|
|
|
|
|
2005-08-01 14:49:12 +00:00
|
|
|
/*
|
|
|
|
* Define here the location of the environment variables (FLASH or NVRAM).
|
|
|
|
* Note: DENX encourages to use redundant environment in FLASH. NVRAM is only
|
|
|
|
* supported for backward compatibility.
|
|
|
|
*/
|
|
|
|
#if 1
|
2008-09-10 20:48:04 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
|
2005-08-01 14:49:12 +00:00
|
|
|
#else
|
2008-09-10 20:47:59 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_NVRAM 1 /* use NVRAM for environment vars */
|
2005-08-01 14:49:12 +00:00
|
|
|
#endif
|
|
|
|
|
2002-09-20 09:17:33 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Base addresses -- Note these are effective addresses where the
|
|
|
|
* actual resources get mapped (not physical addresses)
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x00000000 /* _must_ be 0 */
|
|
|
|
#define CONFIG_SYS_FLASH_BASE 0xff800000 /* start of FLASH */
|
|
|
|
#define CONFIG_SYS_PCI_MEMBASE 0x80000000 /* mapped pci memory */
|
|
|
|
#define CONFIG_SYS_ISRAM_BASE 0xc0000000 /* internal SRAM */
|
|
|
|
#define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
|
|
|
|
#define CONFIG_SYS_FPGA_BASE (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000)
|
2002-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Initial RAM & stack pointer (placed in internal SRAM)
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_ISRAM_BASE /* Initial RAM address */
|
2010-10-26 11:32:32 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
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-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Serial Port
|
|
|
|
*----------------------------------------------------------------------*/
|
2010-09-20 14:05:31 +00:00
|
|
|
#define CONFIG_CONS_INDEX 1 /* Use UART0 */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_EXT_SERIAL_CLOCK (1843200 * 6) /* Ext clk @ 11.059 MHz */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* NVRAM/RTC
|
|
|
|
*
|
|
|
|
* NOTE: Upper 8 bytes of NVRAM is where the RTC registers are located.
|
|
|
|
* The DS1743 code assumes this condition (i.e. -- it assumes the base
|
|
|
|
* address for the RTC registers is:
|
|
|
|
*
|
2008-10-16 13:01:15 +00:00
|
|
|
* CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
|
2002-09-20 09:17:33 +00:00
|
|
|
*
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_NVRAM_SIZE (0x2000 - 8) /* NVRAM size(8k)- RTC regs */
|
2002-09-20 09:17:33 +00:00
|
|
|
#define CONFIG_RTC_DS174x 1 /* DS1743 RTC */
|
|
|
|
|
2008-09-10 20:47:59 +00:00
|
|
|
#ifdef CONFIG_ENV_IS_IN_NVRAM
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_SIZE 0x1000 /* Size of Environment vars */
|
|
|
|
#define CONFIG_ENV_ADDR \
|
2008-10-16 13:01:15 +00:00
|
|
|
(CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)
|
2008-09-10 20:47:59 +00:00
|
|
|
#endif /* CONFIG_ENV_IS_IN_NVRAM */
|
2005-08-01 14:49:12 +00:00
|
|
|
|
2002-09-20 09:17:33 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* FLASH related
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */
|
|
|
|
#define CONFIG_SYS_MAX_FLASH_SECT 32 /* sectors per device */
|
2002-09-20 09:17:33 +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-09-20 09:17:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
|
2005-08-01 14:49:12 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_ADDR0 0x5555
|
|
|
|
#define CONFIG_SYS_FLASH_ADDR1 0x2aaa
|
|
|
|
#define CONFIG_SYS_FLASH_WORD_SIZE unsigned char
|
2005-08-01 14:49:12 +00:00
|
|
|
|
2008-09-10 20:48:04 +00:00
|
|
|
#ifdef CONFIG_ENV_IS_IN_FLASH
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
|
2005-08-01 14:49:12 +00:00
|
|
|
|
|
|
|
/* Address and size of Redundant Environment Sector */
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE)
|
|
|
|
#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
|
2008-09-10 20:48:04 +00:00
|
|
|
#endif /* CONFIG_ENV_IS_IN_FLASH */
|
2005-08-01 14:49:12 +00:00
|
|
|
|
2002-09-20 09:17:33 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* DDR SDRAM
|
|
|
|
*----------------------------------------------------------------------*/
|
2007-03-16 20:11:42 +00:00
|
|
|
#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
|
|
|
|
#define SPD_EEPROM_ADDRESS {0x53,0x52} /* SPD i2c spd addresses */
|
|
|
|
#define CONFIG_PROG_SDRAM_TLB 1 /* setup SDRAM TLB's dynamically*/
|
2002-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* I2C
|
|
|
|
*----------------------------------------------------------------------*/
|
2013-04-25 02:40:01 +00:00
|
|
|
#define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000
|
2006-08-07 12:33:32 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_I2C_MULTI_EEPROMS
|
|
|
|
#define CONFIG_SYS_I2C_EEPROM_ADDR (0xa8>>1)
|
|
|
|
#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
|
|
|
|
#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
|
2002-09-20 09:17:33 +00:00
|
|
|
|
2008-06-06 13:55:03 +00:00
|
|
|
/*
|
|
|
|
* Default environment variables
|
|
|
|
*/
|
2005-08-01 14:49:12 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2008-06-06 13:55:03 +00:00
|
|
|
CONFIG_AMCC_DEF_ENV \
|
|
|
|
CONFIG_AMCC_DEF_ENV_POWERPC \
|
|
|
|
CONFIG_AMCC_DEF_ENV_PPC_OLD \
|
|
|
|
CONFIG_AMCC_DEF_ENV_NOR_UPD \
|
2005-08-01 14:49:12 +00:00
|
|
|
"kernel_addr=ff800000\0" \
|
|
|
|
"ramdisk_addr=ff810000\0" \
|
|
|
|
""
|
|
|
|
|
2002-09-20 09:17:33 +00:00
|
|
|
#define CONFIG_PHY_ADDR 8 /* PHY address */
|
2008-05-08 09:05:15 +00:00
|
|
|
#define CONFIG_HAS_ETH0
|
2005-09-07 14:21:12 +00:00
|
|
|
#define CONFIG_HAS_ETH1
|
|
|
|
#define CONFIG_PHY1_ADDR 9 /* EMAC1 PHY address */
|
2007-07-05 03:32:10 +00:00
|
|
|
|
2007-07-10 14:29:01 +00:00
|
|
|
/*
|
2008-06-06 13:55:03 +00:00
|
|
|
* Commands additional to the ones defined in amcc-common.h
|
2007-07-10 14:29:01 +00:00
|
|
|
*/
|
2007-07-05 03:32:10 +00:00
|
|
|
#define CONFIG_CMD_DATE
|
|
|
|
#define CONFIG_CMD_PCI
|
|
|
|
#define CONFIG_CMD_SDRAM
|
|
|
|
#define CONFIG_CMD_SNTP
|
|
|
|
|
2002-09-20 09:17:33 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* PCI stuff
|
|
|
|
*-----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
/* General PCI */
|
|
|
|
#define CONFIG_PCI /* include pci support */
|
2013-05-30 07:06:12 +00:00
|
|
|
#define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */
|
2002-09-20 09:17:33 +00:00
|
|
|
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
|
|
|
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
/* Board-specific PCI */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_TARGET_INIT /* let board init pci target */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
|
|
|
|
#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
|
2002-09-20 09:17:33 +00:00
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|