Searched refs:loongson2_pm (Results 1 – 3 of 3) sorted by relevance
32 static struct loongson2_pm { struct36 } loongson2_pm; variable38 #define loongson2_pm_readw(reg) readw(loongson2_pm.base + reg)39 #define loongson2_pm_readl(reg) readl(loongson2_pm.base + reg)40 #define loongson2_pm_writew(val, reg) writew(val, loongson2_pm.base + reg)41 #define loongson2_pm_writel(val, reg) writel(val, loongson2_pm.base + reg)120 loongson2_pm.dev = button; in loongson2_power_button_init()135 if (!loongson2_pm.suspended && (status & LOONGSON2_PM1_PWRBTN_STS)) { in loongson2_pm_irq_handler()137 input_report_key(loongson2_pm.dev, KEY_POWER, 1); in loongson2_pm_irq_handler()138 input_sync(loongson2_pm.dev); in loongson2_pm_irq_handler()[all …]
7 obj-$(CONFIG_LOONGSON2_PM) += loongson2_pm.o
13385 F: drivers/soc/loongson/loongson2_pm.c