1*b97ee269SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */ 2c66ec88fSEmmanuel Vadot /* 3c66ec88fSEmmanuel Vadot * Copyright (C) 2013 Broadcom Corporation 4c66ec88fSEmmanuel Vadot * Copyright 2013 Linaro Limited 5c66ec88fSEmmanuel Vadot */ 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadot #ifndef _CLOCK_BCM21664_H 8c66ec88fSEmmanuel Vadot #define _CLOCK_BCM21664_H 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot /* 11c66ec88fSEmmanuel Vadot * This file defines the values used to specify clocks provided by 12c66ec88fSEmmanuel Vadot * the clock control units (CCUs) on Broadcom BCM21664 family SoCs. 13c66ec88fSEmmanuel Vadot */ 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadot /* bcm21664 CCU device tree "compatible" strings */ 16c66ec88fSEmmanuel Vadot #define BCM21664_DT_ROOT_CCU_COMPAT "brcm,bcm21664-root-ccu" 17c66ec88fSEmmanuel Vadot #define BCM21664_DT_AON_CCU_COMPAT "brcm,bcm21664-aon-ccu" 18c66ec88fSEmmanuel Vadot #define BCM21664_DT_MASTER_CCU_COMPAT "brcm,bcm21664-master-ccu" 19c66ec88fSEmmanuel Vadot #define BCM21664_DT_SLAVE_CCU_COMPAT "brcm,bcm21664-slave-ccu" 20c66ec88fSEmmanuel Vadot 21c66ec88fSEmmanuel Vadot /* root CCU clock ids */ 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot #define BCM21664_ROOT_CCU_FRAC_1M 0 24c66ec88fSEmmanuel Vadot #define BCM21664_ROOT_CCU_CLOCK_COUNT 1 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot /* aon CCU clock ids */ 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot #define BCM21664_AON_CCU_HUB_TIMER 0 29c66ec88fSEmmanuel Vadot #define BCM21664_AON_CCU_CLOCK_COUNT 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot /* master CCU clock ids */ 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO1 0 34c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO2 1 35c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO3 2 36c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO4 3 37c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO1_SLEEP 4 38c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO2_SLEEP 5 39c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO3_SLEEP 6 40c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_SDIO4_SLEEP 7 41c66ec88fSEmmanuel Vadot #define BCM21664_MASTER_CCU_CLOCK_COUNT 8 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot /* slave CCU clock ids */ 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_UARTB 0 46c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_UARTB2 1 47c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_UARTB3 2 48c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_BSC1 3 49c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_BSC2 4 50c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_BSC3 5 51c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_BSC4 6 52c66ec88fSEmmanuel Vadot #define BCM21664_SLAVE_CCU_CLOCK_COUNT 7 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot #endif /* _CLOCK_BCM21664_H */ 55