mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 03:58:02 +07:00
0be298a939
This will be used to differentiate b/w different PLLs settings to be applied in the final/first steps of the suspend/resume process by doing PLL specific configurations. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Acked-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/1579522208-19523-5-git-send-email-claudiu.beznea@microchip.com
42 lines
865 B
C
42 lines
865 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* AT91 Power Management
|
|
*
|
|
* Copyright (C) 2005 David Brownell
|
|
*/
|
|
#ifndef __ARCH_ARM_MACH_AT91_PM
|
|
#define __ARCH_ARM_MACH_AT91_PM
|
|
|
|
#include <asm/proc-fns.h>
|
|
|
|
#include <linux/mfd/syscon/atmel-mc.h>
|
|
#include <soc/at91/at91sam9_ddrsdr.h>
|
|
#include <soc/at91/at91sam9_sdramc.h>
|
|
|
|
#define AT91_MEMCTRL_MC 0
|
|
#define AT91_MEMCTRL_SDRAMC 1
|
|
#define AT91_MEMCTRL_DDRSDR 2
|
|
|
|
#define AT91_PM_STANDBY 0x00
|
|
#define AT91_PM_ULP0 0x01
|
|
#define AT91_PM_ULP1 0x02
|
|
#define AT91_PM_BACKUP 0x03
|
|
|
|
#ifndef __ASSEMBLY__
|
|
struct at91_pm_data {
|
|
void __iomem *pmc;
|
|
void __iomem *ramc[2];
|
|
unsigned long uhp_udp_mask;
|
|
unsigned int memctrl;
|
|
unsigned int mode;
|
|
void __iomem *shdwc;
|
|
void __iomem *sfrbu;
|
|
unsigned int standby_mode;
|
|
unsigned int suspend_mode;
|
|
unsigned int pmc_mckr_offset;
|
|
unsigned int pmc_version;
|
|
};
|
|
#endif
|
|
|
|
#endif
|