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

Go to the source code of this file.

Macros

#define S3C2410_CLKREG(x)   ((x) + S3C24XX_VA_CLKPWR)
 
#define S3C2410_PLLVAL(_m, _p, _s)   ((_m) << 12 | ((_p) << 4) | ((_s)))
 
#define S3C2410_LOCKTIME   S3C2410_CLKREG(0x00)
 
#define S3C2410_MPLLCON   S3C2410_CLKREG(0x04)
 
#define S3C2410_UPLLCON   S3C2410_CLKREG(0x08)
 
#define S3C2410_CLKCON   S3C2410_CLKREG(0x0C)
 
#define S3C2410_CLKSLOW   S3C2410_CLKREG(0x10)
 
#define S3C2410_CLKDIVN   S3C2410_CLKREG(0x14)
 
#define S3C2410_CLKCON_IDLE   (1<<2)
 
#define S3C2410_CLKCON_POWER   (1<<3)
 
#define S3C2410_CLKCON_NAND   (1<<4)
 
#define S3C2410_CLKCON_LCDC   (1<<5)
 
#define S3C2410_CLKCON_USBH   (1<<6)
 
#define S3C2410_CLKCON_USBD   (1<<7)
 
#define S3C2410_CLKCON_PWMT   (1<<8)
 
#define S3C2410_CLKCON_SDI   (1<<9)
 
#define S3C2410_CLKCON_UART0   (1<<10)
 
#define S3C2410_CLKCON_UART1   (1<<11)
 
#define S3C2410_CLKCON_UART2   (1<<12)
 
#define S3C2410_CLKCON_GPIO   (1<<13)
 
#define S3C2410_CLKCON_RTC   (1<<14)
 
#define S3C2410_CLKCON_ADC   (1<<15)
 
#define S3C2410_CLKCON_IIC   (1<<16)
 
#define S3C2410_CLKCON_IIS   (1<<17)
 
#define S3C2410_CLKCON_SPI   (1<<18)
 
#define S3C2410_DCLKCON_DCLK0EN   (1<<0)
 
#define S3C2410_DCLKCON_DCLK0_PCLK   (0<<1)
 
#define S3C2410_DCLKCON_DCLK0_UCLK   (1<<1)
 
#define S3C2410_DCLKCON_DCLK0_DIV(x)   (((x) - 1 )<<4)
 
#define S3C2410_DCLKCON_DCLK0_CMP(x)   (((x) - 1 )<<8)
 
#define S3C2410_DCLKCON_DCLK0_DIV_MASK   ((0xf)<<4)
 
#define S3C2410_DCLKCON_DCLK0_CMP_MASK   ((0xf)<<8)
 
#define S3C2410_DCLKCON_DCLK1EN   (1<<16)
 
#define S3C2410_DCLKCON_DCLK1_PCLK   (0<<17)
 
#define S3C2410_DCLKCON_DCLK1_UCLK   (1<<17)
 
#define S3C2410_DCLKCON_DCLK1_DIV(x)   (((x) - 1) <<20)
 
#define S3C2410_DCLKCON_DCLK1_CMP(x)   (((x) - 1) <<24)
 
#define S3C2410_DCLKCON_DCLK1_DIV_MASK   ((0xf) <<20)
 
#define S3C2410_DCLKCON_DCLK1_CMP_MASK   ((0xf) <<24)
 
#define S3C2410_CLKDIVN_PDIVN   (1<<0)
 
#define S3C2410_CLKDIVN_HDIVN   (1<<1)
 
#define S3C2410_CLKSLOW_UCLK_OFF   (1<<7)
 
#define S3C2410_CLKSLOW_MPLL_OFF   (1<<5)
 
#define S3C2410_CLKSLOW_SLOW   (1<<4)
 
#define S3C2410_CLKSLOW_SLOWVAL(x)   (x)
 
#define S3C2410_CLKSLOW_GET_SLOWVAL(x)   ((x) & 7)
 
#define S3C2416_CLKDIV2   S3C2410_CLKREG(0x28)
 

Macro Definition Documentation

#define S3C2410_CLKCON   S3C2410_CLKREG(0x0C)

Definition at line 23 of file regs-clock.h.

#define S3C2410_CLKCON_ADC   (1<<15)

Definition at line 40 of file regs-clock.h.

#define S3C2410_CLKCON_GPIO   (1<<13)

Definition at line 38 of file regs-clock.h.

#define S3C2410_CLKCON_IDLE   (1<<2)

Definition at line 27 of file regs-clock.h.

#define S3C2410_CLKCON_IIC   (1<<16)

Definition at line 41 of file regs-clock.h.

#define S3C2410_CLKCON_IIS   (1<<17)

Definition at line 42 of file regs-clock.h.

#define S3C2410_CLKCON_LCDC   (1<<5)

Definition at line 30 of file regs-clock.h.

#define S3C2410_CLKCON_NAND   (1<<4)

Definition at line 29 of file regs-clock.h.

#define S3C2410_CLKCON_POWER   (1<<3)

Definition at line 28 of file regs-clock.h.

#define S3C2410_CLKCON_PWMT   (1<<8)

Definition at line 33 of file regs-clock.h.

#define S3C2410_CLKCON_RTC   (1<<14)

Definition at line 39 of file regs-clock.h.

#define S3C2410_CLKCON_SDI   (1<<9)

Definition at line 34 of file regs-clock.h.

#define S3C2410_CLKCON_SPI   (1<<18)

Definition at line 43 of file regs-clock.h.

#define S3C2410_CLKCON_UART0   (1<<10)

Definition at line 35 of file regs-clock.h.

#define S3C2410_CLKCON_UART1   (1<<11)

Definition at line 36 of file regs-clock.h.

#define S3C2410_CLKCON_UART2   (1<<12)

Definition at line 37 of file regs-clock.h.

#define S3C2410_CLKCON_USBD   (1<<7)

Definition at line 32 of file regs-clock.h.

#define S3C2410_CLKCON_USBH   (1<<6)

Definition at line 31 of file regs-clock.h.

#define S3C2410_CLKDIVN   S3C2410_CLKREG(0x14)

Definition at line 25 of file regs-clock.h.

#define S3C2410_CLKDIVN_HDIVN   (1<<1)

Definition at line 64 of file regs-clock.h.

#define S3C2410_CLKDIVN_PDIVN   (1<<0)

Definition at line 63 of file regs-clock.h.

#define S3C2410_CLKREG (   x)    ((x) + S3C24XX_VA_CLKPWR)

Definition at line 16 of file regs-clock.h.

#define S3C2410_CLKSLOW   S3C2410_CLKREG(0x10)

Definition at line 24 of file regs-clock.h.

#define S3C2410_CLKSLOW_GET_SLOWVAL (   x)    ((x) & 7)

Definition at line 70 of file regs-clock.h.

#define S3C2410_CLKSLOW_MPLL_OFF   (1<<5)

Definition at line 67 of file regs-clock.h.

#define S3C2410_CLKSLOW_SLOW   (1<<4)

Definition at line 68 of file regs-clock.h.

#define S3C2410_CLKSLOW_SLOWVAL (   x)    (x)

Definition at line 69 of file regs-clock.h.

#define S3C2410_CLKSLOW_UCLK_OFF   (1<<7)

Definition at line 66 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_CMP (   x)    (((x) - 1 )<<8)

Definition at line 51 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_CMP_MASK   ((0xf)<<8)

Definition at line 53 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_DIV (   x)    (((x) - 1 )<<4)

Definition at line 50 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_DIV_MASK   ((0xf)<<4)

Definition at line 52 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_PCLK   (0<<1)

Definition at line 48 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0_UCLK   (1<<1)

Definition at line 49 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK0EN   (1<<0)

Definition at line 47 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_CMP (   x)    (((x) - 1) <<24)

Definition at line 59 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_CMP_MASK   ((0xf) <<24)

Definition at line 61 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_DIV (   x)    (((x) - 1) <<20)

Definition at line 58 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_DIV_MASK   ((0xf) <<20)

Definition at line 60 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_PCLK   (0<<17)

Definition at line 56 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1_UCLK   (1<<17)

Definition at line 57 of file regs-clock.h.

#define S3C2410_DCLKCON_DCLK1EN   (1<<16)

Definition at line 55 of file regs-clock.h.

#define S3C2410_LOCKTIME   S3C2410_CLKREG(0x00)

Definition at line 20 of file regs-clock.h.

#define S3C2410_MPLLCON   S3C2410_CLKREG(0x04)

Definition at line 21 of file regs-clock.h.

#define S3C2410_PLLVAL (   _m,
  _p,
  _s 
)    ((_m) << 12 | ((_p) << 4) | ((_s)))

Definition at line 18 of file regs-clock.h.

#define S3C2410_UPLLCON   S3C2410_CLKREG(0x08)

Definition at line 22 of file regs-clock.h.

#define S3C2416_CLKDIV2   S3C2410_CLKREG(0x28)

Definition at line 164 of file regs-clock.h.