Lines Matching refs:pm_info
466 struct imx6_cpu_pm_info *pm_info; in imx6q_suspend_init() local
511 memset(suspend_ocram_base, 0, sizeof(*pm_info)); in imx6q_suspend_init()
512 pm_info = suspend_ocram_base; in imx6q_suspend_init()
513 pm_info->pbase = ocram_pbase; in imx6q_suspend_init()
514 pm_info->resume_addr = __pa_symbol(v7_cpu_resume); in imx6q_suspend_init()
515 pm_info->pm_info_size = sizeof(*pm_info); in imx6q_suspend_init()
521 pm_info->ccm_base.vbase = ccm_base; in imx6q_suspend_init()
523 ret = imx6_pm_get_base(&pm_info->mmdc_base, socdata->mmdc_compat); in imx6q_suspend_init()
529 ret = imx6_pm_get_base(&pm_info->src_base, socdata->src_compat); in imx6q_suspend_init()
535 ret = imx6_pm_get_base(&pm_info->iomuxc_base, socdata->iomuxc_compat); in imx6q_suspend_init()
541 ret = imx6_pm_get_base(&pm_info->gpc_base, socdata->gpc_compat); in imx6q_suspend_init()
548 ret = imx6_pm_get_base(&pm_info->l2_base, socdata->pl310_compat); in imx6q_suspend_init()
556 pm_info->ddr_type = imx_mmdc_get_ddr_type(); in imx6q_suspend_init()
557 pm_info->mmdc_io_num = socdata->mmdc_io_num; in imx6q_suspend_init()
560 for (i = 0; i < pm_info->mmdc_io_num; i++) { in imx6q_suspend_init()
561 pm_info->mmdc_io_val[i][0] = in imx6q_suspend_init()
563 pm_info->mmdc_io_val[i][1] = in imx6q_suspend_init()
564 readl_relaxed(pm_info->iomuxc_base.vbase + in imx6q_suspend_init()
569 suspend_ocram_base + sizeof(*pm_info), in imx6q_suspend_init()
571 MX6Q_SUSPEND_OCRAM_SIZE - sizeof(*pm_info)); in imx6q_suspend_init()
576 iounmap(pm_info->gpc_base.vbase); in imx6q_suspend_init()
578 iounmap(pm_info->iomuxc_base.vbase); in imx6q_suspend_init()
580 iounmap(pm_info->src_base.vbase); in imx6q_suspend_init()
582 iounmap(pm_info->mmdc_base.vbase); in imx6q_suspend_init()