Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
spear1310_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/spear.h>
#include "clk.h"

Go to the source code of this file.

Macros

#define SPEAR1310_PLL_CFG   (VA_MISC_BASE + 0x210)
 
#define SPEAR1310_CLCD_SYNT_CLK_MASK   1
 
#define SPEAR1310_CLCD_SYNT_CLK_SHIFT   31
 
#define SPEAR1310_RAS_SYNT2_3_CLK_MASK   2
 
#define SPEAR1310_RAS_SYNT2_3_CLK_SHIFT   29
 
#define SPEAR1310_RAS_SYNT_CLK_MASK   2
 
#define SPEAR1310_RAS_SYNT0_1_CLK_SHIFT   27
 
#define SPEAR1310_PLL_CLK_MASK   2
 
#define SPEAR1310_PLL3_CLK_SHIFT   24
 
#define SPEAR1310_PLL2_CLK_SHIFT   22
 
#define SPEAR1310_PLL1_CLK_SHIFT   20
 
#define SPEAR1310_PLL1_CTR   (VA_MISC_BASE + 0x214)
 
#define SPEAR1310_PLL1_FRQ   (VA_MISC_BASE + 0x218)
 
#define SPEAR1310_PLL2_CTR   (VA_MISC_BASE + 0x220)
 
#define SPEAR1310_PLL2_FRQ   (VA_MISC_BASE + 0x224)
 
#define SPEAR1310_PLL3_CTR   (VA_MISC_BASE + 0x22C)
 
#define SPEAR1310_PLL3_FRQ   (VA_MISC_BASE + 0x230)
 
#define SPEAR1310_PLL4_CTR   (VA_MISC_BASE + 0x238)
 
#define SPEAR1310_PLL4_FRQ   (VA_MISC_BASE + 0x23C)
 
#define SPEAR1310_PERIP_CLK_CFG   (VA_MISC_BASE + 0x244)
 
#define SPEAR1310_GPT_OSC24_VAL   0
 
#define SPEAR1310_GPT_APB_VAL   1
 
#define SPEAR1310_GPT_CLK_MASK   1
 
#define SPEAR1310_GPT3_CLK_SHIFT   11
 
#define SPEAR1310_GPT2_CLK_SHIFT   10
 
#define SPEAR1310_GPT1_CLK_SHIFT   9
 
#define SPEAR1310_GPT0_CLK_SHIFT   8
 
#define SPEAR1310_UART_CLK_PLL5_VAL   0
 
#define SPEAR1310_UART_CLK_OSC24_VAL   1
 
#define SPEAR1310_UART_CLK_SYNT_VAL   2
 
#define SPEAR1310_UART_CLK_MASK   2
 
#define SPEAR1310_UART_CLK_SHIFT   4
 
#define SPEAR1310_AUX_CLK_PLL5_VAL   0
 
#define SPEAR1310_AUX_CLK_SYNT_VAL   1
 
#define SPEAR1310_CLCD_CLK_MASK   2
 
#define SPEAR1310_CLCD_CLK_SHIFT   2
 
#define SPEAR1310_C3_CLK_MASK   1
 
#define SPEAR1310_C3_CLK_SHIFT   1
 
#define SPEAR1310_GMAC_CLK_CFG   (VA_MISC_BASE + 0x248)
 
#define SPEAR1310_GMAC_PHY_IF_SEL_MASK   3
 
#define SPEAR1310_GMAC_PHY_IF_SEL_SHIFT   4
 
#define SPEAR1310_GMAC_PHY_CLK_MASK   1
 
#define SPEAR1310_GMAC_PHY_CLK_SHIFT   3
 
#define SPEAR1310_GMAC_PHY_INPUT_CLK_MASK   2
 
#define SPEAR1310_GMAC_PHY_INPUT_CLK_SHIFT   1
 
#define SPEAR1310_I2S_CLK_CFG   (VA_MISC_BASE + 0x24C)
 
#define SPEAR1310_I2S_SCLK_X_MASK   0x1F
 
#define SPEAR1310_I2S_SCLK_X_SHIFT   27
 
#define SPEAR1310_I2S_SCLK_Y_MASK   0x1F
 
#define SPEAR1310_I2S_SCLK_Y_SHIFT   22
 
#define SPEAR1310_I2S_SCLK_EQ_SEL_SHIFT   21
 
#define SPEAR1310_I2S_SCLK_SYNTH_ENB   20
 
#define SPEAR1310_I2S_PRS1_CLK_X_MASK   0xFF
 
#define SPEAR1310_I2S_PRS1_CLK_X_SHIFT   12
 
#define SPEAR1310_I2S_PRS1_CLK_Y_MASK   0xFF
 
#define SPEAR1310_I2S_PRS1_CLK_Y_SHIFT   4
 
#define SPEAR1310_I2S_PRS1_EQ_SEL_SHIFT   3
 
#define SPEAR1310_I2S_REF_SEL_MASK   1
 
#define SPEAR1310_I2S_REF_SHIFT   2
 
#define SPEAR1310_I2S_SRC_CLK_MASK   2
 
#define SPEAR1310_I2S_SRC_CLK_SHIFT   0
 
#define SPEAR1310_C3_CLK_SYNT   (VA_MISC_BASE + 0x250)
 
#define SPEAR1310_UART_CLK_SYNT   (VA_MISC_BASE + 0x254)
 
#define SPEAR1310_GMAC_CLK_SYNT   (VA_MISC_BASE + 0x258)
 
#define SPEAR1310_SDHCI_CLK_SYNT   (VA_MISC_BASE + 0x25C)
 
#define SPEAR1310_CFXD_CLK_SYNT   (VA_MISC_BASE + 0x260)
 
#define SPEAR1310_ADC_CLK_SYNT   (VA_MISC_BASE + 0x264)
 
#define SPEAR1310_AMBA_CLK_SYNT   (VA_MISC_BASE + 0x268)
 
#define SPEAR1310_CLCD_CLK_SYNT   (VA_MISC_BASE + 0x270)
 
#define SPEAR1310_RAS_CLK_SYNT0   (VA_MISC_BASE + 0x280)
 
#define SPEAR1310_RAS_CLK_SYNT1   (VA_MISC_BASE + 0x288)
 
#define SPEAR1310_RAS_CLK_SYNT2   (VA_MISC_BASE + 0x290)
 
#define SPEAR1310_RAS_CLK_SYNT3   (VA_MISC_BASE + 0x298)
 
#define SPEAR1310_PERIP1_CLK_ENB   (VA_MISC_BASE + 0x300)
 
#define SPEAR1310_RTC_CLK_ENB   31
 
#define SPEAR1310_ADC_CLK_ENB   30
 
#define SPEAR1310_C3_CLK_ENB   29
 
#define SPEAR1310_JPEG_CLK_ENB   28
 
#define SPEAR1310_CLCD_CLK_ENB   27
 
#define SPEAR1310_DMA_CLK_ENB   25
 
#define SPEAR1310_GPIO1_CLK_ENB   24
 
#define SPEAR1310_GPIO0_CLK_ENB   23
 
#define SPEAR1310_GPT1_CLK_ENB   22
 
#define SPEAR1310_GPT0_CLK_ENB   21
 
#define SPEAR1310_I2S0_CLK_ENB   20
 
#define SPEAR1310_I2S1_CLK_ENB   19
 
#define SPEAR1310_I2C0_CLK_ENB   18
 
#define SPEAR1310_SSP_CLK_ENB   17
 
#define SPEAR1310_UART_CLK_ENB   15
 
#define SPEAR1310_PCIE_SATA_2_CLK_ENB   14
 
#define SPEAR1310_PCIE_SATA_1_CLK_ENB   13
 
#define SPEAR1310_PCIE_SATA_0_CLK_ENB   12
 
#define SPEAR1310_UOC_CLK_ENB   11
 
#define SPEAR1310_UHC1_CLK_ENB   10
 
#define SPEAR1310_UHC0_CLK_ENB   9
 
#define SPEAR1310_GMAC_CLK_ENB   8
 
#define SPEAR1310_CFXD_CLK_ENB   7
 
#define SPEAR1310_SDHCI_CLK_ENB   6
 
#define SPEAR1310_SMI_CLK_ENB   5
 
#define SPEAR1310_FSMC_CLK_ENB   4
 
#define SPEAR1310_SYSRAM0_CLK_ENB   3
 
#define SPEAR1310_SYSRAM1_CLK_ENB   2
 
#define SPEAR1310_SYSROM_CLK_ENB   1
 
#define SPEAR1310_BUS_CLK_ENB   0
 
#define SPEAR1310_PERIP2_CLK_ENB   (VA_MISC_BASE + 0x304)
 
#define SPEAR1310_THSENS_CLK_ENB   8
 
#define SPEAR1310_I2S_REF_PAD_CLK_ENB   7
 
#define SPEAR1310_ACP_CLK_ENB   6
 
#define SPEAR1310_GPT3_CLK_ENB   5
 
#define SPEAR1310_GPT2_CLK_ENB   4
 
#define SPEAR1310_KBD_CLK_ENB   3
 
#define SPEAR1310_CPU_DBG_CLK_ENB   2
 
#define SPEAR1310_DDR_CORE_CLK_ENB   1
 
#define SPEAR1310_DDR_CTRL_CLK_ENB   0
 
#define SPEAR1310_RAS_CLK_ENB   (VA_MISC_BASE + 0x310)
 
#define SPEAR1310_SYNT3_CLK_ENB   17
 
#define SPEAR1310_SYNT2_CLK_ENB   16
 
#define SPEAR1310_SYNT1_CLK_ENB   15
 
#define SPEAR1310_SYNT0_CLK_ENB   14
 
#define SPEAR1310_PCLK3_CLK_ENB   13
 
#define SPEAR1310_PCLK2_CLK_ENB   12
 
#define SPEAR1310_PCLK1_CLK_ENB   11
 
#define SPEAR1310_PCLK0_CLK_ENB   10
 
#define SPEAR1310_PLL3_CLK_ENB   9
 
#define SPEAR1310_PLL2_CLK_ENB   8
 
#define SPEAR1310_C125M_PAD_CLK_ENB   7
 
#define SPEAR1310_C30M_CLK_ENB   6
 
#define SPEAR1310_C48M_CLK_ENB   5
 
#define SPEAR1310_OSC_25M_CLK_ENB   4
 
#define SPEAR1310_OSC_32K_CLK_ENB   3
 
#define SPEAR1310_OSC_24M_CLK_ENB   2
 
#define SPEAR1310_PCLK_CLK_ENB   1
 
#define SPEAR1310_ACLK_CLK_ENB   0
 
#define SPEAR1310_RAS_CTRL_REG0   (VA_SPEAR1310_RAS_BASE + 0x000)
 
#define SPEAR1310_SSP1_CLK_MASK   3
 
#define SPEAR1310_SSP1_CLK_SHIFT   26
 
#define SPEAR1310_TDM_CLK_MASK   1
 
#define SPEAR1310_TDM2_CLK_SHIFT   24
 
#define SPEAR1310_TDM1_CLK_SHIFT   23
 
#define SPEAR1310_I2C_CLK_MASK   1
 
#define SPEAR1310_I2C7_CLK_SHIFT   22
 
#define SPEAR1310_I2C6_CLK_SHIFT   21
 
#define SPEAR1310_I2C5_CLK_SHIFT   20
 
#define SPEAR1310_I2C4_CLK_SHIFT   19
 
#define SPEAR1310_I2C3_CLK_SHIFT   18
 
#define SPEAR1310_I2C2_CLK_SHIFT   17
 
#define SPEAR1310_I2C1_CLK_SHIFT   16
 
#define SPEAR1310_GPT64_CLK_MASK   1
 
#define SPEAR1310_GPT64_CLK_SHIFT   15
 
#define SPEAR1310_RAS_UART_CLK_MASK   1
 
#define SPEAR1310_UART5_CLK_SHIFT   14
 
#define SPEAR1310_UART4_CLK_SHIFT   13
 
#define SPEAR1310_UART3_CLK_SHIFT   12
 
#define SPEAR1310_UART2_CLK_SHIFT   11
 
#define SPEAR1310_UART1_CLK_SHIFT   10
 
#define SPEAR1310_PCI_CLK_MASK   1
 
#define SPEAR1310_PCI_CLK_SHIFT   0
 
#define SPEAR1310_RAS_CTRL_REG1   (VA_SPEAR1310_RAS_BASE + 0x004)
 
#define SPEAR1310_PHY_CLK_MASK   0x3
 
#define SPEAR1310_RMII_PHY_CLK_SHIFT   0
 
#define SPEAR1310_SMII_RGMII_PHY_CLK_SHIFT   2
 
#define SPEAR1310_RAS_SW_CLK_CTRL   (VA_SPEAR1310_RAS_BASE + 0x0148)
 
#define SPEAR1310_CAN1_CLK_ENB   25
 
#define SPEAR1310_CAN0_CLK_ENB   24
 
#define SPEAR1310_GPT64_CLK_ENB   23
 
#define SPEAR1310_SSP1_CLK_ENB   22
 
#define SPEAR1310_I2C7_CLK_ENB   21
 
#define SPEAR1310_I2C6_CLK_ENB   20
 
#define SPEAR1310_I2C5_CLK_ENB   19
 
#define SPEAR1310_I2C4_CLK_ENB   18
 
#define SPEAR1310_I2C3_CLK_ENB   17
 
#define SPEAR1310_I2C2_CLK_ENB   16
 
#define SPEAR1310_I2C1_CLK_ENB   15
 
#define SPEAR1310_UART5_CLK_ENB   14
 
#define SPEAR1310_UART4_CLK_ENB   13
 
#define SPEAR1310_UART3_CLK_ENB   12
 
#define SPEAR1310_UART2_CLK_ENB   11
 
#define SPEAR1310_UART1_CLK_ENB   10
 
#define SPEAR1310_RS485_1_CLK_ENB   9
 
#define SPEAR1310_RS485_0_CLK_ENB   8
 
#define SPEAR1310_TDM2_CLK_ENB   7
 
#define SPEAR1310_TDM1_CLK_ENB   6
 
#define SPEAR1310_PCI_CLK_ENB   5
 
#define SPEAR1310_GMII_CLK_ENB   4
 
#define SPEAR1310_MII2_CLK_ENB   3
 
#define SPEAR1310_MII1_CLK_ENB   2
 
#define SPEAR1310_MII0_CLK_ENB   1
 
#define SPEAR1310_ESRAM_CLK_ENB   0
 

Functions

void __init spear1310_clk_init (void)
 

Macro Definition Documentation

#define SPEAR1310_ACLK_CLK_ENB   0

Definition at line 171 of file spear1310_clock.c.

#define SPEAR1310_ACP_CLK_ENB   6

Definition at line 144 of file spear1310_clock.c.

#define SPEAR1310_ADC_CLK_ENB   30

Definition at line 110 of file spear1310_clock.c.

#define SPEAR1310_ADC_CLK_SYNT   (VA_MISC_BASE + 0x264)

Definition at line 98 of file spear1310_clock.c.

#define SPEAR1310_AMBA_CLK_SYNT   (VA_MISC_BASE + 0x268)

Definition at line 99 of file spear1310_clock.c.

#define SPEAR1310_AUX_CLK_PLL5_VAL   0

Definition at line 60 of file spear1310_clock.c.

#define SPEAR1310_AUX_CLK_SYNT_VAL   1

Definition at line 61 of file spear1310_clock.c.

#define SPEAR1310_BUS_CLK_ENB   0

Definition at line 138 of file spear1310_clock.c.

#define SPEAR1310_C125M_PAD_CLK_ENB   7

Definition at line 164 of file spear1310_clock.c.

#define SPEAR1310_C30M_CLK_ENB   6

Definition at line 165 of file spear1310_clock.c.

#define SPEAR1310_C3_CLK_ENB   29

Definition at line 111 of file spear1310_clock.c.

#define SPEAR1310_C3_CLK_MASK   1

Definition at line 64 of file spear1310_clock.c.

#define SPEAR1310_C3_CLK_SHIFT   1

Definition at line 65 of file spear1310_clock.c.

#define SPEAR1310_C3_CLK_SYNT   (VA_MISC_BASE + 0x250)

Definition at line 93 of file spear1310_clock.c.

#define SPEAR1310_C48M_CLK_ENB   5

Definition at line 166 of file spear1310_clock.c.

#define SPEAR1310_CAN0_CLK_ENB   24

Definition at line 206 of file spear1310_clock.c.

#define SPEAR1310_CAN1_CLK_ENB   25

Definition at line 205 of file spear1310_clock.c.

#define SPEAR1310_CFXD_CLK_ENB   7

Definition at line 131 of file spear1310_clock.c.

#define SPEAR1310_CFXD_CLK_SYNT   (VA_MISC_BASE + 0x260)

Definition at line 97 of file spear1310_clock.c.

#define SPEAR1310_CLCD_CLK_ENB   27

Definition at line 113 of file spear1310_clock.c.

#define SPEAR1310_CLCD_CLK_MASK   2

Definition at line 62 of file spear1310_clock.c.

#define SPEAR1310_CLCD_CLK_SHIFT   2

Definition at line 63 of file spear1310_clock.c.

#define SPEAR1310_CLCD_CLK_SYNT   (VA_MISC_BASE + 0x270)

Definition at line 100 of file spear1310_clock.c.

#define SPEAR1310_CLCD_SYNT_CLK_MASK   1

Definition at line 26 of file spear1310_clock.c.

#define SPEAR1310_CLCD_SYNT_CLK_SHIFT   31

Definition at line 27 of file spear1310_clock.c.

#define SPEAR1310_CPU_DBG_CLK_ENB   2

Definition at line 148 of file spear1310_clock.c.

#define SPEAR1310_DDR_CORE_CLK_ENB   1

Definition at line 149 of file spear1310_clock.c.

#define SPEAR1310_DDR_CTRL_CLK_ENB   0

Definition at line 150 of file spear1310_clock.c.

#define SPEAR1310_DMA_CLK_ENB   25

Definition at line 114 of file spear1310_clock.c.

#define SPEAR1310_ESRAM_CLK_ENB   0

Definition at line 230 of file spear1310_clock.c.

#define SPEAR1310_FSMC_CLK_ENB   4

Definition at line 134 of file spear1310_clock.c.

#define SPEAR1310_GMAC_CLK_CFG   (VA_MISC_BASE + 0x248)

Definition at line 67 of file spear1310_clock.c.

#define SPEAR1310_GMAC_CLK_ENB   8

Definition at line 130 of file spear1310_clock.c.

#define SPEAR1310_GMAC_CLK_SYNT   (VA_MISC_BASE + 0x258)

Definition at line 95 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_CLK_MASK   1

Definition at line 70 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_CLK_SHIFT   3

Definition at line 71 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_IF_SEL_MASK   3

Definition at line 68 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_IF_SEL_SHIFT   4

Definition at line 69 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_INPUT_CLK_MASK   2

Definition at line 72 of file spear1310_clock.c.

#define SPEAR1310_GMAC_PHY_INPUT_CLK_SHIFT   1

Definition at line 73 of file spear1310_clock.c.

#define SPEAR1310_GMII_CLK_ENB   4

Definition at line 226 of file spear1310_clock.c.

#define SPEAR1310_GPIO0_CLK_ENB   23

Definition at line 116 of file spear1310_clock.c.

#define SPEAR1310_GPIO1_CLK_ENB   24

Definition at line 115 of file spear1310_clock.c.

#define SPEAR1310_GPT0_CLK_ENB   21

Definition at line 118 of file spear1310_clock.c.

#define SPEAR1310_GPT0_CLK_SHIFT   8

Definition at line 53 of file spear1310_clock.c.

#define SPEAR1310_GPT1_CLK_ENB   22

Definition at line 117 of file spear1310_clock.c.

#define SPEAR1310_GPT1_CLK_SHIFT   9

Definition at line 52 of file spear1310_clock.c.

#define SPEAR1310_GPT2_CLK_ENB   4

Definition at line 146 of file spear1310_clock.c.

#define SPEAR1310_GPT2_CLK_SHIFT   10

Definition at line 51 of file spear1310_clock.c.

#define SPEAR1310_GPT3_CLK_ENB   5

Definition at line 145 of file spear1310_clock.c.

#define SPEAR1310_GPT3_CLK_SHIFT   11

Definition at line 50 of file spear1310_clock.c.

#define SPEAR1310_GPT64_CLK_ENB   23

Definition at line 207 of file spear1310_clock.c.

#define SPEAR1310_GPT64_CLK_MASK   1

Definition at line 188 of file spear1310_clock.c.

#define SPEAR1310_GPT64_CLK_SHIFT   15

Definition at line 189 of file spear1310_clock.c.

#define SPEAR1310_GPT_APB_VAL   1

Definition at line 48 of file spear1310_clock.c.

#define SPEAR1310_GPT_CLK_MASK   1

Definition at line 49 of file spear1310_clock.c.

#define SPEAR1310_GPT_OSC24_VAL   0

Definition at line 47 of file spear1310_clock.c.

#define SPEAR1310_I2C0_CLK_ENB   18

Definition at line 121 of file spear1310_clock.c.

#define SPEAR1310_I2C1_CLK_ENB   15

Definition at line 215 of file spear1310_clock.c.

#define SPEAR1310_I2C1_CLK_SHIFT   16

Definition at line 187 of file spear1310_clock.c.

#define SPEAR1310_I2C2_CLK_ENB   16

Definition at line 214 of file spear1310_clock.c.

#define SPEAR1310_I2C2_CLK_SHIFT   17

Definition at line 186 of file spear1310_clock.c.

#define SPEAR1310_I2C3_CLK_ENB   17

Definition at line 213 of file spear1310_clock.c.

#define SPEAR1310_I2C3_CLK_SHIFT   18

Definition at line 185 of file spear1310_clock.c.

#define SPEAR1310_I2C4_CLK_ENB   18

Definition at line 212 of file spear1310_clock.c.

#define SPEAR1310_I2C4_CLK_SHIFT   19

Definition at line 184 of file spear1310_clock.c.

#define SPEAR1310_I2C5_CLK_ENB   19

Definition at line 211 of file spear1310_clock.c.

#define SPEAR1310_I2C5_CLK_SHIFT   20

Definition at line 183 of file spear1310_clock.c.

#define SPEAR1310_I2C6_CLK_ENB   20

Definition at line 210 of file spear1310_clock.c.

#define SPEAR1310_I2C6_CLK_SHIFT   21

Definition at line 182 of file spear1310_clock.c.

#define SPEAR1310_I2C7_CLK_ENB   21

Definition at line 209 of file spear1310_clock.c.

#define SPEAR1310_I2C7_CLK_SHIFT   22

Definition at line 181 of file spear1310_clock.c.

#define SPEAR1310_I2C_CLK_MASK   1

Definition at line 180 of file spear1310_clock.c.

#define SPEAR1310_I2S0_CLK_ENB   20

Definition at line 119 of file spear1310_clock.c.

#define SPEAR1310_I2S1_CLK_ENB   19

Definition at line 120 of file spear1310_clock.c.

#define SPEAR1310_I2S_CLK_CFG   (VA_MISC_BASE + 0x24C)

Definition at line 75 of file spear1310_clock.c.

#define SPEAR1310_I2S_PRS1_CLK_X_MASK   0xFF

Definition at line 83 of file spear1310_clock.c.

#define SPEAR1310_I2S_PRS1_CLK_X_SHIFT   12

Definition at line 84 of file spear1310_clock.c.

#define SPEAR1310_I2S_PRS1_CLK_Y_MASK   0xFF

Definition at line 85 of file spear1310_clock.c.

#define SPEAR1310_I2S_PRS1_CLK_Y_SHIFT   4

Definition at line 86 of file spear1310_clock.c.

#define SPEAR1310_I2S_PRS1_EQ_SEL_SHIFT   3

Definition at line 87 of file spear1310_clock.c.

#define SPEAR1310_I2S_REF_PAD_CLK_ENB   7

Definition at line 143 of file spear1310_clock.c.

#define SPEAR1310_I2S_REF_SEL_MASK   1

Definition at line 88 of file spear1310_clock.c.

#define SPEAR1310_I2S_REF_SHIFT   2

Definition at line 89 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_EQ_SEL_SHIFT   21

Definition at line 81 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_SYNTH_ENB   20

Definition at line 82 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_X_MASK   0x1F

Definition at line 77 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_X_SHIFT   27

Definition at line 78 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_Y_MASK   0x1F

Definition at line 79 of file spear1310_clock.c.

#define SPEAR1310_I2S_SCLK_Y_SHIFT   22

Definition at line 80 of file spear1310_clock.c.

#define SPEAR1310_I2S_SRC_CLK_MASK   2

Definition at line 90 of file spear1310_clock.c.

#define SPEAR1310_I2S_SRC_CLK_SHIFT   0

Definition at line 91 of file spear1310_clock.c.

#define SPEAR1310_JPEG_CLK_ENB   28

Definition at line 112 of file spear1310_clock.c.

#define SPEAR1310_KBD_CLK_ENB   3

Definition at line 147 of file spear1310_clock.c.

#define SPEAR1310_MII0_CLK_ENB   1

Definition at line 229 of file spear1310_clock.c.

#define SPEAR1310_MII1_CLK_ENB   2

Definition at line 228 of file spear1310_clock.c.

#define SPEAR1310_MII2_CLK_ENB   3

Definition at line 227 of file spear1310_clock.c.

#define SPEAR1310_OSC_24M_CLK_ENB   2

Definition at line 169 of file spear1310_clock.c.

#define SPEAR1310_OSC_25M_CLK_ENB   4

Definition at line 167 of file spear1310_clock.c.

#define SPEAR1310_OSC_32K_CLK_ENB   3

Definition at line 168 of file spear1310_clock.c.

#define SPEAR1310_PCI_CLK_ENB   5

Definition at line 225 of file spear1310_clock.c.

#define SPEAR1310_PCI_CLK_MASK   1

Definition at line 196 of file spear1310_clock.c.

#define SPEAR1310_PCI_CLK_SHIFT   0

Definition at line 197 of file spear1310_clock.c.

#define SPEAR1310_PCIE_SATA_0_CLK_ENB   12

Definition at line 126 of file spear1310_clock.c.

#define SPEAR1310_PCIE_SATA_1_CLK_ENB   13

Definition at line 125 of file spear1310_clock.c.

#define SPEAR1310_PCIE_SATA_2_CLK_ENB   14

Definition at line 124 of file spear1310_clock.c.

#define SPEAR1310_PCLK0_CLK_ENB   10

Definition at line 161 of file spear1310_clock.c.

#define SPEAR1310_PCLK1_CLK_ENB   11

Definition at line 160 of file spear1310_clock.c.

#define SPEAR1310_PCLK2_CLK_ENB   12

Definition at line 159 of file spear1310_clock.c.

#define SPEAR1310_PCLK3_CLK_ENB   13

Definition at line 158 of file spear1310_clock.c.

#define SPEAR1310_PCLK_CLK_ENB   1

Definition at line 170 of file spear1310_clock.c.

#define SPEAR1310_PERIP1_CLK_ENB   (VA_MISC_BASE + 0x300)

Definition at line 107 of file spear1310_clock.c.

#define SPEAR1310_PERIP2_CLK_ENB   (VA_MISC_BASE + 0x304)

Definition at line 140 of file spear1310_clock.c.

#define SPEAR1310_PERIP_CLK_CFG   (VA_MISC_BASE + 0x244)

Definition at line 45 of file spear1310_clock.c.

#define SPEAR1310_PHY_CLK_MASK   0x3

Definition at line 200 of file spear1310_clock.c.

#define SPEAR1310_PLL1_CLK_SHIFT   20

Definition at line 35 of file spear1310_clock.c.

#define SPEAR1310_PLL1_CTR   (VA_MISC_BASE + 0x214)

Definition at line 37 of file spear1310_clock.c.

#define SPEAR1310_PLL1_FRQ   (VA_MISC_BASE + 0x218)

Definition at line 38 of file spear1310_clock.c.

#define SPEAR1310_PLL2_CLK_ENB   8

Definition at line 163 of file spear1310_clock.c.

#define SPEAR1310_PLL2_CLK_SHIFT   22

Definition at line 34 of file spear1310_clock.c.

#define SPEAR1310_PLL2_CTR   (VA_MISC_BASE + 0x220)

Definition at line 39 of file spear1310_clock.c.

#define SPEAR1310_PLL2_FRQ   (VA_MISC_BASE + 0x224)

Definition at line 40 of file spear1310_clock.c.

#define SPEAR1310_PLL3_CLK_ENB   9

Definition at line 162 of file spear1310_clock.c.

#define SPEAR1310_PLL3_CLK_SHIFT   24

Definition at line 33 of file spear1310_clock.c.

#define SPEAR1310_PLL3_CTR   (VA_MISC_BASE + 0x22C)

Definition at line 41 of file spear1310_clock.c.

#define SPEAR1310_PLL3_FRQ   (VA_MISC_BASE + 0x230)

Definition at line 42 of file spear1310_clock.c.

#define SPEAR1310_PLL4_CTR   (VA_MISC_BASE + 0x238)

Definition at line 43 of file spear1310_clock.c.

#define SPEAR1310_PLL4_FRQ   (VA_MISC_BASE + 0x23C)

Definition at line 44 of file spear1310_clock.c.

#define SPEAR1310_PLL_CFG   (VA_MISC_BASE + 0x210)

Definition at line 24 of file spear1310_clock.c.

#define SPEAR1310_PLL_CLK_MASK   2

Definition at line 32 of file spear1310_clock.c.

#define SPEAR1310_RAS_CLK_ENB   (VA_MISC_BASE + 0x310)

Definition at line 152 of file spear1310_clock.c.

#define SPEAR1310_RAS_CLK_SYNT0   (VA_MISC_BASE + 0x280)

Definition at line 101 of file spear1310_clock.c.

#define SPEAR1310_RAS_CLK_SYNT1   (VA_MISC_BASE + 0x288)

Definition at line 102 of file spear1310_clock.c.

#define SPEAR1310_RAS_CLK_SYNT2   (VA_MISC_BASE + 0x290)

Definition at line 103 of file spear1310_clock.c.

#define SPEAR1310_RAS_CLK_SYNT3   (VA_MISC_BASE + 0x298)

Definition at line 104 of file spear1310_clock.c.

#define SPEAR1310_RAS_CTRL_REG0   (VA_SPEAR1310_RAS_BASE + 0x000)

Definition at line 174 of file spear1310_clock.c.

#define SPEAR1310_RAS_CTRL_REG1   (VA_SPEAR1310_RAS_BASE + 0x004)

Definition at line 199 of file spear1310_clock.c.

#define SPEAR1310_RAS_SW_CLK_CTRL   (VA_SPEAR1310_RAS_BASE + 0x0148)

Definition at line 204 of file spear1310_clock.c.

#define SPEAR1310_RAS_SYNT0_1_CLK_SHIFT   27

Definition at line 31 of file spear1310_clock.c.

#define SPEAR1310_RAS_SYNT2_3_CLK_MASK   2

Definition at line 28 of file spear1310_clock.c.

#define SPEAR1310_RAS_SYNT2_3_CLK_SHIFT   29

Definition at line 29 of file spear1310_clock.c.

#define SPEAR1310_RAS_SYNT_CLK_MASK   2

Definition at line 30 of file spear1310_clock.c.

#define SPEAR1310_RAS_UART_CLK_MASK   1

Definition at line 190 of file spear1310_clock.c.

#define SPEAR1310_RMII_PHY_CLK_SHIFT   0

Definition at line 201 of file spear1310_clock.c.

#define SPEAR1310_RS485_0_CLK_ENB   8

Definition at line 222 of file spear1310_clock.c.

#define SPEAR1310_RS485_1_CLK_ENB   9

Definition at line 221 of file spear1310_clock.c.

#define SPEAR1310_RTC_CLK_ENB   31

Definition at line 109 of file spear1310_clock.c.

#define SPEAR1310_SDHCI_CLK_ENB   6

Definition at line 132 of file spear1310_clock.c.

#define SPEAR1310_SDHCI_CLK_SYNT   (VA_MISC_BASE + 0x25C)

Definition at line 96 of file spear1310_clock.c.

#define SPEAR1310_SMI_CLK_ENB   5

Definition at line 133 of file spear1310_clock.c.

#define SPEAR1310_SMII_RGMII_PHY_CLK_SHIFT   2

Definition at line 202 of file spear1310_clock.c.

#define SPEAR1310_SSP1_CLK_ENB   22

Definition at line 208 of file spear1310_clock.c.

#define SPEAR1310_SSP1_CLK_MASK   3

Definition at line 175 of file spear1310_clock.c.

#define SPEAR1310_SSP1_CLK_SHIFT   26

Definition at line 176 of file spear1310_clock.c.

#define SPEAR1310_SSP_CLK_ENB   17

Definition at line 122 of file spear1310_clock.c.

#define SPEAR1310_SYNT0_CLK_ENB   14

Definition at line 157 of file spear1310_clock.c.

#define SPEAR1310_SYNT1_CLK_ENB   15

Definition at line 156 of file spear1310_clock.c.

#define SPEAR1310_SYNT2_CLK_ENB   16

Definition at line 155 of file spear1310_clock.c.

#define SPEAR1310_SYNT3_CLK_ENB   17

Definition at line 154 of file spear1310_clock.c.

#define SPEAR1310_SYSRAM0_CLK_ENB   3

Definition at line 135 of file spear1310_clock.c.

#define SPEAR1310_SYSRAM1_CLK_ENB   2

Definition at line 136 of file spear1310_clock.c.

#define SPEAR1310_SYSROM_CLK_ENB   1

Definition at line 137 of file spear1310_clock.c.

#define SPEAR1310_TDM1_CLK_ENB   6

Definition at line 224 of file spear1310_clock.c.

#define SPEAR1310_TDM1_CLK_SHIFT   23

Definition at line 179 of file spear1310_clock.c.

#define SPEAR1310_TDM2_CLK_ENB   7

Definition at line 223 of file spear1310_clock.c.

#define SPEAR1310_TDM2_CLK_SHIFT   24

Definition at line 178 of file spear1310_clock.c.

#define SPEAR1310_TDM_CLK_MASK   1

Definition at line 177 of file spear1310_clock.c.

#define SPEAR1310_THSENS_CLK_ENB   8

Definition at line 142 of file spear1310_clock.c.

#define SPEAR1310_UART1_CLK_ENB   10

Definition at line 220 of file spear1310_clock.c.

#define SPEAR1310_UART1_CLK_SHIFT   10

Definition at line 195 of file spear1310_clock.c.

#define SPEAR1310_UART2_CLK_ENB   11

Definition at line 219 of file spear1310_clock.c.

#define SPEAR1310_UART2_CLK_SHIFT   11

Definition at line 194 of file spear1310_clock.c.

#define SPEAR1310_UART3_CLK_ENB   12

Definition at line 218 of file spear1310_clock.c.

#define SPEAR1310_UART3_CLK_SHIFT   12

Definition at line 193 of file spear1310_clock.c.

#define SPEAR1310_UART4_CLK_ENB   13

Definition at line 217 of file spear1310_clock.c.

#define SPEAR1310_UART4_CLK_SHIFT   13

Definition at line 192 of file spear1310_clock.c.

#define SPEAR1310_UART5_CLK_ENB   14

Definition at line 216 of file spear1310_clock.c.

#define SPEAR1310_UART5_CLK_SHIFT   14

Definition at line 191 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_ENB   15

Definition at line 123 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_MASK   2

Definition at line 57 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_OSC24_VAL   1

Definition at line 55 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_PLL5_VAL   0

Definition at line 54 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_SHIFT   4

Definition at line 58 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_SYNT   (VA_MISC_BASE + 0x254)

Definition at line 94 of file spear1310_clock.c.

#define SPEAR1310_UART_CLK_SYNT_VAL   2

Definition at line 56 of file spear1310_clock.c.

#define SPEAR1310_UHC0_CLK_ENB   9

Definition at line 129 of file spear1310_clock.c.

#define SPEAR1310_UHC1_CLK_ENB   10

Definition at line 128 of file spear1310_clock.c.

#define SPEAR1310_UOC_CLK_ENB   11

Definition at line 127 of file spear1310_clock.c.

Function Documentation

void __init spear1310_clk_init ( void  )

Definition at line 373 of file spear1310_clock.c.