Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
clk-imx27.c File Reference
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <linux/clk-provider.h>
#include <linux/of.h>
#include <mach/common.h>
#include <mach/hardware.h>
#include "clk.h"

Go to the source code of this file.

Macros

#define IO_ADDR_CCM(off)   (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR + (off)))
 
#define CCM_CSCR   IO_ADDR_CCM(0x0)
 
#define CCM_MPCTL0   IO_ADDR_CCM(0x4)
 
#define CCM_MPCTL1   IO_ADDR_CCM(0x8)
 
#define CCM_SPCTL0   IO_ADDR_CCM(0xc)
 
#define CCM_SPCTL1   IO_ADDR_CCM(0x10)
 
#define CCM_OSC26MCTL   IO_ADDR_CCM(0x14)
 
#define CCM_PCDR0   IO_ADDR_CCM(0x18)
 
#define CCM_PCDR1   IO_ADDR_CCM(0x1c)
 
#define CCM_PCCR0   IO_ADDR_CCM(0x20)
 
#define CCM_PCCR1   IO_ADDR_CCM(0x24)
 
#define CCM_CCSR   IO_ADDR_CCM(0x28)
 
#define CCM_PMCTL   IO_ADDR_CCM(0x2c)
 
#define CCM_PMCOUNT   IO_ADDR_CCM(0x30)
 
#define CCM_WKGDCTL   IO_ADDR_CCM(0x34)
 
#define CCM_CSCR_UPDATE_DIS   (1 << 31)
 
#define CCM_CSCR_SSI2   (1 << 23)
 
#define CCM_CSCR_SSI1   (1 << 22)
 
#define CCM_CSCR_VPU   (1 << 21)
 
#define CCM_CSCR_MSHC   (1 << 20)
 
#define CCM_CSCR_SPLLRES   (1 << 19)
 
#define CCM_CSCR_MPLLRES   (1 << 18)
 
#define CCM_CSCR_SP   (1 << 17)
 
#define CCM_CSCR_MCU   (1 << 16)
 
#define CCM_CSCR_OSC26MDIV   (1 << 4)
 
#define CCM_CSCR_OSC26M   (1 << 3)
 
#define CCM_CSCR_FPM   (1 << 2)
 
#define CCM_CSCR_SPEN   (1 << 1)
 
#define CCM_CSCR_MPEN   (1 << 0)
 
#define CCM_CSCR_ARM_SRC   (1 << 15)
 
#define CCM_SPCTL1_LF   (1 << 15)
 
#define CCM_SPCTL1_BRMO   (1 << 6)
 

Enumerations

enum  mx27_clks {
  dummy, ckih, ckil, mpll,
  spll, mpll_main2, ahb, ipg,
  nfc_div, per1_div, per2_div, per3_div,
  per4_div, vpu_sel, vpu_div, usb_div,
  cpu_sel, clko_sel, cpu_div, clko_div,
  ssi1_sel, ssi2_sel, ssi1_div, ssi2_div,
  clko_en, ssi2_ipg_gate, ssi1_ipg_gate, slcdc_ipg_gate,
  sdhc3_ipg_gate, sdhc2_ipg_gate, sdhc1_ipg_gate, scc_ipg_gate,
  sahara_ipg_gate, rtc_ipg_gate, pwm_ipg_gate, owire_ipg_gate,
  lcdc_ipg_gate, kpp_ipg_gate, iim_ipg_gate, i2c2_ipg_gate,
  i2c1_ipg_gate, gpt6_ipg_gate, gpt5_ipg_gate, gpt4_ipg_gate,
  gpt3_ipg_gate, gpt2_ipg_gate, gpt1_ipg_gate, gpio_ipg_gate,
  fec_ipg_gate, emma_ipg_gate, dma_ipg_gate, cspi3_ipg_gate,
  cspi2_ipg_gate, cspi1_ipg_gate, nfc_baud_gate, ssi2_baud_gate,
  ssi1_baud_gate, vpu_baud_gate, per4_gate, per3_gate,
  per2_gate, per1_gate, usb_ahb_gate, slcdc_ahb_gate,
  sahara_ahb_gate, lcdc_ahb_gate, vpu_ahb_gate, fec_ahb_gate,
  emma_ahb_gate, emi_ahb_gate, dma_ahb_gate, csi_ahb_gate,
  brom_ahb_gate, ata_ahb_gate, wdog_ipg_gate, usb_ipg_gate,
  uart6_ipg_gate, uart5_ipg_gate, uart4_ipg_gate, uart3_ipg_gate,
  uart2_ipg_gate, uart1_ipg_gate, clk_max
}
 

Functions

int __init mx27_clocks_init (unsigned long fref)
 

Macro Definition Documentation

#define CCM_CCSR   IO_ADDR_CCM(0x28)

Definition at line 26 of file clk-imx27.c.

#define CCM_CSCR   IO_ADDR_CCM(0x0)

Definition at line 16 of file clk-imx27.c.

#define CCM_CSCR_ARM_SRC   (1 << 15)

Definition at line 47 of file clk-imx27.c.

#define CCM_CSCR_FPM   (1 << 2)

Definition at line 42 of file clk-imx27.c.

#define CCM_CSCR_MCU   (1 << 16)

Definition at line 39 of file clk-imx27.c.

#define CCM_CSCR_MPEN   (1 << 0)

Definition at line 44 of file clk-imx27.c.

#define CCM_CSCR_MPLLRES   (1 << 18)

Definition at line 37 of file clk-imx27.c.

#define CCM_CSCR_MSHC   (1 << 20)

Definition at line 35 of file clk-imx27.c.

#define CCM_CSCR_OSC26M   (1 << 3)

Definition at line 41 of file clk-imx27.c.

#define CCM_CSCR_OSC26MDIV   (1 << 4)

Definition at line 40 of file clk-imx27.c.

#define CCM_CSCR_SP   (1 << 17)

Definition at line 38 of file clk-imx27.c.

#define CCM_CSCR_SPEN   (1 << 1)

Definition at line 43 of file clk-imx27.c.

#define CCM_CSCR_SPLLRES   (1 << 19)

Definition at line 36 of file clk-imx27.c.

#define CCM_CSCR_SSI1   (1 << 22)

Definition at line 33 of file clk-imx27.c.

#define CCM_CSCR_SSI2   (1 << 23)

Definition at line 32 of file clk-imx27.c.

#define CCM_CSCR_UPDATE_DIS   (1 << 31)

Definition at line 31 of file clk-imx27.c.

#define CCM_CSCR_VPU   (1 << 21)

Definition at line 34 of file clk-imx27.c.

#define CCM_MPCTL0   IO_ADDR_CCM(0x4)

Definition at line 17 of file clk-imx27.c.

#define CCM_MPCTL1   IO_ADDR_CCM(0x8)

Definition at line 18 of file clk-imx27.c.

#define CCM_OSC26MCTL   IO_ADDR_CCM(0x14)

Definition at line 21 of file clk-imx27.c.

#define CCM_PCCR0   IO_ADDR_CCM(0x20)

Definition at line 24 of file clk-imx27.c.

#define CCM_PCCR1   IO_ADDR_CCM(0x24)

Definition at line 25 of file clk-imx27.c.

#define CCM_PCDR0   IO_ADDR_CCM(0x18)

Definition at line 22 of file clk-imx27.c.

#define CCM_PCDR1   IO_ADDR_CCM(0x1c)

Definition at line 23 of file clk-imx27.c.

#define CCM_PMCOUNT   IO_ADDR_CCM(0x30)

Definition at line 28 of file clk-imx27.c.

#define CCM_PMCTL   IO_ADDR_CCM(0x2c)

Definition at line 27 of file clk-imx27.c.

#define CCM_SPCTL0   IO_ADDR_CCM(0xc)

Definition at line 19 of file clk-imx27.c.

#define CCM_SPCTL1   IO_ADDR_CCM(0x10)

Definition at line 20 of file clk-imx27.c.

#define CCM_SPCTL1_BRMO   (1 << 6)

Definition at line 50 of file clk-imx27.c.

#define CCM_SPCTL1_LF   (1 << 15)

Definition at line 49 of file clk-imx27.c.

#define CCM_WKGDCTL   IO_ADDR_CCM(0x34)

Definition at line 29 of file clk-imx27.c.

#define IO_ADDR_CCM (   off)    (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR + (off)))

Definition at line 13 of file clk-imx27.c.

Enumeration Type Documentation

enum mx27_clks
Enumerator:
dummy 
ckih 
ckil 
mpll 
spll 
mpll_main2 
ahb 
ipg 
nfc_div 
per1_div 
per2_div 
per3_div 
per4_div 
vpu_sel 
vpu_div 
usb_div 
cpu_sel 
clko_sel 
cpu_div 
clko_div 
ssi1_sel 
ssi2_sel 
ssi1_div 
ssi2_div 
clko_en 
ssi2_ipg_gate 
ssi1_ipg_gate 
slcdc_ipg_gate 
sdhc3_ipg_gate 
sdhc2_ipg_gate 
sdhc1_ipg_gate 
scc_ipg_gate 
sahara_ipg_gate 
rtc_ipg_gate 
pwm_ipg_gate 
owire_ipg_gate 
lcdc_ipg_gate 
kpp_ipg_gate 
iim_ipg_gate 
i2c2_ipg_gate 
i2c1_ipg_gate 
gpt6_ipg_gate 
gpt5_ipg_gate 
gpt4_ipg_gate 
gpt3_ipg_gate 
gpt2_ipg_gate 
gpt1_ipg_gate 
gpio_ipg_gate 
fec_ipg_gate 
emma_ipg_gate 
dma_ipg_gate 
cspi3_ipg_gate 
cspi2_ipg_gate 
cspi1_ipg_gate 
nfc_baud_gate 
ssi2_baud_gate 
ssi1_baud_gate 
vpu_baud_gate 
per4_gate 
per3_gate 
per2_gate 
per1_gate 
usb_ahb_gate 
slcdc_ahb_gate 
sahara_ahb_gate 
lcdc_ahb_gate 
vpu_ahb_gate 
fec_ahb_gate 
emma_ahb_gate 
emi_ahb_gate 
dma_ahb_gate 
csi_ahb_gate 
brom_ahb_gate 
ata_ahb_gate 
wdog_ipg_gate 
usb_ipg_gate 
uart6_ipg_gate 
uart5_ipg_gate 
uart4_ipg_gate 
uart3_ipg_gate 
uart2_ipg_gate 
uart1_ipg_gate 
clk_max 

Definition at line 65 of file clk-imx27.c.

Function Documentation

int __init mx27_clocks_init ( unsigned long  fref)

Definition at line 87 of file clk-imx27.c.