Lines Matching full:rcpm

3 // rcpm.c - Freescale QorIQ RCPM driver
20 struct rcpm { struct
59 struct rcpm *rcpm; in rcpm_pm_prepare() local
64 rcpm = dev_get_drvdata(dev); in rcpm_pm_prepare()
65 if (!rcpm) in rcpm_pm_prepare()
68 base = rcpm->ippdexpcr_base; in rcpm_pm_prepare()
79 "fsl,rcpm-wakeup", value, in rcpm_pm_prepare()
80 rcpm->wakeup_cells + 1); in rcpm_pm_prepare()
86 * For DT mode, would handle devices with "fsl,rcpm-wakeup" in rcpm_pm_prepare()
87 * pointing to the current RCPM node. in rcpm_pm_prepare()
90 * RCPM controller existing. in rcpm_pm_prepare()
96 /* Property "#fsl,rcpm-wakeup-cells" of rcpm node defines the in rcpm_pm_prepare()
97 * number of IPPDEXPCR register cells, and "fsl,rcpm-wakeup" in rcpm_pm_prepare()
99 * RCPM node, IPPDEXPCR0 setting, IPPDEXPCR1 setting, in rcpm_pm_prepare()
104 for (i = 0; i < rcpm->wakeup_cells; i++) in rcpm_pm_prepare()
111 for (i = 0; i < rcpm->wakeup_cells; i++) { in rcpm_pm_prepare()
119 if (rcpm->little_endian) { in rcpm_pm_prepare()
135 if (of_device_is_compatible(np, "fsl,ls1021a-rcpm")) in rcpm_pm_prepare()
149 struct rcpm *rcpm; in rcpm_probe() local
152 rcpm = devm_kzalloc(dev, sizeof(*rcpm), GFP_KERNEL); in rcpm_probe()
153 if (!rcpm) in rcpm_probe()
156 rcpm->ippdexpcr_base = devm_platform_ioremap_resource(pdev, 0); in rcpm_probe()
157 if (IS_ERR(rcpm->ippdexpcr_base)) { in rcpm_probe()
158 ret = PTR_ERR(rcpm->ippdexpcr_base); in rcpm_probe()
162 rcpm->little_endian = device_property_read_bool( in rcpm_probe()
166 "#fsl,rcpm-wakeup-cells", &rcpm->wakeup_cells); in rcpm_probe()
170 dev_set_drvdata(&pdev->dev, rcpm); in rcpm_probe()
176 { .compatible = "fsl,qoriq-rcpm-2.1+", },
191 .name = "rcpm",