xref: /freebsd/sys/arm/freescale/imx/imx_iomuxvar.h (revision f214250a1767a725e9787d7ddb006b9c22af08fc)
1*f214250aSIan Lepore /*-
2*f214250aSIan Lepore  * Copyright (c) 2014 Ian Lepore <ian@freebsd.org>
3*f214250aSIan Lepore  * All rights reserved.
4*f214250aSIan Lepore  *
5*f214250aSIan Lepore  * Redistribution and use in source and binary forms, with or without
6*f214250aSIan Lepore  * modification, are permitted provided that the following conditions
7*f214250aSIan Lepore  * are met:
8*f214250aSIan Lepore  * 1. Redistributions of source code must retain the above copyright
9*f214250aSIan Lepore  *    notice, this list of conditions and the following disclaimer.
10*f214250aSIan Lepore  * 2. Redistributions in binary form must reproduce the above copyright
11*f214250aSIan Lepore  *    notice, this list of conditions and the following disclaimer in the
12*f214250aSIan Lepore  *    documentation and/or other materials provided with the distribution.
13*f214250aSIan Lepore  *
14*f214250aSIan Lepore  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*f214250aSIan Lepore  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*f214250aSIan Lepore  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*f214250aSIan Lepore  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*f214250aSIan Lepore  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*f214250aSIan Lepore  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*f214250aSIan Lepore  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*f214250aSIan Lepore  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*f214250aSIan Lepore  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*f214250aSIan Lepore  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*f214250aSIan Lepore  * SUCH DAMAGE.
25*f214250aSIan Lepore  *
26*f214250aSIan Lepore  * $FreeBSD$
27*f214250aSIan Lepore  */
28*f214250aSIan Lepore 
29*f214250aSIan Lepore #ifndef	IMX_IOMUXVAR_H
30*f214250aSIan Lepore #define	IMX_IOMUXVAR_H
31*f214250aSIan Lepore 
32*f214250aSIan Lepore /*
33*f214250aSIan Lepore  * The IOMUX Controller device has a small set of "general purpose registers"
34*f214250aSIan Lepore  * which control various aspects of SoC operation that really have nothing to do
35*f214250aSIan Lepore  * with IO pin assignments or pad control.  These functions let other soc level
36*f214250aSIan Lepore  * code manipulate these values.
37*f214250aSIan Lepore  */
38*f214250aSIan Lepore uint32_t imx_iomux_gpr_get(u_int regnum);
39*f214250aSIan Lepore void     imx_iomux_gpr_set(u_int regnum, uint32_t val);
40*f214250aSIan Lepore void     imx_iomux_gpr_set_masked(u_int regnum, uint32_t clrbits, uint32_t setbits);
41*f214250aSIan Lepore 
42*f214250aSIan Lepore #endif
43