112 lines · c
1/*2 * Copyright (c) 2016 Icenowy Zheng <icenowy@aosc.xyz>3 *4 * Based on sun8i-h3-ccu.h, which is:5 * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>6 *7 * This file is dual-licensed: you can use it either under the terms8 * of the GPL or the X11 license, at your option. Note that this dual9 * licensing only applies to this file, and not this project as a10 * whole.11 *12 * a) This file is free software; you can redistribute it and/or13 * modify it under the terms of the GNU General Public License as14 * published by the Free Software Foundation; either version 2 of the15 * License, or (at your option) any later version.16 *17 * This file is distributed in the hope that it will be useful,18 * but WITHOUT ANY WARRANTY; without even the implied warranty of19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the20 * GNU General Public License for more details.21 *22 * Or, alternatively,23 *24 * b) Permission is hereby granted, free of charge, to any person25 * obtaining a copy of this software and associated documentation26 * files (the "Software"), to deal in the Software without27 * restriction, including without limitation the rights to use,28 * copy, modify, merge, publish, distribute, sublicense, and/or29 * sell copies of the Software, and to permit persons to whom the30 * Software is furnished to do so, subject to the following31 * conditions:32 *33 * The above copyright notice and this permission notice shall be34 * included in all copies or substantial portions of the Software.35 *36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR43 * OTHER DEALINGS IN THE SOFTWARE.44 */45 46#ifndef _DT_BINDINGS_CLK_SUN8I_V3S_H_47#define _DT_BINDINGS_CLK_SUN8I_V3S_H_48 49#define CLK_CPU 1450 51#define CLK_BUS_CE 2052#define CLK_BUS_DMA 2153#define CLK_BUS_MMC0 2254#define CLK_BUS_MMC1 2355#define CLK_BUS_MMC2 2456#define CLK_BUS_DRAM 2557#define CLK_BUS_EMAC 2658#define CLK_BUS_HSTIMER 2759#define CLK_BUS_SPI0 2860#define CLK_BUS_OTG 2961#define CLK_BUS_EHCI0 3062#define CLK_BUS_OHCI0 3163#define CLK_BUS_VE 3264#define CLK_BUS_TCON0 3365#define CLK_BUS_CSI 3466#define CLK_BUS_DE 3567#define CLK_BUS_CODEC 3668#define CLK_BUS_PIO 3769#define CLK_BUS_I2C0 3870#define CLK_BUS_I2C1 3971#define CLK_BUS_UART0 4072#define CLK_BUS_UART1 4173#define CLK_BUS_UART2 4274#define CLK_BUS_EPHY 4375#define CLK_BUS_DBG 4476 77#define CLK_MMC0 4578#define CLK_MMC0_SAMPLE 4679#define CLK_MMC0_OUTPUT 4780#define CLK_MMC1 4881#define CLK_MMC1_SAMPLE 4982#define CLK_MMC1_OUTPUT 5083#define CLK_MMC2 5184#define CLK_MMC2_SAMPLE 5285#define CLK_MMC2_OUTPUT 5386#define CLK_CE 5487#define CLK_SPI0 5588#define CLK_USB_PHY0 5689#define CLK_USB_OHCI0 5790 91#define CLK_DRAM_VE 5992#define CLK_DRAM_CSI 6093#define CLK_DRAM_EHCI 6194#define CLK_DRAM_OHCI 6295#define CLK_DE 6396#define CLK_TCON0 6497#define CLK_CSI_MISC 6598#define CLK_CSI0_MCLK 6699#define CLK_CSI1_SCLK 67100#define CLK_CSI1_MCLK 68101#define CLK_VE 69102#define CLK_AC_DIG 70103#define CLK_AVS 71104 105#define CLK_MIPI_CSI 73106 107/* Clocks not available on V3s */108#define CLK_BUS_I2S0 75109#define CLK_I2S0 76110 111#endif /* _DT_BINDINGS_CLK_SUN8I_V3S_H_ */112