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_BCM281XX_H
0008 #define _CLOCK_BCM281XX_H
0009 
0010 /*
0011  * This file defines the values used to specify clocks provided by
0012  * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
0013  */
0014 
0015 /*
0016  * These are the bcm281xx CCU device tree "compatible" strings.
0017  * We're stuck with using "bcm11351" in the string because wild
0018  * cards aren't allowed, and that name was the first one defined
0019  * in this family of devices.
0020  */
0021 #define BCM281XX_DT_ROOT_CCU_COMPAT "brcm,bcm11351-root-ccu"
0022 #define BCM281XX_DT_AON_CCU_COMPAT  "brcm,bcm11351-aon-ccu"
0023 #define BCM281XX_DT_HUB_CCU_COMPAT  "brcm,bcm11351-hub-ccu"
0024 #define BCM281XX_DT_MASTER_CCU_COMPAT   "brcm,bcm11351-master-ccu"
0025 #define BCM281XX_DT_SLAVE_CCU_COMPAT    "brcm,bcm11351-slave-ccu"
0026 
0027 /* root CCU clock ids */
0028 
0029 #define BCM281XX_ROOT_CCU_FRAC_1M       0
0030 #define BCM281XX_ROOT_CCU_CLOCK_COUNT       1
0031 
0032 /* aon CCU clock ids */
0033 
0034 #define BCM281XX_AON_CCU_HUB_TIMER      0
0035 #define BCM281XX_AON_CCU_PMU_BSC        1
0036 #define BCM281XX_AON_CCU_PMU_BSC_VAR        2
0037 #define BCM281XX_AON_CCU_CLOCK_COUNT        3
0038 
0039 /* hub CCU clock ids */
0040 
0041 #define BCM281XX_HUB_CCU_TMON_1M        0
0042 #define BCM281XX_HUB_CCU_CLOCK_COUNT        1
0043 
0044 /* master CCU clock ids */
0045 
0046 #define BCM281XX_MASTER_CCU_SDIO1       0
0047 #define BCM281XX_MASTER_CCU_SDIO2       1
0048 #define BCM281XX_MASTER_CCU_SDIO3       2
0049 #define BCM281XX_MASTER_CCU_SDIO4       3
0050 #define BCM281XX_MASTER_CCU_USB_IC      4
0051 #define BCM281XX_MASTER_CCU_HSIC2_48M       5
0052 #define BCM281XX_MASTER_CCU_HSIC2_12M       6
0053 #define BCM281XX_MASTER_CCU_CLOCK_COUNT     7
0054 
0055 /* slave CCU clock ids */
0056 
0057 #define BCM281XX_SLAVE_CCU_UARTB        0
0058 #define BCM281XX_SLAVE_CCU_UARTB2       1
0059 #define BCM281XX_SLAVE_CCU_UARTB3       2
0060 #define BCM281XX_SLAVE_CCU_UARTB4       3
0061 #define BCM281XX_SLAVE_CCU_SSP0         4
0062 #define BCM281XX_SLAVE_CCU_SSP2         5
0063 #define BCM281XX_SLAVE_CCU_BSC1         6
0064 #define BCM281XX_SLAVE_CCU_BSC2         7
0065 #define BCM281XX_SLAVE_CCU_BSC3         8
0066 #define BCM281XX_SLAVE_CCU_PWM          9
0067 #define BCM281XX_SLAVE_CCU_CLOCK_COUNT      10
0068 
0069 #endif /* _CLOCK_BCM281XX_H */