18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2017, Intel Corporation 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __STRATIX10_CLOCK_H 78c2ecf20Sopenharmony_ci#define __STRATIX10_CLOCK_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* fixed rate clocks */ 108c2ecf20Sopenharmony_ci#define STRATIX10_OSC1 0 118c2ecf20Sopenharmony_ci#define STRATIX10_CB_INTOSC_HS_DIV2_CLK 1 128c2ecf20Sopenharmony_ci#define STRATIX10_CB_INTOSC_LS_CLK 2 138c2ecf20Sopenharmony_ci#define STRATIX10_F2S_FREE_CLK 3 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* fixed factor clocks */ 168c2ecf20Sopenharmony_ci#define STRATIX10_L4_SYS_FREE_CLK 4 178c2ecf20Sopenharmony_ci#define STRATIX10_MPU_PERIPH_CLK 5 188c2ecf20Sopenharmony_ci#define STRATIX10_MPU_L2RAM_CLK 6 198c2ecf20Sopenharmony_ci#define STRATIX10_SDMMC_CIU_CLK 7 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* PLL clocks */ 228c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_PLL_CLK 8 238c2ecf20Sopenharmony_ci#define STRATIX10_PERIPH_PLL_CLK 9 248c2ecf20Sopenharmony_ci#define STRATIX10_BOOT_CLK 10 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* Periph clocks */ 278c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_MPU_BASE_CLK 11 288c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_NOC_BASE_CLK 12 298c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_EMACA_CLK 13 308c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_EMACB_CLK 14 318c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_EMAC_PTP_CLK 15 328c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_GPIO_DB_CLK 16 338c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_SDMMC_CLK 17 348c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_S2F_USR0_CLK 18 358c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_S2F_USR1_CLK 19 368c2ecf20Sopenharmony_ci#define STRATIX10_MAIN_PSI_REF_CLK 20 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#define STRATIX10_PERI_MPU_BASE_CLK 21 398c2ecf20Sopenharmony_ci#define STRATIX10_PERI_NOC_BASE_CLK 22 408c2ecf20Sopenharmony_ci#define STRATIX10_PERI_EMACA_CLK 23 418c2ecf20Sopenharmony_ci#define STRATIX10_PERI_EMACB_CLK 24 428c2ecf20Sopenharmony_ci#define STRATIX10_PERI_EMAC_PTP_CLK 25 438c2ecf20Sopenharmony_ci#define STRATIX10_PERI_GPIO_DB_CLK 26 448c2ecf20Sopenharmony_ci#define STRATIX10_PERI_SDMMC_CLK 27 458c2ecf20Sopenharmony_ci#define STRATIX10_PERI_S2F_USR0_CLK 28 468c2ecf20Sopenharmony_ci#define STRATIX10_PERI_S2F_USR1_CLK 29 478c2ecf20Sopenharmony_ci#define STRATIX10_PERI_PSI_REF_CLK 30 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#define STRATIX10_MPU_FREE_CLK 31 508c2ecf20Sopenharmony_ci#define STRATIX10_NOC_FREE_CLK 32 518c2ecf20Sopenharmony_ci#define STRATIX10_S2F_USR0_CLK 33 528c2ecf20Sopenharmony_ci#define STRATIX10_NOC_CLK 34 538c2ecf20Sopenharmony_ci#define STRATIX10_EMAC_A_FREE_CLK 35 548c2ecf20Sopenharmony_ci#define STRATIX10_EMAC_B_FREE_CLK 36 558c2ecf20Sopenharmony_ci#define STRATIX10_EMAC_PTP_FREE_CLK 37 568c2ecf20Sopenharmony_ci#define STRATIX10_GPIO_DB_FREE_CLK 38 578c2ecf20Sopenharmony_ci#define STRATIX10_SDMMC_FREE_CLK 39 588c2ecf20Sopenharmony_ci#define STRATIX10_S2F_USER1_FREE_CLK 40 598c2ecf20Sopenharmony_ci#define STRATIX10_PSI_REF_FREE_CLK 41 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/* Gate clocks */ 628c2ecf20Sopenharmony_ci#define STRATIX10_MPU_CLK 42 638c2ecf20Sopenharmony_ci#define STRATIX10_L4_MAIN_CLK 43 648c2ecf20Sopenharmony_ci#define STRATIX10_L4_MP_CLK 44 658c2ecf20Sopenharmony_ci#define STRATIX10_L4_SP_CLK 45 668c2ecf20Sopenharmony_ci#define STRATIX10_CS_AT_CLK 46 678c2ecf20Sopenharmony_ci#define STRATIX10_CS_TRACE_CLK 47 688c2ecf20Sopenharmony_ci#define STRATIX10_CS_PDBG_CLK 48 698c2ecf20Sopenharmony_ci#define STRATIX10_CS_TIMER_CLK 49 708c2ecf20Sopenharmony_ci#define STRATIX10_S2F_USER0_CLK 50 718c2ecf20Sopenharmony_ci#define STRATIX10_S2F_USER1_CLK 51 728c2ecf20Sopenharmony_ci#define STRATIX10_EMAC0_CLK 52 738c2ecf20Sopenharmony_ci#define STRATIX10_EMAC1_CLK 53 748c2ecf20Sopenharmony_ci#define STRATIX10_EMAC2_CLK 54 758c2ecf20Sopenharmony_ci#define STRATIX10_EMAC_PTP_CLK 55 768c2ecf20Sopenharmony_ci#define STRATIX10_GPIO_DB_CLK 56 778c2ecf20Sopenharmony_ci#define STRATIX10_SDMMC_CLK 57 788c2ecf20Sopenharmony_ci#define STRATIX10_PSI_REF_CLK 58 798c2ecf20Sopenharmony_ci#define STRATIX10_USB_CLK 59 808c2ecf20Sopenharmony_ci#define STRATIX10_SPI_M_CLK 60 818c2ecf20Sopenharmony_ci#define STRATIX10_NAND_CLK 61 828c2ecf20Sopenharmony_ci#define STRATIX10_NAND_X_CLK 62 838c2ecf20Sopenharmony_ci#define STRATIX10_NAND_ECC_CLK 63 848c2ecf20Sopenharmony_ci#define STRATIX10_NUM_CLKS 64 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#endif /* __STRATIX10_CLOCK_H */ 87