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

Go to the source code of this file.

Macros

#define IO_ADDR_CCM(off)   (MX21_IO_ADDRESS(MX21_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)
 

Enumerations

enum  imx21_clks {
  ckil, ckih, fpm, mpll_sel,
  spll_sel, mpll, spll, fclk,
  hclk, ipg, per1, per2,
  per3, per4, uart1_ipg_gate, uart2_ipg_gate,
  uart3_ipg_gate, uart4_ipg_gate, gpt1_ipg_gate, gpt2_ipg_gate,
  gpt3_ipg_gate, pwm_ipg_gate, sdhc1_ipg_gate, sdhc2_ipg_gate,
  lcdc_ipg_gate, lcdc_hclk_gate, cspi3_ipg_gate, cspi2_ipg_gate,
  cspi1_ipg_gate, per4_gate, csi_hclk_gate, usb_div,
  usb_gate, usb_hclk_gate, ssi1_gate, ssi2_gate,
  nfc_div, nfc_gate, dma_gate, dma_hclk_gate,
  brom_gate, emma_gate, emma_hclk_gate, slcdc_gate,
  slcdc_hclk_gate, wdog_gate, gpio_gate, i2c_gate,
  kpp_gate, owire_gate, rtc_gate, clk_max
}
 

Functions

int __init mx21_clocks_init (unsigned long lref, unsigned long href)
 

Macro Definition Documentation

#define CCM_CCSR   IO_ADDR_CCM(0x28)

Definition at line 45 of file clk-imx21.c.

#define CCM_CSCR   IO_ADDR_CCM(0x0)

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

#define CCM_MPCTL0   IO_ADDR_CCM(0x4)

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

#define CCM_MPCTL1   IO_ADDR_CCM(0x8)

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

#define CCM_OSC26MCTL   IO_ADDR_CCM(0x14)

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

#define CCM_PCCR0   IO_ADDR_CCM(0x20)

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

#define CCM_PCCR1   IO_ADDR_CCM(0x24)

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

#define CCM_PCDR0   IO_ADDR_CCM(0x18)

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

#define CCM_PCDR1   IO_ADDR_CCM(0x1c)

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

#define CCM_PMCOUNT   IO_ADDR_CCM(0x30)

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

#define CCM_PMCTL   IO_ADDR_CCM(0x2c)

Definition at line 46 of file clk-imx21.c.

#define CCM_SPCTL0   IO_ADDR_CCM(0xc)

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

#define CCM_SPCTL1   IO_ADDR_CCM(0x10)

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

#define CCM_WKGDCTL   IO_ADDR_CCM(0x34)

Definition at line 48 of file clk-imx21.c.

#define IO_ADDR_CCM (   off)    (MX21_IO_ADDRESS(MX21_CCM_BASE_ADDR + (off)))

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

Enumeration Type Documentation

enum imx21_clks
Enumerator:
ckil 
ckih 
fpm 
mpll_sel 
spll_sel 
mpll 
spll 
fclk 
hclk 
ipg 
per1 
per2 
per3 
per4 
uart1_ipg_gate 
uart2_ipg_gate 
uart3_ipg_gate 
uart4_ipg_gate 
gpt1_ipg_gate 
gpt2_ipg_gate 
gpt3_ipg_gate 
pwm_ipg_gate 
sdhc1_ipg_gate 
sdhc2_ipg_gate 
lcdc_ipg_gate 
lcdc_hclk_gate 
cspi3_ipg_gate 
cspi2_ipg_gate 
cspi1_ipg_gate 
per4_gate 
csi_hclk_gate 
usb_div 
usb_gate 
usb_hclk_gate 
ssi1_gate 
ssi2_gate 
nfc_div 
nfc_gate 
dma_gate 
dma_hclk_gate 
brom_gate 
emma_gate 
emma_hclk_gate 
slcdc_gate 
slcdc_hclk_gate 
wdog_gate 
gpio_gate 
i2c_gate 
kpp_gate 
owire_gate 
rtc_gate 
clk_max 

Definition at line 53 of file clk-imx21.c.

Function Documentation

int __init mx21_clocks_init ( unsigned long  lref,
unsigned long  href 
)

Definition at line 71 of file clk-imx21.c.