diff options
| author | Peter Barada <peter.barada@logicpd.com> | 2012-11-13 07:40:28 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-12-10 08:54:02 -0700 | 
| commit | 8c4445d26633f43fcd04add3d6cdc3bc41d14841 (patch) | |
| tree | e2cab89ccff5955681182e71200a8d1053585528 /arch/arm/include/asm/arch-omap3/sys_proto.h | |
| parent | d7aff44a00e5de3de2ed18a3329edf5ff9d3aada (diff) | |
| download | olio-uboot-2014.01-8c4445d26633f43fcd04add3d6cdc3bc41d14841.tar.xz olio-uboot-2014.01-8c4445d26633f43fcd04add3d6cdc3bc41d14841.zip | |
Pass sdrc timing values through board_sdrc_timings structure
Instead of passing individual registers by value to board_get_mem_timings,
pass a board_mem_timings structure pointer for the board files to fill in.
Pass same structure pointer to write_sdrc_timings.  This saves about
90 bytes of space in SPL.
Signed-off-by: Peter Barada <peter.barada@logicpd.com>
Diffstat (limited to 'arch/arm/include/asm/arch-omap3/sys_proto.h')
| -rw-r--r-- | arch/arm/include/asm/arch-omap3/sys_proto.h | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/arch/arm/include/asm/arch-omap3/sys_proto.h b/arch/arm/include/asm/arch-omap3/sys_proto.h index 9e52b12aa..d60f2addb 100644 --- a/arch/arm/include/asm/arch-omap3/sys_proto.h +++ b/arch/arm/include/asm/arch-omap3/sys_proto.h @@ -32,6 +32,15 @@ struct emu_hal_params {  	u32 param1;  }; +/* Board SDRC timing values */ +struct board_sdrc_timings { +	u32 mcfg; +	u32 ctrla; +	u32 ctrlb; +	u32 rfr_ctrl; +	u32 mr; +}; +  void prcm_init(void);  void per_clocks_enable(void);  void ehci_clocks_enable(void); @@ -39,8 +48,8 @@ void ehci_clocks_enable(void);  void memif_init(void);  void sdrc_init(void);  void do_sdrc_init(u32, u32); -void get_board_mem_timings(u32 *mcfg, u32 *ctrla, u32 *ctrlb, u32 *rfr_ctrl, -		u32 *mr); + +void get_board_mem_timings(struct board_sdrc_timings *timings);  void identify_nand_chip(int *mfr, int *id);  void emif4_init(void);  void gpmc_init(void); |