diff options
Diffstat (limited to 'include')
67 files changed, 49 insertions, 542 deletions
| diff --git a/include/asm-generic/u-boot.h b/include/asm-generic/u-boot.h index 43872010c..e78196797 100644 --- a/include/asm-generic/u-boot.h +++ b/include/asm-generic/u-boot.h @@ -37,7 +37,7 @@ typedef struct bd_info {  	unsigned long	bi_dsp_freq; /* dsp core frequency */  	unsigned long	bi_ddr_freq; /* ddr frequency */  #endif -#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \ +#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_MPC8260) \  	|| defined(CONFIG_E500) || defined(CONFIG_MPC86xx)  	unsigned long	bi_immr_base;	/* base of IMMR register */  #endif diff --git a/include/common.h b/include/common.h index 15f583447..090fcde5d 100644 --- a/include/common.h +++ b/include/common.h @@ -52,16 +52,13 @@ typedef volatile unsigned char	vu_char;  #include <mpc5xxx.h>  #elif defined(CONFIG_MPC512X)  #include <asm/immap_512x.h> -#elif defined(CONFIG_8260) +#elif defined(CONFIG_MPC8260)  #if   defined(CONFIG_MPC8247) \     || defined(CONFIG_MPC8248) \     || defined(CONFIG_MPC8271) \     || defined(CONFIG_MPC8272)  #define CONFIG_MPC8272_FAMILY	1  #endif -#if defined(CONFIG_MPC8272_FAMILY) -#define CONFIG_MPC8260	1 -#endif  #include <asm/immap_8260.h>  #endif  #ifdef CONFIG_MPC86xx @@ -669,7 +666,7 @@ int	get_clocks (void);  int	get_clocks_866 (void);  int	sdram_adjust_866 (void);  int	adjust_sdram_tbs_8xx (void); -#if defined(CONFIG_8260) +#if defined(CONFIG_MPC8260)  int	prt_8260_clks (void);  #elif defined(CONFIG_MPC5xxx)  int	prt_mpc5xxx_clks (void); @@ -737,7 +734,7 @@ void	get_sys_info  ( sys_info_t * );  #endif  /* $(CPU)/cpu_init.c */ -#if defined(CONFIG_8xx) || defined(CONFIG_8260) +#if defined(CONFIG_8xx) || defined(CONFIG_MPC8260)  void	cpu_init_f    (volatile immap_t *immr);  #endif  #if defined(CONFIG_4xx) || defined(CONFIG_MPC85xx) || defined(CONFIG_MCF52x2) ||defined(CONFIG_MPC86xx) @@ -745,7 +742,7 @@ void	cpu_init_f    (void);  #endif  int	cpu_init_r    (void); -#if defined(CONFIG_8260) +#if defined(CONFIG_MPC8260)  int	prt_8260_rsr  (void);  #elif defined(CONFIG_MPC83xx)  int	prt_83xx_rsr  (void); diff --git a/include/configs/CPU86.h b/include/configs/CPU86.h index a033a3a1e..7be83b078 100644 --- a/include/configs/CPU86.h +++ b/include/configs/CPU86.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU		*/  #define CONFIG_CPU86		1	/* ...on a CPU86 board	*/  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/CPU87.h b/include/configs/CPU87.h index 06876746a..d3a59e8ba 100644 --- a/include/configs/CPU87.h +++ b/include/configs/CPU87.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU		*/  #define CONFIG_CPU87		1	/* ...on a CPU87 board	*/  #define CONFIG_PCI  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/IDS8247.h b/include/configs/IDS8247.h index 7aaa7768f..8ccb0ff9d 100644 --- a/include/configs/IDS8247.h +++ b/include/configs/IDS8247.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is a MPC8260 CPU		*/  #define CONFIG_MPC8272_FAMILY	1  #define CONFIG_IDS8247		1  #define CPU_ID_STR		"MPC8247" diff --git a/include/configs/IPHASE4539.h b/include/configs/IPHASE4539.h index a543855a5..e402075d3 100644 --- a/include/configs/IPHASE4539.h +++ b/include/configs/IPHASE4539.h @@ -19,7 +19,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU   */  #define CONFIG_IPHASE4539	1	/* ...on a Interphase 4539 PMC */  #define	CONFIG_SYS_TEXT_BASE	0xffb00000 diff --git a/include/configs/ISPAN.h b/include/configs/ISPAN.h index a5cea8bc3..a2fdfd327 100644 --- a/include/configs/ISPAN.h +++ b/include/configs/ISPAN.h @@ -13,7 +13,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MPC8260			/* This is an MPC8260 CPU               */  #define CONFIG_ISPAN			/* ...on one of Interphase iSPAN boards */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/MPC8260ADS.h b/include/configs/MPC8260ADS.h index 3def26929..39f7564b7 100644 --- a/include/configs/MPC8260ADS.h +++ b/include/configs/MPC8260ADS.h @@ -64,8 +64,6 @@   * details. :-(   */  #define CONFIG_MPC8272		1 -#else -#define CONFIG_MPC8260		1  #endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ diff --git a/include/configs/MPC8266ADS.h b/include/configs/MPC8266ADS.h index 39c90aa2b..8d9c8fb45 100644 --- a/include/configs/MPC8266ADS.h +++ b/include/configs/MPC8266ADS.h @@ -33,7 +33,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU	*/  #define CONFIG_MPC8266ADS	1	/* ...on motorola ADS board	*/  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/PM826.h b/include/configs/PM826.h index 5aeba4dc4..6416ad522 100644 --- a/include/configs/PM826.h +++ b/include/configs/PM826.h @@ -19,7 +19,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is a MPC8260 CPU	*/  #define CONFIG_PM826		1	/* ...on a PM8260 module	*/  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/PM828.h b/include/configs/PM828.h index 49b4571e1..e17fbfbbf 100644 --- a/include/configs/PM828.h +++ b/include/configs/PM828.h @@ -19,7 +19,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is a MPC8260 CPU	*/  #define CONFIG_PM828		1	/* ...on a PM828 module */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index fd39109da..c5e2f164c 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -95,12 +95,7 @@  /*-----------------------------------------------------------------------   * Environment   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_ENV_IS_IN_EEPROM	1	/* use FLASH for environment vars */ -#else -#define CONFIG_ENV_IS_IN_NAND	1	/* use NAND for environment vars */ -#define CONFIG_ENV_IS_EMBEDDED	1	/* use embedded environment */ -#endif  /*-----------------------------------------------------------------------   * RTC @@ -142,69 +137,10 @@  #define CONFIG_ENV_SIZE		0x1000	/* 4096 bytes may be used for env vars */  #endif -/* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 440EPx the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from cache, I experienced problems accessing - * the NAND controller.	sr - 2006-08-25 - */ -#if defined (CONFIG_NAND_U_BOOT) -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location                 */ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size                     */ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	(CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here    */ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr        */ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr */ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(16 << 10)	/* Offset to RAM U-Boot image   */ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(384 << 10)	/* Size of RAM U-Boot image     */ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	512	/* NAND chip page size          */ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(16 << 10) /* NAND chip block size      */ -#define CONFIG_SYS_NAND_PAGE_COUNT	32	/* NAND chip page count         */ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	5	/* Location of bad block marker */ -#undef CONFIG_SYS_NAND_4_ADDR_CYCLE		/* No fourth addr used (<=32MB) */ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	16 -#define CONFIG_SYS_NAND_ECCPOS		{0, 1, 2, 3, 6, 7} -#endif - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/sequoia/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif -  /*-----------------------------------------------------------------------   * DDR SDRAM   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_DDR_DATA_EYE	/* use DDR2 optimization        */ -#endif  #define CONFIG_SYS_MEM_TOP_HIDE	(4 << 10) /* don't use last 4kbytes */  						  /* 440EPx errata CHIP 11 */ @@ -448,7 +384,6 @@  /*   * On Sequoia CS0 and CS3 are switched when configuring for NAND booting   */ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_SYS_NAND_CS		2	/* NAND chip connected to CSx   */  /* Memory Bank 0 (NOR-FLASH) initialization */ @@ -458,16 +393,6 @@  /* Memory Bank 2 (NAND-FLASH) initialization */  #define CONFIG_SYS_EBC_PB2AP		0x018003c0  #define CONFIG_SYS_EBC_PB2CR		(CONFIG_SYS_NAND_ADDR | 0x1c000) -#else -#define CONFIG_SYS_NAND_CS		0	/* NAND chip connected to CSx   */ -/* Memory Bank 2 (NOR-FLASH) initialization */ -#define CONFIG_SYS_EBC_PB2AP		0x03017200 -#define CONFIG_SYS_EBC_PB2CR		(CONFIG_SYS_FLASH_BASE | 0xda000) - -/* Memory Bank 0 (NAND-FLASH) initialization */ -#define CONFIG_SYS_EBC_PB0AP		0x018003c0 -#define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_NAND_ADDR | 0x1c000) -#endif  /* Memory Bank 1 (RESET) initialization */  #define CONFIG_SYS_EBC_PB1AP		0x7f817200 /* 0x03017200 */ diff --git a/include/configs/RPXsuper.h b/include/configs/RPXsuper.h index 28884295e..f5e096801 100644 --- a/include/configs/RPXsuper.h +++ b/include/configs/RPXsuper.h @@ -184,7 +184,6 @@   *   *****************************************************************************/ -#define CONFIG_MPC8260          1       /* This is an MPC8260 CPU   */  #define CONFIG_RPXSUPER         1       /* on an Embedded Planet RPX Super Board  */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/Rattler.h b/include/configs/Rattler.h index 1cdd18c0b..a1e2ae975 100644 --- a/include/configs/Rattler.h +++ b/include/configs/Rattler.h @@ -13,7 +13,6 @@  #ifdef CONFIG_MPC8248  #define CPU_ID_STR		"MPC8248"  #else -#define CONFIG_MPC8260  #define CPU_ID_STR		"MPC8250"  #endif /* CONFIG_MPC8248 */ diff --git a/include/configs/TQM8260.h b/include/configs/TQM8260.h index b34b0a865..7fd12d3fb 100644 --- a/include/configs/TQM8260.h +++ b/include/configs/TQM8260.h @@ -30,7 +30,6 @@  #define	CONFIG_SYS_TEXT_BASE	0x40000000 -#define CONFIG_MPC8260		1	/* This is a MPC8260 CPU		*/  #if 0  #define CONFIG_TQM8260		100	/* ...on a TQM8260 module Rev.100	*/ diff --git a/include/configs/TQM8272.h b/include/configs/TQM8272.h index 78e8b03cd..9c7e16305 100644 --- a/include/configs/TQM8272.h +++ b/include/configs/TQM8272.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is a MPC8260 CPU		*/  #define CONFIG_MPC8272_FAMILY   1  #define CONFIG_TQM8272		1 diff --git a/include/configs/ZPC1900.h b/include/configs/ZPC1900.h index 01cb2c85c..d76a14072 100644 --- a/include/configs/ZPC1900.h +++ b/include/configs/ZPC1900.h @@ -11,7 +11,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU      */  #define CONFIG_ZPC1900		1	/* ...on Zephyr ZPC.1900 board */  #define	CONFIG_SYS_TEXT_BASE	0xFE000000 diff --git a/include/configs/acadia.h b/include/configs/acadia.h index 5f3b5f936..4dd5720d2 100644 --- a/include/configs/acadia.h +++ b/include/configs/acadia.h @@ -82,17 +82,11 @@  /*-----------------------------------------------------------------------   * Environment   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_ENV_IS_IN_FLASH     1	/* use FLASH for environment vars	*/ -#else -#define CONFIG_ENV_IS_IN_NAND	1	/* use NAND for environment vars	*/ -#define CONFIG_ENV_IS_EMBEDDED	1	/* use embedded environment */ -#endif  /*-----------------------------------------------------------------------   * FLASH related   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_SYS_FLASH_CFI			/* The flash is CFI compatible	*/  #define CONFIG_FLASH_CFI_DRIVER		/* Use common CFI driver	*/ @@ -106,16 +100,6 @@  #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1	/* use buffered writes (20x faster)	*/  #define CONFIG_SYS_FLASH_EMPTY_INFO		/* print 'E' for empty sector on flinfo */ -#else -/* - * No NOR-flash on Acadia when NAND-booting. We need to undef the - * NOR device-tree fixup code as well, since flash_info is not defined - * in this case. - */ -#define	CONFIG_SYS_NO_FLASH		1 -#undef CONFIG_FDT_FIXUP_NOR_FLASH_SIZE -#endif -  #ifdef CONFIG_ENV_IS_IN_FLASH  #define CONFIG_ENV_SECT_SIZE	0x40000 /* size of one complete sector	*/  #define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE) @@ -126,61 +110,6 @@  #define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SIZE)  #endif -/* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 440EPx the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from cache, I experienced problems accessing - * the NAND controller.	sr - 2006-08-25 - */ -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	(CONFIG_SYS_OCM_DATA_ADDR + (16 << 10)) /* Copy SPL here*/ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr	*/ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr	*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(16 << 10)	/* Offset to RAM U-Boot image	*/ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(384 << 10)	/* Size of RAM U-Boot image	*/ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	512		/* NAND chip page size		*/ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(16 << 10)	/* NAND chip block size		*/ -#define CONFIG_SYS_NAND_PAGE_COUNT	32		/* NAND chip page count		*/ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	5		/* Location of bad block marker	*/ -#undef CONFIG_SYS_NAND_4_ADDR_CYCLE			/* No fourth addr used (<=32MB)	*/ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	16 -#define CONFIG_SYS_NAND_ECCPOS		{0, 1, 2, 3, 6, 7} - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/sequoia/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif -  /*-----------------------------------------------------------------------   * RAM (CRAM)   *----------------------------------------------------------------------*/ @@ -219,7 +148,6 @@  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_PPC_OLD					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"kernel_addr=fff10000\0"					\  	"ramdisk_addr=fff20000\0"					\  	"kozio=bootm ffc60000\0"					\ @@ -242,14 +170,6 @@  #define CONFIG_CMD_NAND  #define CONFIG_CMD_USB -/* - * No NOR on Acadia when NAND-booting - */ -#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) -#undef CONFIG_CMD_FLASH -#undef CONFIG_CMD_IMLS -#endif -  /*-----------------------------------------------------------------------   * NAND FLASH   *----------------------------------------------------------------------*/ @@ -260,7 +180,6 @@  /*-----------------------------------------------------------------------   * External Bus Controller (EBC) Setup   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_SYS_NAND_CS		3  /* Memory Bank 0 (Flash) initialization						*/  #define CONFIG_SYS_EBC_PB0AP		0x03337200 @@ -278,24 +197,6 @@  /* Memory Bank 2 (CRAM) initialization						*/  #define CONFIG_SYS_EBC_PB2AP		0x030400c0  #define CONFIG_SYS_EBC_PB2CR		0x020bc000 -#else -#define CONFIG_SYS_NAND_CS		0		/* NAND chip connected to CSx	*/ -/* Memory Bank 0 (NAND-FLASH) initialization					*/ -#define CONFIG_SYS_EBC_PB0AP		0x018003c0 -#define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_NAND_ADDR | 0x1c000) - -/* - * When NAND-booting the CRAM EBC setup must be done in sync mode, since the - * NAND-SPL already initialized the CRAM and EBC to sync mode. - */ -/* Memory Bank 1 (CRAM) initialization						*/ -#define CONFIG_SYS_EBC_PB1AP		0x9C0201C0 -#define CONFIG_SYS_EBC_PB1CR		0x000bc000 - -/* Memory Bank 2 (CRAM) initialization						*/ -#define CONFIG_SYS_EBC_PB2AP		0x9C0201C0 -#define CONFIG_SYS_EBC_PB2CR		0x020bc000 -#endif  /* Memory Bank 4 (CPLD) initialization						*/  #define CONFIG_SYS_EBC_PB4AP		0x04006000 diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h index 0f38c92fa..2aea89937 100644 --- a/include/configs/amcc-common.h +++ b/include/configs/amcc-common.h @@ -253,10 +253,4 @@  		"cp.b ${fileaddr} " __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \  	"upd=run load update\0"						\ -#define CONFIG_AMCC_DEF_ENV_NAND_UPD					\ -	"u-boot-nand=" __stringify(CONFIG_HOSTNAME) "/u-boot-nand.bin\0"\ -	"nload=tftp 200000 ${u-boot-nand}\0"				\ -	"nupdate=nand erase 0 100000;nand write 200000 0 100000\0"	\ -	"nupd=run nload nupdate\0" -  #endif /* __AMCC_COMMON_H */ diff --git a/include/configs/atc.h b/include/configs/atc.h index fa391b628..77fa79a18 100644 --- a/include/configs/atc.h +++ b/include/configs/atc.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU		*/  #define CONFIG_ATC		1	/* ...on a ATC board	*/  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/bamboo.h b/include/configs/bamboo.h index 97da1e907..6ba4aaf8c 100644 --- a/include/configs/bamboo.h +++ b/include/configs/bamboo.h @@ -86,12 +86,7 @@  /*-----------------------------------------------------------------------   * Environment   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_ENV_IS_IN_FLASH     1	/* use FLASH for environment vars	*/ -#else -#define CONFIG_ENV_IS_IN_NAND	1	/* use NAND for environment vars	*/ -#define CONFIG_ENV_IS_EMBEDDED	1	/* use embedded environment */ -#endif  /*-----------------------------------------------------------------------   * FLASH related @@ -120,61 +115,6 @@  #define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SIZE)  #endif /* CONFIG_ENV_IS_IN_FLASH */ -/* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 440EPx the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from cache, I experienced problems accessing - * the NAND controller.	sr - 2006-08-25 - */ -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	0x00800000	/* Copy SPL here		*/ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr	*/ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr	*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(16 << 10)	/* Offset to RAM U-Boot image	*/ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(384 << 10)	/* Size of RAM U-Boot image	*/ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	512		/* NAND chip page size		*/ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(16 << 10)	/* NAND chip block size		*/ -#define CONFIG_SYS_NAND_PAGE_COUNT	32		/* NAND chip page count		*/ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	5		/* Location of bad block marker	*/ -#define CONFIG_SYS_NAND_4_ADDR_CYCLE	1		/* Fourth addr used (>32MB)	*/ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	16 -#define CONFIG_SYS_NAND_ECCPOS		{0, 1, 2, 3, 6, 7} - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/sequoia/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif -  /*-----------------------------------------------------------------------   * NAND FLASH   *----------------------------------------------------------------------*/ @@ -182,15 +122,7 @@  #define CONFIG_SYS_NAND_BASE		(CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)  #define CONFIG_SYS_NAND_BASE_LIST	{ CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_ADDR + 2 }  #define CONFIG_SYS_NAND_SELECT_DEVICE  1	/* nand driver supports mutipl. chips	*/ - -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_SYS_NAND_CS		1 -#else -#define CONFIG_SYS_NAND_CS		0		/* NAND chip connected to CSx	*/ -/* Memory Bank 0 (NAND-FLASH) initialization					*/ -#define CONFIG_SYS_EBC_PB0AP		0x018003c0 -#define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_NAND_ADDR | 0x1c000) -#endif  /*-----------------------------------------------------------------------   * DDR SDRAM @@ -226,7 +158,6 @@  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_PPC_OLD					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"kernel_addr=fff00000\0"					\  	"ramdisk_addr=fff10000\0"					\  	"" diff --git a/include/configs/bct-brettl2.h b/include/configs/bct-brettl2.h index 5b09b45b5..06f095cc4 100644 --- a/include/configs/bct-brettl2.h +++ b/include/configs/bct-brettl2.h @@ -136,7 +136,7 @@  #define CONFIG_MTD_DEVICE  #define CONFIG_MTD_PARTITIONS  #define CONFIG_SYS_HUSH_PARSER - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf518f-ezbrd.h b/include/configs/bf518f-ezbrd.h index a97972b81..9eb85ebf3 100644 --- a/include/configs/bf518f-ezbrd.h +++ b/include/configs/bf518f-ezbrd.h @@ -155,7 +155,7 @@  #define CONFIG_MISC_INIT_R  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	0 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf526-ezbrd.h b/include/configs/bf526-ezbrd.h index 003109329..3065d22f0 100644 --- a/include/configs/bf526-ezbrd.h +++ b/include/configs/bf526-ezbrd.h @@ -153,6 +153,7 @@  #define CONFIG_MISC_INIT_R  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	1 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /* define to enable run status via led */  /* #define CONFIG_STATUS_LED */ diff --git a/include/configs/bf527-ad7160-eval.h b/include/configs/bf527-ad7160-eval.h index fa05103e5..c0dfe2685 100644 --- a/include/configs/bf527-ad7160-eval.h +++ b/include/configs/bf527-ad7160-eval.h @@ -136,7 +136,7 @@   */  #define CONFIG_MISC_INIT_R  #define CONFIG_UART_CONSOLE	0 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf527-ezkit.h b/include/configs/bf527-ezkit.h index db1b6136f..748ddb3b1 100644 --- a/include/configs/bf527-ezkit.h +++ b/include/configs/bf527-ezkit.h @@ -179,7 +179,7 @@  #define CONFIG_MISC_INIT_R  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	1 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf527-sdp.h b/include/configs/bf527-sdp.h index c0e8b5adc..458868af7 100644 --- a/include/configs/bf527-sdp.h +++ b/include/configs/bf527-sdp.h @@ -112,7 +112,7 @@   */  #define CONFIG_MISC_INIT_R  #define CONFIG_UART_CONSOLE	0 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf533-ezkit.h b/include/configs/bf533-ezkit.h index beab1271a..b50352823 100644 --- a/include/configs/bf533-ezkit.h +++ b/include/configs/bf533-ezkit.h @@ -110,7 +110,7 @@  #define CONFIG_MISC_INIT_R  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	0 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h index f5b965829..d82c5b203 100644 --- a/include/configs/bf533-stamp.h +++ b/include/configs/bf533-stamp.h @@ -185,6 +185,7 @@   */  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /* FLASH/ETHERNET uses the same async bank */  #define SHARED_RESOURCES 	1 diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h index 02945bee7..e1705cada 100644 --- a/include/configs/bf537-stamp.h +++ b/include/configs/bf537-stamp.h @@ -254,6 +254,7 @@  #define CONFIG_MISC_INIT_R  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /* Define if want to do post memory test */  #undef CONFIG_POST diff --git a/include/configs/bf538f-ezkit.h b/include/configs/bf538f-ezkit.h index ffb0caf94..742c299d2 100644 --- a/include/configs/bf538f-ezkit.h +++ b/include/configs/bf538f-ezkit.h @@ -134,7 +134,7 @@   */  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	0 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf548-ezkit.h b/include/configs/bf548-ezkit.h index da5f02943..1a245a2b8 100644 --- a/include/configs/bf548-ezkit.h +++ b/include/configs/bf548-ezkit.h @@ -181,6 +181,7 @@  #define CONFIG_RTC_BFIN  #define CONFIG_UART_CONSOLE	1  #define CONFIG_BFIN_SPI_IMG_SIZE 0x50000 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  #define CONFIG_ADI_GPIO2 diff --git a/include/configs/bf561-acvilon.h b/include/configs/bf561-acvilon.h index 15ca1af23..3db917e37 100644 --- a/include/configs/bf561-acvilon.h +++ b/include/configs/bf561-acvilon.h @@ -160,7 +160,7 @@  #define CONFIG_UART_CONSOLE			0  #define CONFIG_BAUDRATE				57600  #define CONFIG_SYS_PROMPT "Acvilon> " - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/bf561-ezkit.h b/include/configs/bf561-ezkit.h index fb6f94873..0a309d926 100644 --- a/include/configs/bf561-ezkit.h +++ b/include/configs/bf561-ezkit.h @@ -102,6 +102,7 @@   * Misc Settings   */  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Run core 1 from L1 SRAM start address when init uboot on core 0 diff --git a/include/configs/br4.h b/include/configs/br4.h index ef3752dcd..f8d3158d4 100644 --- a/include/configs/br4.h +++ b/include/configs/br4.h @@ -135,7 +135,7 @@  #define CONFIG_BOOTCOMMAND	"run nandboot"  #define CONFIG_BOOTDELAY	2  #define CONFIG_LOADADDR		0x2000000 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/canyonlands.h b/include/configs/canyonlands.h index 620a0f5c5..8eeb15c0e 100644 --- a/include/configs/canyonlands.h +++ b/include/configs/canyonlands.h @@ -125,78 +125,9 @@  /*   * Define here the location of the environment variables (FLASH).   */ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define	CONFIG_ENV_IS_IN_FLASH	1	/* use FLASH for environment vars */  #define CONFIG_SYS_NOR_CS		0	/* NOR chip connected to CSx */  #define CONFIG_SYS_NAND_CS		3	/* NAND chip connected to CSx */ -#else -#define	CONFIG_ENV_IS_IN_NAND	1	/* use NAND for environment vars  */ -#define CONFIG_SYS_NOR_CS		3	/* NOR chip connected to CSx */ -#define CONFIG_SYS_NAND_CS		0	/* NAND chip connected to CSx */ -#define CONFIG_ENV_IS_EMBEDDED	1	/* use embedded environment */ -#endif - -/* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 440EPx the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from cache, I experienced problems accessing - * the NAND controller.	sr - 2006-08-25 - * - * This is the first official implementation of booting from 2k page sized - * NAND devices (e.g. Micron 29F2G08AA 256Mbit * 8) - */ -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location		      */ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size		      */ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	(CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here  */ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr      */ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST	/* Start NUB from     */ -							/*   this addr	      */ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(128 << 10)	/* Offset to RAM U-Boot image */ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(1 << 20)	/* Size of RAM U-Boot image   */ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	(2 << 10)	/* NAND chip page size	      */ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(128 << 10)	/* NAND chip block size	      */ -#define CONFIG_SYS_NAND_PAGE_COUNT	(CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE) -						/* NAND chip page count	      */ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	0		/* Location of bad block marker*/ -#define CONFIG_SYS_NAND_5_ADDR_CYCLE			/* Fifth addr used (<=128MB)  */ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	64 -#define CONFIG_SYS_NAND_ECCPOS		{40, 41, 42, 43, 44, 45, 46, 47, \ -				 48, 49, 50, 51, 52, 53, 54, 55, \ -				 56, 57, 58, 59, 60, 61, 62, 63} - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/canyonlands/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif  /*-----------------------------------------------------------------------   * FLASH related @@ -235,7 +166,6 @@  /*------------------------------------------------------------------------------   * DDR SDRAM   *----------------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT)  #if !defined(CONFIG_ARCHES)  /*   * NAND booting U-Boot version uses a fixed initialization, since the whole @@ -308,7 +238,6 @@  #define CONFIG_SYS_SDRAM0_MMODE		0x00000432  #define CONFIG_SYS_SDRAM0_MEMODE	0x00000004  #endif	/* !defined(CONFIG_ARCHES) */ -#endif	/* !defined(CONFIG_NAND_U_BOOT) */  #define CONFIG_SYS_MBYTES_SDRAM	512	/* 512MB			*/ @@ -421,7 +350,6 @@  	CONFIG_AMCC_DEF_ENV						\  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"kernel_addr=fc000000\0"					\  	"fdt_addr=fc1e0000\0"						\  	"ramdisk_addr=fc200000\0"					\ @@ -556,15 +484,6 @@   * 0xfe00.0000 -> 4.ce00.0000   */ -#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) -/* Memory Bank 3 (NOR-FLASH) initialization					*/ -#define CONFIG_SYS_EBC_PB3AP		0x10055e00 -#define CONFIG_SYS_EBC_PB3CR		(CONFIG_SYS_BOOT_BASE_ADDR | 0x9a000) - -/* Memory Bank 0 (NAND-FLASH) initialization						*/ -#define CONFIG_SYS_EBC_PB0AP		0x018003c0 -#define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/ -#else  /* Memory Bank 0 (NOR-FLASH) initialization					*/  #define CONFIG_SYS_EBC_PB0AP		0x10055e00  #define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_BOOT_BASE_ADDR | 0x9a000) @@ -574,7 +493,6 @@  #define CONFIG_SYS_EBC_PB3AP		0x018003c0  #define CONFIG_SYS_EBC_PB3CR		(CONFIG_SYS_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/  #endif -#endif	/*defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) */  #if !defined(CONFIG_ARCHES)  /* Memory Bank 2 (CPLD) initialization						*/ diff --git a/include/configs/cm-bf527.h b/include/configs/cm-bf527.h index b15a1eb7a..384d8715a 100644 --- a/include/configs/cm-bf527.h +++ b/include/configs/cm-bf527.h @@ -128,7 +128,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0" - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf533.h b/include/configs/cm-bf533.h index e2b954c06..8bd499a7d 100644 --- a/include/configs/cm-bf533.h +++ b/include/configs/cm-bf533.h @@ -97,7 +97,7 @@  #define CONFIG_UART_CONSOLE	0  #define CONFIG_BOOTCOMMAND	"run flashboot"  #define FLASHBOOT_ENV_SETTINGS	"flashboot=bootm 0x20040000\0" - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf537e.h b/include/configs/cm-bf537e.h index 2838012e2..67cf801a3 100644 --- a/include/configs/cm-bf537e.h +++ b/include/configs/cm-bf537e.h @@ -146,6 +146,7 @@  	"flashboot=flread 20040000 1000000 3c0000;" \  	"bootm 0x1000000\0"  #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf537u.h b/include/configs/cm-bf537u.h index da4cc6718..34ce75bae 100644 --- a/include/configs/cm-bf537u.h +++ b/include/configs/cm-bf537u.h @@ -143,7 +143,7 @@  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0"  #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf548.h b/include/configs/cm-bf548.h index 7f27eda41..346e27f3e 100644 --- a/include/configs/cm-bf548.h +++ b/include/configs/cm-bf548.h @@ -117,6 +117,7 @@  #define CONFIG_UART_CONSOLE	1  #define CONFIG_BOOTCOMMAND	"run flashboot"  #define FLASHBOOT_ENV_SETTINGS	"flashboot=bootm 0x20040000\0" +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  #define CONFIG_ADI_GPIO2 diff --git a/include/configs/cm-bf561.h b/include/configs/cm-bf561.h index 93e3c8677..5265e5f6e 100644 --- a/include/configs/cm-bf561.h +++ b/include/configs/cm-bf561.h @@ -99,7 +99,7 @@  #define CONFIG_UART_CONSOLE	0  #define CONFIG_BOOTCOMMAND	"run flashboot"  #define FLASHBOOT_ENV_SETTINGS	"flashboot=bootm 0x20040000\0" - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/dbau1x00.h b/include/configs/dbau1x00.h index da4ff8e61..e0bf3dc61 100644 --- a/include/configs/dbau1x00.h +++ b/include/configs/dbau1x00.h @@ -12,7 +12,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS32		1  /* MIPS32 CPU core	*/  #define CONFIG_DBAU1X00		1  #define CONFIG_SOC_AU1X00	1  /* alchemy series cpu */ diff --git a/include/configs/ep8260.h b/include/configs/ep8260.h index 56b4ecf27..9cd3054a1 100644 --- a/include/configs/ep8260.h +++ b/include/configs/ep8260.h @@ -325,7 +325,6 @@   *   *****************************************************************************/ -#define CONFIG_MPC8260          1       /* This is an MPC8260 CPU   */  #define CONFIG_EP8260           11      /* on an Embedded Planet EP8260 Board, Rev. 11 */  #define CONFIG_BOARD_EARLY_INIT_F 1	    /* Call board_early_init_f	*/ diff --git a/include/configs/ep82xxm.h b/include/configs/ep82xxm.h index 18e4dafc5..cf31f0f14 100644 --- a/include/configs/ep82xxm.h +++ b/include/configs/ep82xxm.h @@ -9,7 +9,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MPC8260  #define CPU_ID_STR		"MPC8270"  #define CONFIG_EP82XXM	/* Embedded Planet EP82xxM H 1.0 board */ diff --git a/include/configs/gw8260.h b/include/configs/gw8260.h index 3416fe3ce..262c9e9e9 100644 --- a/include/configs/gw8260.h +++ b/include/configs/gw8260.h @@ -325,7 +325,6 @@   *   *****************************************************************************/ -#define CONFIG_MPC8260      1   /* This is an MPC8260 CPU   */  #define CONFIG_GW8260       1   /* on an GW8260 Board  */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/hymod.h b/include/configs/hymod.h index cc250649e..c973365e1 100644 --- a/include/configs/hymod.h +++ b/include/configs/hymod.h @@ -17,7 +17,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU	*/  #define CONFIG_HYMOD		1	/* ...on a Hymod board		*/  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/incaip.h b/include/configs/incaip.h index 7d2715d09..e11d1843b 100644 --- a/include/configs/incaip.h +++ b/include/configs/incaip.h @@ -12,7 +12,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS32		1	/* MIPS 4Kc CPU core	*/  #define CONFIG_INCA_IP		1	/* on a INCA-IP Board	*/  #define CONFIG_XWAY_SWAP_BYTES diff --git a/include/configs/ip04.h b/include/configs/ip04.h index d36ae4366..0efa2b7b9 100644 --- a/include/configs/ip04.h +++ b/include/configs/ip04.h @@ -132,6 +132,7 @@  #define CONFIG_BAUDRATE		115200  #define CONFIG_MISC_INIT_R	/* needed for MAC address */  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  #undef CONFIG_SHOW_BOOT_PROGRESS  /* Enable this if bootretry required; currently it's disabled */ diff --git a/include/configs/kilauea.h b/include/configs/kilauea.h index 0695d2d37..1990b2df1 100644 --- a/include/configs/kilauea.h +++ b/include/configs/kilauea.h @@ -118,12 +118,7 @@  /*-----------------------------------------------------------------------   * Environment   *----------------------------------------------------------------------*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define CONFIG_ENV_IS_IN_FLASH     1	/* use FLASH for environment vars	*/ -#else -#define CONFIG_ENV_IS_IN_NAND	1	/* use NAND for environment vars	*/ -#define CONFIG_ENV_IS_EMBEDDED	1	/* use embedded environment */ -#endif  /*-----------------------------------------------------------------------   * FLASH related @@ -151,61 +146,6 @@  #define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SIZE)  #endif /* CONFIG_ENV_IS_IN_FLASH */ -/* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 405EX the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from location 0xfffff000...0xffffffff the - * NAND controller cannot be accessed since it is attached to CS0 too. - */ -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size			*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	0x00800000	/* Copy SPL here		*/ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr	*/ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr	*/ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(16 << 10)	/* Offset to RAM U-Boot image	*/ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(384 << 10)	/* Size of RAM U-Boot image	*/ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	512		/* NAND chip page size		*/ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(16 << 10)	/* NAND chip block size		*/ -#define CONFIG_SYS_NAND_PAGE_COUNT	32		/* NAND chip page count		*/ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	5		/* Location of bad block marker	*/ -#define CONFIG_SYS_NAND_4_ADDR_CYCLE	1		/* Fourth addr used (>32MB)	*/ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	16 -#define CONFIG_SYS_NAND_ECCPOS		{0, 1, 2, 3, 6, 7} - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/sequoia/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif -  /*-----------------------------------------------------------------------   * NAND FLASH   *----------------------------------------------------------------------*/ @@ -230,11 +170,9 @@   *   * DDR Autocalibration Method_B is the default.   */ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)  #define	CONFIG_PPC4xx_DDR_AUTOCALIBRATION	/* IBM DDR autocalibration */  #define	DEBUG_PPC4xx_DDR_AUTOCALIBRATION	/* dynamic DDR autocal debug */  #undef	CONFIG_PPC4xx_DDR_METHOD_A -#endif  #define	CONFIG_SYS_SDRAM0_MB0CF_BASE	((  0 << 20) + CONFIG_SYS_SDRAM_BASE) @@ -416,7 +354,6 @@  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_PPC_OLD					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"logversion=2\0"						\  	"kernel_addr=fc000000\0"					\  	"fdt_addr=fc1e0000\0"						\ @@ -434,16 +371,7 @@  #define CONFIG_CMD_PCI  #define CONFIG_CMD_SNTP -/* - * Don't run the memory POST on the NAND-booting version. It will - * overwrite part of the U-Boot image which is already loaded from NAND - * to SDRAM. - */ -#if defined(CONFIG_NAND_U_BOOT) -#define CONFIG_SYS_POST_MEMORY_ON	0 -#else  #define CONFIG_SYS_POST_MEMORY_ON	CONFIG_SYS_POST_MEMORY -#endif  /* POST support */  #define CONFIG_POST		(CONFIG_SYS_POST_CACHE		| \ @@ -494,18 +422,6 @@  /*-----------------------------------------------------------------------   * External Bus Controller (EBC) Setup   *----------------------------------------------------------------------*/ -#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) -/* booting from NAND, so NAND chips select has to be on CS 0 */ -#define CONFIG_SYS_NAND_CS		0		/* NAND chip connected to CSx	*/ - -/* Memory Bank 1 (NOR-FLASH) initialization					*/ -#define CONFIG_SYS_EBC_PB1AP		0x05806500 -#define CONFIG_SYS_EBC_PB1CR           0xFC0DA000  /* BAS=0xFC0,BS=64MB,BU=R/W,BW=16bit*/ - -/* Memory Bank 0 (NAND-FLASH) initialization					*/ -#define CONFIG_SYS_EBC_PB0AP		0x018003c0 -#define CONFIG_SYS_EBC_PB0CR		(CONFIG_SYS_NAND_ADDR | 0x1e000) -#else  #define CONFIG_SYS_NAND_CS		1		/* NAND chip connected to CSx	*/  /* Memory Bank 0 (NOR-FLASH) initialization					*/ @@ -515,7 +431,6 @@  /* Memory Bank 1 (NAND-FLASH) initialization					*/  #define CONFIG_SYS_EBC_PB1AP		0x018003c0  #define CONFIG_SYS_EBC_PB1CR		(CONFIG_SYS_NAND_ADDR | 0x1e000) -#endif  /* Memory Bank 2 (FPGA) initialization					*/  #define CONFIG_SYS_EBC_PB2AP		(EBC_BXAP_BME_ENABLED |		\ diff --git a/include/configs/muas3001.h b/include/configs/muas3001.h index 87c06389b..7343c947c 100644 --- a/include/configs/muas3001.h +++ b/include/configs/muas3001.h @@ -13,8 +13,6 @@   * (easy to change)   */ -#define CONFIG_8260		1 -#define CONFIG_MPC8260		1  #define CONFIG_MUAS3001		1  #define	CONFIG_SYS_TEXT_BASE	0xFF000000 diff --git a/include/configs/pb1x00.h b/include/configs/pb1x00.h index e929b23f2..f92496571 100644 --- a/include/configs/pb1x00.h +++ b/include/configs/pb1x00.h @@ -12,7 +12,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS32		1  /* MIPS32 CPU core	*/  #define CONFIG_PB1X00		1  #define CONFIG_SOC_AU1X00	1  /* alchemy series cpu */ diff --git a/include/configs/ppmc8260.h b/include/configs/ppmc8260.h index 760dcaca4..5dcd9cc0d 100644 --- a/include/configs/ppmc8260.h +++ b/include/configs/ppmc8260.h @@ -293,7 +293,6 @@   *   *****************************************************************************/ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU   */  #define CONFIG_PPMC8260		1	/* on an Wind River PPMC8260 Board  */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/pr1.h b/include/configs/pr1.h index 03d426958..e96ed4b4f 100644 --- a/include/configs/pr1.h +++ b/include/configs/pr1.h @@ -135,7 +135,7 @@  #define CONFIG_BOOTCOMMAND	"run nandboot"  #define CONFIG_BOOTDELAY	2  #define CONFIG_LOADADDR		0x2000000 - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h index dd3babb50..98ed8bc97 100644 --- a/include/configs/qemu-mips.h +++ b/include/configs/qemu-mips.h @@ -12,7 +12,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS32			/* MIPS32 CPU core */  #define CONFIG_QEMU_MIPS  #define CONFIG_MISC_INIT_R diff --git a/include/configs/qemu-mips64.h b/include/configs/qemu-mips64.h index a1422fca1..e8f5a4c9e 100644 --- a/include/configs/qemu-mips64.h +++ b/include/configs/qemu-mips64.h @@ -12,7 +12,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS64			/* MIPS64 CPU core */  #define CONFIG_QEMU_MIPS  #define CONFIG_MISC_INIT_R diff --git a/include/configs/redwood.h b/include/configs/redwood.h index 84d1e584a..622b7c79e 100644 --- a/include/configs/redwood.h +++ b/include/configs/redwood.h @@ -120,7 +120,6 @@  	CONFIG_AMCC_DEF_ENV						\  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"kernel_addr=fc000000\0"					\  	"fdt_addr=fc1e0000\0"						\  	"ramdisk_addr=fc200000\0"					\ diff --git a/include/configs/rsdproto.h b/include/configs/rsdproto.h index 92318c339..06211380d 100644 --- a/include/configs/rsdproto.h +++ b/include/configs/rsdproto.h @@ -19,7 +19,6 @@   * (easy to change)   */ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU	*/  #define CONFIG_RSD_PROTO	1	/* on a R&S Protocol Board      */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/sacsng.h b/include/configs/sacsng.h index 3750ad2c3..0a694fb1b 100644 --- a/include/configs/sacsng.h +++ b/include/configs/sacsng.h @@ -524,7 +524,6 @@   *   *****************************************************************************/ -#define CONFIG_MPC8260		1	/* This is an MPC8260 CPU   */  #define CONFIG_SACSng		1	/* munged for the SACSng */  #define CONFIG_CPM2		1	/* Has a CPM2 */ diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h index 0e21ee3dc..b6a5e6a59 100644 --- a/include/configs/sequoia.h +++ b/include/configs/sequoia.h @@ -97,10 +97,7 @@  /*   * Environment   */ -#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) -#define CONFIG_ENV_IS_IN_NAND		/* use NAND for environ vars	*/ -#define CONFIG_ENV_IS_EMBEDDED		/* use embedded environment	*/ -#elif defined(CONFIG_SYS_RAMBOOT) +#if defined(CONFIG_SYS_RAMBOOT)  #define CONFIG_ENV_IS_NOWHERE		/* Store env in memory only	*/  #define CONFIG_ENV_SIZE		(8 << 10)  /* @@ -149,67 +146,10 @@  #endif /* CONFIG_CMD_FLASH */  /* - * IPL (Initial Program Loader, integrated inside CPU) - * Will load first 4k from NAND (SPL) into cache and execute it from there. - * - * SPL (Secondary Program Loader) - * Will load special U-Boot version (NUB) from NAND and execute it. This SPL - * has to fit into 4kByte. It sets up the CPU and configures the SDRAM - * controller and the NAND controller so that the special U-Boot image can be - * loaded from NAND to SDRAM. - * - * NUB (NAND U-Boot) - * This NAND U-Boot (NUB) is a special U-Boot version which can be started - * from RAM. Therefore it mustn't (re-)configure the SDRAM controller. - * - * On 440EPx the SPL is copied to SDRAM before the NAND controller is - * set up. While still running from cache, I experienced problems accessing - * the NAND controller.	sr - 2006-08-25 - */ -#define CONFIG_SYS_NAND_BOOT_SPL_SRC	0xfffff000	/* SPL location		      */ -#define CONFIG_SYS_NAND_BOOT_SPL_SIZE	(4 << 10)	/* SPL size		      */ -#define CONFIG_SYS_NAND_BOOT_SPL_DST	(CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here  */ -#define CONFIG_SYS_NAND_U_BOOT_DST	0x01000000	/* Load NUB to this addr      */ -#define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST	/* Start NUB from     */ -							/*   this addr	      */ -#define CONFIG_SYS_NAND_BOOT_SPL_DELTA	(CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST) - -/* - * Define the partitioning of the NAND chip (only RAM U-Boot is needed here) - */ -#define CONFIG_SYS_NAND_U_BOOT_OFFS	(16 << 10)	/* Offset to RAM U-Boot image */ -#define CONFIG_SYS_NAND_U_BOOT_SIZE	(512 << 10)	/* Size of RAM U-Boot image   */ - -/* - * Now the NAND chip has to be defined (no autodetection used!) - */ -#define CONFIG_SYS_NAND_PAGE_SIZE	512		/* NAND chip page size	      */ -#define CONFIG_SYS_NAND_BLOCK_SIZE	(16 << 10)	/* NAND chip block size	      */ -#define CONFIG_SYS_NAND_PAGE_COUNT	32		/* NAND chip page count	      */ -#define CONFIG_SYS_NAND_BAD_BLOCK_POS	5	      /* Location of bad block marker */ -#undef CONFIG_SYS_NAND_4_ADDR_CYCLE		      /* No fourth addr used (<=32MB) */ - -#define CONFIG_SYS_NAND_ECCSIZE	256 -#define CONFIG_SYS_NAND_ECCBYTES	3 -#define CONFIG_SYS_NAND_OOBSIZE	16 -#define CONFIG_SYS_NAND_ECCPOS		{0, 1, 2, 3, 6, 7} - -#ifdef CONFIG_ENV_IS_IN_NAND -/* - * For NAND booting the environment is embedded in the U-Boot image. Please take - * look at the file board/amcc/sequoia/u-boot-nand.lds for details. - */ -#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE -#define CONFIG_ENV_OFFSET		(CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE) -#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#endif - -/*   * DDR SDRAM   */  #define CONFIG_SYS_MBYTES_SDRAM        (256)	/* 256MB			*/ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) && \ -    !defined(CONFIG_SYS_RAMBOOT) +#if !defined(CONFIG_SYS_RAMBOOT)  #define CONFIG_DDR_DATA_EYE		/* use DDR2 optimization	*/  #endif  #define CONFIG_SYS_MEM_TOP_HIDE	(4 << 10) /* don't use last 4kbytes	*/ @@ -247,7 +187,6 @@  	CONFIG_AMCC_DEF_ENV_POWERPC					\  	CONFIG_AMCC_DEF_ENV_PPC_OLD					\  	CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	CONFIG_AMCC_DEF_ENV_NAND_UPD					\  	"kernel_addr=FC000000\0"					\  	"ramdisk_addr=FC180000\0"					\  	"" @@ -321,7 +260,7 @@   * overwrite part of the U-Boot image which is already loaded from NAND   * to SDRAM.   */ -#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_SYS_RAMBOOT) +#if defined(CONFIG_SYS_RAMBOOT)  #define CONFIG_SYS_POST_MEMORY_ON	0  #else  #define CONFIG_SYS_POST_MEMORY_ON	CONFIG_SYS_POST_MEMORY @@ -370,8 +309,7 @@  /*   * On Sequoia CS0 and CS3 are switched when configuring for NAND booting   */ -#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) && \ -    !defined(CONFIG_SYS_RAMBOOT) +#if !defined(CONFIG_SYS_RAMBOOT)  #define CONFIG_SYS_NAND_CS		3	/* NAND chip connected to CSx	*/  /* Memory Bank 0 (NOR-FLASH) initialization				*/  #define CONFIG_SYS_EBC_PB0AP		0x03017200 diff --git a/include/configs/tcm-bf518.h b/include/configs/tcm-bf518.h index 241f21051..1ff34d517 100644 --- a/include/configs/tcm-bf518.h +++ b/include/configs/tcm-bf518.h @@ -116,7 +116,7 @@  #define CONFIG_UART_CONSOLE	0  #define CONFIG_BOOTCOMMAND	"run flashboot"  #define FLASHBOOT_ENV_SETTINGS	"flashboot=bootm 0x20040000\0" - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/tcm-bf537.h b/include/configs/tcm-bf537.h index 58bcdc8f4..370d97ffe 100644 --- a/include/configs/tcm-bf537.h +++ b/include/configs/tcm-bf537.h @@ -145,7 +145,7 @@  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0"  #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024)) - +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index 0b102aa28..9247aefdb 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -151,6 +151,10 @@  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_GPIO_SUPPORT +#ifdef CONFIG_SPL_BUILD +# define CONFIG_USE_PRIVATE_LIBGCC +#endif +  #define CONFIG_SYS_GENERIC_BOARD  /* Misc utility code */ diff --git a/include/configs/vct.h b/include/configs/vct.h index 99831169a..5ab4de327 100644 --- a/include/configs/vct.h +++ b/include/configs/vct.h @@ -25,7 +25,6 @@  #ifndef __CONFIG_H  #define __CONFIG_H -#define CONFIG_MIPS32				/* MIPS 4Kc CPU core	*/  #define CPU_CLOCK_RATE			324000000 /* Clock for the MIPS core */  #define CONFIG_SYS_MIPS_TIMER_FREQ	(CPU_CLOCK_RATE / 2) diff --git a/include/os.h b/include/os.h index d6d6e5794..fa4e39fc7 100644 --- a/include/os.h +++ b/include/os.h @@ -84,6 +84,14 @@ int os_open(const char *pathname, int flags);  int os_close(int fd);  /** + * Access to the OS unlink() system call + * + * \param pathname Path of file to delete + * \return 0 for success, other for error + */ +int os_unlink(const char *pathname); + +/**   * Access to the OS exit() system call   *   * This exits with the supplied return code, which should be 0 to indicate diff --git a/include/ppc_asm.tmpl b/include/ppc_asm.tmpl index 331b66645..5fcef9ceb 100644 --- a/include/ppc_asm.tmpl +++ b/include/ppc_asm.tmpl @@ -135,7 +135,7 @@  #define PLPRCR	0x00000284 -#elif defined(CONFIG_8260) +#elif defined(CONFIG_MPC8260)  #define HID2		1011 diff --git a/include/spi_flash.h b/include/spi_flash.h index f79f0eacc..1a1128622 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -52,7 +52,7 @@ enum spi_dual_flash {   * @sector_size:	Sector size of this device   * @nr_sectors:		No.of sectors on this device   * @e_rd_cmd:		Enum list for read commands - * @flags:		Importent param, for flash specific behaviour + * @flags:		Important param, for flash specific behaviour   */  struct spi_flash_params {  	const char *name; @@ -88,11 +88,11 @@ extern const struct spi_flash_params spi_flash_params_table[];   * @memory_map:		Address of read-only SPI flash access   * @read:		Flash read ops: Read len bytes at offset into buf   *			Supported cmds: Fast Array Read - * @write:		Flash write ops: Write len bytes from buf into offeset + * @write:		Flash write ops: Write len bytes from buf into offset   *			Supported cmds: Page Program   * @erase:		Flash erase ops: Erase len bytes from offset   *			Supported cmds: Sector erase 4K, 32K, 64K - * return 0 - Sucess, 1 - Failure + * return 0 - Success, 1 - Failure   */  struct spi_flash {  	struct spi_slave *spi; |