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