• Home
  • Raw
  • Download

Lines Matching full:ifc

39  * fsl_ifc_find - find IFC bank
42 * This function walks IFC banks comparing "Base address" field of the CSPR
68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init() local
73 if (ifc_in32(&ifc->cm_evter_stat) & IFC_CM_EVTER_STAT_CSER) in fsl_ifc_ctrl_init()
74 ifc_out32(IFC_CM_EVTER_STAT_CSER, &ifc->cm_evter_stat); in fsl_ifc_ctrl_init()
77 ifc_out32(IFC_CM_EVTER_EN_CSEREN, &ifc->cm_evter_en); in fsl_ifc_ctrl_init()
80 ifc_out32(IFC_CM_EVTER_INTR_EN_CSERIREN, &ifc->cm_evter_intr_en); in fsl_ifc_ctrl_init()
81 ifc_out32(0x0, &ifc->cm_erattr0); in fsl_ifc_ctrl_init()
82 ifc_out32(0x0, &ifc->cm_erattr1); in fsl_ifc_ctrl_init()
115 struct fsl_ifc_runtime __iomem *ifc = ctrl->rregs; in check_nand_stat() local
121 stat = ifc_in32(&ifc->ifc_nand.nand_evter_stat); in check_nand_stat()
123 ifc_out32(stat, &ifc->ifc_nand.nand_evter_stat); in check_nand_stat()
144 * NOTE: This interrupt is used to report ifc events of various kinds,
150 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq() local
155 cs_err = ifc_in32(&ifc->cm_evter_stat); in fsl_ifc_ctrl_irq()
157 dev_err(ctrl->dev, "transaction sent to IFC is not mapped to any memory bank 0x%08X\n", in fsl_ifc_ctrl_irq()
160 ifc_out32(IFC_CM_EVTER_STAT_CSER, &ifc->cm_evter_stat); in fsl_ifc_ctrl_irq()
163 status = ifc_in32(&ifc->cm_erattr0); in fsl_ifc_ctrl_irq()
164 err_addr = ifc_in32(&ifc->cm_erattr1); in fsl_ifc_ctrl_irq()
219 /* IOMAP the entire IFC region */ in fsl_ifc_ctrl_probe()
228 dev_dbg(&dev->dev, "IFC REGISTERS are LITTLE endian\n"); in fsl_ifc_ctrl_probe()
231 dev_dbg(&dev->dev, "IFC REGISTERS are BIG endian\n"); in fsl_ifc_ctrl_probe()
238 dev_info(&dev->dev, "IFC version %d.%d, %d banks\n", in fsl_ifc_ctrl_probe()
254 dev_err(&dev->dev, "failed to get irq resource for IFC\n"); in fsl_ifc_ctrl_probe()
272 "fsl-ifc", fsl_ifc_ctrl_dev); in fsl_ifc_ctrl_probe()
281 0, "fsl-ifc-nand", fsl_ifc_ctrl_dev); in fsl_ifc_ctrl_probe()
310 .compatible = "fsl,ifc",
317 .name = "fsl-ifc",