1248557Sray/* $NetBSD: imx51_ccmvar.h,v 1.1 2012/04/17 09:33:31 bsh Exp $ */ 2248557Sray/* 3248557Sray * Copyright (c) 2012 Genetec Corporation. All rights reserved. 4248557Sray * Written by Hashimoto Kenichi for Genetec Corporation. 5248557Sray * 6248557Sray * Redistribution and use in source and binary forms, with or without 7248557Sray * modification, are permitted provided that the following conditions 8248557Sray * are met: 9248557Sray * 1. Redistributions of source code must retain the above copyright 10248557Sray * notice, this list of conditions and the following disclaimer. 11248557Sray * 2. Redistributions in binary form must reproduce the above copyright 12248557Sray * notice, this list of conditions and the following disclaimer in the 13248557Sray * documentation and/or other materials provided with the distribution. 14248557Sray * 15248557Sray * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND 16248557Sray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17248557Sray * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18248557Sray * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION 19248557Sray * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20248557Sray * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21248557Sray * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22248557Sray * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23248557Sray * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24248557Sray * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25248557Sray * POSSIBILITY OF SUCH DAMAGE. 26248557Sray */ 27248557Sray 28248557Sray/*- 29250357Sray * Copyright (c) 2012, 2013 The FreeBSD Foundation 30248557Sray * All rights reserved. 31248557Sray * 32248557Sray * Portions of this software were developed by Oleksandr Rybalko 33248557Sray * under sponsorship from the FreeBSD Foundation. 34248557Sray * 35248557Sray * Redistribution and use in source and binary forms, with or without 36248557Sray * modification, are permitted provided that the following conditions 37248557Sray * are met: 38248557Sray * 1. Redistributions of source code must retain the above copyright 39248557Sray * notice, this list of conditions and the following disclaimer. 40248557Sray * 2. Redistributions in binary form must reproduce the above copyright 41248557Sray * notice, this list of conditions and the following disclaimer in the 42248557Sray * documentation and/or other materials provided with the distribution. 43248557Sray * 44248557Sray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 45248557Sray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 46248557Sray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 47248557Sray * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48248557Sray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 49248557Sray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 50248557Sray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51248557Sray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52248557Sray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53248557Sray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54248557Sray * SUCH DAMAGE. 55248557Sray * 56248557Sray * $FreeBSD: releng/10.3/sys/arm/freescale/imx/imx51_ccmvar.h 250357 2013-05-08 09:42:50Z ray $ 57248557Sray */ 58248557Sray 59248557Sray#ifndef _ARM_IMX_IMX51_CCMVAR_H_ 60248557Sray#define _ARM_IMX_IMX51_CCMVAR_H_ 61248557Sray 62248557Srayenum imx51_clock { 63248557Sray IMX51CLK_FPM, 64248557Sray IMX51CLK_PLL1, 65248557Sray IMX51CLK_PLL2, 66248557Sray IMX51CLK_PLL3, 67248557Sray IMX51CLK_PLL1SW, 68248557Sray IMX51CLK_PLL2SW, 69248557Sray IMX51CLK_PLL3SW, 70248557Sray IMX51CLK_PLL1STEP, 71248557Sray IMX51CLK_LP_APM, 72248557Sray IMX51CLK_ARM_ROOT, 73248557Sray IMX51CLK_MAIN_BUS_CLK_SRC, /* XXX */ 74248557Sray IMX51CLK_MAIN_BUS_CLK, 75248557Sray IMX51CLK_EMI_SLOW_CLK_ROOT, 76248557Sray IMX51CLK_ENFC_CLK_ROOT, 77248557Sray IMX51CLK_AHB_CLK_ROOT, 78248557Sray IMX51CLK_IPG_CLK_ROOT, 79248557Sray IMX51CLK_PERCLK_ROOT, 80248557Sray IMX51CLK_DDR_CLK_ROOT, 81248557Sray IMX51CLK_ARM_AXI_CLK_ROOT, 82248557Sray IMX51CLK_ARM_AXI_A_CLK, 83248557Sray IMX51CLK_ARM_AXI_B_CLK, 84248557Sray IMX51CLK_IPU_HSP_CLK_ROOT, 85248557Sray IMX51CLK_CKIL_SYNC_CLK_ROOT, 86248557Sray IMX51CLK_USBOH3_CLK_ROOT, 87248557Sray IMX51CLK_ESDHC1_CLK_ROOT, 88248557Sray IMX51CLK_ESDHC2_CLK_ROOT, 89248557Sray IMX51CLK_ESDHC3_CLK_ROOT, 90248557Sray IMX51CLK_UART_CLK_ROOT, 91248557Sray IMX51CLK_SSI1_CLK_ROOT, 92248557Sray IMX51CLK_SSI2_CLK_ROOT, 93248557Sray IMX51CLK_SSI_EXT1_CLK_ROOT, 94248557Sray IMX51CLK_SSI_EXT2_CLK_ROOT, 95248557Sray IMX51CLK_USB_PHY_CLK_ROOT, 96248557Sray IMX51CLK_TVE_216_54_CLK_ROOT, 97248557Sray IMX51CLK_DI_CLK_ROOT, 98248557Sray IMX51CLK_SPDIF0_CLK_ROOT, 99248557Sray IMX51CLK_SPDIF1_CLK_ROOT, 100248557Sray IMX51CLK_CSPI_CLK_ROOT, 101248557Sray IMX51CLK_WRCK_CLK_ROOT, 102248557Sray IMX51CLK_LPSR_CLK_ROOT, 103248557Sray IMX51CLK_PGC_CLK_ROOT 104248557Sray}; 105248557Sray 106248557Srayu_int imx51_get_clock(enum imx51_clock); 107248557Srayvoid imx51_clk_gating(int, int); 108248557Srayint imx51_get_clk_gating(int); 109248557Sray 110248557Sray#endif /* _ARM_IMX_IMX51_CCMVAR_H_ */ 111