Home | History | Annotate | Line # | Download | only in clock
      1 /*	$NetBSD: bcm21664.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
      2 
      3 /*
      4  * Copyright (C) 2013 Broadcom Corporation
      5  * Copyright 2013 Linaro Limited
      6  *
      7  * This program is free software; you can redistribute it and/or
      8  * modify it under the terms of the GNU General Public License as
      9  * published by the Free Software Foundation version 2.
     10  *
     11  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
     12  * kind, whether express or implied; without even the implied warranty
     13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14  * GNU General Public License for more details.
     15  */
     16 
     17 #ifndef _CLOCK_BCM21664_H
     18 #define _CLOCK_BCM21664_H
     19 
     20 /*
     21  * This file defines the values used to specify clocks provided by
     22  * the clock control units (CCUs) on Broadcom BCM21664 family SoCs.
     23  */
     24 
     25 /* bcm21664 CCU device tree "compatible" strings */
     26 #define BCM21664_DT_ROOT_CCU_COMPAT	"brcm,bcm21664-root-ccu"
     27 #define BCM21664_DT_AON_CCU_COMPAT	"brcm,bcm21664-aon-ccu"
     28 #define BCM21664_DT_MASTER_CCU_COMPAT	"brcm,bcm21664-master-ccu"
     29 #define BCM21664_DT_SLAVE_CCU_COMPAT	"brcm,bcm21664-slave-ccu"
     30 
     31 /* root CCU clock ids */
     32 
     33 #define BCM21664_ROOT_CCU_FRAC_1M		0
     34 #define BCM21664_ROOT_CCU_CLOCK_COUNT		1
     35 
     36 /* aon CCU clock ids */
     37 
     38 #define BCM21664_AON_CCU_HUB_TIMER		0
     39 #define BCM21664_AON_CCU_CLOCK_COUNT		1
     40 
     41 /* master CCU clock ids */
     42 
     43 #define BCM21664_MASTER_CCU_SDIO1		0
     44 #define BCM21664_MASTER_CCU_SDIO2		1
     45 #define BCM21664_MASTER_CCU_SDIO3		2
     46 #define BCM21664_MASTER_CCU_SDIO4		3
     47 #define BCM21664_MASTER_CCU_SDIO1_SLEEP		4
     48 #define BCM21664_MASTER_CCU_SDIO2_SLEEP		5
     49 #define BCM21664_MASTER_CCU_SDIO3_SLEEP		6
     50 #define BCM21664_MASTER_CCU_SDIO4_SLEEP		7
     51 #define BCM21664_MASTER_CCU_CLOCK_COUNT		8
     52 
     53 /* slave CCU clock ids */
     54 
     55 #define BCM21664_SLAVE_CCU_UARTB		0
     56 #define BCM21664_SLAVE_CCU_UARTB2		1
     57 #define BCM21664_SLAVE_CCU_UARTB3		2
     58 #define BCM21664_SLAVE_CCU_BSC1			3
     59 #define BCM21664_SLAVE_CCU_BSC2			4
     60 #define BCM21664_SLAVE_CCU_BSC3			5
     61 #define BCM21664_SLAVE_CCU_BSC4			6
     62 #define BCM21664_SLAVE_CCU_CLOCK_COUNT		7
     63 
     64 #endif /* _CLOCK_BCM21664_H */
     65