2008-07-09 05:48:07 +00:00
|
|
|
/*
|
|
|
|
* Configuration for AMCC 460SX Ref (redwood)
|
|
|
|
*
|
|
|
|
* (C) Copyright 2008
|
|
|
|
* Feng Kan, Applied Micro Circuits Corp., fkan@amcc.com
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-07-09 05:48:07 +00:00
|
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* High Level Configuration Options
|
|
|
|
*----------------------------------------------------------------------*/
|
|
|
|
#define CONFIG_440 1 /* ... PPC460 family */
|
|
|
|
#define CONFIG_460SX 1 /* ... PPC460 family */
|
|
|
|
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */
|
|
|
|
|
2010-10-06 07:05:45 +00:00
|
|
|
#define CONFIG_SYS_TEXT_BASE 0xfffb0000
|
|
|
|
|
2008-07-09 05:48:07 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Include common defines/options for all AMCC boards
|
|
|
|
*----------------------------------------------------------------------*/
|
|
|
|
#define CONFIG_HOSTNAME redwood
|
|
|
|
|
|
|
|
#include "amcc-common.h"
|
|
|
|
|
|
|
|
#define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* 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_FLASH_BASE 0xfff00000 /* start of FLASH */
|
|
|
|
#define CONFIG_SYS_ISRAM_BASE 0x90000000 /* internal SRAM */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCI_BASE 0xd0000000 /* internal PCI regs */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCIE_MEMBASE 0x90000000 /* mapped PCIe memory */
|
|
|
|
#define CONFIG_SYS_PCIE0_MEMBASE 0x90000000 /* mapped PCIe memory */
|
|
|
|
#define CONFIG_SYS_PCIE1_MEMBASE 0xa0000000 /* mapped PCIe memory */
|
|
|
|
#define CONFIG_SYS_PCIE_MEMSIZE 0x01000000
|
2008-08-19 07:57:41 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCIE0_XCFGBASE 0xb0000000
|
|
|
|
#define CONFIG_SYS_PCIE1_XCFGBASE 0xb2000000
|
|
|
|
#define CONFIG_SYS_PCIE2_XCFGBASE 0xb4000000
|
|
|
|
#define CONFIG_SYS_PCIE0_CFGBASE 0xb6000000
|
|
|
|
#define CONFIG_SYS_PCIE1_CFGBASE 0xb8000000
|
|
|
|
#define CONFIG_SYS_PCIE2_CFGBASE 0xba000000
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/* PCIe mapped UTL registers */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PCIE0_REGBASE 0xd0000000
|
|
|
|
#define CONFIG_SYS_PCIE1_REGBASE 0xd0010000
|
|
|
|
#define CONFIG_SYS_PCIE2_REGBASE 0xd0020000
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/* System RAM mapped to PCI space */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define CONFIG_PCI_SYS_MEM_PHYS CONFIG_SYS_SDRAM_BASE
|
2008-07-09 05:48:07 +00:00
|
|
|
#define CONFIG_PCI_SYS_MEM_SIZE (1024 * 1024 * 1024)
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FPGA_BASE 0xe2000000 /* epld */
|
|
|
|
#define CONFIG_SYS_OPER_FLASH 0xe7000000 /* SRAM - OPER Flash */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2010-09-20 14:05:31 +00:00
|
|
|
/*
|
|
|
|
* Serial Port
|
|
|
|
*/
|
|
|
|
#define CONFIG_CONS_INDEX 1 /* Use UART0 */
|
|
|
|
|
2008-07-09 05:48:07 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Initial RAM & stack pointer (placed in internal SRAM)
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_TEMP_STACK_OCM 1
|
|
|
|
#define CONFIG_SYS_OCM_DATA_ADDR CONFIG_SYS_ISRAM_BASE
|
|
|
|
#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 */
|
2008-07-09 05:48:07 +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)
|
2010-09-20 06:51:53 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* DDR SDRAM
|
|
|
|
*----------------------------------------------------------------------*/
|
|
|
|
#define CONFIG_SPD_EEPROM 1 /* Use SPD EEPROM for setup */
|
|
|
|
#define CONFIG_DDR_ECC 1 /* with ECC support */
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SPD_MAX_DIMMS 2
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/* SPD i2c spd addresses */
|
|
|
|
#define SPD_EEPROM_ADDRESS {IIC0_DIMM0_ADDR, IIC0_DIMM1_ADDR}
|
2008-08-19 07:57:41 +00:00
|
|
|
#define IIC0_DIMM0_ADDR 0x53
|
|
|
|
#define IIC0_DIMM1_ADDR 0x52
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* I2C
|
|
|
|
*----------------------------------------------------------------------*/
|
2013-04-25 02:40:01 +00:00
|
|
|
#define CONFIG_SYS_I2C_PPC4XX_SPEED_0 400000
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
#define IIC0_BOOTPROM_ADDR 0x50
|
|
|
|
#define IIC0_ALT_BOOTPROM_ADDR 0x54
|
|
|
|
|
|
|
|
/* Don't probe these addrs */
|
2013-04-25 02:40:01 +00:00
|
|
|
#define CONFIG_SYS_I2C_NOPROBES { {0, 0x50}, {0, 0x52}, {0, 0x53}, {0, 0x54} }
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* Bytes of address */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Environment
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-09-10 20:47:59 +00:00
|
|
|
#undef CONFIG_ENV_IS_IN_NVRAM /* ... not in NVRAM */
|
2008-09-10 20:48:04 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_FLASH 1 /* Environment uses flash */
|
2008-09-05 07:19:30 +00:00
|
|
|
#undef CONFIG_ENV_IS_IN_EEPROM /* ... not in EEPROM */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
#define CONFIG_PREBOOT "echo;" \
|
|
|
|
"echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \
|
|
|
|
"echo"
|
|
|
|
|
|
|
|
#undef CONFIG_BOOTARGS
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2008-08-19 07:57:41 +00:00
|
|
|
CONFIG_AMCC_DEF_ENV \
|
|
|
|
CONFIG_AMCC_DEF_ENV_POWERPC \
|
|
|
|
CONFIG_AMCC_DEF_ENV_NOR_UPD \
|
|
|
|
"kernel_addr=fc000000\0" \
|
|
|
|
"fdt_addr=fc1e0000\0" \
|
|
|
|
"ramdisk_addr=fc200000\0" \
|
2008-07-09 05:48:07 +00:00
|
|
|
""
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------+
|
|
|
|
| Commands in addition to amcc-common.h
|
|
|
|
+----------------------------------------------------------------------------*/
|
|
|
|
#define CONFIG_CMD_SDRAM
|
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND "run flash_self"
|
|
|
|
|
|
|
|
|
|
|
|
#define CONFIG_IBM_EMAC4_V4 1
|
2008-08-19 07:57:41 +00:00
|
|
|
#define CONFIG_PHY_RESET 1 /* reset phy upon startup */
|
2008-07-09 05:48:07 +00:00
|
|
|
#define CONFIG_PHY_RESET_DELAY 1000
|
|
|
|
#define CONFIG_M88E1141_PHY 1 /* Enable phy */
|
|
|
|
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
|
|
|
|
|
|
|
|
#define CONFIG_HAS_ETH0
|
|
|
|
#define CONFIG_HAS_ETH1
|
|
|
|
#define CONFIG_PHY_ADDR 0 /* PHY address, See schematics */
|
|
|
|
#define CONFIG_PHY1_ADDR 1 /* PHY address, See schematics */
|
|
|
|
|
|
|
|
#undef CONFIG_WATCHDOG /* watchdog disabled */
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* FLASH related
|
|
|
|
*----------------------------------------------------------------------*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_CFI /* The flash is CFI compatible */
|
2008-08-19 07:57:41 +00:00
|
|
|
#define CONFIG_FLASH_CFI_DRIVER /* Use common CFI driver */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1 /* Use AMD (Spansion) reset cmd */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MAX_FLASH_BANKS 3 /* number of banks */
|
|
|
|
#define CONFIG_SYS_MAX_FLASH_SECT 256 /* sectors per device */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#undef CONFIG_SYS_FLASH_CHECKSUM
|
|
|
|
#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) */
|
2008-07-09 05:48:07 +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 */
|
|
|
|
#define CONFIG_ENV_ADDR 0xfffa0000
|
|
|
|
#define CONFIG_ENV_SIZE 0x10000 /* Size of Environment vars */
|
2008-09-10 20:48:04 +00:00
|
|
|
#endif /* CONFIG_ENV_IS_IN_FLASH */
|
2008-07-09 05:48:07 +00:00
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|