2 * include/asm-blackfin/dpmc.h - Miscellaneous IOCTL commands for Dynamic Power
3 * Management Controller Driver.
4 * Copyright (C) 2004-2008 Analog Device Inc.
7 #ifndef _BLACKFIN_DPMC_H_
8 #define _BLACKFIN_DPMC_H_
13 void sleep_mode(u32 sic_iwr0
, u32 sic_iwr1
, u32 sic_iwr2
);
14 void hibernate_mode(u32 sic_iwr0
, u32 sic_iwr1
, u32 sic_iwr2
);
15 void sleep_deeper(u32 sic_iwr0
, u32 sic_iwr1
, u32 sic_iwr2
);
16 void do_hibernate(int wakeup
);
17 void set_dram_srfs(void);
18 void unset_dram_srfs(void);
20 #define VRPAIR(vlev, freq) (((vlev) << 16) | ((freq) >> 16))
22 struct bfin_dpmc_platform_data
{
23 const unsigned int *tuple_tab
;
24 unsigned short tabsize
;
25 unsigned short vr_settling_time
; /* in us */
31 R0 = [P0 + (x - SRAM_BASE_ADDRESS)];\
36 [P0 + (x - SRAM_BASE_ADDRESS)] = R0;\
38 #define PM_SYS_PUSH(x) \
39 R0 = [P0 + (x - PLL_CTL)];\
42 #define PM_SYS_POP(x) \
44 [P0 + (x - PLL_CTL)] = R0;\
46 #define PM_SYS_PUSH16(x) \
47 R0 = w[P0 + (x - PLL_CTL)];\
50 #define PM_SYS_POP16(x) \
52 w[P0 + (x - PLL_CTL)] = R0;\
55 #endif /* __KERNEL__ */
57 #endif /*_BLACKFIN_DPMC_H_*/