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

Go to the source code of this file.

Macros

#define CRM_BASE   MX25_IO_ADDRESS(MX25_CRM_BASE_ADDR)
 
#define CCM_MPCTL   0x00
 
#define CCM_UPCTL   0x04
 
#define CCM_CCTL   0x08
 
#define CCM_CGCR0   0x0C
 
#define CCM_CGCR1   0x10
 
#define CCM_CGCR2   0x14
 
#define CCM_PCDR0   0x18
 
#define CCM_PCDR1   0x1C
 
#define CCM_PCDR2   0x20
 
#define CCM_PCDR3   0x24
 
#define CCM_RCSR   0x28
 
#define CCM_CRDR   0x2C
 
#define CCM_DCVR0   0x30
 
#define CCM_DCVR1   0x34
 
#define CCM_DCVR2   0x38
 
#define CCM_DCVR3   0x3c
 
#define CCM_LTR0   0x40
 
#define CCM_LTR1   0x44
 
#define CCM_LTR2   0x48
 
#define CCM_LTR3   0x4c
 
#define CCM_MCR   0x64
 
#define ccm(x)   (CRM_BASE + (x))
 

Enumerations

enum  mx25_clks {
  dummy, osc, mpll, upll,
  mpll_cpu_3_4, cpu_sel, cpu, ahb,
  usb_div, ipg, per0_sel, per1_sel,
  per2_sel, per3_sel, per4_sel, per5_sel,
  per6_sel, per7_sel, per8_sel, per9_sel,
  per10_sel, per11_sel, per12_sel, per13_sel,
  per14_sel, per15_sel, per0, per1,
  per2, per3, per4, per5,
  per6, per7, per8, per9,
  per10, per11, per12, per13,
  per14, per15, csi_ipg_per, esdhc1_ipg_per,
  esdhc2_ipg_per, gpt_ipg_per, i2c_ipg_per, lcdc_ipg_per,
  nfc_ipg_per, ssi1_ipg_per, ssi2_ipg_per, uart_ipg_per,
  csi_ahb, esdhc1_ahb, esdhc2_ahb, fec_ahb,
  lcdc_ahb, sdma_ahb, usbotg_ahb, can1_ipg,
  can2_ipg, csi_ipg, cspi1_ipg, cspi2_ipg,
  cspi3_ipg, dryice_ipg, esdhc1_ipg, esdhc2_ipg,
  fec_ipg, iim_ipg, kpp_ipg, lcdc_ipg,
  pwm1_ipg, pwm2_ipg, pwm3_ipg, pwm4_ipg,
  sdma_ipg, ssi1_ipg, ssi2_ipg, tsc_ipg,
  uart1_ipg, uart2_ipg, uart3_ipg, uart4_ipg,
  uart5_ipg, wdt_ipg, clk_max
}
 

Functions

int __init mx25_clocks_init (void)
 

Macro Definition Documentation

#define ccm (   x)    (CRM_BASE + (x))

Definition at line 56 of file clk-imx25.c.

#define CCM_CCTL   0x08

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

#define CCM_CGCR0   0x0C

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

#define CCM_CGCR1   0x10

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

#define CCM_CGCR2   0x14

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

#define CCM_CRDR   0x2C

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

#define CCM_DCVR0   0x30

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

#define CCM_DCVR1   0x34

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

#define CCM_DCVR2   0x38

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

#define CCM_DCVR3   0x3c

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

#define CCM_LTR0   0x40

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

#define CCM_LTR1   0x44

Definition at line 51 of file clk-imx25.c.

#define CCM_LTR2   0x48

Definition at line 52 of file clk-imx25.c.

#define CCM_LTR3   0x4c

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

#define CCM_MCR   0x64

Definition at line 54 of file clk-imx25.c.

#define CCM_MPCTL   0x00

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

#define CCM_PCDR0   0x18

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

#define CCM_PCDR1   0x1C

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

#define CCM_PCDR2   0x20

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

#define CCM_PCDR3   0x24

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

#define CCM_RCSR   0x28

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

#define CCM_UPCTL   0x04

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

#define CRM_BASE   MX25_IO_ADDRESS(MX25_CRM_BASE_ADDR)

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

Enumeration Type Documentation

enum mx25_clks
Enumerator:
dummy 
osc 
mpll 
upll 
mpll_cpu_3_4 
cpu_sel 
cpu 
ahb 
usb_div 
ipg 
per0_sel 
per1_sel 
per2_sel 
per3_sel 
per4_sel 
per5_sel 
per6_sel 
per7_sel 
per8_sel 
per9_sel 
per10_sel 
per11_sel 
per12_sel 
per13_sel 
per14_sel 
per15_sel 
per0 
per1 
per2 
per3 
per4 
per5 
per6 
per7 
per8 
per9 
per10 
per11 
per12 
per13 
per14 
per15 
csi_ipg_per 
esdhc1_ipg_per 
esdhc2_ipg_per 
gpt_ipg_per 
i2c_ipg_per 
lcdc_ipg_per 
nfc_ipg_per 
ssi1_ipg_per 
ssi2_ipg_per 
uart_ipg_per 
csi_ahb 
esdhc1_ahb 
esdhc2_ahb 
fec_ahb 
lcdc_ahb 
sdma_ahb 
usbotg_ahb 
can1_ipg 
can2_ipg 
csi_ipg 
cspi1_ipg 
cspi2_ipg 
cspi3_ipg 
dryice_ipg 
esdhc1_ipg 
esdhc2_ipg 
fec_ipg 
iim_ipg 
kpp_ipg 
lcdc_ipg 
pwm1_ipg 
pwm2_ipg 
pwm3_ipg 
pwm4_ipg 
sdma_ipg 
ssi1_ipg 
ssi2_ipg 
tsc_ipg 
uart1_ipg 
uart2_ipg 
uart3_ipg 
uart4_ipg 
uart5_ipg 
wdt_ipg 
clk_max 

Definition at line 61 of file clk-imx25.c.

Function Documentation

int __init mx25_clocks_init ( void  )

Definition at line 79 of file clk-imx25.c.