diff options
| author | Michael Turquette <mturquette@linaro.org> | 2015-02-02 18:01:10 -0500 |
|---|---|---|
| committer | Michael Turquette <mturquette@linaro.org> | 2015-02-02 18:01:10 -0500 |
| commit | f85c6edfae0fea807956fd7890fc680414800cb7 (patch) | |
| tree | 2d067ea135107f53b0e29747477edaeca238d761 /include | |
| parent | 54eea32f7ed3037c91853924227585b65df909a8 (diff) | |
| parent | b270491eb9a033a1ab6c66e778c9dd3e3a4f7639 (diff) | |
Merge tag 'tegra-clk-3.20' of git://nv-tegra.nvidia.com/user/pdeschrijver/linux into clk-next
Tegra clock fixes for 3.20
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-bindings/clock/tegra124-car-common.h | 345 | ||||
| -rw-r--r-- | include/dt-bindings/clock/tegra124-car.h | 345 | ||||
| -rw-r--r-- | include/linux/clk/tegra.h | 2 |
3 files changed, 354 insertions, 338 deletions
diff --git a/include/dt-bindings/clock/tegra124-car-common.h b/include/dt-bindings/clock/tegra124-car-common.h new file mode 100644 index 000000000000..ae2eb17a1658 --- /dev/null +++ b/include/dt-bindings/clock/tegra124-car-common.h | |||
| @@ -0,0 +1,345 @@ | |||
| 1 | /* | ||
| 2 | * This header provides constants for binding nvidia,tegra124-car or | ||
| 3 | * nvidia,tegra132-car. | ||
| 4 | * | ||
| 5 | * The first 192 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB | ||
| 6 | * registers. These IDs often match those in the CAR's RST_DEVICES registers, | ||
| 7 | * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In | ||
| 8 | * this case, those clocks are assigned IDs above 185 in order to highlight | ||
| 9 | * this issue. Implementations that interpret these clock IDs as bit values | ||
| 10 | * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to | ||
| 11 | * explicitly handle these special cases. | ||
| 12 | * | ||
| 13 | * The balance of the clocks controlled by the CAR are assigned IDs of 185 and | ||
| 14 | * above. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef _DT_BINDINGS_CLOCK_TEGRA124_CAR_COMMON_H | ||
| 18 | #define _DT_BINDINGS_CLOCK_TEGRA124_CAR_COMMON_H | ||
| 19 | |||
| 20 | /* 0 */ | ||
| 21 | /* 1 */ | ||
| 22 | /* 2 */ | ||
| 23 | #define TEGRA124_CLK_ISPB 3 | ||
| 24 | #define TEGRA124_CLK_RTC 4 | ||
| 25 | #define TEGRA124_CLK_TIMER 5 | ||
| 26 | #define TEGRA124_CLK_UARTA 6 | ||
| 27 | /* 7 (register bit affects uartb and vfir) */ | ||
| 28 | /* 8 */ | ||
| 29 | #define TEGRA124_CLK_SDMMC2 9 | ||
| 30 | /* 10 (register bit affects spdif_in and spdif_out) */ | ||
| 31 | #define TEGRA124_CLK_I2S1 11 | ||
| 32 | #define TEGRA124_CLK_I2C1 12 | ||
| 33 | /* 13 */ | ||
| 34 | #define TEGRA124_CLK_SDMMC1 14 | ||
| 35 | #define TEGRA124_CLK_SDMMC4 15 | ||
| 36 | /* 16 */ | ||
| 37 | #define TEGRA124_CLK_PWM 17 | ||
| 38 | #define TEGRA124_CLK_I2S2 18 | ||
| 39 | /* 20 (register bit affects vi and vi_sensor) */ | ||
| 40 | /* 21 */ | ||
| 41 | #define TEGRA124_CLK_USBD 22 | ||
| 42 | #define TEGRA124_CLK_ISP 23 | ||
| 43 | /* 26 */ | ||
| 44 | /* 25 */ | ||
| 45 | #define TEGRA124_CLK_DISP2 26 | ||
| 46 | #define TEGRA124_CLK_DISP1 27 | ||
| 47 | #define TEGRA124_CLK_HOST1X 28 | ||
| 48 | #define TEGRA124_CLK_VCP 29 | ||
| 49 | #define TEGRA124_CLK_I2S0 30 | ||
| 50 | /* 31 */ | ||
| 51 | |||
| 52 | #define TEGRA124_CLK_MC 32 | ||
| 53 | /* 33 */ | ||
| 54 | #define TEGRA124_CLK_APBDMA 34 | ||
| 55 | /* 35 */ | ||
| 56 | #define TEGRA124_CLK_KBC 36 | ||
| 57 | /* 37 */ | ||
| 58 | /* 38 */ | ||
| 59 | /* 39 (register bit affects fuse and fuse_burn) */ | ||
| 60 | #define TEGRA124_CLK_KFUSE 40 | ||
| 61 | #define TEGRA124_CLK_SBC1 41 | ||
| 62 | #define TEGRA124_CLK_NOR 42 | ||
| 63 | /* 43 */ | ||
| 64 | #define TEGRA124_CLK_SBC2 44 | ||
| 65 | /* 45 */ | ||
| 66 | #define TEGRA124_CLK_SBC3 46 | ||
| 67 | #define TEGRA124_CLK_I2C5 47 | ||
| 68 | #define TEGRA124_CLK_DSIA 48 | ||
| 69 | /* 49 */ | ||
| 70 | #define TEGRA124_CLK_MIPI 50 | ||
| 71 | #define TEGRA124_CLK_HDMI 51 | ||
| 72 | #define TEGRA124_CLK_CSI 52 | ||
| 73 | /* 53 */ | ||
| 74 | #define TEGRA124_CLK_I2C2 54 | ||
| 75 | #define TEGRA124_CLK_UARTC 55 | ||
| 76 | #define TEGRA124_CLK_MIPI_CAL 56 | ||
| 77 | #define TEGRA124_CLK_EMC 57 | ||
| 78 | #define TEGRA124_CLK_USB2 58 | ||
| 79 | #define TEGRA124_CLK_USB3 59 | ||
| 80 | /* 60 */ | ||
| 81 | #define TEGRA124_CLK_VDE 61 | ||
| 82 | #define TEGRA124_CLK_BSEA 62 | ||
| 83 | #define TEGRA124_CLK_BSEV 63 | ||
| 84 | |||
| 85 | /* 64 */ | ||
| 86 | #define TEGRA124_CLK_UARTD 65 | ||
| 87 | /* 66 */ | ||
| 88 | #define TEGRA124_CLK_I2C3 67 | ||
| 89 | #define TEGRA124_CLK_SBC4 68 | ||
| 90 | #define TEGRA124_CLK_SDMMC3 69 | ||
| 91 | #define TEGRA124_CLK_PCIE 70 | ||
| 92 | #define TEGRA124_CLK_OWR 71 | ||
| 93 | #define TEGRA124_CLK_AFI 72 | ||
| 94 | #define TEGRA124_CLK_CSITE 73 | ||
| 95 | /* 74 */ | ||
| 96 | /* 75 */ | ||
| 97 | #define TEGRA124_CLK_LA 76 | ||
| 98 | #define TEGRA124_CLK_TRACE 77 | ||
| 99 | #define TEGRA124_CLK_SOC_THERM 78 | ||
| 100 | #define TEGRA124_CLK_DTV 79 | ||
| 101 | /* 80 */ | ||
| 102 | #define TEGRA124_CLK_I2CSLOW 81 | ||
| 103 | #define TEGRA124_CLK_DSIB 82 | ||
| 104 | #define TEGRA124_CLK_TSEC 83 | ||
| 105 | /* 84 */ | ||
| 106 | /* 85 */ | ||
| 107 | /* 86 */ | ||
| 108 | /* 87 */ | ||
| 109 | /* 88 */ | ||
| 110 | #define TEGRA124_CLK_XUSB_HOST 89 | ||
| 111 | /* 90 */ | ||
| 112 | #define TEGRA124_CLK_MSENC 91 | ||
| 113 | #define TEGRA124_CLK_CSUS 92 | ||
| 114 | /* 93 */ | ||
| 115 | /* 94 */ | ||
| 116 | /* 95 (bit affects xusb_dev and xusb_dev_src) */ | ||
| 117 | |||
| 118 | /* 96 */ | ||
| 119 | /* 97 */ | ||
| 120 | /* 98 */ | ||
| 121 | #define TEGRA124_CLK_MSELECT 99 | ||
| 122 | #define TEGRA124_CLK_TSENSOR 100 | ||
| 123 | #define TEGRA124_CLK_I2S3 101 | ||
| 124 | #define TEGRA124_CLK_I2S4 102 | ||
| 125 | #define TEGRA124_CLK_I2C4 103 | ||
| 126 | #define TEGRA124_CLK_SBC5 104 | ||
| 127 | #define TEGRA124_CLK_SBC6 105 | ||
| 128 | #define TEGRA124_CLK_D_AUDIO 106 | ||
| 129 | #define TEGRA124_CLK_APBIF 107 | ||
| 130 | #define TEGRA124_CLK_DAM0 108 | ||
| 131 | #define TEGRA124_CLK_DAM1 109 | ||
| 132 | #define TEGRA124_CLK_DAM2 110 | ||
| 133 | #define TEGRA124_CLK_HDA2CODEC_2X 111 | ||
| 134 | /* 112 */ | ||
| 135 | #define TEGRA124_CLK_AUDIO0_2X 113 | ||
| 136 | #define TEGRA124_CLK_AUDIO1_2X 114 | ||
| 137 | #define TEGRA124_CLK_AUDIO2_2X 115 | ||
| 138 | #define TEGRA124_CLK_AUDIO3_2X 116 | ||
| 139 | #define TEGRA124_CLK_AUDIO4_2X 117 | ||
| 140 | #define TEGRA124_CLK_SPDIF_2X 118 | ||
| 141 | #define TEGRA124_CLK_ACTMON 119 | ||
| 142 | #define TEGRA124_CLK_EXTERN1 120 | ||
| 143 | #define TEGRA124_CLK_EXTERN2 121 | ||
| 144 | #define TEGRA124_CLK_EXTERN3 122 | ||
| 145 | #define TEGRA124_CLK_SATA_OOB 123 | ||
| 146 | #define TEGRA124_CLK_SATA 124 | ||
| 147 | #define TEGRA124_CLK_HDA 125 | ||
| 148 | /* 126 */ | ||
| 149 | #define TEGRA124_CLK_SE 127 | ||
| 150 | |||
| 151 | #define TEGRA124_CLK_HDA2HDMI 128 | ||
| 152 | #define TEGRA124_CLK_SATA_COLD 129 | ||
| 153 | /* 130 */ | ||
| 154 | /* 131 */ | ||
| 155 | /* 132 */ | ||
| 156 | /* 133 */ | ||
| 157 | /* 134 */ | ||
| 158 | /* 135 */ | ||
| 159 | /* 136 */ | ||
| 160 | /* 137 */ | ||
| 161 | /* 138 */ | ||
| 162 | /* 139 */ | ||
| 163 | /* 140 */ | ||
| 164 | /* 141 */ | ||
| 165 | /* 142 */ | ||
| 166 | /* 143 (bit affects xusb_falcon_src, xusb_fs_src, */ | ||
| 167 | /* xusb_host_src and xusb_ss_src) */ | ||
| 168 | #define TEGRA124_CLK_CILAB 144 | ||
| 169 | #define TEGRA124_CLK_CILCD 145 | ||
| 170 | #define TEGRA124_CLK_CILE 146 | ||
| 171 | #define TEGRA124_CLK_DSIALP 147 | ||
| 172 | #define TEGRA124_CLK_DSIBLP 148 | ||
| 173 | #define TEGRA124_CLK_ENTROPY 149 | ||
| 174 | #define TEGRA124_CLK_DDS 150 | ||
| 175 | /* 151 */ | ||
| 176 | #define TEGRA124_CLK_DP2 152 | ||
| 177 | #define TEGRA124_CLK_AMX 153 | ||
| 178 | #define TEGRA124_CLK_ADX 154 | ||
| 179 | /* 155 (bit affects dfll_ref and dfll_soc) */ | ||
| 180 | #define TEGRA124_CLK_XUSB_SS 156 | ||
| 181 | /* 157 */ | ||
| 182 | /* 158 */ | ||
