forked from Qortal/Brooklyn
84ba5b15ac
* Enhance GPIO addon for Noctua Fans for the Qortector upcoming case. This will put PWM signal to real-time. * Fixed RDP not letting a user login if not logged out on Cinnamon release (reported by Crowetic) * Update i2c sensor db * Fixed DRM broadcast over HDMI 2+ * Ease up DHCP security only to prevent Brooklyn blocking routers. * Add possibility to add extra memory for Cinnamon Desktop Release * Fix error message of Software Render mode on Cinnamon Desktop * Add proper offset for HD screens for pixel array *Fixed HDMI jitter for videocore4 GPU * Enable all radios (including Bluetooth)
48 lines
897 B
C
48 lines
897 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Suspend-to-RAM support code for SH-Mobile ARM
|
|
*
|
|
* Copyright (C) 2011 Magnus Damm
|
|
*/
|
|
|
|
#include <linux/pm.h>
|
|
#include <linux/suspend.h>
|
|
#include <linux/module.h>
|
|
#include <linux/err.h>
|
|
#include <linux/cpu.h>
|
|
|
|
#include <asm/io.h>
|
|
#include <asm/system_misc.h>
|
|
|
|
#include "common.h"
|
|
|
|
static int shmobile_suspend_default_enter(suspend_state_t suspend_state)
|
|
{
|
|
cpu_do_idle();
|
|
return 0;
|
|
}
|
|
|
|
static int shmobile_suspend_begin(suspend_state_t state)
|
|
{
|
|
cpu_idle_poll_ctrl(true);
|
|
return 0;
|
|
}
|
|
|
|
static void shmobile_suspend_end(void)
|
|
{
|
|
cpu_idle_poll_ctrl(false);
|
|
}
|
|
|
|
struct platform_suspend_ops shmobile_suspend_ops = {
|
|
.begin = shmobile_suspend_begin,
|
|
.end = shmobile_suspend_end,
|
|
.enter = shmobile_suspend_default_enter,
|
|
.valid = suspend_valid_only_mem,
|
|
};
|
|
|
|
int __init shmobile_suspend_init(void)
|
|
{
|
|
suspend_set_ops(&shmobile_suspend_ops);
|
|
return 0;
|
|
}
|