1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Copyright 2017 Texas Instruments, Inc. 2 * Copyright 2017 Texas Instruments, Inc. >> 3 * >> 4 * This software is licensed under the terms of the GNU General Public >> 5 * License version 2, as published by the Free Software Foundation, and >> 6 * may be copied, distributed, and modified under those terms. >> 7 * >> 8 * This program is distributed in the hope that it will be useful, >> 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 11 * GNU General Public License for more details. 4 */ 12 */ 5 #ifndef __DT_BINDINGS_CLK_DM816_H 13 #ifndef __DT_BINDINGS_CLK_DM816_H 6 #define __DT_BINDINGS_CLK_DM816_H 14 #define __DT_BINDINGS_CLK_DM816_H 7 15 8 #define DM816_CLKCTRL_OFFSET 0x0 16 #define DM816_CLKCTRL_OFFSET 0x0 9 #define DM816_CLKCTRL_INDEX(offset) ((offs 17 #define DM816_CLKCTRL_INDEX(offset) ((offset) - DM816_CLKCTRL_OFFSET) 10 18 11 /* default clocks */ 19 /* default clocks */ 12 #define DM816_USB_OTG_HS_CLKCTRL DM816_ 20 #define DM816_USB_OTG_HS_CLKCTRL DM816_CLKCTRL_INDEX(0x58) 13 21 14 /* alwon clocks */ 22 /* alwon clocks */ 15 #define DM816_UART1_CLKCTRL DM816_CLKCTRL_ 23 #define DM816_UART1_CLKCTRL DM816_CLKCTRL_INDEX(0x150) 16 #define DM816_UART2_CLKCTRL DM816_CLKCTRL_ 24 #define DM816_UART2_CLKCTRL DM816_CLKCTRL_INDEX(0x154) 17 #define DM816_UART3_CLKCTRL DM816_CLKCTRL_ 25 #define DM816_UART3_CLKCTRL DM816_CLKCTRL_INDEX(0x158) 18 #define DM816_GPIO1_CLKCTRL DM816_CLKCTRL_ 26 #define DM816_GPIO1_CLKCTRL DM816_CLKCTRL_INDEX(0x15c) 19 #define DM816_GPIO2_CLKCTRL DM816_CLKCTRL_ 27 #define DM816_GPIO2_CLKCTRL DM816_CLKCTRL_INDEX(0x160) 20 #define DM816_I2C1_CLKCTRL DM816_CLKCTRL_ 28 #define DM816_I2C1_CLKCTRL DM816_CLKCTRL_INDEX(0x164) 21 #define DM816_I2C2_CLKCTRL DM816_CLKCTRL_ 29 #define DM816_I2C2_CLKCTRL DM816_CLKCTRL_INDEX(0x168) 22 #define DM816_TIMER1_CLKCTRL DM816_CLKCTRL_ 30 #define DM816_TIMER1_CLKCTRL DM816_CLKCTRL_INDEX(0x170) 23 #define DM816_TIMER2_CLKCTRL DM816_CLKCTRL_ 31 #define DM816_TIMER2_CLKCTRL DM816_CLKCTRL_INDEX(0x174) 24 #define DM816_TIMER3_CLKCTRL DM816_CLKCTRL_ 32 #define DM816_TIMER3_CLKCTRL DM816_CLKCTRL_INDEX(0x178) 25 #define DM816_TIMER4_CLKCTRL DM816_CLKCTRL_ 33 #define DM816_TIMER4_CLKCTRL DM816_CLKCTRL_INDEX(0x17c) 26 #define DM816_TIMER5_CLKCTRL DM816_CLKCTRL_ 34 #define DM816_TIMER5_CLKCTRL DM816_CLKCTRL_INDEX(0x180) 27 #define DM816_TIMER6_CLKCTRL DM816_CLKCTRL_ 35 #define DM816_TIMER6_CLKCTRL DM816_CLKCTRL_INDEX(0x184) 28 #define DM816_TIMER7_CLKCTRL DM816_CLKCTRL_ 36 #define DM816_TIMER7_CLKCTRL DM816_CLKCTRL_INDEX(0x188) 29 #define DM816_WD_TIMER_CLKCTRL DM816_CLKCTRL_ 37 #define DM816_WD_TIMER_CLKCTRL DM816_CLKCTRL_INDEX(0x18c) 30 #define DM816_MCSPI1_CLKCTRL DM816_CLKCTRL_ 38 #define DM816_MCSPI1_CLKCTRL DM816_CLKCTRL_INDEX(0x190) 31 #define DM816_MAILBOX_CLKCTRL DM816_CLKCTRL_ 39 #define DM816_MAILBOX_CLKCTRL DM816_CLKCTRL_INDEX(0x194) 32 #define DM816_SPINBOX_CLKCTRL DM816_CLKCTRL_ 40 #define DM816_SPINBOX_CLKCTRL DM816_CLKCTRL_INDEX(0x198) 33 #define DM816_MMC1_CLKCTRL DM816_CLKCTRL_ 41 #define DM816_MMC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1b0) 34 #define DM816_GPMC_CLKCTRL DM816_CLKCTRL_ 42 #define DM816_GPMC_CLKCTRL DM816_CLKCTRL_INDEX(0x1d0) 35 #define DM816_DAVINCI_MDIO_CLKCTRL DM816_ 43 #define DM816_DAVINCI_MDIO_CLKCTRL DM816_CLKCTRL_INDEX(0x1d4) 36 #define DM816_EMAC1_CLKCTRL DM816_CLKCTRL_ 44 #define DM816_EMAC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1d8) 37 #define DM816_MPU_CLKCTRL DM816_CLKCTRL_ 45 #define DM816_MPU_CLKCTRL DM816_CLKCTRL_INDEX(0x1dc) 38 #define DM816_RTC_CLKCTRL DM816_CLKCTRL_ 46 #define DM816_RTC_CLKCTRL DM816_CLKCTRL_INDEX(0x1f0) 39 #define DM816_TPCC_CLKCTRL DM816_CLKCTRL_ 47 #define DM816_TPCC_CLKCTRL DM816_CLKCTRL_INDEX(0x1f4) 40 #define DM816_TPTC0_CLKCTRL DM816_CLKCTRL_ 48 #define DM816_TPTC0_CLKCTRL DM816_CLKCTRL_INDEX(0x1f8) 41 #define DM816_TPTC1_CLKCTRL DM816_CLKCTRL_ 49 #define DM816_TPTC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1fc) 42 #define DM816_TPTC2_CLKCTRL DM816_CLKCTRL_ 50 #define DM816_TPTC2_CLKCTRL DM816_CLKCTRL_INDEX(0x200) 43 #define DM816_TPTC3_CLKCTRL DM816_CLKCTRL_ 51 #define DM816_TPTC3_CLKCTRL DM816_CLKCTRL_INDEX(0x204) 44 52 45 #endif 53 #endif 46 54
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.