mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ddr: altera: sdram: Clean up sdram_mmr_init_full() part 8
Fix the return value so that standard errno return values can be used. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
1e8a85f8c5
commit
99f453e953
2 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
unsigned long sdram_calculate_size(void);
|
unsigned long sdram_calculate_size(void);
|
||||||
unsigned sdram_mmr_init_full(unsigned int sdr_phy_reg);
|
int sdram_mmr_init_full(unsigned int sdr_phy_reg);
|
||||||
int sdram_calibration_full(void);
|
int sdram_calibration_full(void);
|
||||||
|
|
||||||
extern int sdram_calibration(void);
|
extern int sdram_calibration(void);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <asm/arch/fpga_manager.h>
|
#include <asm/arch/fpga_manager.h>
|
||||||
|
|
@ -621,7 +622,7 @@ static void sdr_load_regs(struct socfpga_sdram_config *cfg)
|
||||||
*
|
*
|
||||||
* Initialize the SDRAM MMR.
|
* Initialize the SDRAM MMR.
|
||||||
*/
|
*/
|
||||||
unsigned sdram_mmr_init_full(unsigned int sdr_phy_reg)
|
int sdram_mmr_init_full(unsigned int sdr_phy_reg)
|
||||||
{
|
{
|
||||||
unsigned long status = 0;
|
unsigned long status = 0;
|
||||||
struct socfpga_sdram_config *cfg = &sdram_config;
|
struct socfpga_sdram_config *cfg = &sdram_config;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue