Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2013 Broadcom Corporation
0004  * Copyright 2013 Linaro Limited
0005  */
0006 
0007 #ifndef _CLOCK_BCM21664_H
0008 #define _CLOCK_BCM21664_H
0009 
0010 /*
0011  * This file defines the values used to specify clocks provided by
0012  * the clock control units (CCUs) on Broadcom BCM21664 family SoCs.
0013  */
0014 
0015 /* bcm21664 CCU device tree "compatible" strings */
0016 #define BCM21664_DT_ROOT_CCU_COMPAT "brcm,bcm21664-root-ccu"
0017 #define BCM21664_DT_AON_CCU_COMPAT  "brcm,bcm21664-aon-ccu"
0018 #define BCM21664_DT_MASTER_CCU_COMPAT   "brcm,bcm21664-master-ccu"
0019 #define BCM21664_DT_SLAVE_CCU_COMPAT    "brcm,bcm21664-slave-ccu"
0020 
0021 /* root CCU clock ids */
0022 
0023 #define BCM21664_ROOT_CCU_FRAC_1M       0
0024 #define BCM21664_ROOT_CCU_CLOCK_COUNT       1
0025 
0026 /* aon CCU clock ids */
0027 
0028 #define BCM21664_AON_CCU_HUB_TIMER      0
0029 #define BCM21664_AON_CCU_CLOCK_COUNT        1
0030 
0031 /* master CCU clock ids */
0032 
0033 #define BCM21664_MASTER_CCU_SDIO1       0
0034 #define BCM21664_MASTER_CCU_SDIO2       1
0035 #define BCM21664_MASTER_CCU_SDIO3       2
0036 #define BCM21664_MASTER_CCU_SDIO4       3
0037 #define BCM21664_MASTER_CCU_SDIO1_SLEEP     4
0038 #define BCM21664_MASTER_CCU_SDIO2_SLEEP     5
0039 #define BCM21664_MASTER_CCU_SDIO3_SLEEP     6
0040 #define BCM21664_MASTER_CCU_SDIO4_SLEEP     7
0041 #define BCM21664_MASTER_CCU_CLOCK_COUNT     8
0042 
0043 /* slave CCU clock ids */
0044 
0045 #define BCM21664_SLAVE_CCU_UARTB        0
0046 #define BCM21664_SLAVE_CCU_UARTB2       1
0047 #define BCM21664_SLAVE_CCU_UARTB3       2
0048 #define BCM21664_SLAVE_CCU_BSC1         3
0049 #define BCM21664_SLAVE_CCU_BSC2         4
0050 #define BCM21664_SLAVE_CCU_BSC3         5
0051 #define BCM21664_SLAVE_CCU_BSC4         6
0052 #define BCM21664_SLAVE_CCU_CLOCK_COUNT      7
0053 
0054 #endif /* _CLOCK_BCM21664_H */