blob: abdc02fb4f031d3abbbc23c6dc250b1ba54c7853 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Eric Miao51c62982009-01-02 23:17:22 +08002#ifndef __MACH_PXA27x_H
3#define __MACH_PXA27x_H
4
Eric Miaoba4a90a2011-09-11 17:19:11 +08005#include <linux/suspend.h>
Eric Miao51c62982009-01-02 23:17:22 +08006#include <mach/hardware.h>
7#include <mach/pxa2xx-regs.h>
Arnd Bergmann4c25c5d2015-01-30 10:45:33 +01008#include "mfp-pxa27x.h"
Eric Miaoca0e6872011-05-18 21:19:04 +08009#include <mach/irqs.h>
Eric Miao51c62982009-01-02 23:17:22 +080010
11#define ARB_CNTRL __REG(0x48000048) /* Arbiter Control Register */
12
13#define ARB_DMA_SLV_PARK (1<<31) /* Be parked with DMA slave when idle */
14#define ARB_CI_PARK (1<<30) /* Be parked with Camera Interface when idle */
15#define ARB_EX_MEM_PARK (1<<29) /* Be parked with external MEMC when idle */
16#define ARB_INT_MEM_PARK (1<<28) /* Be parked with internal MEMC when idle */
17#define ARB_USB_PARK (1<<27) /* Be parked with USB when idle */
18#define ARB_LCD_PARK (1<<26) /* Be parked with LCD when idle */
19#define ARB_DMA_PARK (1<<25) /* Be parked with DMA when idle */
20#define ARB_CORE_PARK (1<<24) /* Be parked with core when idle */
21#define ARB_LOCK_FLAG (1<<23) /* Only Locking masters gain access to the bus */
Mike Rapoportd082d362009-05-26 09:10:18 +030022
Arnd Bergmann54c09882015-10-12 15:46:08 +020023extern int pxa27x_set_pwrmode(unsigned int mode);
Eric Miaoba4a90a2011-09-11 17:19:11 +080024extern void pxa27x_cpu_pm_enter(suspend_state_t state);
Mike Rapoportd082d362009-05-26 09:10:18 +030025
Eric Miao51c62982009-01-02 23:17:22 +080026#endif /* __MACH_PXA27x_H */