2019-05-27 13:55:01 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2012-01-25 06:56:06 +07:00
|
|
|
/*
|
|
|
|
* AT91 Power Management
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 David Brownell
|
|
|
|
*/
|
|
|
|
#ifndef __ARCH_ARM_MACH_AT91_PM
|
|
|
|
#define __ARCH_ARM_MACH_AT91_PM
|
|
|
|
|
2013-09-23 03:29:57 +07:00
|
|
|
#include <asm/proc-fns.h>
|
|
|
|
|
2015-03-16 21:13:39 +07:00
|
|
|
#include <linux/mfd/syscon/atmel-mc.h>
|
|
|
|
#include <soc/at91/at91sam9_ddrsdr.h>
|
|
|
|
#include <soc/at91/at91sam9_sdramc.h>
|
|
|
|
|
2015-03-17 05:44:38 +07:00
|
|
|
#define AT91_MEMCTRL_MC 0
|
|
|
|
#define AT91_MEMCTRL_SDRAMC 1
|
|
|
|
#define AT91_MEMCTRL_DDRSDR 2
|
|
|
|
|
2018-07-17 15:26:54 +07:00
|
|
|
#define AT91_PM_STANDBY 0x00
|
|
|
|
#define AT91_PM_ULP0 0x01
|
2020-08-05 15:36:48 +07:00
|
|
|
#define AT91_PM_ULP0_FAST 0x02
|
|
|
|
#define AT91_PM_ULP1 0x03
|
|
|
|
#define AT91_PM_BACKUP 0x04
|
2015-03-09 10:49:46 +07:00
|
|
|
|
2017-02-01 00:12:57 +07:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct at91_pm_data {
|
|
|
|
void __iomem *pmc;
|
|
|
|
void __iomem *ramc[2];
|
|
|
|
unsigned long uhp_udp_mask;
|
|
|
|
unsigned int memctrl;
|
|
|
|
unsigned int mode;
|
2016-09-27 17:29:50 +07:00
|
|
|
void __iomem *shdwc;
|
|
|
|
void __iomem *sfrbu;
|
2017-04-26 21:31:03 +07:00
|
|
|
unsigned int standby_mode;
|
|
|
|
unsigned int suspend_mode;
|
2020-01-20 19:10:01 +07:00
|
|
|
unsigned int pmc_mckr_offset;
|
2020-01-20 19:10:04 +07:00
|
|
|
unsigned int pmc_version;
|
2017-02-01 00:12:57 +07:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2015-03-09 10:49:46 +07:00
|
|
|
#endif
|