linux/include/dt-bindings/clock/bcm281xx.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2013 Broadcom Corporation
 * Copyright 2013 Linaro Limited
 */

#ifndef _CLOCK_BCM281XX_H
#define _CLOCK_BCM281XX_H

/*
 * This file defines the values used to specify clocks provided by
 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
 */

/*
 * These are the bcm281xx CCU device tree "compatible" strings.
 * We're stuck with using "bcm11351" in the string because wild
 * cards aren't allowed, and that name was the first one defined
 * in this family of devices.
 */
#define BCM281XX_DT_ROOT_CCU_COMPAT
#define BCM281XX_DT_AON_CCU_COMPAT
#define BCM281XX_DT_HUB_CCU_COMPAT
#define BCM281XX_DT_MASTER_CCU_COMPAT
#define BCM281XX_DT_SLAVE_CCU_COMPAT

/* root CCU clock ids */

#define BCM281XX_ROOT_CCU_FRAC_1M
#define BCM281XX_ROOT_CCU_CLOCK_COUNT

/* aon CCU clock ids */

#define BCM281XX_AON_CCU_HUB_TIMER
#define BCM281XX_AON_CCU_PMU_BSC
#define BCM281XX_AON_CCU_PMU_BSC_VAR
#define BCM281XX_AON_CCU_CLOCK_COUNT

/* hub CCU clock ids */

#define BCM281XX_HUB_CCU_TMON_1M
#define BCM281XX_HUB_CCU_CLOCK_COUNT

/* master CCU clock ids */

#define BCM281XX_MASTER_CCU_SDIO1
#define BCM281XX_MASTER_CCU_SDIO2
#define BCM281XX_MASTER_CCU_SDIO3
#define BCM281XX_MASTER_CCU_SDIO4
#define BCM281XX_MASTER_CCU_USB_IC
#define BCM281XX_MASTER_CCU_HSIC2_48M
#define BCM281XX_MASTER_CCU_HSIC2_12M
#define BCM281XX_MASTER_CCU_CLOCK_COUNT

/* slave CCU clock ids */

#define BCM281XX_SLAVE_CCU_UARTB
#define BCM281XX_SLAVE_CCU_UARTB2
#define BCM281XX_SLAVE_CCU_UARTB3
#define BCM281XX_SLAVE_CCU_UARTB4
#define BCM281XX_SLAVE_CCU_SSP0
#define BCM281XX_SLAVE_CCU_SSP2
#define BCM281XX_SLAVE_CCU_BSC1
#define BCM281XX_SLAVE_CCU_BSC2
#define BCM281XX_SLAVE_CCU_BSC3
#define BCM281XX_SLAVE_CCU_PWM
#define BCM281XX_SLAVE_CCU_CLOCK_COUNT

#endif /* _CLOCK_BCM281XX_H */