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)
30 lines
694 B
C
30 lines
694 B
C
/*
|
|
* arch/arm/mach-prima2/pm.h
|
|
*
|
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
|
|
#ifndef _MACH_PRIMA2_PM_H_
|
|
#define _MACH_PRIMA2_PM_H_
|
|
|
|
#define SIRFSOC_PWR_SLEEPFORCE 0x01
|
|
|
|
#define SIRFSOC_SLEEP_MODE_MASK 0x3
|
|
#define SIRFSOC_DEEP_SLEEP_MODE 0x1
|
|
|
|
#define SIRFSOC_PWRC_PDN_CTRL 0x0
|
|
#define SIRFSOC_PWRC_PON_OFF 0x4
|
|
#define SIRFSOC_PWRC_TRIGGER_EN 0x8
|
|
#define SIRFSOC_PWRC_PIN_STATUS 0x14
|
|
#define SIRFSOC_PWRC_SCRATCH_PAD1 0x18
|
|
#define SIRFSOC_PWRC_SCRATCH_PAD2 0x1C
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern int sirfsoc_finish_suspend(unsigned long);
|
|
#endif
|
|
|
|
#endif
|
|
|