Lines Matching defs:rcpm
3 // rcpm.c - Freescale QorIQ RCPM driver
19 struct rcpm {
36 struct rcpm *rcpm;
41 rcpm = dev_get_drvdata(dev);
42 if (!rcpm)
45 base = rcpm->ippdexpcr_base;
56 "fsl,rcpm-wakeup", value,
57 rcpm->wakeup_cells + 1);
59 /* Wakeup source should refer to current rcpm device */
63 /* Property "#fsl,rcpm-wakeup-cells" of rcpm node defines the
64 * number of IPPDEXPCR register cells, and "fsl,rcpm-wakeup"
71 for (i = 0; i < rcpm->wakeup_cells; i++)
78 for (i = 0; i < rcpm->wakeup_cells; i++) {
86 if (rcpm->little_endian) {
106 struct rcpm *rcpm;
109 rcpm = devm_kzalloc(dev, sizeof(*rcpm), GFP_KERNEL);
110 if (!rcpm)
117 rcpm->ippdexpcr_base = devm_ioremap_resource(&pdev->dev, r);
118 if (IS_ERR(rcpm->ippdexpcr_base)) {
119 ret = PTR_ERR(rcpm->ippdexpcr_base);
123 rcpm->little_endian = device_property_read_bool(
127 "#fsl,rcpm-wakeup-cells", &rcpm->wakeup_cells);
131 dev_set_drvdata(&pdev->dev, rcpm);
137 { .compatible = "fsl,qoriq-rcpm-2.1+", },
144 .name = "rcpm",