Lines Matching +full:ls2k +full:- +full:pm
1 // SPDX-License-Identifier: GPL-2.0+
3 * Loongson-2 PM Support
104 return -ENOMEM; in loongson2_power_button_init()
106 button->name = "Power Button"; in loongson2_power_button_init()
107 button->phys = "pm/button/input0"; in loongson2_power_button_init()
108 button->id.bustype = BUS_HOST; in loongson2_power_button_init()
109 button->dev.parent = NULL; in loongson2_power_button_init()
116 dev_pm_set_wake_irq(&button->dev, irq); in loongson2_power_button_init()
117 device_set_wakeup_capable(&button->dev, true); in loongson2_power_button_init()
118 device_set_wakeup_enable(&button->dev, true); in loongson2_power_button_init()
167 struct device *dev = &pdev->dev; in loongson2_pm_probe()
177 if (!device_property_read_u64(dev, "loongson,suspend-address", &suspend_addr)) in loongson2_pm_probe()
180 dev_err(dev, "No loongson,suspend-address, could not support S3!\n"); in loongson2_pm_probe()
183 return -EINVAL; in loongson2_pm_probe()
185 retval = devm_request_irq(&pdev->dev, irq, loongson2_pm_irq_handler, in loongson2_pm_probe()
205 { .compatible = "loongson,ls2k0500-pmc", },
211 .name = "ls2k-pm",
212 .pm = &loongson2_pm_ops,
219 MODULE_DESCRIPTION("Loongson-2 PM driver");