aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/fsl_lbc.h
diff options
context:
space:
mode:
authorLan Chunhe-B25806 <b25806@freescale.com>2010-10-18 15:22:32 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-25 15:41:04 +0100
commit0b824d2b10eacd496c608a7c41a046862d48563b (patch)
tree7322d0b478f1ece6312980b77a5313639cf73d13 /arch/powerpc/include/asm/fsl_lbc.h
parentP4080/eLBC: Make Freescale elbc interrupt common to elbc devices (diff)
downloadlinux-dev-0b824d2b10eacd496c608a7c41a046862d48563b.tar.xz
linux-dev-0b824d2b10eacd496c608a7c41a046862d48563b.zip
P4080/mtd: Fix the freescale lbc issue with 36bit mode
When system uses 36bit physical address, res.start is 36bit physical address. But the function of in_be32 returns 32bit physical address. Then both of them compared each other is wrong. So by converting the address of res.start into the right format fixes this issue. Signed-off-by: Lan Chunhe-B25806 <b25806@freescale.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Reviewed-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/powerpc/include/asm/fsl_lbc.h')
-rw-r--r--arch/powerpc/include/asm/fsl_lbc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_lbc.h b/arch/powerpc/include/asm/fsl_lbc.h
index 06a11124dde1..5c1bf3466749 100644
--- a/arch/powerpc/include/asm/fsl_lbc.h
+++ b/arch/powerpc/include/asm/fsl_lbc.h
@@ -248,6 +248,7 @@ struct fsl_upm {
int width;
};
+extern u32 fsl_lbc_addr(phys_addr_t addr_base);
extern int fsl_lbc_find(phys_addr_t addr_base);
extern int fsl_upm_find(phys_addr_t addr_base, struct fsl_upm *upm);