diff options
Diffstat (limited to 'include/configs/spc1920.h')
| -rw-r--r-- | include/configs/spc1920.h | 170 | 
1 files changed, 85 insertions, 85 deletions
| diff --git a/include/configs/spc1920.h b/include/configs/spc1920.h index 659484995..1fe2a04ce 100644 --- a/include/configs/spc1920.h +++ b/include/configs/spc1920.h @@ -40,14 +40,14 @@  #define CONFIG_BAUDRATE		19200  /* use PLD CLK4 instead of brg */ -#define CFG_SPC1920_SMC1_CLK4 +#define CONFIG_SYS_SPC1920_SMC1_CLK4  #define CONFIG_8xx_OSCLK		10000000 /* 10 MHz oscillator on EXTCLK  */  #define CONFIG_8xx_CPUCLK_DEFAULT	50000000 -#define CFG_8xx_CPUCLK_MIN		40000000 -#define CFG_8xx_CPUCLK_MAX		133000000 +#define CONFIG_SYS_8xx_CPUCLK_MIN		40000000 +#define CONFIG_SYS_8xx_CPUCLK_MAX		133000000 -#define CFG_RESET_ADDRESS		0xC0000000 +#define CONFIG_SYS_RESET_ADDRESS		0xC0000000  #define CONFIG_BOARD_EARLY_INIT_F  #define CONFIG_LAST_STAGE_INIT @@ -105,26 +105,26 @@  /*   * Miscellaneous configurable options   */ -#define	CFG_LONGHELP				/* undef to save memory		*/ -#define	CFG_PROMPT		"=>"		/* Monitor Command Prompt	*/ -#define CFG_HUSH_PARSER -#define CFG_PROMPT_HUSH_PS2	"> " +#define	CONFIG_SYS_LONGHELP				/* undef to save memory		*/ +#define	CONFIG_SYS_PROMPT		"=>"		/* Monitor Command Prompt	*/ +#define CONFIG_SYS_HUSH_PARSER +#define CONFIG_SYS_PROMPT_HUSH_PS2	"> "  #if defined(CONFIG_CMD_KGDB) -#define	CFG_CBSIZE		1024		/* Console I/O Buffer Size	*/ +#define	CONFIG_SYS_CBSIZE		1024		/* Console I/O Buffer Size	*/  #else -#define	CFG_CBSIZE		256		/* Console I/O Buffer Size	*/ +#define	CONFIG_SYS_CBSIZE		256		/* Console I/O Buffer Size	*/  #endif -#define	CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* Print Buffer Size	*/ -#define	CFG_MAXARGS		16		/* max number of command args	*/ -#define CFG_BARGSIZE		CFG_CBSIZE	/* Boot Argument Buffer Size	*/ +#define	CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size	*/ +#define	CONFIG_SYS_MAXARGS		16		/* max number of command args	*/ +#define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE	/* Boot Argument Buffer Size	*/ -#define CFG_LOAD_ADDR		0x00100000 +#define CONFIG_SYS_LOAD_ADDR		0x00100000 -#define	CFG_HZ		        1000	/* decrementer freq: 1 ms ticks */ +#define	CONFIG_SYS_HZ		        1000	/* decrementer freq: 1 ms ticks */ -#define CFG_BAUDRATE_TABLE	{ 2400, 4800, 9600, 19200 } +#define CONFIG_SYS_BAUDRATE_TABLE	{ 2400, 4800, 9600, 19200 }  /*   * Low Level Configuration Settings @@ -135,42 +135,42 @@  /*-----------------------------------------------------------------------   * Internal Memory Mapped Register   */ -#define CFG_IMMR		0xF0000000 +#define CONFIG_SYS_IMMR		0xF0000000  /*-----------------------------------------------------------------------   * Definitions for initial stack pointer and data area (in DPRAM)   */ -#define CFG_INIT_RAM_ADDR	CFG_IMMR -#define	CFG_INIT_RAM_END	0x2F00	/* End of used area in DPRAM	*/ -#define	CFG_GBL_DATA_SIZE	64  /* size in bytes reserved for initial data */ -#define CFG_GBL_DATA_OFFSET	(CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) -#define	CFG_INIT_SP_OFFSET	CFG_GBL_DATA_OFFSET +#define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_IMMR +#define	CONFIG_SYS_INIT_RAM_END	0x2F00	/* End of used area in DPRAM	*/ +#define	CONFIG_SYS_GBL_DATA_SIZE	64  /* size in bytes reserved for initial data */ +#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) +#define	CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET  /*-----------------------------------------------------------------------   * Start addresses for the final memory configuration   * (Set up by the startup code) - * Please note that CFG_SDRAM_BASE _must_ start at 0 + * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0   */ -#define CFG_MEMTEST_START	0x0400000	/* memtest works on	*/ -#define CFG_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/ +#define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/  /*   * For booting Linux, the board info and command line data   * have to be in the first 8 MB of memory, since this is   * the maximum mapped by the Linux kernel during initialization.   */ -#define	CFG_BOOTMAPSZ		(8 << 20)	/* Initial Memory map for Linux	*/ +#define	CONFIG_SYS_BOOTMAPSZ		(8 << 20)	/* Initial Memory map for Linux	*/ -#define CFG_MONITOR_BASE	TEXT_BASE -#define	CFG_MONITOR_LEN		(256 << 10)	/* Reserve 256 KB for monitor	*/ +#define CONFIG_SYS_MONITOR_BASE	TEXT_BASE +#define	CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 256 KB for monitor	*/  #ifdef CONFIG_BZIP2 -#define	CFG_MALLOC_LEN		(2500 << 10)	/* Reserve ~2.5 MB for malloc()	*/ +#define	CONFIG_SYS_MALLOC_LEN		(2500 << 10)	/* Reserve ~2.5 MB for malloc()	*/  #else -#define	CFG_MALLOC_LEN		(384 << 10)	/* Reserve 384 kB for malloc()	*/ +#define	CONFIG_SYS_MALLOC_LEN		(384 << 10)	/* Reserve 384 kB for malloc()	*/  #endif /* CONFIG_BZIP2 */ -#define	CFG_ALLOC_DPRAM		1	/* use allocation routines	*/ +#define	CONFIG_SYS_ALLOC_DPRAM		1	/* use allocation routines	*/  /*   * Flash @@ -178,28 +178,28 @@  /*-----------------------------------------------------------------------   * Flash organisation   */ -#define CFG_FLASH_BASE          0xFE000000 -#define CFG_FLASH_CFI                           /* The flash is CFI compatible  */ +#define CONFIG_SYS_FLASH_BASE          0xFE000000 +#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */  #define CONFIG_FLASH_CFI_DRIVER                    /* Use common CFI driver        */ -#define CFG_MAX_FLASH_BANKS     1               /* Max number of flash banks    */ -#define CFG_MAX_FLASH_SECT      128             /* Max num of sects on one chip */ +#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of flash banks    */ +#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max num of sects on one chip */  /* Environment is in flash */  #define CONFIG_ENV_IS_IN_FLASH  #define CONFIG_ENV_SECT_SIZE       0x40000         /* We use one complete sector   */ -#define CONFIG_ENV_ADDR		(CFG_MONITOR_BASE + CFG_MONITOR_LEN) +#define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)  #define CONFIG_ENV_OVERWRITE  /*-----------------------------------------------------------------------   * Cache Configuration   */ -#define CFG_CACHELINE_SIZE	16	/* For all MPC8xx CPUs			*/ -#define CFG_CACHELINE_SHIFT	4	/* log base 2 of the above value	*/ +#define CONFIG_SYS_CACHELINE_SIZE	16	/* For all MPC8xx CPUs			*/ +#define CONFIG_SYS_CACHELINE_SHIFT	4	/* log base 2 of the above value	*/  #ifdef CONFIG_CMD_DATE  # define CONFIG_RTC_DS3231 -# define CFG_I2C_RTC_ADDR      0x68 +# define CONFIG_SYS_I2C_RTC_ADDR      0x68  #endif  /*----------------------------------------------------------------------- @@ -210,8 +210,8 @@  #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */  #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */ -#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */ -#define CFG_I2C_SLAVE          0xFE +#define CONFIG_SYS_I2C_SPEED          93000   /* 93 kHz is supposed to work   */ +#define CONFIG_SYS_I2C_SLAVE          0xFE  #ifdef CONFIG_SOFT_I2C  /* @@ -239,10 +239,10 @@   * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze   */  #if defined(CONFIG_WATCHDOG) -#define CFG_SYPCR	(SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \ +#define CONFIG_SYS_SYPCR	(SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \  			 SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)  #else -#define CFG_SYPCR	(SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP) +#define CONFIG_SYS_SYPCR	(SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)  #endif  /*----------------------------------------------------------------------- @@ -250,21 +250,21 @@   *-----------------------------------------------------------------------   * PCMCIA config., multi-function pin tri-state   */ -#define CFG_SIUMCR      (SIUMCR_FRC) +#define CONFIG_SYS_SIUMCR      (SIUMCR_FRC)  /*-----------------------------------------------------------------------   * TBSCR - Time Base Status and Control				11-26   *-----------------------------------------------------------------------   * Clear Reference Interrupt Status, Timebase freezing enabled   */ -#define CFG_TBSCR	(TBSCR_REFA | TBSCR_REFB | TBSCR_TBE) +#define CONFIG_SYS_TBSCR	(TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)  /*-----------------------------------------------------------------------   * PISCR - Periodic Interrupt Status and Control		11-31   *-----------------------------------------------------------------------   * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled   */ -#define CFG_PISCR	(PISCR_PS | PISCR_PITF) +#define CONFIG_SYS_PISCR	(PISCR_PS | PISCR_PITF)  /*-----------------------------------------------------------------------   * SCCR - System Clock and reset Control Register		15-27 @@ -273,8 +273,8 @@   * power management and some other internal clocks   */  #define SCCR_MASK	SCCR_EBDF11 -/* #define CFG_SCCR	SCCR_TBS */ -#define CFG_SCCR	(SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \ +/* #define CONFIG_SYS_SCCR	SCCR_TBS */ +#define CONFIG_SYS_SCCR	(SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \  			 SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \  			 SCCR_DFALCD00) @@ -283,7 +283,7 @@   *-----------------------------------------------------------------------   * Set to zero to prevent the processor from entering debug mode   */ -#define CFG_DER		 0 +#define CONFIG_SYS_DER		 0  /* Because of the way the 860 starts up and assigns CS0 the entire @@ -299,51 +299,51 @@   */  /* BR0 and OR0 (FLASH) */ -#define FLASH_BASE0_PRELIM	CFG_FLASH_BASE	/* FLASH bank #0 */ +#define FLASH_BASE0_PRELIM	CONFIG_SYS_FLASH_BASE	/* FLASH bank #0 */  /* used to re-map FLASH both when starting from SRAM or FLASH:   * restrict access enough to keep SRAM working (if any)   * but not too much to meddle with FLASH accesses   */ -#define CFG_REMAP_OR_AM		0x80000000	/* OR addr mask */ -#define CFG_PRELIM_OR_AM	0xE0000000	/* OR addr mask */ +#define CONFIG_SYS_REMAP_OR_AM		0x80000000	/* OR addr mask */ +#define CONFIG_SYS_PRELIM_OR_AM	0xE0000000	/* OR addr mask */  /*   * FLASH timing:   */ -#define CFG_OR_TIMING_FLASH	(OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \ +#define CONFIG_SYS_OR_TIMING_FLASH	(OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \  				 OR_SCY_6_CLK | OR_EHTR | OR_BI) -#define CFG_OR0_REMAP	(CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH) -#define CFG_OR0_PRELIM	(CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH) -#define CFG_BR0_PRELIM	((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V ) +#define CONFIG_SYS_OR0_REMAP	(CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH) +#define CONFIG_SYS_OR0_PRELIM	(CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH) +#define CONFIG_SYS_BR0_PRELIM	((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )  /*   * SDRAM CS1 UPMB   */ -#define	CFG_SDRAM_BASE	0x00000000 -#define CFG_SDRAM_BASE_PRELIM CFG_SDRAM_BASE +#define	CONFIG_SYS_SDRAM_BASE	0x00000000 +#define CONFIG_SYS_SDRAM_BASE_PRELIM CONFIG_SYS_SDRAM_BASE  #define SDRAM_MAX_SIZE	0x4000000 /* max 64 MB */ -#define CFG_PRELIM_OR1_AM	0xF0000000 -/* #define CFG_OR1_TIMING  OR_CSNT_SAM/\*  | OR_G5LS /\\* *\\/ *\/ */ +#define CONFIG_SYS_PRELIM_OR1_AM	0xF0000000 +/* #define CONFIG_SYS_OR1_TIMING  OR_CSNT_SAM/\*  | OR_G5LS /\\* *\\/ *\/ */  #define SDRAM_TIMING	OR_SCY_0_CLK	/* SDRAM-Timing */ -#define CFG_OR1_PRELIM	(CFG_PRELIM_OR1_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING) -#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V) +#define CONFIG_SYS_OR1_PRELIM	(CONFIG_SYS_PRELIM_OR1_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING) +#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V) -/* #define CFG_OR1_FINAL   ((CFG_OR1_AM & OR_AM_MSK) | CFG_OR1_TIMING) */ -/* #define CFG_BR1_FINAL   ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) */ +/* #define CONFIG_SYS_OR1_FINAL   ((CONFIG_SYS_OR1_AM & OR_AM_MSK) | CONFIG_SYS_OR1_TIMING) */ +/* #define CONFIG_SYS_BR1_FINAL   ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) */ -#define CFG_PTB_PER_CLK	((4096 * 16 * 1000) / (4 * 64)) -#define CFG_PTA_PER_CLK 195 -#define CFG_MBMR_PTB	195 -#define CFG_MPTPR	MPTPR_PTP_DIV16 -#define CFG_MAR		0x88 +#define CONFIG_SYS_PTB_PER_CLK	((4096 * 16 * 1000) / (4 * 64)) +#define CONFIG_SYS_PTA_PER_CLK 195 +#define CONFIG_SYS_MBMR_PTB	195 +#define CONFIG_SYS_MPTPR	MPTPR_PTP_DIV16 +#define CONFIG_SYS_MAR		0x88 -#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT) | \ +#define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT) | \  			MBMR_AMB_TYPE_0 | \  			MBMR_G0CLB_A10 | \  			MBMR_DSB_1_CYCL | \ @@ -351,7 +351,7 @@  			MBMR_WLFB_1X | \  			MBMR_TLFB_4X) /* 0x04804114 */ /* 0x10802114 */ -#define CFG_MBMR_9COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT) | \ +#define CONFIG_SYS_MBMR_9COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT) | \  			MBMR_AMB_TYPE_1 | \  			MBMR_G0CLB_A10 | \  			MBMR_DSB_1_CYCL | \ @@ -363,27 +363,27 @@  /*   * DSP Host Port Interface CS3   */ -#define CFG_SPC1920_HPI_BASE   0x90000000 -#define CFG_PRELIM_OR3_AM      0xF8000000 +#define CONFIG_SYS_SPC1920_HPI_BASE   0x90000000 +#define CONFIG_SYS_PRELIM_OR3_AM      0xF8000000 -#define CFG_OR3         (CFG_PRELIM_OR3_AM | \ +#define CONFIG_SYS_OR3         (CONFIG_SYS_PRELIM_OR3_AM | \  				       OR_G5LS | \  				       OR_SCY_0_CLK | \  				       OR_BI) -#define CFG_BR3 ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \ +#define CONFIG_SYS_BR3 ((CONFIG_SYS_SPC1920_HPI_BASE & BR_BA_MSK) | \  					       BR_MS_UPMA | \  					       BR_PS_16 | \  					       BR_V) -#define CFG_MAMR (MAMR_GPL_A4DIS | \ +#define CONFIG_SYS_MAMR (MAMR_GPL_A4DIS | \  		MAMR_RLFA_5X | \  		MAMR_WLFA_5X)  #define CONFIG_SPC1920_HPI_TEST  #ifdef CONFIG_SPC1920_HPI_TEST -#define HPI_REG(x)             (*((volatile u16 *) (CFG_SPC1920_HPI_BASE + x))) +#define HPI_REG(x)             (*((volatile u16 *) (CONFIG_SYS_SPC1920_HPI_BASE + x)))  #define HPI_HPIC_1             HPI_REG(0)  #define HPI_HPIC_2             HPI_REG(2)  #define HPI_HPIA_1             HPI_REG(0x2000008) @@ -397,30 +397,30 @@  /*   * Ramtron FM18L08 FRAM 32KB on CS4   */ -#define CFG_SPC1920_FRAM_BASE	0x80100000 -#define CFG_PRELIM_OR4_AM	0xffff8000 -#define CFG_OR4		(CFG_PRELIM_OR4_AM | \ +#define CONFIG_SYS_SPC1920_FRAM_BASE	0x80100000 +#define CONFIG_SYS_PRELIM_OR4_AM	0xffff8000 +#define CONFIG_SYS_OR4		(CONFIG_SYS_PRELIM_OR4_AM | \  					OR_ACS_DIV2 | \  					OR_BI | \  					OR_SCY_4_CLK | \  					OR_TRLX) -#define CFG_BR4 ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V) +#define CONFIG_SYS_BR4 ((CONFIG_SYS_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)  /*   * PLD CS5   */ -#define CFG_SPC1920_PLD_BASE	0x80000000 -#define CFG_PRELIM_OR5_AM	0xffff8000 +#define CONFIG_SYS_SPC1920_PLD_BASE	0x80000000 +#define CONFIG_SYS_PRELIM_OR5_AM	0xffff8000 -#define CFG_OR5_PRELIM		(CFG_PRELIM_OR5_AM | \ +#define CONFIG_SYS_OR5_PRELIM		(CONFIG_SYS_PRELIM_OR5_AM | \  					OR_CSNT_SAM | \  					OR_ACS_DIV1 | \  					OR_BI | \  					OR_SCY_0_CLK | \  					OR_TRLX) -#define CFG_BR5_PRELIM ((CFG_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V) +#define CONFIG_SYS_BR5_PRELIM ((CONFIG_SYS_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)  /*   * Internal Definitions |