imx: Fix build for all other BSPs.

This commit is contained in:
Christian Mauderer 2020-04-16 09:52:12 +02:00
parent c0f6606d47
commit db78c8c52f
3 changed files with 13 additions and 0 deletions

View File

@ -51,7 +51,14 @@ __FBSDID("$FreeBSD$");
#include <arm/freescale/imx/imx6_anatopvar.h> #include <arm/freescale/imx/imx6_anatopvar.h>
#include <arm/freescale/imx/imx6_ccmreg.h> #include <arm/freescale/imx/imx6_ccmreg.h>
#include <arm/freescale/imx/imx_machdep.h> #include <arm/freescale/imx/imx_machdep.h>
#ifndef __rtems__
#include <arm/freescale/imx/imx_ccmvar.h> #include <arm/freescale/imx/imx_ccmvar.h>
#else /* __rtems__ */
#include <bsp.h>
#ifdef LIBBSP_ARM_IMX_BSP_H
#include <arm/freescale/imx/imx_ccmvar.h>
#endif /* LIBBSP_ARM_IMX_BSP_H */
#endif /* __rtems__ */
#ifndef CCGR_CLK_MODE_ALWAYS #ifndef CCGR_CLK_MODE_ALWAYS
#define CCGR_CLK_MODE_OFF 0 #define CCGR_CLK_MODE_OFF 0

View File

@ -49,7 +49,11 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h> #include <machine/bus.h>
#ifndef __rtems__
#include <arm/freescale/imx/imx_ccmvar.h> #include <arm/freescale/imx/imx_ccmvar.h>
#else /* __rtems__ */
void imx_ccm_usbphy_enable(device_t _phydev);
#endif /* __rtems__ */
#include <arm/freescale/imx/imx6_anatopreg.h> #include <arm/freescale/imx/imx6_anatopreg.h>
#include <arm/freescale/imx/imx6_anatopvar.h> #include <arm/freescale/imx/imx6_anatopvar.h>
#ifdef __rtems__ #ifdef __rtems__

View File

@ -67,7 +67,9 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h> #include <machine/bus.h>
#include <machine/resource.h> #include <machine/resource.h>
#ifndef __rtems__
#include <arm/freescale/imx/imx_ccmvar.h> #include <arm/freescale/imx/imx_ccmvar.h>
#endif /* __rtems__ */
#include <rtems/bsd/local/opt_platform.h> #include <rtems/bsd/local/opt_platform.h>