drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / arch / arm / mach-imx / pm-imx25.c
blob0c574e8607fd9ee7e00b12f350e954db38be936b
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright 2016 NXP Semiconductors
4 */
6 #include <linux/kernel.h>
7 #include <linux/suspend.h>
8 #include <linux/io.h>
9 #include "common.h"
11 static int imx25_suspend_enter(suspend_state_t state)
13 if (!IS_ENABLED(CONFIG_PM))
14 return 0;
16 switch (state) {
17 case PM_SUSPEND_MEM:
18 cpu_do_idle();
19 break;
20 default:
21 return -EINVAL;
24 return 0;
27 static const struct platform_suspend_ops imx25_suspend_ops = {
28 .enter = imx25_suspend_enter,
29 .valid = suspend_valid_only_mem,
32 void __init imx25_pm_init(void)
34 suspend_set_ops(&imx25_suspend_ops);