1257453Sian/*- 2257453Sian * Copyright (c) 2013 Ian Lepore <ian@freebsd.org> 3257453Sian * All rights reserved. 4257453Sian * 5257453Sian * Redistribution and use in source and binary forms, with or without 6257453Sian * modification, are permitted provided that the following conditions 7257453Sian * are met: 8257453Sian * 1. Redistributions of source code must retain the above copyright 9257453Sian * notice, this list of conditions and the following disclaimer. 10257453Sian * 2. Redistributions in binary form must reproduce the above copyright 11257453Sian * notice, this list of conditions and the following disclaimer in the 12257453Sian * documentation and/or other materials provided with the distribution. 13257453Sian * 14257453Sian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15257453Sian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16257453Sian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17257453Sian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18257453Sian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19257453Sian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20257453Sian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21257453Sian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22257453Sian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23257453Sian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24257453Sian * SUCH DAMAGE. 25257453Sian * 26257453Sian * $FreeBSD: releng/10.3/sys/arm/freescale/imx/imx6_ccmreg.h 283501 2015-05-24 19:00:46Z ian $ 27257453Sian */ 28257453Sian 29257453Sian#ifndef IMX6_CCMREG_H 30257453Sian#define IMX6_CCMREG_H 31257453Sian 32283501Sian#define CCM_CACCR 0x010 33283500Sian#define CCM_CSCMR1 0x01C 34283500Sian#define SSI1_CLK_SEL_S 10 35283500Sian#define SSI2_CLK_SEL_S 12 36283500Sian#define SSI3_CLK_SEL_S 14 37283500Sian#define SSI_CLK_SEL_M 0x3 38283500Sian#define SSI_CLK_SEL_508_PFD 0 39283500Sian#define SSI_CLK_SEL_454_PFD 1 40283500Sian#define SSI_CLK_SEL_PLL4 2 41283500Sian#define CCM_CSCMR2 0x020 42283500Sian#define CCM_CS1CDR 0x028 43283500Sian#define SSI1_CLK_PODF_SHIFT 0 44283500Sian#define SSI1_CLK_PRED_SHIFT 6 45283500Sian#define SSI3_CLK_PODF_SHIFT 16 46283500Sian#define SSI3_CLK_PRED_SHIFT 22 47283500Sian#define SSI_CLK_PODF_MASK 0x3f 48283500Sian#define SSI_CLK_PRED_MASK 0x7 49283500Sian#define CCM_CS2CDR 0x02C 50283500Sian#define SSI2_CLK_PODF_SHIFT 0 51283500Sian#define SSI2_CLK_PRED_SHIFT 6 52283500Sian#define CCM_CSCDR2 0x038 53266207Sian#define CCM_CLPCR 0x054 54266207Sian#define CCM_CLPCR_LPM_MASK 0x03 55266207Sian#define CCM_CLPCR_LPM_RUN 0x00 56266207Sian#define CCM_CLPCR_LPM_WAIT 0x01 57266207Sian#define CCM_CLPCR_LPM_STOP 0x02 58266207Sian#define CCM_CGPR 0x064 59266207Sian#define CCM_CGPR_INT_MEM_CLK_LPM (1 << 17) 60270076Sian#define CCM_CCGR0 0x068 61266207Sian#define CCM_CCGR1 0x06C 62266207Sian#define CCM_CCGR2 0x070 63266207Sian#define CCM_CCGR3 0x074 64266207Sian#define CCM_CCGR4 0x078 65266207Sian#define CCM_CCGR5 0x07C 66266207Sian#define CCM_CCGR6 0x080 67266207Sian#define CCM_CMEOR 0x088 68257453Sian 69257453Sian#endif 70