summaryrefslogtreecommitdiff
path: root/board/freescale/bsc9132qds/bsc9132qds.c
diff options
context:
space:
mode:
authorJaiprakash Singh <b44839@freescale.com>2015-03-20 19:28:27 -0700
committerYork Sun <yorksun@freescale.com>2015-04-23 16:46:50 -0700
commit39b0bbbb23076a7109eeb20b6ae812edcd60ffc2 (patch)
tree80ada97cd4b401e188313c76f2211c9654ac76ef /board/freescale/bsc9132qds/bsc9132qds.c
parente60476a01ebe7d8c46aac5673dcf55b661187c19 (diff)
downloadu-boot-imx-39b0bbbb23076a7109eeb20b6ae812edcd60ffc2.zip
u-boot-imx-39b0bbbb23076a7109eeb20b6ae812edcd60ffc2.tar.gz
u-boot-imx-39b0bbbb23076a7109eeb20b6ae812edcd60ffc2.tar.bz2
driver/ifc: Add 64KB page support
IFC has two register pages.Till IFC version 1.4 each register page is 4KB each.But IFC ver 2.0 register page size is 64KB each.IFC regiters structure is break into two viz FCM and RUNTIME.FCM(Flash control machine) registers are defined in PAGE0 and controls IFC generic functionality. RUNTIME registers are defined in PAGE1 and controls NAND and GPCM funcinality. FCM and RUNTIME structures defination is common for IFC version 1.4 and 2.0. Signed-off-by: Jaiprakash Singh <b44839@freescale.com> Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/bsc9132qds/bsc9132qds.c')
-rw-r--r--board/freescale/bsc9132qds/bsc9132qds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/bsc9132qds/bsc9132qds.c b/board/freescale/bsc9132qds/bsc9132qds.c
index 36a68db..586dacc 100644
--- a/board/freescale/bsc9132qds/bsc9132qds.c
+++ b/board/freescale/bsc9132qds/bsc9132qds.c
@@ -36,9 +36,9 @@ DECLARE_GLOBAL_DATA_PTR;
int board_early_init_f(void)
{
- struct fsl_ifc *ifc = (void *)CONFIG_SYS_IFC_ADDR;
+ struct fsl_ifc ifc = {(void *)CONFIG_SYS_IFC_ADDR, (void *)NULL};
- setbits_be32(&ifc->ifc_gcr, 1 << IFC_GCR_TBCTL_TRN_TIME_SHIFT);
+ setbits_be32(&ifc.gregs->ifc_gcr, 1 << IFC_GCR_TBCTL_TRN_TIME_SHIFT);
return 0;
}