Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pm.h File Reference

Go to the source code of this file.

Macros

#define PM_MCCTRL   0x0000
 
#define PM_CKSEL   0x0004
 
#define PM_CPU_MASK   0x0008
 
#define PM_HSB_MASK   0x000c
 
#define PM_PBA_MASK   0x0010
 
#define PM_PBB_MASK   0x0014
 
#define PM_PLL0   0x0020
 
#define PM_PLL1   0x0024
 
#define PM_IER   0x0040
 
#define PM_IDR   0x0044
 
#define PM_IMR   0x0048
 
#define PM_ISR   0x004c
 
#define PM_ICR   0x0050
 
#define PM_GCCTRL(x)   (0x0060 + 4 * (x))
 
#define PM_RCAUSE   0x00c0
 
#define PM_CPUSEL_OFFSET   0
 
#define PM_CPUSEL_SIZE   3
 
#define PM_CPUDIV_OFFSET   7
 
#define PM_CPUDIV_SIZE   1
 
#define PM_HSBSEL_OFFSET   8
 
#define PM_HSBSEL_SIZE   3
 
#define PM_HSBDIV_OFFSET   15
 
#define PM_HSBDIV_SIZE   1
 
#define PM_PBASEL_OFFSET   16
 
#define PM_PBASEL_SIZE   3
 
#define PM_PBADIV_OFFSET   23
 
#define PM_PBADIV_SIZE   1
 
#define PM_PBBSEL_OFFSET   24
 
#define PM_PBBSEL_SIZE   3
 
#define PM_PBBDIV_OFFSET   31
 
#define PM_PBBDIV_SIZE   1
 
#define PM_PLLEN_OFFSET   0
 
#define PM_PLLEN_SIZE   1
 
#define PM_PLLOSC_OFFSET   1
 
#define PM_PLLOSC_SIZE   1
 
#define PM_PLLOPT_OFFSET   2
 
#define PM_PLLOPT_SIZE   3
 
#define PM_PLLDIV_OFFSET   8
 
#define PM_PLLDIV_SIZE   8
 
#define PM_PLLMUL_OFFSET   16
 
#define PM_PLLMUL_SIZE   8
 
#define PM_PLLCOUNT_OFFSET   24
 
#define PM_PLLCOUNT_SIZE   6
 
#define PM_PLLTEST_OFFSET   31
 
#define PM_PLLTEST_SIZE   1
 
#define PM_LOCK0_OFFSET   0
 
#define PM_LOCK0_SIZE   1
 
#define PM_LOCK1_OFFSET   1
 
#define PM_LOCK1_SIZE   1
 
#define PM_WAKE_OFFSET   2
 
#define PM_WAKE_SIZE   1
 
#define PM_CKRDY_OFFSET   5
 
#define PM_CKRDY_SIZE   1
 
#define PM_MSKRDY_OFFSET   6
 
#define PM_MSKRDY_SIZE   1
 
#define PM_OSCSEL_OFFSET   0
 
#define PM_OSCSEL_SIZE   1
 
#define PM_PLLSEL_OFFSET   1
 
#define PM_PLLSEL_SIZE   1
 
#define PM_CEN_OFFSET   2
 
#define PM_CEN_SIZE   1
 
#define PM_DIVEN_OFFSET   4
 
#define PM_DIVEN_SIZE   1
 
#define PM_DIV_OFFSET   8
 
#define PM_DIV_SIZE   8
 
#define PM_POR_OFFSET   0
 
#define PM_POR_SIZE   1
 
#define PM_EXT_OFFSET   2
 
#define PM_EXT_SIZE   1
 
#define PM_WDT_OFFSET   3
 
#define PM_WDT_SIZE   1
 
#define PM_NTAE_OFFSET   4
 
#define PM_NTAE_SIZE   1
 
#define PM_BIT(name)   (1 << PM_##name##_OFFSET)
 
#define PM_BF(name, value)
 
#define PM_BFEXT(name, value)
 
#define PM_BFINS(name, value, old)
 
#define pm_readl(reg)   __raw_readl((void __iomem __force *)PM_BASE + PM_##reg)
 
#define pm_writel(reg, value)   __raw_writel((value), (void __iomem __force *)PM_BASE + PM_##reg)
 

Macro Definition Documentation

#define PM_BF (   name,
  value 
)
Value:
(((value) & ((1 << PM_##name##_SIZE) - 1)) \
<< PM_##name##_OFFSET)

Definition at line 95 of file pm.h.

#define PM_BFEXT (   name,
  value 
)
Value:
(((value) >> PM_##name##_OFFSET) \
& ((1 << PM_##name##_SIZE) - 1))

Definition at line 98 of file pm.h.

#define PM_BFINS (   name,
  value,
  old 
)
Value:
(((old) & ~(((1 << PM_##name##_SIZE) - 1) \
<< PM_##name##_OFFSET)) \

Definition at line 101 of file pm.h.

#define PM_BIT (   name)    (1 << PM_##name##_OFFSET)

Definition at line 93 of file pm.h.

#define PM_CEN_OFFSET   2

Definition at line 75 of file pm.h.

#define PM_CEN_SIZE   1

Definition at line 76 of file pm.h.

#define PM_CKRDY_OFFSET   5

Definition at line 65 of file pm.h.

#define PM_CKRDY_SIZE   1

Definition at line 66 of file pm.h.

#define PM_CKSEL   0x0004

Definition at line 9 of file pm.h.

#define PM_CPU_MASK   0x0008

Definition at line 10 of file pm.h.

#define PM_CPUDIV_OFFSET   7

Definition at line 27 of file pm.h.

#define PM_CPUDIV_SIZE   1

Definition at line 28 of file pm.h.

#define PM_CPUSEL_OFFSET   0

Definition at line 25 of file pm.h.

#define PM_CPUSEL_SIZE   3

Definition at line 26 of file pm.h.

#define PM_DIV_OFFSET   8

Definition at line 79 of file pm.h.

#define PM_DIV_SIZE   8

Definition at line 80 of file pm.h.

#define PM_DIVEN_OFFSET   4

Definition at line 77 of file pm.h.

#define PM_DIVEN_SIZE   1

Definition at line 78 of file pm.h.

#define PM_EXT_OFFSET   2

Definition at line 85 of file pm.h.

#define PM_EXT_SIZE   1

Definition at line 86 of file pm.h.

#define PM_GCCTRL (   x)    (0x0060 + 4 * (x))

Definition at line 21 of file pm.h.

#define PM_HSB_MASK   0x000c

Definition at line 11 of file pm.h.

#define PM_HSBDIV_OFFSET   15

Definition at line 31 of file pm.h.

#define PM_HSBDIV_SIZE   1

Definition at line 32 of file pm.h.

#define PM_HSBSEL_OFFSET   8

Definition at line 29 of file pm.h.

#define PM_HSBSEL_SIZE   3

Definition at line 30 of file pm.h.

#define PM_ICR   0x0050

Definition at line 20 of file pm.h.

#define PM_IDR   0x0044

Definition at line 17 of file pm.h.

#define PM_IER   0x0040

Definition at line 16 of file pm.h.

#define PM_IMR   0x0048

Definition at line 18 of file pm.h.

#define PM_ISR   0x004c

Definition at line 19 of file pm.h.

#define PM_LOCK0_OFFSET   0

Definition at line 59 of file pm.h.

#define PM_LOCK0_SIZE   1

Definition at line 60 of file pm.h.

#define PM_LOCK1_OFFSET   1

Definition at line 61 of file pm.h.

#define PM_LOCK1_SIZE   1

Definition at line 62 of file pm.h.

#define PM_MCCTRL   0x0000

Definition at line 8 of file pm.h.

#define PM_MSKRDY_OFFSET   6

Definition at line 67 of file pm.h.

#define PM_MSKRDY_SIZE   1

Definition at line 68 of file pm.h.

#define PM_NTAE_OFFSET   4

Definition at line 89 of file pm.h.

#define PM_NTAE_SIZE   1

Definition at line 90 of file pm.h.

#define PM_OSCSEL_OFFSET   0

Definition at line 71 of file pm.h.

#define PM_OSCSEL_SIZE   1

Definition at line 72 of file pm.h.

#define PM_PBA_MASK   0x0010

Definition at line 12 of file pm.h.

#define PM_PBADIV_OFFSET   23

Definition at line 35 of file pm.h.

#define PM_PBADIV_SIZE   1

Definition at line 36 of file pm.h.

#define PM_PBASEL_OFFSET   16

Definition at line 33 of file pm.h.

#define PM_PBASEL_SIZE   3

Definition at line 34 of file pm.h.

#define PM_PBB_MASK   0x0014

Definition at line 13 of file pm.h.

#define PM_PBBDIV_OFFSET   31

Definition at line 39 of file pm.h.

#define PM_PBBDIV_SIZE   1

Definition at line 40 of file pm.h.

#define PM_PBBSEL_OFFSET   24

Definition at line 37 of file pm.h.

#define PM_PBBSEL_SIZE   3

Definition at line 38 of file pm.h.

#define PM_PLL0   0x0020

Definition at line 14 of file pm.h.

#define PM_PLL1   0x0024

Definition at line 15 of file pm.h.

#define PM_PLLCOUNT_OFFSET   24

Definition at line 53 of file pm.h.

#define PM_PLLCOUNT_SIZE   6

Definition at line 54 of file pm.h.

#define PM_PLLDIV_OFFSET   8

Definition at line 49 of file pm.h.

#define PM_PLLDIV_SIZE   8

Definition at line 50 of file pm.h.

#define PM_PLLEN_OFFSET   0

Definition at line 43 of file pm.h.

#define PM_PLLEN_SIZE   1

Definition at line 44 of file pm.h.

#define PM_PLLMUL_OFFSET   16

Definition at line 51 of file pm.h.

#define PM_PLLMUL_SIZE   8

Definition at line 52 of file pm.h.

#define PM_PLLOPT_OFFSET   2

Definition at line 47 of file pm.h.

#define PM_PLLOPT_SIZE   3

Definition at line 48 of file pm.h.

#define PM_PLLOSC_OFFSET   1

Definition at line 45 of file pm.h.

#define PM_PLLOSC_SIZE   1

Definition at line 46 of file pm.h.

#define PM_PLLSEL_OFFSET   1

Definition at line 73 of file pm.h.

#define PM_PLLSEL_SIZE   1

Definition at line 74 of file pm.h.

#define PM_PLLTEST_OFFSET   31

Definition at line 55 of file pm.h.

#define PM_PLLTEST_SIZE   1

Definition at line 56 of file pm.h.

#define PM_POR_OFFSET   0

Definition at line 83 of file pm.h.

#define PM_POR_SIZE   1

Definition at line 84 of file pm.h.

#define PM_RCAUSE   0x00c0

Definition at line 22 of file pm.h.

#define pm_readl (   reg)    __raw_readl((void __iomem __force *)PM_BASE + PM_##reg)

Definition at line 107 of file pm.h.

#define PM_WAKE_OFFSET   2

Definition at line 63 of file pm.h.

#define PM_WAKE_SIZE   1

Definition at line 64 of file pm.h.

#define PM_WDT_OFFSET   3

Definition at line 87 of file pm.h.

#define PM_WDT_SIZE   1

Definition at line 88 of file pm.h.

#define pm_writel (   reg,
  value 
)    __raw_writel((value), (void __iomem __force *)PM_BASE + PM_##reg)

Definition at line 109 of file pm.h.