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