1 1.1 jmcneill /* $NetBSD: actions,s500-cmu.h,v 1.1.1.2 2021/11/07 16:49:59 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SPDX-License-Identifier: GPL-2.0+ */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Device Tree binding constants for Actions Semi S500 Clock Management Unit 6 1.1 jmcneill * 7 1.1 jmcneill * Copyright (c) 2014 Actions Semi Inc. 8 1.1 jmcneill * Copyright (c) 2018 LSI-TEC - Caninos Loucos 9 1.1 jmcneill */ 10 1.1 jmcneill 11 1.1 jmcneill #ifndef __DT_BINDINGS_CLOCK_S500_CMU_H 12 1.1 jmcneill #define __DT_BINDINGS_CLOCK_S500_CMU_H 13 1.1 jmcneill 14 1.1 jmcneill #define CLK_NONE 0 15 1.1 jmcneill 16 1.1 jmcneill /* fixed rate clocks */ 17 1.1 jmcneill #define CLK_LOSC 1 18 1.1 jmcneill #define CLK_HOSC 2 19 1.1 jmcneill 20 1.1 jmcneill /* pll clocks */ 21 1.1 jmcneill #define CLK_CORE_PLL 3 22 1.1 jmcneill #define CLK_DEV_PLL 4 23 1.1 jmcneill #define CLK_DDR_PLL 5 24 1.1 jmcneill #define CLK_NAND_PLL 6 25 1.1 jmcneill #define CLK_DISPLAY_PLL 7 26 1.1 jmcneill #define CLK_ETHERNET_PLL 8 27 1.1 jmcneill #define CLK_AUDIO_PLL 9 28 1.1 jmcneill 29 1.1 jmcneill /* system clock */ 30 1.1 jmcneill #define CLK_DEV 10 31 1.1 jmcneill #define CLK_H 11 32 1.1 jmcneill #define CLK_AHBPREDIV 12 33 1.1 jmcneill #define CLK_AHB 13 34 1.1 jmcneill #define CLK_DE 14 35 1.1 jmcneill #define CLK_BISP 15 36 1.1 jmcneill #define CLK_VCE 16 37 1.1 jmcneill #define CLK_VDE 17 38 1.1 jmcneill 39 1.1 jmcneill /* peripheral device clock */ 40 1.1 jmcneill #define CLK_TIMER 18 41 1.1 jmcneill #define CLK_I2C0 19 42 1.1 jmcneill #define CLK_I2C1 20 43 1.1 jmcneill #define CLK_I2C2 21 44 1.1 jmcneill #define CLK_I2C3 22 45 1.1 jmcneill #define CLK_PWM0 23 46 1.1 jmcneill #define CLK_PWM1 24 47 1.1 jmcneill #define CLK_PWM2 25 48 1.1 jmcneill #define CLK_PWM3 26 49 1.1 jmcneill #define CLK_PWM4 27 50 1.1 jmcneill #define CLK_PWM5 28 51 1.1 jmcneill #define CLK_SD0 29 52 1.1 jmcneill #define CLK_SD1 30 53 1.1 jmcneill #define CLK_SD2 31 54 1.1 jmcneill #define CLK_SENSOR0 32 55 1.1 jmcneill #define CLK_SENSOR1 33 56 1.1 jmcneill #define CLK_SPI0 34 57 1.1 jmcneill #define CLK_SPI1 35 58 1.1 jmcneill #define CLK_SPI2 36 59 1.1 jmcneill #define CLK_SPI3 37 60 1.1 jmcneill #define CLK_UART0 38 61 1.1 jmcneill #define CLK_UART1 39 62 1.1 jmcneill #define CLK_UART2 40 63 1.1 jmcneill #define CLK_UART3 41 64 1.1 jmcneill #define CLK_UART4 42 65 1.1 jmcneill #define CLK_UART5 43 66 1.1 jmcneill #define CLK_UART6 44 67 1.1 jmcneill #define CLK_DE1 45 68 1.1 jmcneill #define CLK_DE2 46 69 1.1 jmcneill #define CLK_I2SRX 47 70 1.1 jmcneill #define CLK_I2STX 48 71 1.1 jmcneill #define CLK_HDMI_AUDIO 49 72 1.1 jmcneill #define CLK_HDMI 50 73 1.1 jmcneill #define CLK_SPDIF 51 74 1.1 jmcneill #define CLK_NAND 52 75 1.1 jmcneill #define CLK_ECC 53 76 1.1 jmcneill #define CLK_RMII_REF 54 77 1.1.1.2 jmcneill #define CLK_GPIO 55 78 1.1 jmcneill 79 1.1.1.2 jmcneill /* additional clocks */ 80 1.1.1.2 jmcneill #define CLK_APB 56 81 1.1.1.2 jmcneill #define CLK_DMAC 57 82 1.1.1.2 jmcneill #define CLK_NIC 58 83 1.1.1.2 jmcneill #define CLK_ETHERNET 59 84 1.1.1.2 jmcneill 85 1.1.1.2 jmcneill #define CLK_NR_CLKS (CLK_ETHERNET + 1) 86 1.1 jmcneill 87 1.1 jmcneill #endif /* __DT_BINDINGS_CLOCK_S500_CMU_H */ 88