1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Pankit Garg
2018-11-05 18:01:33 +00:00
committed by York Sun
parent e350648046
commit 9bd5fe7027
2 changed files with 392 additions and 159 deletions

View File

@@ -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