1*e11f1d68STero Kristo /* 2*e11f1d68STero Kristo * Copyright 2017 Texas Instruments, Inc. 3*e11f1d68STero Kristo * 4*e11f1d68STero Kristo * This software is licensed under the terms of the GNU General Public 5*e11f1d68STero Kristo * License version 2, as published by the Free Software Foundation, and 6*e11f1d68STero Kristo * may be copied, distributed, and modified under those terms. 7*e11f1d68STero Kristo * 8*e11f1d68STero Kristo * This program is distributed in the hope that it will be useful, 9*e11f1d68STero Kristo * but WITHOUT ANY WARRANTY; without even the implied warranty of 10*e11f1d68STero Kristo * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11*e11f1d68STero Kristo * GNU General Public License for more details. 12*e11f1d68STero Kristo */ 13*e11f1d68STero Kristo #ifndef __DT_BINDINGS_CLK_OMAP5_H 14*e11f1d68STero Kristo #define __DT_BINDINGS_CLK_OMAP5_H 15*e11f1d68STero Kristo 16*e11f1d68STero Kristo #define OMAP5_CLKCTRL_OFFSET 0x20 17*e11f1d68STero Kristo #define OMAP5_CLKCTRL_INDEX(offset) ((offset) - OMAP5_CLKCTRL_OFFSET) 18*e11f1d68STero Kristo 19*e11f1d68STero Kristo /* mpu clocks */ 20*e11f1d68STero Kristo #define OMAP5_MPU_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 21*e11f1d68STero Kristo 22*e11f1d68STero Kristo /* dsp clocks */ 23*e11f1d68STero Kristo #define OMAP5_MMU_DSP_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 24*e11f1d68STero Kristo 25*e11f1d68STero Kristo /* abe clocks */ 26*e11f1d68STero Kristo #define OMAP5_L4_ABE_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 27*e11f1d68STero Kristo #define OMAP5_MCPDM_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 28*e11f1d68STero Kristo #define OMAP5_DMIC_CLKCTRL OMAP5_CLKCTRL_INDEX(0x38) 29*e11f1d68STero Kristo #define OMAP5_MCBSP1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x48) 30*e11f1d68STero Kristo #define OMAP5_MCBSP2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x50) 31*e11f1d68STero Kristo #define OMAP5_MCBSP3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x58) 32*e11f1d68STero Kristo #define OMAP5_TIMER5_CLKCTRL OMAP5_CLKCTRL_INDEX(0x68) 33*e11f1d68STero Kristo #define OMAP5_TIMER6_CLKCTRL OMAP5_CLKCTRL_INDEX(0x70) 34*e11f1d68STero Kristo #define OMAP5_TIMER7_CLKCTRL OMAP5_CLKCTRL_INDEX(0x78) 35*e11f1d68STero Kristo #define OMAP5_TIMER8_CLKCTRL OMAP5_CLKCTRL_INDEX(0x80) 36*e11f1d68STero Kristo 37*e11f1d68STero Kristo /* l3main1 clocks */ 38*e11f1d68STero Kristo #define OMAP5_L3_MAIN_1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 39*e11f1d68STero Kristo 40*e11f1d68STero Kristo /* l3main2 clocks */ 41*e11f1d68STero Kristo #define OMAP5_L3_MAIN_2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 42*e11f1d68STero Kristo 43*e11f1d68STero Kristo /* ipu clocks */ 44*e11f1d68STero Kristo #define OMAP5_MMU_IPU_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 45*e11f1d68STero Kristo 46*e11f1d68STero Kristo /* dma clocks */ 47*e11f1d68STero Kristo #define OMAP5_DMA_SYSTEM_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 48*e11f1d68STero Kristo 49*e11f1d68STero Kristo /* emif clocks */ 50*e11f1d68STero Kristo #define OMAP5_DMM_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 51*e11f1d68STero Kristo #define OMAP5_EMIF1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 52*e11f1d68STero Kristo #define OMAP5_EMIF2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x38) 53*e11f1d68STero Kristo 54*e11f1d68STero Kristo /* l4cfg clocks */ 55*e11f1d68STero Kristo #define OMAP5_L4_CFG_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 56*e11f1d68STero Kristo #define OMAP5_SPINLOCK_CLKCTRL OMAP5_CLKCTRL_INDEX(0x28) 57*e11f1d68STero Kristo #define OMAP5_MAILBOX_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 58*e11f1d68STero Kristo 59*e11f1d68STero Kristo /* l3instr clocks */ 60*e11f1d68STero Kristo #define OMAP5_L3_MAIN_3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 61*e11f1d68STero Kristo #define OMAP5_L3_INSTR_CLKCTRL OMAP5_CLKCTRL_INDEX(0x28) 62*e11f1d68STero Kristo 63*e11f1d68STero Kristo /* l4per clocks */ 64*e11f1d68STero Kristo #define OMAP5_TIMER10_CLKCTRL OMAP5_CLKCTRL_INDEX(0x28) 65*e11f1d68STero Kristo #define OMAP5_TIMER11_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 66*e11f1d68STero Kristo #define OMAP5_TIMER2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x38) 67*e11f1d68STero Kristo #define OMAP5_TIMER3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x40) 68*e11f1d68STero Kristo #define OMAP5_TIMER4_CLKCTRL OMAP5_CLKCTRL_INDEX(0x48) 69*e11f1d68STero Kristo #define OMAP5_TIMER9_CLKCTRL OMAP5_CLKCTRL_INDEX(0x50) 70*e11f1d68STero Kristo #define OMAP5_GPIO2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x60) 71*e11f1d68STero Kristo #define OMAP5_GPIO3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x68) 72*e11f1d68STero Kristo #define OMAP5_GPIO4_CLKCTRL OMAP5_CLKCTRL_INDEX(0x70) 73*e11f1d68STero Kristo #define OMAP5_GPIO5_CLKCTRL OMAP5_CLKCTRL_INDEX(0x78) 74*e11f1d68STero Kristo #define OMAP5_GPIO6_CLKCTRL OMAP5_CLKCTRL_INDEX(0x80) 75*e11f1d68STero Kristo #define OMAP5_I2C1_CLKCTRL OMAP5_CLKCTRL_INDEX(0xa0) 76*e11f1d68STero Kristo #define OMAP5_I2C2_CLKCTRL OMAP5_CLKCTRL_INDEX(0xa8) 77*e11f1d68STero Kristo #define OMAP5_I2C3_CLKCTRL OMAP5_CLKCTRL_INDEX(0xb0) 78*e11f1d68STero Kristo #define OMAP5_I2C4_CLKCTRL OMAP5_CLKCTRL_INDEX(0xb8) 79*e11f1d68STero Kristo #define OMAP5_L4_PER_CLKCTRL OMAP5_CLKCTRL_INDEX(0xc0) 80*e11f1d68STero Kristo #define OMAP5_MCSPI1_CLKCTRL OMAP5_CLKCTRL_INDEX(0xf0) 81*e11f1d68STero Kristo #define OMAP5_MCSPI2_CLKCTRL OMAP5_CLKCTRL_INDEX(0xf8) 82*e11f1d68STero Kristo #define OMAP5_MCSPI3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x100) 83*e11f1d68STero Kristo #define OMAP5_MCSPI4_CLKCTRL OMAP5_CLKCTRL_INDEX(0x108) 84*e11f1d68STero Kristo #define OMAP5_GPIO7_CLKCTRL OMAP5_CLKCTRL_INDEX(0x110) 85*e11f1d68STero Kristo #define OMAP5_GPIO8_CLKCTRL OMAP5_CLKCTRL_INDEX(0x118) 86*e11f1d68STero Kristo #define OMAP5_MMC3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x120) 87*e11f1d68STero Kristo #define OMAP5_MMC4_CLKCTRL OMAP5_CLKCTRL_INDEX(0x128) 88*e11f1d68STero Kristo #define OMAP5_UART1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x140) 89*e11f1d68STero Kristo #define OMAP5_UART2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x148) 90*e11f1d68STero Kristo #define OMAP5_UART3_CLKCTRL OMAP5_CLKCTRL_INDEX(0x150) 91*e11f1d68STero Kristo #define OMAP5_UART4_CLKCTRL OMAP5_CLKCTRL_INDEX(0x158) 92*e11f1d68STero Kristo #define OMAP5_MMC5_CLKCTRL OMAP5_CLKCTRL_INDEX(0x160) 93*e11f1d68STero Kristo #define OMAP5_I2C5_CLKCTRL OMAP5_CLKCTRL_INDEX(0x168) 94*e11f1d68STero Kristo #define OMAP5_UART5_CLKCTRL OMAP5_CLKCTRL_INDEX(0x170) 95*e11f1d68STero Kristo #define OMAP5_UART6_CLKCTRL OMAP5_CLKCTRL_INDEX(0x178) 96*e11f1d68STero Kristo 97*e11f1d68STero Kristo /* dss clocks */ 98*e11f1d68STero Kristo #define OMAP5_DSS_CORE_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 99*e11f1d68STero Kristo 100*e11f1d68STero Kristo /* l3init clocks */ 101*e11f1d68STero Kristo #define OMAP5_MMC1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x28) 102*e11f1d68STero Kristo #define OMAP5_MMC2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 103*e11f1d68STero Kristo #define OMAP5_USB_HOST_HS_CLKCTRL OMAP5_CLKCTRL_INDEX(0x58) 104*e11f1d68STero Kristo #define OMAP5_USB_TLL_HS_CLKCTRL OMAP5_CLKCTRL_INDEX(0x68) 105*e11f1d68STero Kristo #define OMAP5_SATA_CLKCTRL OMAP5_CLKCTRL_INDEX(0x88) 106*e11f1d68STero Kristo #define OMAP5_OCP2SCP1_CLKCTRL OMAP5_CLKCTRL_INDEX(0xe0) 107*e11f1d68STero Kristo #define OMAP5_OCP2SCP3_CLKCTRL OMAP5_CLKCTRL_INDEX(0xe8) 108*e11f1d68STero Kristo #define OMAP5_USB_OTG_SS_CLKCTRL OMAP5_CLKCTRL_INDEX(0xf0) 109*e11f1d68STero Kristo 110*e11f1d68STero Kristo /* wkupaon clocks */ 111*e11f1d68STero Kristo #define OMAP5_L4_WKUP_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 112*e11f1d68STero Kristo #define OMAP5_WD_TIMER2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30) 113*e11f1d68STero Kristo #define OMAP5_GPIO1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x38) 114*e11f1d68STero Kristo #define OMAP5_TIMER1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x40) 115*e11f1d68STero Kristo #define OMAP5_COUNTER_32K_CLKCTRL OMAP5_CLKCTRL_INDEX(0x50) 116*e11f1d68STero Kristo #define OMAP5_KBD_CLKCTRL OMAP5_CLKCTRL_INDEX(0x78) 117*e11f1d68STero Kristo 118*e11f1d68STero Kristo #endif 119