1270866Simp/*
2270866Simp * Copyright (C) 2013 Broadcom Corporation
3270866Simp * Copyright 2013 Linaro Limited
4270866Simp *
5270866Simp * This program is free software; you can redistribute it and/or
6270866Simp * modify it under the terms of the GNU General Public License as
7270866Simp * published by the Free Software Foundation version 2.
8270866Simp *
9270866Simp * This program is distributed "as is" WITHOUT ANY WARRANTY of any
10270866Simp * kind, whether express or implied; without even the implied warranty
11270866Simp * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12270866Simp * GNU General Public License for more details.
13270866Simp */
14270866Simp
15270866Simp#ifndef _CLOCK_BCM21664_H
16270866Simp#define _CLOCK_BCM21664_H
17270866Simp
18270866Simp/*
19270866Simp * This file defines the values used to specify clocks provided by
20270866Simp * the clock control units (CCUs) on Broadcom BCM21664 family SoCs.
21270866Simp */
22270866Simp
23270866Simp/* bcm21664 CCU device tree "compatible" strings */
24270866Simp#define BCM21664_DT_ROOT_CCU_COMPAT	"brcm,bcm21664-root-ccu"
25270866Simp#define BCM21664_DT_AON_CCU_COMPAT	"brcm,bcm21664-aon-ccu"
26270866Simp#define BCM21664_DT_MASTER_CCU_COMPAT	"brcm,bcm21664-master-ccu"
27270866Simp#define BCM21664_DT_SLAVE_CCU_COMPAT	"brcm,bcm21664-slave-ccu"
28270866Simp
29270866Simp/* root CCU clock ids */
30270866Simp
31270866Simp#define BCM21664_ROOT_CCU_FRAC_1M		0
32270866Simp#define BCM21664_ROOT_CCU_CLOCK_COUNT		1
33270866Simp
34270866Simp/* aon CCU clock ids */
35270866Simp
36270866Simp#define BCM21664_AON_CCU_HUB_TIMER		0
37270866Simp#define BCM21664_AON_CCU_CLOCK_COUNT		1
38270866Simp
39270866Simp/* master CCU clock ids */
40270866Simp
41270866Simp#define BCM21664_MASTER_CCU_SDIO1		0
42270866Simp#define BCM21664_MASTER_CCU_SDIO2		1
43270866Simp#define BCM21664_MASTER_CCU_SDIO3		2
44270866Simp#define BCM21664_MASTER_CCU_SDIO4		3
45270866Simp#define BCM21664_MASTER_CCU_SDIO1_SLEEP		4
46270866Simp#define BCM21664_MASTER_CCU_SDIO2_SLEEP		5
47270866Simp#define BCM21664_MASTER_CCU_SDIO3_SLEEP		6
48270866Simp#define BCM21664_MASTER_CCU_SDIO4_SLEEP		7
49270866Simp#define BCM21664_MASTER_CCU_CLOCK_COUNT		8
50270866Simp
51270866Simp/* slave CCU clock ids */
52270866Simp
53270866Simp#define BCM21664_SLAVE_CCU_UARTB		0
54270866Simp#define BCM21664_SLAVE_CCU_UARTB2		1
55270866Simp#define BCM21664_SLAVE_CCU_UARTB3		2
56270866Simp#define BCM21664_SLAVE_CCU_BSC1			3
57270866Simp#define BCM21664_SLAVE_CCU_BSC2			4
58270866Simp#define BCM21664_SLAVE_CCU_BSC3			5
59270866Simp#define BCM21664_SLAVE_CCU_BSC4			6
60270866Simp#define BCM21664_SLAVE_CCU_CLOCK_COUNT		7
61270866Simp
62270866Simp#endif /* _CLOCK_BCM21664_H */
63