ppc4xx: Beautify configuration files for Sequoia and Korat boards
Signed-off-by: Larry Johnson <lrj@acm.org>
This commit is contained in:
parent
5db6138565
commit
214398d9cb
|
@ -25,15 +25,15 @@
|
||||||
* MA 02111-1307 USA
|
* MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/************************************************************************
|
/*
|
||||||
* korat.h - configuration for Korat board
|
* korat.h - configuration for Korat board
|
||||||
***********************************************************************/
|
*/
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* High Level Configuration Options
|
* High Level Configuration Options
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CONFIG_440EPX 1 /* Specific PPC440EPx */
|
#define CONFIG_440EPX 1 /* Specific PPC440EPx */
|
||||||
#define CONFIG_4xx 1 /* ... PPC4xx family */
|
#define CONFIG_4xx 1 /* ... PPC4xx family */
|
||||||
#define CONFIG_SYS_CLK_FREQ 33333333
|
#define CONFIG_SYS_CLK_FREQ 33333333
|
||||||
|
@ -41,21 +41,21 @@
|
||||||
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
|
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
|
||||||
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
|
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Manufacturer's information serial EEPROM parameters
|
* Manufacturer's information serial EEPROM parameters
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define MAN_DATA_EEPROM_ADDR 0x53 /* EEPROM I2C address */
|
#define MAN_DATA_EEPROM_ADDR 0x53 /* EEPROM I2C address */
|
||||||
#define MAN_SERIAL_NO_FIELD 2
|
#define MAN_SERIAL_NO_FIELD 2
|
||||||
#define MAN_SERIAL_NO_LENGTH 13
|
#define MAN_SERIAL_NO_LENGTH 13
|
||||||
#define MAN_MAC_ADDR_FIELD 3
|
#define MAN_MAC_ADDR_FIELD 3
|
||||||
#define MAN_MAC_ADDR_LENGTH 17
|
#define MAN_MAC_ADDR_LENGTH 17
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Base addresses -- Note these are effective addresses where the
|
* Base addresses -- Note these are effective addresses where the actual
|
||||||
* actual resources get mapped (not physical addresses)
|
* resources get mapped (not physical addresses).
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Monitor */
|
#define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kiB for Monitor */
|
||||||
#define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */
|
#define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kiB for malloc() */
|
||||||
|
|
||||||
#define CFG_BOOT_BASE_ADDR 0xf0000000
|
#define CFG_BOOT_BASE_ADDR 0xf0000000
|
||||||
#define CFG_SDRAM_BASE 0x00000000 /* _must_ be 0 */
|
#define CFG_SDRAM_BASE 0x00000000 /* _must_ be 0 */
|
||||||
|
@ -77,9 +77,9 @@
|
||||||
#define CFG_USB_HOST 0xe0000400
|
#define CFG_USB_HOST 0xe0000400
|
||||||
#define CFG_CPLD_BASE 0xc0000000
|
#define CFG_CPLD_BASE 0xc0000000
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Initial RAM & stack pointer
|
* Initial RAM & stack pointer
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
/* 440EPx has 16KB of internal SRAM, so no need for D-Cache */
|
/* 440EPx has 16KB of internal SRAM, so no need for D-Cache */
|
||||||
#undef CFG_INIT_RAM_DCACHE
|
#undef CFG_INIT_RAM_DCACHE
|
||||||
#define CFG_INIT_RAM_ADDR CFG_OCM_BASE /* OCM */
|
#define CFG_INIT_RAM_ADDR CFG_OCM_BASE /* OCM */
|
||||||
|
@ -88,9 +88,9 @@
|
||||||
#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
|
#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
|
||||||
#define CFG_INIT_SP_OFFSET CFG_POST_WORD_ADDR
|
#define CFG_INIT_SP_OFFSET CFG_POST_WORD_ADDR
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Serial Port
|
* Serial Port
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
|
#define CFG_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#define CONFIG_SERIAL_MULTI 1
|
#define CONFIG_SERIAL_MULTI 1
|
||||||
|
@ -100,14 +100,14 @@
|
||||||
#define CFG_BAUDRATE_TABLE \
|
#define CFG_BAUDRATE_TABLE \
|
||||||
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
|
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Environment
|
* Environment
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environ vars */
|
#define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environ vars */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* FLASH related
|
* FLASH related
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_FLASH_CFI /* The flash is CFI compatible */
|
#define CFG_FLASH_CFI /* The flash is CFI compatible */
|
||||||
#define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
|
#define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
|
||||||
|
|
||||||
|
@ -133,9 +133,9 @@
|
||||||
#define CFG_ENV_ADDR_REDUND (CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
|
#define CFG_ENV_ADDR_REDUND (CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
|
||||||
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* DDR SDRAM
|
* DDR SDRAM
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_MBYTES_SDRAM (512) /* 512 MiB TODO: remove */
|
#define CFG_MBYTES_SDRAM (512) /* 512 MiB TODO: remove */
|
||||||
#define CONFIG_DDR_DATA_EYE /* use DDR2 optimization */
|
#define CONFIG_DDR_DATA_EYE /* use DDR2 optimization */
|
||||||
#define CONFIG_SPD_EEPROM /* Use SPD EEPROM for setup */
|
#define CONFIG_SPD_EEPROM /* Use SPD EEPROM for setup */
|
||||||
|
@ -145,9 +145,9 @@
|
||||||
#define CONFIG_PROG_SDRAM_TLB
|
#define CONFIG_PROG_SDRAM_TLB
|
||||||
#define CFG_DRAM_TEST
|
#define CFG_DRAM_TEST
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* I2C
|
* I2C
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
|
#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
|
||||||
#undef CONFIG_SOFT_I2C /* I2C bit-banged */
|
#undef CONFIG_SOFT_I2C /* I2C bit-banged */
|
||||||
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
||||||
|
@ -220,8 +220,8 @@
|
||||||
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
|
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
|
||||||
|
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx buffers & descriptors */
|
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx */
|
||||||
|
/* buffers & descriptors */
|
||||||
#define CONFIG_NET_MULTI 1
|
#define CONFIG_NET_MULTI 1
|
||||||
#define CONFIG_HAS_ETH1 1 /* add support for "eth1addr" */
|
#define CONFIG_HAS_ETH1 1 /* add support for "eth1addr" */
|
||||||
#define CONFIG_PHY1_ADDR 3
|
#define CONFIG_PHY1_ADDR 3
|
||||||
|
@ -292,9 +292,9 @@
|
||||||
|
|
||||||
#define CONFIG_SUPPORT_VFAT
|
#define CONFIG_SUPPORT_VFAT
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Miscellaneous configurable options
|
* Miscellaneous configurable options
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_LONGHELP /* undef to save memory */
|
#define CFG_LONGHELP /* undef to save memory */
|
||||||
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
||||||
#if defined(CONFIG_CMD_KGDB)
|
#if defined(CONFIG_CMD_KGDB)
|
||||||
|
@ -302,7 +302,8 @@
|
||||||
#else
|
#else
|
||||||
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
|
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
|
||||||
#endif
|
#endif
|
||||||
#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
|
#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
|
||||||
|
/* Print Buffer Size */
|
||||||
#define CFG_MAXARGS 16 /* max number of command args */
|
#define CFG_MAXARGS 16 /* max number of command args */
|
||||||
#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
|
#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
|
||||||
|
|
||||||
|
@ -320,16 +321,16 @@
|
||||||
#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
|
#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
|
||||||
#define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
|
#define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
/* General PCI */
|
/* General PCI */
|
||||||
#define CONFIG_PCI /* include pci support */
|
#define CONFIG_PCI /* include pci support */
|
||||||
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
||||||
#define CFG_PCI_CACHE_LINE_SIZE 0 /* to avoid problems with PNP */
|
#define CFG_PCI_CACHE_LINE_SIZE 0 /* to avoid problems with PNP */
|
||||||
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
||||||
#define CFG_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
|
#define CFG_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to */
|
||||||
|
/* CFG_PCI_MEMBASE */
|
||||||
/* Board-specific PCI */
|
/* Board-specific PCI */
|
||||||
#define CFG_PCI_TARGET_INIT
|
#define CFG_PCI_TARGET_INIT
|
||||||
#define CFG_PCI_MASTER_INIT
|
#define CFG_PCI_MASTER_INIT
|
||||||
|
@ -338,15 +339,15 @@
|
||||||
#define CFG_PCI_SUBSYS_ID 0xcafe /* Whatever */
|
#define CFG_PCI_SUBSYS_ID 0xcafe /* Whatever */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For booting Linux, the board info and command line data
|
* For booting Linux, the board info and command line data have to be in the
|
||||||
* have to be in the first 8 MB of memory, since this is
|
* first 8 MB of memory, since this is the maximum mapped by the Linux kernel
|
||||||
* the maximum mapped by the Linux kernel during initialization.
|
* during initialization.
|
||||||
*/
|
*/
|
||||||
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* External Bus Controller (EBC) Setup
|
* External Bus Controller (EBC) Setup
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
|
|
||||||
/* Memory Bank 0 (NOR-FLASH) initialization */
|
/* Memory Bank 0 (NOR-FLASH) initialization */
|
||||||
#define CFG_EBC_PB0AP 0x04017300
|
#define CFG_EBC_PB0AP 0x04017300
|
||||||
|
@ -360,7 +361,7 @@
|
||||||
#define CFG_EBC_PB2AP 0x04017300
|
#define CFG_EBC_PB2AP 0x04017300
|
||||||
#define CFG_EBC_PB2CR (CFG_CPLD_BASE | 0x00038000)
|
#define CFG_EBC_PB2CR (CFG_CPLD_BASE | 0x00038000)
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* GPIO Setup
|
* GPIO Setup
|
||||||
*
|
*
|
||||||
* Korat GPIO usage:
|
* Korat GPIO usage:
|
||||||
|
@ -423,7 +424,7 @@
|
||||||
* . . . . .
|
* . . . . .
|
||||||
* . . . . .
|
* . . . . .
|
||||||
* GPIO63 xxxx x x (reserved for trace port)
|
* GPIO63 xxxx x x (reserved for trace port)
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
|
|
||||||
#define CFG_GPIO_ATMEGA_SS_ 13
|
#define CFG_GPIO_ATMEGA_SS_ 13
|
||||||
#define CFG_GPIO_PHY0_FIBER_SEL 27
|
#define CFG_GPIO_PHY0_FIBER_SEL 27
|
||||||
|
@ -435,7 +436,7 @@
|
||||||
#define CFG_GPIO_PHY0_EN 45
|
#define CFG_GPIO_PHY0_EN 45
|
||||||
#define CFG_GPIO_PHY1_EN 46
|
#define CFG_GPIO_PHY1_EN 46
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* PPC440 GPIO Configuration
|
* PPC440 GPIO Configuration
|
||||||
*/
|
*/
|
||||||
#define CFG_4xx_GPIO_TABLE { /* Out GPIO Alternate1 Alternate2 Alternate3 */ \
|
#define CFG_4xx_GPIO_TABLE { /* Out GPIO Alternate1 Alternate2 Alternate3 */ \
|
||||||
|
@ -523,4 +524,5 @@
|
||||||
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
||||||
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
* MA 02111-1307 USA
|
* MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/************************************************************************
|
/*
|
||||||
* sequoia.h - configuration for Sequoia & Rainier boards
|
* sequoia.h - configuration for Sequoia & Rainier boards
|
||||||
***********************************************************************/
|
*/
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* High Level Configuration Options
|
* High Level Configuration Options
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
/* This config file is used for Sequoia (440EPx) and Rainier (440GRx) */
|
/* This config file is used for Sequoia (440EPx) and Rainier (440GRx) */
|
||||||
#ifndef CONFIG_RAINIER
|
#ifndef CONFIG_RAINIER
|
||||||
#define CONFIG_440EPX 1 /* Specific PPC440EPx */
|
#define CONFIG_440EPX 1 /* Specific PPC440EPx */
|
||||||
|
@ -54,12 +54,12 @@
|
||||||
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
|
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
|
||||||
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
|
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Base addresses -- Note these are effective addresses where the
|
* Base addresses -- Note these are effective addresses where the actual
|
||||||
* actual resources get mapped (not physical addresses)
|
* resources get mapped (not physical addresses).
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Monitor */
|
#define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kiB for Monitor */
|
||||||
#define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */
|
#define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kiB for malloc() */
|
||||||
|
|
||||||
#define CFG_TLB_FOR_BOOT_FLASH 0x0003
|
#define CFG_TLB_FOR_BOOT_FLASH 0x0003
|
||||||
#define CFG_BOOT_BASE_ADDR 0xf0000000
|
#define CFG_BOOT_BASE_ADDR 0xf0000000
|
||||||
|
@ -83,9 +83,9 @@
|
||||||
#define CFG_USB_HOST 0xe0000400
|
#define CFG_USB_HOST 0xe0000400
|
||||||
#define CFG_BCSR_BASE 0xc0000000
|
#define CFG_BCSR_BASE 0xc0000000
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Initial RAM & stack pointer
|
* Initial RAM & stack pointer
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
/* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache */
|
/* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache */
|
||||||
#define CFG_INIT_RAM_ADDR CFG_OCM_BASE /* OCM */
|
#define CFG_INIT_RAM_ADDR CFG_OCM_BASE /* OCM */
|
||||||
#define CFG_INIT_RAM_END (4 << 10)
|
#define CFG_INIT_RAM_END (4 << 10)
|
||||||
|
@ -93,9 +93,9 @@
|
||||||
#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
|
#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
|
||||||
#define CFG_INIT_SP_OFFSET CFG_POST_WORD_ADDR
|
#define CFG_INIT_SP_OFFSET CFG_POST_WORD_ADDR
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Serial Port
|
* Serial Port
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
|
#define CFG_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
|
||||||
#define CONFIG_BAUDRATE 115200
|
#define CONFIG_BAUDRATE 115200
|
||||||
#define CONFIG_SERIAL_MULTI 1
|
#define CONFIG_SERIAL_MULTI 1
|
||||||
|
@ -105,19 +105,19 @@
|
||||||
#define CFG_BAUDRATE_TABLE \
|
#define CFG_BAUDRATE_TABLE \
|
||||||
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
|
{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Environment
|
* Environment
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
|
#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
|
||||||
#define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
|
#define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environ vars */
|
||||||
#else
|
#else
|
||||||
#define CFG_ENV_IS_IN_NAND 1 /* use NAND for environment vars */
|
#define CFG_ENV_IS_IN_NAND 1 /* use NAND for environ vars */
|
||||||
#define CFG_ENV_IS_EMBEDDED 1 /* use embedded environment */
|
#define CFG_ENV_IS_EMBEDDED 1 /* use embedded environment */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* FLASH related
|
* FLASH related
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_FLASH_CFI /* The flash is CFI compatible */
|
#define CFG_FLASH_CFI /* The flash is CFI compatible */
|
||||||
#define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
|
#define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
|
||||||
|
|
||||||
|
@ -167,7 +167,8 @@
|
||||||
#define CFG_NAND_BOOT_SPL_SIZE (4 << 10) /* SPL size */
|
#define CFG_NAND_BOOT_SPL_SIZE (4 << 10) /* SPL size */
|
||||||
#define CFG_NAND_BOOT_SPL_DST (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here */
|
#define CFG_NAND_BOOT_SPL_DST (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here */
|
||||||
#define CFG_NAND_U_BOOT_DST 0x01000000 /* Load NUB to this addr */
|
#define CFG_NAND_U_BOOT_DST 0x01000000 /* Load NUB to this addr */
|
||||||
#define CFG_NAND_U_BOOT_START CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
|
#define CFG_NAND_U_BOOT_START CFG_NAND_U_BOOT_DST /* Start NUB from */
|
||||||
|
/* this addr */
|
||||||
#define CFG_NAND_BOOT_SPL_DELTA (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
|
#define CFG_NAND_BOOT_SPL_DELTA (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -202,17 +203,17 @@
|
||||||
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET + CFG_ENV_SIZE)
|
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET + CFG_ENV_SIZE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* DDR SDRAM
|
* DDR SDRAM
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_MBYTES_SDRAM (256) /* 256MB */
|
#define CFG_MBYTES_SDRAM (256) /* 256MB */
|
||||||
#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
|
#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
|
||||||
#define CONFIG_DDR_DATA_EYE /* use DDR2 optimization */
|
#define CONFIG_DDR_DATA_EYE /* use DDR2 optimization */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* I2C
|
* I2C
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
|
#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
|
||||||
#undef CONFIG_SOFT_I2C /* I2C bit-banged */
|
#undef CONFIG_SOFT_I2C /* I2C bit-banged */
|
||||||
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
||||||
|
@ -294,8 +295,8 @@
|
||||||
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
|
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
|
||||||
|
|
||||||
#define CONFIG_HAS_ETH0
|
#define CONFIG_HAS_ETH0
|
||||||
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx buffers & descriptors */
|
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx */
|
||||||
|
/* buffers & descriptors */
|
||||||
#define CONFIG_NET_MULTI 1
|
#define CONFIG_NET_MULTI 1
|
||||||
#define CONFIG_HAS_ETH1 1 /* add support for "eth1addr" */
|
#define CONFIG_HAS_ETH1 1 /* add support for "eth1addr" */
|
||||||
#define CONFIG_PHY1_ADDR 1
|
#define CONFIG_PHY1_ADDR 1
|
||||||
|
@ -322,7 +323,6 @@
|
||||||
#define CONFIG_DOS_PARTITION
|
#define CONFIG_DOS_PARTITION
|
||||||
#define CONFIG_ISO_PARTITION
|
#define CONFIG_ISO_PARTITION
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BOOTP options
|
* BOOTP options
|
||||||
*/
|
*/
|
||||||
|
@ -332,7 +332,6 @@
|
||||||
#define CONFIG_BOOTP_HOSTNAME
|
#define CONFIG_BOOTP_HOSTNAME
|
||||||
#define CONFIG_BOOTP_SUBNETMASK
|
#define CONFIG_BOOTP_SUBNETMASK
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command line configuration.
|
* Command line configuration.
|
||||||
*/
|
*/
|
||||||
|
@ -367,14 +366,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* POST support */
|
/* POST support */
|
||||||
#define CONFIG_POST (CFG_POST_MEMORY | \
|
#define CONFIG_POST (CFG_POST_CACHE | \
|
||||||
CFG_POST_CPU | \
|
CFG_POST_CPU | \
|
||||||
CFG_POST_UART | \
|
|
||||||
CFG_POST_I2C | \
|
|
||||||
CFG_POST_CACHE | \
|
|
||||||
CFG_POST_FPU_ON | \
|
|
||||||
CFG_POST_ETHER | \
|
CFG_POST_ETHER | \
|
||||||
CFG_POST_SPR)
|
CFG_POST_FPU_ON | \
|
||||||
|
CFG_POST_I2C | \
|
||||||
|
CFG_POST_MEMORY | \
|
||||||
|
CFG_POST_SPR | \
|
||||||
|
CFG_POST_UART)
|
||||||
|
|
||||||
#define CFG_POST_WORD_ADDR (CFG_GBL_DATA_OFFSET - 0x4)
|
#define CFG_POST_WORD_ADDR (CFG_GBL_DATA_OFFSET - 0x4)
|
||||||
#define CONFIG_LOGBUFFER
|
#define CONFIG_LOGBUFFER
|
||||||
|
@ -384,9 +383,9 @@
|
||||||
|
|
||||||
#define CONFIG_SUPPORT_VFAT
|
#define CONFIG_SUPPORT_VFAT
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* Miscellaneous configurable options
|
* Miscellaneous configurable options
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_LONGHELP /* undef to save memory */
|
#define CFG_LONGHELP /* undef to save memory */
|
||||||
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
#define CFG_PROMPT "=> " /* Monitor Command Prompt */
|
||||||
#if defined(CONFIG_CMD_KGDB)
|
#if defined(CONFIG_CMD_KGDB)
|
||||||
|
@ -394,7 +393,8 @@
|
||||||
#else
|
#else
|
||||||
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
|
#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
|
||||||
#endif
|
#endif
|
||||||
#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
|
#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
|
||||||
|
/* Print Buffer Size */
|
||||||
#define CFG_MAXARGS 16 /* max number of command args */
|
#define CFG_MAXARGS 16 /* max number of command args */
|
||||||
#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
|
#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
|
||||||
|
|
||||||
|
@ -412,16 +412,16 @@
|
||||||
#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
|
#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
|
||||||
#define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
|
#define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
/* General PCI */
|
/* General PCI */
|
||||||
#define CONFIG_PCI /* include pci support */
|
#define CONFIG_PCI /* include pci support */
|
||||||
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
#define CONFIG_PCI_PNP /* do pci plug-and-play */
|
||||||
#define CFG_PCI_CACHE_LINE_SIZE 0 /* to avoid problems with PNP */
|
#define CFG_PCI_CACHE_LINE_SIZE 0 /* to avoid problems with PNP */
|
||||||
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
#define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
|
||||||
#define CFG_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
|
#define CFG_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to */
|
||||||
|
/* CFG_PCI_MEMBASE */
|
||||||
/* Board-specific PCI */
|
/* Board-specific PCI */
|
||||||
#define CFG_PCI_TARGET_INIT
|
#define CFG_PCI_TARGET_INIT
|
||||||
#define CFG_PCI_MASTER_INIT
|
#define CFG_PCI_MASTER_INIT
|
||||||
|
@ -430,15 +430,15 @@
|
||||||
#define CFG_PCI_SUBSYS_ID 0xcafe /* Whatever */
|
#define CFG_PCI_SUBSYS_ID 0xcafe /* Whatever */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For booting Linux, the board info and command line data
|
* For booting Linux, the board info and command line data have to be in the
|
||||||
* have to be in the first 8 MB of memory, since this is
|
* first 8 MB of memory, since this is the maximum mapped by the Linux kernel
|
||||||
* the maximum mapped by the Linux kernel during initialization.
|
* during initialization.
|
||||||
*/
|
*/
|
||||||
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* External Bus Controller (EBC) Setup
|
* External Bus Controller (EBC) Setup
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On Sequoia CS0 and CS3 are switched when configuring for NAND booting
|
* On Sequoia CS0 and CS3 are switched when configuring for NAND booting
|
||||||
|
@ -469,15 +469,15 @@
|
||||||
|
|
||||||
#define CFG_BCSR5_PCI66EN 0x80
|
#define CFG_BCSR5_PCI66EN 0x80
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* NAND FLASH
|
* NAND FLASH
|
||||||
*----------------------------------------------------------------------*/
|
*/
|
||||||
#define CFG_MAX_NAND_DEVICE 1
|
#define CFG_MAX_NAND_DEVICE 1
|
||||||
#define NAND_MAX_CHIPS 1
|
#define NAND_MAX_CHIPS 1
|
||||||
#define CFG_NAND_BASE (CFG_NAND_ADDR + CFG_NAND_CS)
|
#define CFG_NAND_BASE (CFG_NAND_ADDR + CFG_NAND_CS)
|
||||||
#define CFG_NAND_SELECT_DEVICE 1 /* nand driver supports mutipl. chips */
|
#define CFG_NAND_SELECT_DEVICE 1 /* nand driver supports mutipl. chips */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*
|
||||||
* PPC440 GPIO Configuration
|
* PPC440 GPIO Configuration
|
||||||
*/
|
*/
|
||||||
/* test-only: take GPIO init from pcs440ep ???? in config file */
|
/* test-only: take GPIO init from pcs440ep ???? in config file */
|
||||||
|
|
Loading…
Reference in New Issue