imx: Move imx_iomux to arm/shared

Update #4180
This commit is contained in:
Christian Mauderer
2020-10-27 10:00:31 +01:00
parent c13fd2dbd8
commit e00f443428
10 changed files with 63 additions and 9 deletions

View File

@@ -11,8 +11,6 @@ include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_ecspireg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_ecspireg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_gpcreg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_gpcreg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_i2creg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_i2creg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_iomuxreg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_iomuxvar.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_srcreg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_srcreg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_uartreg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_uartreg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_wdogreg.h include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/imx/include/arm/freescale/imx/imx_wdogreg.h

View File

@@ -59,8 +59,6 @@ extern uintptr_t imx_gic_dist_base;
void *imx_get_reg_of_node(const void *fdt, int node); void *imx_get_reg_of_node(const void *fdt, int node);
int imx_iomux_configure_pins(const void *fdt, uint32_t phandle);
rtems_vector_number imx_get_irq_of_node( rtems_vector_number imx_get_irq_of_node(
const void *fdt, const void *fdt,
int node, int node,

View File

@@ -15,6 +15,7 @@
#include <bsp.h> #include <bsp.h>
#include <bsp/fdt.h> #include <bsp/fdt.h>
#include <bsp/imx-gpio.h> #include <bsp/imx-gpio.h>
#include <bsp/imx-iomux.h>
#include <libfdt.h> #include <libfdt.h>
#include <arm/freescale/imx/imx_ccmvar.h> #include <arm/freescale/imx/imx_ccmvar.h>
#include <arm/freescale/imx/imx_ecspireg.h> #include <arm/freescale/imx/imx_ecspireg.h>

View File

@@ -0,0 +1,6 @@
## This file was generated by "./boostrap -H".
include_arm_freescale_imxdir = $(includedir)/arm/freescale/imx
include_arm_freescale_imx_HEADERS =
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/shared/include/arm/freescale/imx/imx_iomuxreg.h
include_arm_freescale_imx_HEADERS += ../../../../../../bsps/arm/shared/include/arm/freescale/imx/imx_iomuxvar.h

View File

@@ -0,0 +1,49 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/**
* @file
*
* @ingroup RTEMSBSPsARM
*
* @brief Functions for imx iomux.
*/
/*
* Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef LIBBSP_ARM_SHARED_IMX_IOMUX_H
#define LIBBSP_ARM_SHARED_IMX_IOMUX_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
int imx_iomux_configure_pins(const void *fdt, uint32_t phandle);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* LIBBSP_ARM_SHARED_IMX_IOMUX_H */

View File

@@ -43,7 +43,7 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cp15/arm-cp15-set-ttb
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspreset.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspreset.c
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspstart.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspstart.c
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/ccm.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/ccm.c
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/imx_iomux.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/pins/imx_iomux.c
if HAS_SMP if HAS_SMP
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/arm-a9mpcore-smp.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/arm-a9mpcore-smp.c
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspsmp.c librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/start/bspsmp.c

View File

@@ -8,7 +8,8 @@ copyrights:
cppflags: [] cppflags: []
enabled-by: true enabled-by: true
family: imx family: imx
includes: [] includes:
- bsps/arm/shared/include
install: install:
- destination: ${BSP_INCLUDEDIR} - destination: ${BSP_INCLUDEDIR}
source: source:
@@ -20,8 +21,8 @@ install:
- bsps/arm/imx/include/arm/freescale/imx/imx_ecspireg.h - bsps/arm/imx/include/arm/freescale/imx/imx_ecspireg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_gpcreg.h - bsps/arm/imx/include/arm/freescale/imx/imx_gpcreg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_i2creg.h - bsps/arm/imx/include/arm/freescale/imx/imx_i2creg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_iomuxreg.h - bsps/arm/shared/include/arm/freescale/imx/imx_iomuxreg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_iomuxvar.h - bsps/arm/shared/include/arm/freescale/imx/imx_iomuxvar.h
- bsps/arm/imx/include/arm/freescale/imx/imx_srcreg.h - bsps/arm/imx/include/arm/freescale/imx/imx_srcreg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_uartreg.h - bsps/arm/imx/include/arm/freescale/imx/imx_uartreg.h
- bsps/arm/imx/include/arm/freescale/imx/imx_wdogreg.h - bsps/arm/imx/include/arm/freescale/imx/imx_wdogreg.h
@@ -29,6 +30,7 @@ install:
source: source:
- bsps/arm/imx/include/bsp/imx-gpio.h - bsps/arm/imx/include/bsp/imx-gpio.h
- bsps/arm/imx/include/bsp/irq.h - bsps/arm/imx/include/bsp/irq.h
- bsps/arm/shared/include/bsp/imx-iomux.h
- destination: ${BSP_INCLUDEDIR}/dev/clock - destination: ${BSP_INCLUDEDIR}/dev/clock
source: source:
- bsps/include/dev/clock/arm-generic-timer.h - bsps/include/dev/clock/arm-generic-timer.h
@@ -88,7 +90,7 @@ source:
- bsps/arm/imx/start/bspstart.c - bsps/arm/imx/start/bspstart.c
- bsps/arm/imx/start/bspstarthooks.c - bsps/arm/imx/start/bspstarthooks.c
- bsps/arm/imx/start/ccm.c - bsps/arm/imx/start/ccm.c
- bsps/arm/imx/start/imx_iomux.c - bsps/arm/shared/pins/imx_iomux.c
- bsps/arm/shared/cache/cache-cp15.c - bsps/arm/shared/cache/cache-cp15.c
- bsps/arm/shared/cache/cache-v7ar-disable-data.S - bsps/arm/shared/cache/cache-v7ar-disable-data.S
- bsps/shared/dev/clock/arm-generic-timer.c - bsps/shared/dev/clock/arm-generic-timer.c