diff options
| author | Tom Rini <trini@ti.com> | 2014-01-10 10:56:00 -0500 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2014-01-10 10:56:00 -0500 | 
| commit | 7f673c99c2d8d1aa21996c5b914f06d784b080ca (patch) | |
| tree | df68108a0bd7326dc6299b96853b769220c55470 /drivers/misc/fsl_iim.c | |
| parent | 8401bfa91ef57e331e2a3abdf768d41803bec88e (diff) | |
| parent | 10a147bc665367111920be657409a5d56d3c0590 (diff) | |
| download | olio-uboot-2014.01-7f673c99c2d8d1aa21996c5b914f06d784b080ca.tar.xz olio-uboot-2014.01-7f673c99c2d8d1aa21996c5b914f06d784b080ca.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Bringing in the MMC tree means that CONFIG_BOUNCE_BUFFER needed to be
added to include/configs/exynos5-dt.h now.
Conflicts:
	include/configs/exynos5250-dt.h
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/misc/fsl_iim.c')
| -rw-r--r-- | drivers/misc/fsl_iim.c | 13 | 
1 files changed, 12 insertions, 1 deletions
| diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c index 44ae7b102..36433a74f 100644 --- a/drivers/misc/fsl_iim.c +++ b/drivers/misc/fsl_iim.c @@ -16,6 +16,9 @@  #ifndef CONFIG_MPC512X  #include <asm/arch/imx-regs.h>  #endif +#if defined(CONFIG_MX51) || defined(CONFIG_MX53) +#include <asm/arch/clock.h> +#endif  /* FSL IIM-specific constants */  #define STAT_BUSY		0x80 @@ -93,6 +96,10 @@ struct fsl_iim {  	} bank[8];  }; +#if !defined(CONFIG_MX51) && !defined(CONFIG_MX53) +#define enable_efuse_prog_supply(enable) +#endif +  static int prepare_access(struct fsl_iim **regs, u32 bank, u32 word, int assert,  				const char *caller)  { @@ -237,12 +244,16 @@ int fuse_prog(u32 bank, u32 word, u32 val)  	if (ret)  		return ret; +	enable_efuse_prog_supply(1);  	for (bit = 0; val; bit++, val >>= 1)  		if (val & 0x01) {  			ret = prog_bit(regs, bank, word, bit); -			if (ret) +			if (ret) { +				enable_efuse_prog_supply(0);  				return ret; +			}  		} +	enable_efuse_prog_supply(0);  	return 0;  } |