Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
syspld.h File Reference
#include <asm/types.h>

Go to the source code of this file.

Macros

#define SYSPLD_PHYS_BASE   (0x10000000)
 
#define SYSPLD_REG(type, off)   (*(volatile type *)(SYSPLD_BASE + off))
 
#define PLD_INT   SYSPLD_REG(u32, 0x000000)
 
#define PLD_INT_PENIRQ   (1 << 5)
 
#define PLD_INT_UCB_IRQ   (1 << 1)
 
#define PLD_INT_KBD_ATN   (1 << 0) /* EINT1 */
 
#define PLD_PWR   SYSPLD_REG(u32, 0x000004)
 
#define PLD_PWR_EXT   (1 << 5)
 
#define PLD_PWR_MODE   (1 << 4) /* 1 = PWM, 0 = PFM */
 
#define PLD_S4_ON   (1 << 3) /* LCD bias voltage enable */
 
#define PLD_S3_ON   (1 << 2) /* LCD backlight enable */
 
#define PLD_S2_ON   (1 << 1) /* LCD 3V3 supply enable */
 
#define PLD_S1_ON   (1 << 0) /* LCD 3V supply enable */
 
#define PLD_KBD   SYSPLD_REG(u32, 0x000008)
 
#define PLD_KBD_WAKE   (1 << 1)
 
#define PLD_KBD_EN   (1 << 0)
 
#define PLD_SPI   SYSPLD_REG(u32, 0x00000c)
 
#define PLD_SPI_EN   (1 << 0)
 
#define PLD_IO   SYSPLD_REG(u32, 0x000010)
 
#define PLD_IO_BOOTSEL   (1 << 6) /* boot sel switch */
 
#define PLD_IO_USER   (1 << 5) /* user defined switch */
 
#define PLD_IO_LED3   (1 << 4)
 
#define PLD_IO_LED2   (1 << 3)
 
#define PLD_IO_LED1   (1 << 2)
 
#define PLD_IO_LED0   (1 << 1)
 
#define PLD_IO_LEDEN   (1 << 0)
 
#define PLD_IRDA   SYSPLD_REG(u32, 0x000014)
 
#define PLD_IRDA_EN   (1 << 0)
 
#define PLD_COM2   SYSPLD_REG(u32, 0x000018)
 
#define PLD_COM2_EN   (1 << 0)
 
#define PLD_COM1   SYSPLD_REG(u32, 0x00001c)
 
#define PLD_COM1_EN   (1 << 0)
 
#define PLD_AUD   SYSPLD_REG(u32, 0x000020)
 
#define PLD_AUD_DIV1   (1 << 6)
 
#define PLD_AUD_DIV0   (1 << 5)
 
#define PLD_AUD_CLK_SEL1   (1 << 4)
 
#define PLD_AUD_CLK_SEL0   (1 << 3)
 
#define PLD_AUD_MIC_PWR   (1 << 2)
 
#define PLD_AUD_MIC_GAIN   (1 << 1)
 
#define PLD_AUD_CODEC_EN   (1 << 0)
 
#define PLD_CF   SYSPLD_REG(u32, 0x000024)
 
#define PLD_CF2_SLEEP   (1 << 5)
 
#define PLD_CF1_SLEEP   (1 << 4)
 
#define PLD_CF2_nPDREQ   (1 << 3)
 
#define PLD_CF1_nPDREQ   (1 << 2)
 
#define PLD_CF2_nIRQ   (1 << 1)
 
#define PLD_CF1_nIRQ   (1 << 0)
 
#define PLD_SDC   SYSPLD_REG(u32, 0x000028)
 
#define PLD_SDC_INT_EN   (1 << 2)
 
#define PLD_SDC_WP   (1 << 1)
 
#define PLD_SDC_CD   (1 << 0)
 
#define PLD_FPGA   SYSPLD_REG(u32, 0x00002c)
 
#define PLD_CODEC   SYSPLD_REG(u32, 0x400000)
 
#define PLD_CODEC_IRQ3   (1 << 4)
 
#define PLD_CODEC_IRQ2   (1 << 3)
 
#define PLD_CODEC_IRQ1   (1 << 2)
 
#define PLD_CODEC_EN   (1 << 0)
 
#define PLD_BRITE   SYSPLD_REG(u32, 0x400004)
 
#define PLD_BRITE_UP   (1 << 1)
 
#define PLD_BRITE_DN   (1 << 0)
 
#define PLD_LCDEN   SYSPLD_REG(u32, 0x400008)
 
#define PLD_LCDEN_EN   (1 << 0)
 
#define PLD_ID   SYSPLD_REG(u32, 0x40000c)
 
#define PLD_TCH   SYSPLD_REG(u32, 0x400010)
 
#define PLD_TCH_PENIRQ   (1 << 1)
 
#define PLD_TCH_EN   (1 << 0)
 
#define PLD_GPIO   SYSPLD_REG(u32, 0x400014)
 
#define PLD_GPIO2   (1 << 2)
 
#define PLD_GPIO1   (1 << 1)
 
#define PLD_GPIO0   (1 << 0)
 

Macro Definition Documentation

#define PLD_AUD   SYSPLD_REG(u32, 0x000020)

Definition at line 73 of file syspld.h.

#define PLD_AUD_CLK_SEL0   (1 << 3)

Definition at line 77 of file syspld.h.

#define PLD_AUD_CLK_SEL1   (1 << 4)

Definition at line 76 of file syspld.h.

#define PLD_AUD_CODEC_EN   (1 << 0)

Definition at line 80 of file syspld.h.

#define PLD_AUD_DIV0   (1 << 5)

Definition at line 75 of file syspld.h.

#define PLD_AUD_DIV1   (1 << 6)

Definition at line 74 of file syspld.h.

#define PLD_AUD_MIC_GAIN   (1 << 1)

Definition at line 79 of file syspld.h.

#define PLD_AUD_MIC_PWR   (1 << 2)

Definition at line 78 of file syspld.h.

#define PLD_BRITE   SYSPLD_REG(u32, 0x400004)

Definition at line 103 of file syspld.h.

#define PLD_BRITE_DN   (1 << 0)

Definition at line 105 of file syspld.h.

#define PLD_BRITE_UP   (1 << 1)

Definition at line 104 of file syspld.h.

#define PLD_CF   SYSPLD_REG(u32, 0x000024)

Definition at line 82 of file syspld.h.

#define PLD_CF1_nIRQ   (1 << 0)

Definition at line 88 of file syspld.h.

#define PLD_CF1_nPDREQ   (1 << 2)

Definition at line 86 of file syspld.h.

#define PLD_CF1_SLEEP   (1 << 4)

Definition at line 84 of file syspld.h.

#define PLD_CF2_nIRQ   (1 << 1)

Definition at line 87 of file syspld.h.

#define PLD_CF2_nPDREQ   (1 << 3)

Definition at line 85 of file syspld.h.

#define PLD_CF2_SLEEP   (1 << 5)

Definition at line 83 of file syspld.h.

#define PLD_CODEC   SYSPLD_REG(u32, 0x400000)

Definition at line 97 of file syspld.h.

#define PLD_CODEC_EN   (1 << 0)

Definition at line 101 of file syspld.h.

#define PLD_CODEC_IRQ1   (1 << 2)

Definition at line 100 of file syspld.h.

#define PLD_CODEC_IRQ2   (1 << 3)

Definition at line 99 of file syspld.h.

#define PLD_CODEC_IRQ3   (1 << 4)

Definition at line 98 of file syspld.h.

#define PLD_COM1   SYSPLD_REG(u32, 0x00001c)

Definition at line 70 of file syspld.h.

#define PLD_COM1_EN   (1 << 0)

Definition at line 71 of file syspld.h.

#define PLD_COM2   SYSPLD_REG(u32, 0x000018)

Definition at line 67 of file syspld.h.

#define PLD_COM2_EN   (1 << 0)

Definition at line 68 of file syspld.h.

#define PLD_FPGA   SYSPLD_REG(u32, 0x00002c)

Definition at line 95 of file syspld.h.

#define PLD_GPIO   SYSPLD_REG(u32, 0x400014)

Definition at line 116 of file syspld.h.

#define PLD_GPIO0   (1 << 0)

Definition at line 119 of file syspld.h.

#define PLD_GPIO1   (1 << 1)

Definition at line 118 of file syspld.h.

#define PLD_GPIO2   (1 << 2)

Definition at line 117 of file syspld.h.

#define PLD_ID   SYSPLD_REG(u32, 0x40000c)

Definition at line 110 of file syspld.h.

#define PLD_INT   SYSPLD_REG(u32, 0x000000)

Definition at line 35 of file syspld.h.

#define PLD_INT_KBD_ATN   (1 << 0) /* EINT1 */

Definition at line 38 of file syspld.h.

#define PLD_INT_PENIRQ   (1 << 5)

Definition at line 36 of file syspld.h.

#define PLD_INT_UCB_IRQ   (1 << 1)

Definition at line 37 of file syspld.h.

#define PLD_IO   SYSPLD_REG(u32, 0x000010)

Definition at line 55 of file syspld.h.

#define PLD_IO_BOOTSEL   (1 << 6) /* boot sel switch */

Definition at line 56 of file syspld.h.

#define PLD_IO_LED0   (1 << 1)

Definition at line 61 of file syspld.h.

#define PLD_IO_LED1   (1 << 2)

Definition at line 60 of file syspld.h.

#define PLD_IO_LED2   (1 << 3)

Definition at line 59 of file syspld.h.

#define PLD_IO_LED3   (1 << 4)

Definition at line 58 of file syspld.h.

#define PLD_IO_LEDEN   (1 << 0)

Definition at line 62 of file syspld.h.

#define PLD_IO_USER   (1 << 5) /* user defined switch */

Definition at line 57 of file syspld.h.

#define PLD_IRDA   SYSPLD_REG(u32, 0x000014)

Definition at line 64 of file syspld.h.

#define PLD_IRDA_EN   (1 << 0)

Definition at line 65 of file syspld.h.

#define PLD_KBD   SYSPLD_REG(u32, 0x000008)

Definition at line 48 of file syspld.h.

#define PLD_KBD_EN   (1 << 0)

Definition at line 50 of file syspld.h.

#define PLD_KBD_WAKE   (1 << 1)

Definition at line 49 of file syspld.h.

#define PLD_LCDEN   SYSPLD_REG(u32, 0x400008)

Definition at line 107 of file syspld.h.

#define PLD_LCDEN_EN   (1 << 0)

Definition at line 108 of file syspld.h.

#define PLD_PWR   SYSPLD_REG(u32, 0x000004)

Definition at line 40 of file syspld.h.

#define PLD_PWR_EXT   (1 << 5)

Definition at line 41 of file syspld.h.

#define PLD_PWR_MODE   (1 << 4) /* 1 = PWM, 0 = PFM */

Definition at line 42 of file syspld.h.

#define PLD_S1_ON   (1 << 0) /* LCD 3V supply enable */

Definition at line 46 of file syspld.h.

#define PLD_S2_ON   (1 << 1) /* LCD 3V3 supply enable */

Definition at line 45 of file syspld.h.

#define PLD_S3_ON   (1 << 2) /* LCD backlight enable */

Definition at line 44 of file syspld.h.

#define PLD_S4_ON   (1 << 3) /* LCD bias voltage enable */

Definition at line 43 of file syspld.h.

#define PLD_SDC   SYSPLD_REG(u32, 0x000028)

Definition at line 90 of file syspld.h.

#define PLD_SDC_CD   (1 << 0)

Definition at line 93 of file syspld.h.

#define PLD_SDC_INT_EN   (1 << 2)

Definition at line 91 of file syspld.h.

#define PLD_SDC_WP   (1 << 1)

Definition at line 92 of file syspld.h.

#define PLD_SPI   SYSPLD_REG(u32, 0x00000c)

Definition at line 52 of file syspld.h.

#define PLD_SPI_EN   (1 << 0)

Definition at line 53 of file syspld.h.

#define PLD_TCH   SYSPLD_REG(u32, 0x400010)

Definition at line 112 of file syspld.h.

#define PLD_TCH_EN   (1 << 0)

Definition at line 114 of file syspld.h.

#define PLD_TCH_PENIRQ   (1 << 1)

Definition at line 113 of file syspld.h.

#define SYSPLD_PHYS_BASE   (0x10000000)

Definition at line 25 of file syspld.h.

#define SYSPLD_REG (   type,
  off 
)    (*(volatile type *)(SYSPLD_BASE + off))

Definition at line 30 of file syspld.h.