Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2016 Icenowy Zheng <icenowy@aosc.xyz>
0003  *
0004  * Based on sun8i-h3-ccu.h, which is:
0005  * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
0006  *
0007  * This file is dual-licensed: you can use it either under the terms
0008  * of the GPL or the X11 license, at your option. Note that this dual
0009  * licensing only applies to this file, and not this project as a
0010  * whole.
0011  *
0012  *  a) This file is free software; you can redistribute it and/or
0013  *     modify it under the terms of the GNU General Public License as
0014  *     published by the Free Software Foundation; either version 2 of the
0015  *     License, or (at your option) any later version.
0016  *
0017  *     This file is distributed in the hope that it will be useful,
0018  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0019  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0020  *     GNU General Public License for more details.
0021  *
0022  * Or, alternatively,
0023  *
0024  *  b) Permission is hereby granted, free of charge, to any person
0025  *     obtaining a copy of this software and associated documentation
0026  *     files (the "Software"), to deal in the Software without
0027  *     restriction, including without limitation the rights to use,
0028  *     copy, modify, merge, publish, distribute, sublicense, and/or
0029  *     sell copies of the Software, and to permit persons to whom the
0030  *     Software is furnished to do so, subject to the following
0031  *     conditions:
0032  *
0033  *     The above copyright notice and this permission notice shall be
0034  *     included in all copies or substantial portions of the Software.
0035  *
0036  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0037  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0038  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0039  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0040  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0041  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0042  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0043  *     OTHER DEALINGS IN THE SOFTWARE.
0044  */
0045 
0046 #ifndef _DT_BINDINGS_CLK_SUN8I_V3S_H_
0047 #define _DT_BINDINGS_CLK_SUN8I_V3S_H_
0048 
0049 #define CLK_CPU         14
0050 
0051 #define CLK_BUS_CE      20
0052 #define CLK_BUS_DMA     21
0053 #define CLK_BUS_MMC0        22
0054 #define CLK_BUS_MMC1        23
0055 #define CLK_BUS_MMC2        24
0056 #define CLK_BUS_DRAM        25
0057 #define CLK_BUS_EMAC        26
0058 #define CLK_BUS_HSTIMER     27
0059 #define CLK_BUS_SPI0        28
0060 #define CLK_BUS_OTG     29
0061 #define CLK_BUS_EHCI0       30
0062 #define CLK_BUS_OHCI0       31
0063 #define CLK_BUS_VE      32
0064 #define CLK_BUS_TCON0       33
0065 #define CLK_BUS_CSI     34
0066 #define CLK_BUS_DE      35
0067 #define CLK_BUS_CODEC       36
0068 #define CLK_BUS_PIO     37
0069 #define CLK_BUS_I2C0        38
0070 #define CLK_BUS_I2C1        39
0071 #define CLK_BUS_UART0       40
0072 #define CLK_BUS_UART1       41
0073 #define CLK_BUS_UART2       42
0074 #define CLK_BUS_EPHY        43
0075 #define CLK_BUS_DBG     44
0076 
0077 #define CLK_MMC0        45
0078 #define CLK_MMC0_SAMPLE     46
0079 #define CLK_MMC0_OUTPUT     47
0080 #define CLK_MMC1        48
0081 #define CLK_MMC1_SAMPLE     49
0082 #define CLK_MMC1_OUTPUT     50
0083 #define CLK_MMC2        51
0084 #define CLK_MMC2_SAMPLE     52
0085 #define CLK_MMC2_OUTPUT     53
0086 #define CLK_CE          54
0087 #define CLK_SPI0        55
0088 #define CLK_USB_PHY0        56
0089 #define CLK_USB_OHCI0       57
0090 
0091 #define CLK_DRAM_VE     59
0092 #define CLK_DRAM_CSI        60
0093 #define CLK_DRAM_EHCI       61
0094 #define CLK_DRAM_OHCI       62
0095 #define CLK_DE          63
0096 #define CLK_TCON0       64
0097 #define CLK_CSI_MISC        65
0098 #define CLK_CSI0_MCLK       66
0099 #define CLK_CSI1_SCLK       67
0100 #define CLK_CSI1_MCLK       68
0101 #define CLK_VE          69
0102 #define CLK_AC_DIG      70
0103 #define CLK_AVS         71
0104 
0105 #define CLK_MIPI_CSI        73
0106 
0107 /* Clocks not available on V3s */
0108 #define CLK_BUS_I2S0        75
0109 #define CLK_I2S0        76
0110 
0111 #endif /* _DT_BINDINGS_CLK_SUN8I_V3S_H_ */