mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-06 14:51:35 +00:00
powerpc/85xx: Declare fsl_ddr_set_memctl_regs in <asm/fsl_ddr_sdram.h>
Remove declerations of fsl_ddr_set_memctl_regs in board files with and place it into a common header. Based on patch from Poonam Aggrwal. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
5cfbc458d4
commit
f0f899432e
3 changed files with 2 additions and 6 deletions
|
@ -271,6 +271,8 @@ typedef struct memctl_options_s {
|
||||||
|
|
||||||
extern phys_size_t fsl_ddr_sdram(void);
|
extern phys_size_t fsl_ddr_sdram(void);
|
||||||
extern int fsl_use_spd(void);
|
extern int fsl_use_spd(void);
|
||||||
|
extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
|
||||||
|
unsigned int ctrl_num);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The 85xx boards have a common prototype for fixed_sdram so put the
|
* The 85xx boards have a common prototype for fixed_sdram so put the
|
||||||
|
|
|
@ -16,9 +16,6 @@
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
|
|
||||||
unsigned int ctrl_num);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fixed sdram init -- doesn't use serial presence detect.
|
* Fixed sdram init -- doesn't use serial presence detect.
|
||||||
|
|
|
@ -30,9 +30,6 @@
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
|
|
||||||
unsigned int ctrl_num);
|
|
||||||
|
|
||||||
#define CONFIG_SYS_DDR_CS0_BNDS 0x0000003F
|
#define CONFIG_SYS_DDR_CS0_BNDS 0x0000003F
|
||||||
#define CONFIG_SYS_DDR_CS0_CONFIG 0x80014202
|
#define CONFIG_SYS_DDR_CS0_CONFIG 0x80014202
|
||||||
#define CONFIG_SYS_DDR_CS0_CONFIG_2 0x00000000
|
#define CONFIG_SYS_DDR_CS0_CONFIG_2 0x00000000
|
||||||
|
|
Loading…
Add table
Reference in a new issue