Lines Matching refs:ifc_ctrl

59 static struct fsl_ifc_ctrl *ifc_ctrl;  variable
769 ifc_ctrl = kzalloc(sizeof(*ifc_ctrl), GFP_KERNEL); in fsl_ifc_ctrl_init()
770 if (!ifc_ctrl) in fsl_ifc_ctrl_init()
773 ifc_ctrl->regs.gregs = IFC_FCM_BASE_ADDR; in fsl_ifc_ctrl_init()
775 ver = ifc_in32(&ifc_ctrl->regs.gregs->ifc_rev); in fsl_ifc_ctrl_init()
777 ifc_ctrl->regs.rregs = in fsl_ifc_ctrl_init()
780 ifc_ctrl->regs.rregs = in fsl_ifc_ctrl_init()
784 ifc_out32(&ifc_ctrl->regs.rregs->ifc_nand.nand_evter_stat, ~0U); in fsl_ifc_ctrl_init()
785 ifc_out32(&ifc_ctrl->regs.rregs->ifc_nand.pgrdcmpl_evt_stat, ~0U); in fsl_ifc_ctrl_init()
788 ifc_out32(&ifc_ctrl->regs.rregs->ifc_nand.nand_evter_en, in fsl_ifc_ctrl_init()
794 ifc_out32(&ifc_ctrl->regs.rregs->ifc_nand.ncfgr, 0x0); in fsl_ifc_ctrl_init()
803 struct fsl_ifc_runtime *ifc = ifc_ctrl->regs.rregs; in fsl_ifc_sram_init()
816 ifc_ctrl->status = in fsl_ifc_sram_init()
819 if (!(ifc_ctrl->status & IFC_NAND_SRAM_INIT_EN)) in fsl_ifc_sram_init()
829 csor = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor); in fsl_ifc_sram_init()
830 csor_ext = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext); in fsl_ifc_sram_init()
834 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor_8k); in fsl_ifc_sram_init()
835 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, 0x0000400); in fsl_ifc_sram_init()
861 ifc_ctrl->status = ifc_in32(&ifc->ifc_nand.nand_evter_stat); in fsl_ifc_sram_init()
863 if (ifc_ctrl->status & IFC_NAND_EVTER_STAT_OPC) in fsl_ifc_sram_init()
867 if (ifc_ctrl->status != IFC_NAND_EVTER_STAT_OPC) { in fsl_ifc_sram_init()
872 ifc_out32(&ifc->ifc_nand.nand_evter_stat, ifc_ctrl->status); in fsl_ifc_sram_init()
875 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor); in fsl_ifc_sram_init()
876 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, csor_ext); in fsl_ifc_sram_init()
891 if (!ifc_ctrl) { in fsl_ifc_chip_init()
893 if (!ifc_ctrl) in fsl_ifc_chip_init()
901 priv->ctrl = ifc_ctrl; in fsl_ifc_chip_init()
903 gregs = ifc_ctrl->regs.gregs; in fsl_ifc_chip_init()
928 ifc_ctrl->chips[priv->bank] = priv; in fsl_ifc_chip_init()
954 nand->controller = &ifc_ctrl->controller; in fsl_ifc_chip_init()