Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
590 B
C
32 lines
590 B
C
/*
|
|
* Blackfin bf609 power management
|
|
*
|
|
* Copyright 2011 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2
|
|
*/
|
|
|
|
#ifndef __PM_H__
|
|
#define __PM_H__
|
|
|
|
#include <linux/suspend.h>
|
|
|
|
struct bfin_cpu_pm_fns {
|
|
void (*save)(unsigned long *);
|
|
void (*restore)(unsigned long *);
|
|
int (*valid)(suspend_state_t state);
|
|
void (*enter)(suspend_state_t state);
|
|
int (*prepare)(void);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct bfin_cpu_pm_fns *bfin_cpu_pm;
|
|
|
|
# ifdef CONFIG_BFIN_COREB
|
|
void bfin_coreb_start(void);
|
|
void bfin_coreb_stop(void);
|
|
void bfin_coreb_reset(void);
|
|
# endif
|
|
|
|
#endif
|