diff options
author | Pankit Garg <pankit.garg@nxp.com> | 2018-11-05 18:01:33 +0000 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2018-12-06 14:37:19 -0800 |
commit | 9bd5fe7027d9e64b82d11a5769ac56a54bbd8e82 (patch) | |
tree | 27dc197960da0da62eef0c5bc9caf74fe743d152 /include | |
parent | e3506480466084a09d9882d546c3c3c677b13962 (diff) | |
download | u-boot-9bd5fe7027d9e64b82d11a5769ac56a54bbd8e82.tar.gz |
drivers: ifc: dynamic chipselect mapping support
IFC driver changes to implement the chipselect mappings at run time.
Defines init_early_memctl_regs and init_final_memctl_regs with
chipselect dynamic mapping for nor and nand boot.
Signed-off-by: Pankit Garg <pankit.garg@nxp.com>
Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
[YS: fix checkpatch issues]
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_ifc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/fsl_ifc.h b/include/fsl_ifc.h index 17697c7341..3edcc39f4e 100644 --- a/include/fsl_ifc.h +++ b/include/fsl_ifc.h @@ -1031,6 +1031,23 @@ struct fsl_ifc { struct fsl_ifc_runtime *rregs; }; +struct ifc_regs { + const char *name; + u32 pr; + u32 pr_ext; + u32 amask; + u32 or; + u32 ftim[4]; + u32 or_ext; + u32 pr_final; + u32 amask_final; +}; + +struct ifc_regs_info { + struct ifc_regs *regs; + u32 cs_size; +}; + #ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A002769 #undef CSPR_MSEL_NOR #define CSPR_MSEL_NOR CSPR_MSEL_GPCM |