summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2014-09-23 10:57:12 +0530
committerYork Sun <yorksun@freescale.com>2014-11-14 11:12:14 -0800
commitaa5a3d8d4622fc5f0115aa7c4ac752ae60458a44 (patch)
tree4046bdc56064260bd04328441ad207e4d440d43d /arch/powerpc/cpu/mpc85xx/cpu_init_early.c
parent0921de67440ac5dfc3dbf687217cdecc6335f15e (diff)
downloadu-boot-imx-aa5a3d8d4622fc5f0115aa7c4ac752ae60458a44.zip
u-boot-imx-aa5a3d8d4622fc5f0115aa7c4ac752ae60458a44.tar.gz
u-boot-imx-aa5a3d8d4622fc5f0115aa7c4ac752ae60458a44.tar.bz2
powerpc/mpc85xx: Use IFC accessor function
IFC registers can be of type Little Endian or big Endian depending upon Freescale SoC. Here SoC defines the register type of IFC IP. So use IFC acessor functions instead of in_be32(). Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu_init_early.c')
-rw-r--r--arch/powerpc/cpu/mpc85xx/cpu_init_early.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
index 072387a..5ca9bf5 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
@@ -70,9 +70,9 @@ void setup_ifc(void)
#endif
/* Change flash's physical address */
- out_be32(&(ifc_regs->cspr_cs[0].cspr), CONFIG_SYS_CSPR0);
- out_be32(&(ifc_regs->csor_cs[0].csor), CONFIG_SYS_CSOR0);
- out_be32(&(ifc_regs->amask_cs[0].amask), CONFIG_SYS_AMASK0);
+ ifc_out32(&(ifc_regs->cspr_cs[0].cspr), CONFIG_SYS_CSPR0);
+ ifc_out32(&(ifc_regs->csor_cs[0].csor), CONFIG_SYS_CSOR0);
+ ifc_out32(&(ifc_regs->amask_cs[0].amask), CONFIG_SYS_AMASK0);
return ;
}