1 /* $NetBSD: imx51_ccmvar.h,v 1.1 2012/04/17 09:33:31 bsh Exp $ */
3 * Copyright (c) 2012 Genetec Corporation. All rights reserved.
4 * Written by Hashimoto Kenichi for Genetec Corporation.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION
19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
29 * Copyright (c) 2012, 2013 The FreeBSD Foundation
30 * All rights reserved.
32 * Portions of this software were developed by Oleksandr Rybalko
33 * under sponsorship from the FreeBSD Foundation.
35 * Redistribution and use in source and binary forms, with or without
36 * modification, are permitted provided that the following conditions
38 * 1. Redistributions of source code must retain the above copyright
39 * notice, this list of conditions and the following disclaimer.
40 * 2. Redistributions in binary form must reproduce the above copyright
41 * notice, this list of conditions and the following disclaimer in the
42 * documentation and/or other materials provided with the distribution.
44 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
45 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
48 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59 #ifndef _ARM_IMX_IMX51_CCMVAR_H_
60 #define _ARM_IMX_IMX51_CCMVAR_H_
73 IMX51CLK_MAIN_BUS_CLK_SRC, /* XXX */
74 IMX51CLK_MAIN_BUS_CLK,
75 IMX51CLK_EMI_SLOW_CLK_ROOT,
76 IMX51CLK_ENFC_CLK_ROOT,
77 IMX51CLK_AHB_CLK_ROOT,
78 IMX51CLK_IPG_CLK_ROOT,
80 IMX51CLK_DDR_CLK_ROOT,
81 IMX51CLK_ARM_AXI_CLK_ROOT,
82 IMX51CLK_ARM_AXI_A_CLK,
83 IMX51CLK_ARM_AXI_B_CLK,
84 IMX51CLK_IPU_HSP_CLK_ROOT,
85 IMX51CLK_CKIL_SYNC_CLK_ROOT,
86 IMX51CLK_USBOH3_CLK_ROOT,
87 IMX51CLK_ESDHC1_CLK_ROOT,
88 IMX51CLK_ESDHC2_CLK_ROOT,
89 IMX51CLK_ESDHC3_CLK_ROOT,
90 IMX51CLK_UART_CLK_ROOT,
91 IMX51CLK_SSI1_CLK_ROOT,
92 IMX51CLK_SSI2_CLK_ROOT,
93 IMX51CLK_SSI_EXT1_CLK_ROOT,
94 IMX51CLK_SSI_EXT2_CLK_ROOT,
95 IMX51CLK_USB_PHY_CLK_ROOT,
96 IMX51CLK_TVE_216_54_CLK_ROOT,
98 IMX51CLK_SPDIF0_CLK_ROOT,
99 IMX51CLK_SPDIF1_CLK_ROOT,
100 IMX51CLK_CSPI_CLK_ROOT,
101 IMX51CLK_WRCK_CLK_ROOT,
102 IMX51CLK_LPSR_CLK_ROOT,
103 IMX51CLK_PGC_CLK_ROOT
106 u_int imx51_get_clock(enum imx51_clock);
107 void imx51_clk_gating(int, int);
108 int imx51_get_clk_gating(int);
110 #endif /* _ARM_IMX_IMX51_CCMVAR_H_ */