Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
spear3xx_clock.c File Reference
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/of_platform.h>
#include <linux/spinlock_types.h>
#include <mach/misc_regs.h>
#include "clk.h"

Go to the source code of this file.

Macros

#define PLL1_CTR   (MISC_BASE + 0x008)
 
#define PLL1_FRQ   (MISC_BASE + 0x00C)
 
#define PLL2_CTR   (MISC_BASE + 0x014)
 
#define PLL2_FRQ   (MISC_BASE + 0x018)
 
#define PLL_CLK_CFG   (MISC_BASE + 0x020)
 
#define MCTR_CLK_SHIFT   28
 
#define MCTR_CLK_MASK   3
 
#define CORE_CLK_CFG   (MISC_BASE + 0x024)
 
#define GEN_SYNTH2_3_CLK_SHIFT   18
 
#define GEN_SYNTH2_3_CLK_MASK   1
 
#define HCLK_RATIO_SHIFT   10
 
#define HCLK_RATIO_MASK   2
 
#define PCLK_RATIO_SHIFT   8
 
#define PCLK_RATIO_MASK   2
 
#define PERIP_CLK_CFG   (MISC_BASE + 0x028)
 
#define UART_CLK_SHIFT   4
 
#define UART_CLK_MASK   1
 
#define FIRDA_CLK_SHIFT   5
 
#define FIRDA_CLK_MASK   2
 
#define GPT0_CLK_SHIFT   8
 
#define GPT1_CLK_SHIFT   11
 
#define GPT2_CLK_SHIFT   12
 
#define GPT_CLK_MASK   1
 
#define PERIP1_CLK_ENB   (MISC_BASE + 0x02C)
 
#define UART_CLK_ENB   3
 
#define SSP_CLK_ENB   5
 
#define I2C_CLK_ENB   7
 
#define JPEG_CLK_ENB   8
 
#define FIRDA_CLK_ENB   10
 
#define GPT1_CLK_ENB   11
 
#define GPT2_CLK_ENB   12
 
#define ADC_CLK_ENB   15
 
#define RTC_CLK_ENB   17
 
#define GPIO_CLK_ENB   18
 
#define DMA_CLK_ENB   19
 
#define SMI_CLK_ENB   21
 
#define GMAC_CLK_ENB   23
 
#define USBD_CLK_ENB   24
 
#define USBH_CLK_ENB   25
 
#define C3_CLK_ENB   31
 
#define RAS_CLK_ENB   (MISC_BASE + 0x034)
 
#define RAS_AHB_CLK_ENB   0
 
#define RAS_PLL1_CLK_ENB   1
 
#define RAS_APB_CLK_ENB   2
 
#define RAS_32K_CLK_ENB   3
 
#define RAS_24M_CLK_ENB   4
 
#define RAS_48M_CLK_ENB   5
 
#define RAS_PLL2_CLK_ENB   7
 
#define RAS_SYNT0_CLK_ENB   8
 
#define RAS_SYNT1_CLK_ENB   9
 
#define RAS_SYNT2_CLK_ENB   10
 
#define RAS_SYNT3_CLK_ENB   11
 
#define PRSC0_CLK_CFG   (MISC_BASE + 0x044)
 
#define PRSC1_CLK_CFG   (MISC_BASE + 0x048)
 
#define PRSC2_CLK_CFG   (MISC_BASE + 0x04C)
 
#define AMEM_CLK_CFG   (MISC_BASE + 0x050)
 
#define AMEM_CLK_ENB   0
 
#define CLCD_CLK_SYNT   (MISC_BASE + 0x05C)
 
#define FIRDA_CLK_SYNT   (MISC_BASE + 0x060)
 
#define UART_CLK_SYNT   (MISC_BASE + 0x064)
 
#define GMAC_CLK_SYNT   (MISC_BASE + 0x068)
 
#define GEN0_CLK_SYNT   (MISC_BASE + 0x06C)
 
#define GEN1_CLK_SYNT   (MISC_BASE + 0x070)
 
#define GEN2_CLK_SYNT   (MISC_BASE + 0x074)
 
#define GEN3_CLK_SYNT   (MISC_BASE + 0x078)
 

Functions

void __init spear3xx_clk_init (void)
 

Macro Definition Documentation

#define ADC_CLK_ENB   15

Definition at line 62 of file spear3xx_clock.c.

#define AMEM_CLK_CFG   (MISC_BASE + 0x050)

Definition at line 88 of file spear3xx_clock.c.

#define AMEM_CLK_ENB   0

Definition at line 89 of file spear3xx_clock.c.

#define C3_CLK_ENB   31

Definition at line 70 of file spear3xx_clock.c.

#define CLCD_CLK_SYNT   (MISC_BASE + 0x05C)

Definition at line 91 of file spear3xx_clock.c.

#define CORE_CLK_CFG   (MISC_BASE + 0x024)

Definition at line 32 of file spear3xx_clock.c.

#define DMA_CLK_ENB   19

Definition at line 65 of file spear3xx_clock.c.

#define FIRDA_CLK_ENB   10

Definition at line 59 of file spear3xx_clock.c.

#define FIRDA_CLK_MASK   2

Definition at line 47 of file spear3xx_clock.c.

#define FIRDA_CLK_SHIFT   5

Definition at line 46 of file spear3xx_clock.c.

#define FIRDA_CLK_SYNT   (MISC_BASE + 0x060)

Definition at line 92 of file spear3xx_clock.c.

#define GEN0_CLK_SYNT   (MISC_BASE + 0x06C)

Definition at line 95 of file spear3xx_clock.c.

#define GEN1_CLK_SYNT   (MISC_BASE + 0x070)

Definition at line 96 of file spear3xx_clock.c.

#define GEN2_CLK_SYNT   (MISC_BASE + 0x074)

Definition at line 97 of file spear3xx_clock.c.

#define GEN3_CLK_SYNT   (MISC_BASE + 0x078)

Definition at line 98 of file spear3xx_clock.c.

#define GEN_SYNTH2_3_CLK_MASK   1

Definition at line 35 of file spear3xx_clock.c.

#define GEN_SYNTH2_3_CLK_SHIFT   18

Definition at line 34 of file spear3xx_clock.c.

#define GMAC_CLK_ENB   23

Definition at line 67 of file spear3xx_clock.c.

#define GMAC_CLK_SYNT   (MISC_BASE + 0x068)

Definition at line 94 of file spear3xx_clock.c.

#define GPIO_CLK_ENB   18

Definition at line 64 of file spear3xx_clock.c.

#define GPT0_CLK_SHIFT   8

Definition at line 48 of file spear3xx_clock.c.

#define GPT1_CLK_ENB   11

Definition at line 60 of file spear3xx_clock.c.

#define GPT1_CLK_SHIFT   11

Definition at line 49 of file spear3xx_clock.c.

#define GPT2_CLK_ENB   12

Definition at line 61 of file spear3xx_clock.c.

#define GPT2_CLK_SHIFT   12

Definition at line 50 of file spear3xx_clock.c.

#define GPT_CLK_MASK   1

Definition at line 51 of file spear3xx_clock.c.

#define HCLK_RATIO_MASK   2

Definition at line 38 of file spear3xx_clock.c.

#define HCLK_RATIO_SHIFT   10

Definition at line 37 of file spear3xx_clock.c.

#define I2C_CLK_ENB   7

Definition at line 57 of file spear3xx_clock.c.

#define JPEG_CLK_ENB   8

Definition at line 58 of file spear3xx_clock.c.

#define MCTR_CLK_MASK   3

Definition at line 30 of file spear3xx_clock.c.

#define MCTR_CLK_SHIFT   28

Definition at line 29 of file spear3xx_clock.c.

#define PCLK_RATIO_MASK   2

Definition at line 40 of file spear3xx_clock.c.

#define PCLK_RATIO_SHIFT   8

Definition at line 39 of file spear3xx_clock.c.

#define PERIP1_CLK_ENB   (MISC_BASE + 0x02C)

Definition at line 53 of file spear3xx_clock.c.

#define PERIP_CLK_CFG   (MISC_BASE + 0x028)

Definition at line 42 of file spear3xx_clock.c.

#define PLL1_CTR   (MISC_BASE + 0x008)

Definition at line 23 of file spear3xx_clock.c.

#define PLL1_FRQ   (MISC_BASE + 0x00C)

Definition at line 24 of file spear3xx_clock.c.

#define PLL2_CTR   (MISC_BASE + 0x014)

Definition at line 25 of file spear3xx_clock.c.

#define PLL2_FRQ   (MISC_BASE + 0x018)

Definition at line 26 of file spear3xx_clock.c.

#define PLL_CLK_CFG   (MISC_BASE + 0x020)

Definition at line 27 of file spear3xx_clock.c.

#define PRSC0_CLK_CFG   (MISC_BASE + 0x044)

Definition at line 85 of file spear3xx_clock.c.

#define PRSC1_CLK_CFG   (MISC_BASE + 0x048)

Definition at line 86 of file spear3xx_clock.c.

#define PRSC2_CLK_CFG   (MISC_BASE + 0x04C)

Definition at line 87 of file spear3xx_clock.c.

#define RAS_24M_CLK_ENB   4

Definition at line 77 of file spear3xx_clock.c.

#define RAS_32K_CLK_ENB   3

Definition at line 76 of file spear3xx_clock.c.

#define RAS_48M_CLK_ENB   5

Definition at line 78 of file spear3xx_clock.c.

#define RAS_AHB_CLK_ENB   0

Definition at line 73 of file spear3xx_clock.c.

#define RAS_APB_CLK_ENB   2

Definition at line 75 of file spear3xx_clock.c.

#define RAS_CLK_ENB   (MISC_BASE + 0x034)

Definition at line 72 of file spear3xx_clock.c.

#define RAS_PLL1_CLK_ENB   1

Definition at line 74 of file spear3xx_clock.c.

#define RAS_PLL2_CLK_ENB   7

Definition at line 79 of file spear3xx_clock.c.

#define RAS_SYNT0_CLK_ENB   8

Definition at line 80 of file spear3xx_clock.c.

#define RAS_SYNT1_CLK_ENB   9

Definition at line 81 of file spear3xx_clock.c.

#define RAS_SYNT2_CLK_ENB   10

Definition at line 82 of file spear3xx_clock.c.

#define RAS_SYNT3_CLK_ENB   11

Definition at line 83 of file spear3xx_clock.c.

#define RTC_CLK_ENB   17

Definition at line 63 of file spear3xx_clock.c.

#define SMI_CLK_ENB   21

Definition at line 66 of file spear3xx_clock.c.

#define SSP_CLK_ENB   5

Definition at line 56 of file spear3xx_clock.c.

#define UART_CLK_ENB   3

Definition at line 55 of file spear3xx_clock.c.

#define UART_CLK_MASK   1

Definition at line 45 of file spear3xx_clock.c.

#define UART_CLK_SHIFT   4

Definition at line 44 of file spear3xx_clock.c.

#define UART_CLK_SYNT   (MISC_BASE + 0x064)

Definition at line 93 of file spear3xx_clock.c.

#define USBD_CLK_ENB   24

Definition at line 68 of file spear3xx_clock.c.

#define USBH_CLK_ENB   25

Definition at line 69 of file spear3xx_clock.c.

Function Documentation

void __init spear3xx_clk_init ( void  )

Definition at line 341 of file spear3xx_clock.c.