1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
4 * JZ4740 SoC power management support
7 #include <linux/init.h>
9 #include <linux/delay.h>
10 #include <linux/suspend.h>
12 static int jz4740_pm_enter(suspend_state_t state
)
14 __asm__(".set\tmips3\n\t"
23 static const struct platform_suspend_ops jz4740_pm_ops
= {
24 .valid
= suspend_valid_only_mem
,
25 .enter
= jz4740_pm_enter
,
28 static int __init
jz4740_pm_init(void)
30 suspend_set_ops(&jz4740_pm_ops
);
34 late_initcall(jz4740_pm_init
);