1c3691392SSimon Glass /* 2c3691392SSimon Glass * This header provides constants for binding nvidia,tegra20-car. 3c3691392SSimon Glass * 4c3691392SSimon Glass * The first 96 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB 5c3691392SSimon Glass * registers. These IDs often match those in the CAR's RST_DEVICES registers, 6c3691392SSimon Glass * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In 7c3691392SSimon Glass * this case, those clocks are assigned IDs above 95 in order to highlight 8c3691392SSimon Glass * this issue. Implementations that interpret these clock IDs as bit values 9c3691392SSimon Glass * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to 10c3691392SSimon Glass * explicitly handle these special cases. 11c3691392SSimon Glass * 12c3691392SSimon Glass * The balance of the clocks controlled by the CAR are assigned IDs of 96 and 13c3691392SSimon Glass * above. 14c3691392SSimon Glass */ 15c3691392SSimon Glass 16c3691392SSimon Glass #ifndef _DT_BINDINGS_CLOCK_TEGRA20_CAR_H 17c3691392SSimon Glass #define _DT_BINDINGS_CLOCK_TEGRA20_CAR_H 18c3691392SSimon Glass 19c3691392SSimon Glass #define TEGRA20_CLK_CPU 0 20c3691392SSimon Glass /* 1 */ 21c3691392SSimon Glass /* 2 */ 22c3691392SSimon Glass #define TEGRA20_CLK_AC97 3 23c3691392SSimon Glass #define TEGRA20_CLK_RTC 4 24c3691392SSimon Glass #define TEGRA20_CLK_TIMER 5 25c3691392SSimon Glass #define TEGRA20_CLK_UARTA 6 26c3691392SSimon Glass /* 7 (register bit affects uart2 and vfir) */ 27c3691392SSimon Glass #define TEGRA20_CLK_GPIO 8 28c3691392SSimon Glass #define TEGRA20_CLK_SDMMC2 9 29c3691392SSimon Glass /* 10 (register bit affects spdif_in and spdif_out) */ 30c3691392SSimon Glass #define TEGRA20_CLK_I2S1 11 31c3691392SSimon Glass #define TEGRA20_CLK_I2C1 12 32c3691392SSimon Glass #define TEGRA20_CLK_NDFLASH 13 33c3691392SSimon Glass #define TEGRA20_CLK_SDMMC1 14 34c3691392SSimon Glass #define TEGRA20_CLK_SDMMC4 15 35c3691392SSimon Glass #define TEGRA20_CLK_TWC 16 36c3691392SSimon Glass #define TEGRA20_CLK_PWM 17 37c3691392SSimon Glass #define TEGRA20_CLK_I2S2 18 38c3691392SSimon Glass #define TEGRA20_CLK_EPP 19 39c3691392SSimon Glass /* 20 (register bit affects vi and vi_sensor) */ 40c3691392SSimon Glass #define TEGRA20_CLK_GR2D 21 41c3691392SSimon Glass #define TEGRA20_CLK_USBD 22 42c3691392SSimon Glass #define TEGRA20_CLK_ISP 23 43c3691392SSimon Glass #define TEGRA20_CLK_GR3D 24 44c3691392SSimon Glass #define TEGRA20_CLK_IDE 25 45c3691392SSimon Glass #define TEGRA20_CLK_DISP2 26 46c3691392SSimon Glass #define TEGRA20_CLK_DISP1 27 47c3691392SSimon Glass #define TEGRA20_CLK_HOST1X 28 48c3691392SSimon Glass #define TEGRA20_CLK_VCP 29 49c3691392SSimon Glass /* 30 */ 50c3691392SSimon Glass #define TEGRA20_CLK_CACHE2 31 51c3691392SSimon Glass 52*50a303bdSStephen Warren #define TEGRA20_CLK_MC 32 53c3691392SSimon Glass #define TEGRA20_CLK_AHBDMA 33 54c3691392SSimon Glass #define TEGRA20_CLK_APBDMA 34 55c3691392SSimon Glass /* 35 */ 56c3691392SSimon Glass #define TEGRA20_CLK_KBC 36 57c3691392SSimon Glass #define TEGRA20_CLK_STAT_MON 37 58c3691392SSimon Glass #define TEGRA20_CLK_PMC 38 59c3691392SSimon Glass #define TEGRA20_CLK_FUSE 39 60c3691392SSimon Glass #define TEGRA20_CLK_KFUSE 40 61c3691392SSimon Glass #define TEGRA20_CLK_SBC1 41 62c3691392SSimon Glass #define TEGRA20_CLK_NOR 42 63c3691392SSimon Glass #define TEGRA20_CLK_SPI 43 64c3691392SSimon Glass #define TEGRA20_CLK_SBC2 44 65c3691392SSimon Glass #define TEGRA20_CLK_XIO 45 66c3691392SSimon Glass #define TEGRA20_CLK_SBC3 46 67c3691392SSimon Glass #define TEGRA20_CLK_DVC 47 68c3691392SSimon Glass #define TEGRA20_CLK_DSI 48 69c3691392SSimon Glass /* 49 (register bit affects tvo and cve) */ 70c3691392SSimon Glass #define TEGRA20_CLK_MIPI 50 71c3691392SSimon Glass #define TEGRA20_CLK_HDMI 51 72c3691392SSimon Glass #define TEGRA20_CLK_CSI 52 73c3691392SSimon Glass #define TEGRA20_CLK_TVDAC 53 74c3691392SSimon Glass #define TEGRA20_CLK_I2C2 54 75c3691392SSimon Glass #define TEGRA20_CLK_UARTC 55 76c3691392SSimon Glass /* 56 */ 77c3691392SSimon Glass #define TEGRA20_CLK_EMC 57 78c3691392SSimon Glass #define TEGRA20_CLK_USB2 58 79c3691392SSimon Glass #define TEGRA20_CLK_USB3 59 80c3691392SSimon Glass #define TEGRA20_CLK_MPE 60 81c3691392SSimon Glass #define TEGRA20_CLK_VDE 61 82c3691392SSimon Glass #define TEGRA20_CLK_BSEA 62 83c3691392SSimon Glass #define TEGRA20_CLK_BSEV 63 84c3691392SSimon Glass 85c3691392SSimon Glass #define TEGRA20_CLK_SPEEDO 64 86c3691392SSimon Glass #define TEGRA20_CLK_UARTD 65 87c3691392SSimon Glass #define TEGRA20_CLK_UARTE 66 88c3691392SSimon Glass #define TEGRA20_CLK_I2C3 67 89c3691392SSimon Glass #define TEGRA20_CLK_SBC4 68 90c3691392SSimon Glass #define TEGRA20_CLK_SDMMC3 69 91c3691392SSimon Glass #define TEGRA20_CLK_PEX 70 92c3691392SSimon Glass #define TEGRA20_CLK_OWR 71 93c3691392SSimon Glass #define TEGRA20_CLK_AFI 72 94c3691392SSimon Glass #define TEGRA20_CLK_CSITE 73 95*50a303bdSStephen Warren /* 74 */ 96c3691392SSimon Glass #define TEGRA20_CLK_AVPUCQ 75 97c3691392SSimon Glass #define TEGRA20_CLK_LA 76 98c3691392SSimon Glass /* 77 */ 99c3691392SSimon Glass /* 78 */ 100c3691392SSimon Glass /* 79 */ 101c3691392SSimon Glass /* 80 */ 102c3691392SSimon Glass /* 81 */ 103c3691392SSimon Glass /* 82 */ 104c3691392SSimon Glass /* 83 */ 105c3691392SSimon Glass #define TEGRA20_CLK_IRAMA 84 106c3691392SSimon Glass #define TEGRA20_CLK_IRAMB 85 107c3691392SSimon Glass #define TEGRA20_CLK_IRAMC 86 108c3691392SSimon Glass #define TEGRA20_CLK_IRAMD 87 109c3691392SSimon Glass #define TEGRA20_CLK_CRAM2 88 110c3691392SSimon Glass #define TEGRA20_CLK_AUDIO_2X 89 /* a/k/a audio_2x_sync_clk */ 111c3691392SSimon Glass #define TEGRA20_CLK_CLK_D 90 112c3691392SSimon Glass /* 91 */ 113c3691392SSimon Glass #define TEGRA20_CLK_CSUS 92 114c3691392SSimon Glass #define TEGRA20_CLK_CDEV2 93 115c3691392SSimon Glass #define TEGRA20_CLK_CDEV1 94 116c3691392SSimon Glass /* 95 */ 117c3691392SSimon Glass 118c3691392SSimon Glass #define TEGRA20_CLK_UARTB 96 119c3691392SSimon Glass #define TEGRA20_CLK_VFIR 97 120c3691392SSimon Glass #define TEGRA20_CLK_SPDIF_IN 98 121c3691392SSimon Glass #define TEGRA20_CLK_SPDIF_OUT 99 122c3691392SSimon Glass #define TEGRA20_CLK_VI 100 123c3691392SSimon Glass #define TEGRA20_CLK_VI_SENSOR 101 124c3691392SSimon Glass #define TEGRA20_CLK_TVO 102 125c3691392SSimon Glass #define TEGRA20_CLK_CVE 103 126c3691392SSimon Glass #define TEGRA20_CLK_OSC 104 127c3691392SSimon Glass #define TEGRA20_CLK_CLK_32K 105 /* a/k/a clk_s */ 128c3691392SSimon Glass #define TEGRA20_CLK_CLK_M 106 129c3691392SSimon Glass #define TEGRA20_CLK_SCLK 107 130c3691392SSimon Glass #define TEGRA20_CLK_CCLK 108 131c3691392SSimon Glass #define TEGRA20_CLK_HCLK 109 132c3691392SSimon Glass #define TEGRA20_CLK_PCLK 110 133c3691392SSimon Glass #define TEGRA20_CLK_BLINK 111 134c3691392SSimon Glass #define TEGRA20_CLK_PLL_A 112 135c3691392SSimon Glass #define TEGRA20_CLK_PLL_A_OUT0 113 136c3691392SSimon Glass #define TEGRA20_CLK_PLL_C 114 137c3691392SSimon Glass #define TEGRA20_CLK_PLL_C_OUT1 115 138c3691392SSimon Glass #define TEGRA20_CLK_PLL_D 116 139c3691392SSimon Glass #define TEGRA20_CLK_PLL_D_OUT0 117 140c3691392SSimon Glass #define TEGRA20_CLK_PLL_E 118 141c3691392SSimon Glass #define TEGRA20_CLK_PLL_M 119 142c3691392SSimon Glass #define TEGRA20_CLK_PLL_M_OUT1 120 143c3691392SSimon Glass #define TEGRA20_CLK_PLL_P 121 144c3691392SSimon Glass #define TEGRA20_CLK_PLL_P_OUT1 122 145c3691392SSimon Glass #define TEGRA20_CLK_PLL_P_OUT2 123 146c3691392SSimon Glass #define TEGRA20_CLK_PLL_P_OUT3 124 147c3691392SSimon Glass #define TEGRA20_CLK_PLL_P_OUT4 125 148c3691392SSimon Glass #define TEGRA20_CLK_PLL_S 126 149c3691392SSimon Glass #define TEGRA20_CLK_PLL_U 127 150c3691392SSimon Glass 151c3691392SSimon Glass #define TEGRA20_CLK_PLL_X 128 152c3691392SSimon Glass #define TEGRA20_CLK_COP 129 /* a/k/a avp */ 153c3691392SSimon Glass #define TEGRA20_CLK_AUDIO 130 /* a/k/a audio_sync_clk */ 154c3691392SSimon Glass #define TEGRA20_CLK_PLL_REF 131 155c3691392SSimon Glass #define TEGRA20_CLK_TWD 132 156c3691392SSimon Glass #define TEGRA20_CLK_CLK_MAX 133 157c3691392SSimon Glass 158c3691392SSimon Glass #endif /* _DT_BINDINGS_CLOCK_TEGRA20_CAR_H */ 159