Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2017 Priit Laes <plaes@plaes.org>
0003  *
0004  * This file is dual-licensed: you can use it either under the terms
0005  * of the GPL or the X11 license, at your option. Note that this dual
0006  * licensing only applies to this file, and not this project as a
0007  * whole.
0008  *
0009  *  a) This file is free software; you can redistribute it and/or
0010  *     modify it under the terms of the GNU General Public License as
0011  *     published by the Free Software Foundation; either version 2 of the
0012  *     License, or (at your option) any later version.
0013  *
0014  *     This file is distributed in the hope that it will be useful,
0015  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *     GNU General Public License for more details.
0018  *
0019  * Or, alternatively,
0020  *
0021  *  b) Permission is hereby granted, free of charge, to any person
0022  *     obtaining a copy of this software and associated documentation
0023  *     files (the "Software"), to deal in the Software without
0024  *     restriction, including without limitation the rights to use,
0025  *     copy, modify, merge, publish, distribute, sublicense, and/or
0026  *     sell copies of the Software, and to permit persons to whom the
0027  *     Software is furnished to do so, subject to the following
0028  *     conditions:
0029  *
0030  *     The above copyright notice and this permission notice shall be
0031  *     included in all copies or substantial portions of the Software.
0032  *
0033  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0034  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0035  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0036  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0037  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0038  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0039  *     OTHER DEALINGS IN THE SOFTWARE.
0040  */
0041 
0042 #ifndef _DT_BINDINGS_CLK_SUN4I_A10_H_
0043 #define _DT_BINDINGS_CLK_SUN4I_A10_H_
0044 
0045 #define CLK_HOSC        1
0046 #define CLK_PLL_VIDEO0_2X   9
0047 #define CLK_PLL_VIDEO1_2X   18
0048 #define CLK_CPU         20
0049 
0050 /* AHB Gates */
0051 #define CLK_AHB_OTG     26
0052 #define CLK_AHB_EHCI0       27
0053 #define CLK_AHB_OHCI0       28
0054 #define CLK_AHB_EHCI1       29
0055 #define CLK_AHB_OHCI1       30
0056 #define CLK_AHB_SS      31
0057 #define CLK_AHB_DMA     32
0058 #define CLK_AHB_BIST        33
0059 #define CLK_AHB_MMC0        34
0060 #define CLK_AHB_MMC1        35
0061 #define CLK_AHB_MMC2        36
0062 #define CLK_AHB_MMC3        37
0063 #define CLK_AHB_MS      38
0064 #define CLK_AHB_NAND        39
0065 #define CLK_AHB_SDRAM       40
0066 #define CLK_AHB_ACE     41
0067 #define CLK_AHB_EMAC        42
0068 #define CLK_AHB_TS      43
0069 #define CLK_AHB_SPI0        44
0070 #define CLK_AHB_SPI1        45
0071 #define CLK_AHB_SPI2        46
0072 #define CLK_AHB_SPI3        47
0073 #define CLK_AHB_PATA        48
0074 #define CLK_AHB_SATA        49
0075 #define CLK_AHB_GPS     50
0076 #define CLK_AHB_HSTIMER     51
0077 #define CLK_AHB_VE      52
0078 #define CLK_AHB_TVD     53
0079 #define CLK_AHB_TVE0        54
0080 #define CLK_AHB_TVE1        55
0081 #define CLK_AHB_LCD0        56
0082 #define CLK_AHB_LCD1        57
0083 #define CLK_AHB_CSI0        58
0084 #define CLK_AHB_CSI1        59
0085 #define CLK_AHB_HDMI0       60
0086 #define CLK_AHB_HDMI1       61
0087 #define CLK_AHB_DE_BE0      62
0088 #define CLK_AHB_DE_BE1      63
0089 #define CLK_AHB_DE_FE0      64
0090 #define CLK_AHB_DE_FE1      65
0091 #define CLK_AHB_GMAC        66
0092 #define CLK_AHB_MP      67
0093 #define CLK_AHB_GPU     68
0094 
0095 /* APB0 Gates */
0096 #define CLK_APB0_CODEC      69
0097 #define CLK_APB0_SPDIF      70
0098 #define CLK_APB0_I2S0       71
0099 #define CLK_APB0_AC97       72
0100 #define CLK_APB0_I2S1       73
0101 #define CLK_APB0_PIO        74
0102 #define CLK_APB0_IR0        75
0103 #define CLK_APB0_IR1        76
0104 #define CLK_APB0_I2S2       77
0105 #define CLK_APB0_KEYPAD     78
0106 
0107 /* APB1 Gates */
0108 #define CLK_APB1_I2C0       79
0109 #define CLK_APB1_I2C1       80
0110 #define CLK_APB1_I2C2       81
0111 #define CLK_APB1_I2C3       82
0112 #define CLK_APB1_CAN        83
0113 #define CLK_APB1_SCR        84
0114 #define CLK_APB1_PS20       85
0115 #define CLK_APB1_PS21       86
0116 #define CLK_APB1_I2C4       87
0117 #define CLK_APB1_UART0      88
0118 #define CLK_APB1_UART1      89
0119 #define CLK_APB1_UART2      90
0120 #define CLK_APB1_UART3      91
0121 #define CLK_APB1_UART4      92
0122 #define CLK_APB1_UART5      93
0123 #define CLK_APB1_UART6      94
0124 #define CLK_APB1_UART7      95
0125 
0126 /* IP clocks */
0127 #define CLK_NAND        96
0128 #define CLK_MS          97
0129 #define CLK_MMC0        98
0130 #define CLK_MMC0_OUTPUT     99
0131 #define CLK_MMC0_SAMPLE     100
0132 #define CLK_MMC1        101
0133 #define CLK_MMC1_OUTPUT     102
0134 #define CLK_MMC1_SAMPLE     103
0135 #define CLK_MMC2        104
0136 #define CLK_MMC2_OUTPUT     105
0137 #define CLK_MMC2_SAMPLE     106
0138 #define CLK_MMC3        107
0139 #define CLK_MMC3_OUTPUT     108
0140 #define CLK_MMC3_SAMPLE     109
0141 #define CLK_TS          110
0142 #define CLK_SS          111
0143 #define CLK_SPI0        112
0144 #define CLK_SPI1        113
0145 #define CLK_SPI2        114
0146 #define CLK_PATA        115
0147 #define CLK_IR0         116
0148 #define CLK_IR1         117
0149 #define CLK_I2S0        118
0150 #define CLK_AC97        119
0151 #define CLK_SPDIF       120
0152 #define CLK_KEYPAD      121
0153 #define CLK_SATA        122
0154 #define CLK_USB_OHCI0       123
0155 #define CLK_USB_OHCI1       124
0156 #define CLK_USB_PHY     125
0157 #define CLK_GPS         126
0158 #define CLK_SPI3        127
0159 #define CLK_I2S1        128
0160 #define CLK_I2S2        129
0161 
0162 /* DRAM Gates */
0163 #define CLK_DRAM_VE     130
0164 #define CLK_DRAM_CSI0       131
0165 #define CLK_DRAM_CSI1       132
0166 #define CLK_DRAM_TS     133
0167 #define CLK_DRAM_TVD        134
0168 #define CLK_DRAM_TVE0       135
0169 #define CLK_DRAM_TVE1       136
0170 #define CLK_DRAM_OUT        137
0171 #define CLK_DRAM_DE_FE1     138
0172 #define CLK_DRAM_DE_FE0     139
0173 #define CLK_DRAM_DE_BE0     140
0174 #define CLK_DRAM_DE_BE1     141
0175 #define CLK_DRAM_MP     142
0176 #define CLK_DRAM_ACE        143
0177 
0178 /* Display Engine Clocks */
0179 #define CLK_DE_BE0      144
0180 #define CLK_DE_BE1      145
0181 #define CLK_DE_FE0      146
0182 #define CLK_DE_FE1      147
0183 #define CLK_DE_MP       148
0184 #define CLK_TCON0_CH0       149
0185 #define CLK_TCON1_CH0       150
0186 #define CLK_CSI_SCLK        151
0187 #define CLK_TVD_SCLK2       152
0188 #define CLK_TVD         153
0189 #define CLK_TCON0_CH1_SCLK2 154
0190 #define CLK_TCON0_CH1       155
0191 #define CLK_TCON1_CH1_SCLK2 156
0192 #define CLK_TCON1_CH1       157
0193 #define CLK_CSI0        158
0194 #define CLK_CSI1        159
0195 #define CLK_CODEC       160
0196 #define CLK_VE          161
0197 #define CLK_AVS         162
0198 #define CLK_ACE         163
0199 #define CLK_HDMI        164
0200 #define CLK_GPU         165
0201 
0202 #endif /* _DT_BINDINGS_CLK_SUN4I_A10_H_ */