Linux Kernel
3.7.1
|
#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.
Functions | |
void __init | spear1340_clk_init (void) |
#define SPEAR1340_ACP_CLK_ENB 6 |
Definition at line 139 of file spear1340_clock.c.
#define SPEAR1340_ADC_CLK_ENB 30 |
Definition at line 109 of file spear1340_clock.c.
#define SPEAR1340_ADC_CLK_SYNT (VA_MISC_BASE + 0x270) |
Definition at line 99 of file spear1340_clock.c.
#define SPEAR1340_AMBA_CLK_SYNT (VA_MISC_BASE + 0x274) |
Definition at line 100 of file spear1340_clock.c.
#define SPEAR1340_BUS_CLK_ENB 0 |
Definition at line 134 of file spear1340_clock.c.
#define SPEAR1340_C3_CLK_ENB 29 |
Definition at line 110 of file spear1340_clock.c.
#define SPEAR1340_C3_CLK_MASK 1 |
Definition at line 66 of file spear1340_clock.c.
#define SPEAR1340_C3_CLK_SHIFT 1 |
Definition at line 67 of file spear1340_clock.c.
#define SPEAR1340_C3_CLK_SYNT (VA_MISC_BASE + 0x250) |
Definition at line 93 of file spear1340_clock.c.
#define SPEAR1340_CAM0_CLK_ENB 10 |
Definition at line 154 of file spear1340_clock.c.
#define SPEAR1340_CAM1_CLK_ENB 9 |
Definition at line 155 of file spear1340_clock.c.
#define SPEAR1340_CAM2_CLK_ENB 8 |
Definition at line 156 of file spear1340_clock.c.
#define SPEAR1340_CAM3_CLK_ENB 7 |
Definition at line 157 of file spear1340_clock.c.
#define SPEAR1340_CEC0_CLK_ENB 5 |
Definition at line 159 of file spear1340_clock.c.
#define SPEAR1340_CEC1_CLK_ENB 4 |
Definition at line 160 of file spear1340_clock.c.
#define SPEAR1340_CFXD_CLK_ENB 7 |
Definition at line 127 of file spear1340_clock.c.
#define SPEAR1340_CFXD_CLK_SYNT (VA_MISC_BASE + 0x264) |
Definition at line 98 of file spear1340_clock.c.
#define SPEAR1340_CLCD_CLK_ENB 27 |
Definition at line 111 of file spear1340_clock.c.
#define SPEAR1340_CLCD_CLK_MASK 2 |
Definition at line 64 of file spear1340_clock.c.
#define SPEAR1340_CLCD_CLK_SHIFT 2 |
Definition at line 65 of file spear1340_clock.c.
#define SPEAR1340_CLCD_CLK_SYNT (VA_MISC_BASE + 0x27C) |
Definition at line 101 of file spear1340_clock.c.
#define SPEAR1340_CLCD_SYNT_CLK_MASK 1 |
Definition at line 33 of file spear1340_clock.c.
#define SPEAR1340_CLCD_SYNT_CLK_SHIFT 31 |
Definition at line 34 of file spear1340_clock.c.
#define SPEAR1340_CPU_DBG_CLK_ENB 2 |
Definition at line 143 of file spear1340_clock.c.
#define SPEAR1340_DDR_CORE_CLK_ENB 1 |
Definition at line 144 of file spear1340_clock.c.
#define SPEAR1340_DDR_CTRL_CLK_ENB 0 |
Definition at line 145 of file spear1340_clock.c.
#define SPEAR1340_DMA_CLK_ENB 25 |
Definition at line 112 of file spear1340_clock.c.
#define SPEAR1340_FSMC_CLK_ENB 4 |
Definition at line 130 of file spear1340_clock.c.
#define SPEAR1340_GEN_CLK_SYNT0 (VA_MISC_BASE + 0x28C) |
Definition at line 103 of file spear1340_clock.c.
#define SPEAR1340_GEN_CLK_SYNT1 (VA_MISC_BASE + 0x294) |
Definition at line 104 of file spear1340_clock.c.
#define SPEAR1340_GEN_CLK_SYNT2 (VA_MISC_BASE + 0x29C) |
Definition at line 105 of file spear1340_clock.c.
#define SPEAR1340_GEN_CLK_SYNT3 (VA_MISC_BASE + 0x304) |
Definition at line 106 of file spear1340_clock.c.
#define SPEAR1340_GEN_SYNT0_1_CLK_SHIFT 27 |
Definition at line 37 of file spear1340_clock.c.
#define SPEAR1340_GEN_SYNT2_3_CLK_SHIFT 29 |
Definition at line 35 of file spear1340_clock.c.
#define SPEAR1340_GEN_SYNT_CLK_MASK 2 |
Definition at line 36 of file spear1340_clock.c.
#define SPEAR1340_GMAC_CLK_CFG (VA_MISC_BASE + 0x248) |
Definition at line 69 of file spear1340_clock.c.
#define SPEAR1340_GMAC_CLK_ENB 8 |
Definition at line 126 of file spear1340_clock.c.
#define SPEAR1340_GMAC_CLK_SYNT (VA_MISC_BASE + 0x25C) |
Definition at line 96 of file spear1340_clock.c.
#define SPEAR1340_GMAC_PHY_CLK_MASK 1 |
Definition at line 70 of file spear1340_clock.c.
#define SPEAR1340_GMAC_PHY_CLK_SHIFT 2 |
Definition at line 71 of file spear1340_clock.c.
#define SPEAR1340_GMAC_PHY_INPUT_CLK_MASK 2 |
Definition at line 72 of file spear1340_clock.c.
#define SPEAR1340_GMAC_PHY_INPUT_CLK_SHIFT 0 |
Definition at line 73 of file spear1340_clock.c.
#define SPEAR1340_GPIO0_CLK_ENB 23 |
Definition at line 114 of file spear1340_clock.c.
#define SPEAR1340_GPIO1_CLK_ENB 24 |
Definition at line 113 of file spear1340_clock.c.
#define SPEAR1340_GPT0_CLK_ENB 21 |
Definition at line 116 of file spear1340_clock.c.
#define SPEAR1340_GPT0_CLK_SHIFT 8 |
Definition at line 60 of file spear1340_clock.c.
#define SPEAR1340_GPT1_CLK_ENB 22 |
Definition at line 115 of file spear1340_clock.c.
#define SPEAR1340_GPT1_CLK_SHIFT 9 |
Definition at line 59 of file spear1340_clock.c.
#define SPEAR1340_GPT2_CLK_ENB 4 |
Definition at line 141 of file spear1340_clock.c.
#define SPEAR1340_GPT2_CLK_SHIFT 12 |
Definition at line 57 of file spear1340_clock.c.
#define SPEAR1340_GPT3_CLK_ENB 5 |
Definition at line 140 of file spear1340_clock.c.
#define SPEAR1340_GPT3_CLK_SHIFT 13 |
Definition at line 56 of file spear1340_clock.c.
#define SPEAR1340_GPT_CLK_MASK 1 |
Definition at line 58 of file spear1340_clock.c.
#define SPEAR1340_HCLK_SRC_SEL_MASK 1 |
Definition at line 26 of file spear1340_clock.c.
#define SPEAR1340_HCLK_SRC_SEL_SHIFT 27 |
Definition at line 25 of file spear1340_clock.c.
#define SPEAR1340_I2C0_CLK_ENB 18 |
Definition at line 119 of file spear1340_clock.c.
#define SPEAR1340_I2C1_CLK_ENB 2 |
Definition at line 162 of file spear1340_clock.c.
#define SPEAR1340_I2S_CLK_CFG (VA_MISC_BASE + 0x24C) |
Definition at line 75 of file spear1340_clock.c.
#define SPEAR1340_I2S_PLAY_CLK_ENB 20 |
Definition at line 117 of file spear1340_clock.c.
#define SPEAR1340_I2S_PRS1_CLK_X_MASK 0xFF |
Definition at line 83 of file spear1340_clock.c.
#define SPEAR1340_I2S_PRS1_CLK_X_SHIFT 12 |
Definition at line 84 of file spear1340_clock.c.
#define SPEAR1340_I2S_PRS1_CLK_Y_MASK 0xFF |
Definition at line 85 of file spear1340_clock.c.
#define SPEAR1340_I2S_PRS1_CLK_Y_SHIFT 4 |
Definition at line 86 of file spear1340_clock.c.
#define SPEAR1340_I2S_PRS1_EQ_SEL_SHIFT 3 |
Definition at line 87 of file spear1340_clock.c.
#define SPEAR1340_I2S_REC_CLK_ENB 19 |
Definition at line 118 of file spear1340_clock.c.
#define SPEAR1340_I2S_REF_PAD_CLK_ENB 7 |
Definition at line 138 of file spear1340_clock.c.
#define SPEAR1340_I2S_REF_SEL_MASK 1 |
Definition at line 88 of file spear1340_clock.c.
#define SPEAR1340_I2S_REF_SHIFT 2 |
Definition at line 89 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_EQ_SEL_SHIFT 21 |
Definition at line 81 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_SYNTH_ENB 20 |
Definition at line 82 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_X_MASK 0x1F |
Definition at line 77 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_X_SHIFT 27 |
Definition at line 78 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_Y_MASK 0x1F |
Definition at line 79 of file spear1340_clock.c.
#define SPEAR1340_I2S_SCLK_Y_SHIFT 22 |
Definition at line 80 of file spear1340_clock.c.
#define SPEAR1340_I2S_SRC_CLK_MASK 2 |
Definition at line 90 of file spear1340_clock.c.
#define SPEAR1340_I2S_SRC_CLK_SHIFT 0 |
Definition at line 91 of file spear1340_clock.c.
#define SPEAR1340_KBD_CLK_ENB 3 |
Definition at line 142 of file spear1340_clock.c.
#define SPEAR1340_MALI_CLK_ENB 6 |
Definition at line 158 of file spear1340_clock.c.
#define SPEAR1340_PCIE_SATA_CLK_ENB 12 |
Definition at line 122 of file spear1340_clock.c.
#define SPEAR1340_PERIP1_CLK_ENB (VA_MISC_BASE + 0x30C) |
Definition at line 107 of file spear1340_clock.c.
#define SPEAR1340_PERIP2_CLK_ENB (VA_MISC_BASE + 0x310) |
Definition at line 136 of file spear1340_clock.c.
#define SPEAR1340_PERIP3_CLK_ENB (VA_MISC_BASE + 0x314) |
Definition at line 147 of file spear1340_clock.c.
#define SPEAR1340_PERIP_CLK_CFG (VA_MISC_BASE + 0x244) |
Definition at line 51 of file spear1340_clock.c.
#define SPEAR1340_PLGPIO_CLK_ENB 18 |
Definition at line 148 of file spear1340_clock.c.
#define SPEAR1340_PLL1_CLK_SHIFT 20 |
Definition at line 41 of file spear1340_clock.c.
#define SPEAR1340_PLL1_CTR (VA_MISC_BASE + 0x214) |
Definition at line 43 of file spear1340_clock.c.
#define SPEAR1340_PLL1_FRQ (VA_MISC_BASE + 0x218) |
Definition at line 44 of file spear1340_clock.c.
#define SPEAR1340_PLL2_CLK_SHIFT 22 |
Definition at line 40 of file spear1340_clock.c.
#define SPEAR1340_PLL2_CTR (VA_MISC_BASE + 0x220) |
Definition at line 45 of file spear1340_clock.c.
#define SPEAR1340_PLL2_FRQ (VA_MISC_BASE + 0x224) |
Definition at line 46 of file spear1340_clock.c.
#define SPEAR1340_PLL3_CLK_SHIFT 24 |
Definition at line 39 of file spear1340_clock.c.
#define SPEAR1340_PLL3_CTR (VA_MISC_BASE + 0x22C) |
Definition at line 47 of file spear1340_clock.c.
#define SPEAR1340_PLL3_FRQ (VA_MISC_BASE + 0x230) |
Definition at line 48 of file spear1340_clock.c.
#define SPEAR1340_PLL4_CTR (VA_MISC_BASE + 0x238) |
Definition at line 49 of file spear1340_clock.c.
#define SPEAR1340_PLL4_FRQ (VA_MISC_BASE + 0x23C) |
Definition at line 50 of file spear1340_clock.c.
#define SPEAR1340_PLL_CFG (VA_MISC_BASE + 0x210) |
Definition at line 31 of file spear1340_clock.c.
#define SPEAR1340_PLL_CLK_MASK 2 |
Definition at line 38 of file spear1340_clock.c.
#define SPEAR1340_PWM_CLK_ENB 3 |
Definition at line 161 of file spear1340_clock.c.
#define SPEAR1340_RTC_CLK_ENB 31 |
Definition at line 108 of file spear1340_clock.c.
#define SPEAR1340_SCLK_SRC_SEL_MASK 3 |
Definition at line 28 of file spear1340_clock.c.
#define SPEAR1340_SCLK_SRC_SEL_SHIFT 23 |
Definition at line 27 of file spear1340_clock.c.
#define SPEAR1340_SDHCI_CLK_ENB 6 |
Definition at line 128 of file spear1340_clock.c.
#define SPEAR1340_SDHCI_CLK_SYNT (VA_MISC_BASE + 0x260) |
Definition at line 97 of file spear1340_clock.c.
#define SPEAR1340_SMI_CLK_ENB 5 |
Definition at line 129 of file spear1340_clock.c.
#define SPEAR1340_SPDIF_CLK_MASK 1 |
Definition at line 53 of file spear1340_clock.c.
#define SPEAR1340_SPDIF_IN_CLK_ENB 12 |
Definition at line 152 of file spear1340_clock.c.
#define SPEAR1340_SPDIF_IN_CLK_SHIFT 14 |
Definition at line 55 of file spear1340_clock.c.
#define SPEAR1340_SPDIF_OUT_CLK_ENB 13 |
Definition at line 151 of file spear1340_clock.c.
#define SPEAR1340_SPDIF_OUT_CLK_SHIFT 15 |
Definition at line 54 of file spear1340_clock.c.
#define SPEAR1340_SSP_CLK_ENB 17 |
Definition at line 120 of file spear1340_clock.c.
#define SPEAR1340_SYS_CLK_CTRL (VA_MISC_BASE + 0x200) |
Definition at line 24 of file spear1340_clock.c.
#define SPEAR1340_SYS_CLK_SYNT (VA_MISC_BASE + 0x284) |
Definition at line 102 of file spear1340_clock.c.
#define SPEAR1340_SYSRAM0_CLK_ENB 3 |
Definition at line 131 of file spear1340_clock.c.
#define SPEAR1340_SYSRAM1_CLK_ENB 2 |
Definition at line 132 of file spear1340_clock.c.
#define SPEAR1340_SYSROM_CLK_ENB 1 |
Definition at line 133 of file spear1340_clock.c.
#define SPEAR1340_THSENS_CLK_ENB 8 |
Definition at line 137 of file spear1340_clock.c.
#define SPEAR1340_UART0_CLK_ENB 15 |
Definition at line 121 of file spear1340_clock.c.
#define SPEAR1340_UART0_CLK_SHIFT 4 |
Definition at line 63 of file spear1340_clock.c.
#define SPEAR1340_UART0_CLK_SYNT (VA_MISC_BASE + 0x254) |
Definition at line 94 of file spear1340_clock.c.
#define SPEAR1340_UART1_CLK_ENB 1 |
Definition at line 163 of file spear1340_clock.c.
#define SPEAR1340_UART1_CLK_SHIFT 6 |
Definition at line 62 of file spear1340_clock.c.
#define SPEAR1340_UART1_CLK_SYNT (VA_MISC_BASE + 0x258) |
Definition at line 95 of file spear1340_clock.c.
#define SPEAR1340_UART_CLK_MASK 2 |
Definition at line 61 of file spear1340_clock.c.
#define SPEAR1340_UHC0_CLK_ENB 9 |
Definition at line 125 of file spear1340_clock.c.
#define SPEAR1340_UHC1_CLK_ENB 10 |
Definition at line 124 of file spear1340_clock.c.
#define SPEAR1340_UOC_CLK_ENB 11 |
Definition at line 123 of file spear1340_clock.c.
#define SPEAR1340_VIDEO_DEC_CLK_ENB 16 |
Definition at line 149 of file spear1340_clock.c.
#define SPEAR1340_VIDEO_ENC_CLK_ENB 15 |
Definition at line 150 of file spear1340_clock.c.
#define SPEAR1340_VIDEO_IN_CLK_ENB 11 |
Definition at line 153 of file spear1340_clock.c.
Definition at line 397 of file spear1340_clock.c.