<div dir="ltr"><div>Hi,</div><div><br></div><div>I could successfully build libbsd for arm/beagleboneblack with this path.</div><div><br></div><div>Thanks and regards,</div><div>Vijay</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 16, 2020 at 2:08 PM Christian Mauderer <<a href="mailto:christian.mauderer@embedded-brains.de">christian.mauderer@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
freebsd/sys/arm/freescale/imx/imx6_ccm.c | 7 +++++++<br>
freebsd/sys/arm/freescale/imx/imx6_usbphy.c | 4 ++++<br>
freebsd/sys/dev/usb/controller/ehci_imx.c | 2 ++<br>
3 files changed, 13 insertions(+)<br>
<br>
diff --git a/freebsd/sys/arm/freescale/imx/imx6_ccm.c b/freebsd/sys/arm/freescale/imx/imx6_ccm.c<br>
index cef79933..78bbd5c1 100644<br>
--- a/freebsd/sys/arm/freescale/imx/imx6_ccm.c<br>
+++ b/freebsd/sys/arm/freescale/imx/imx6_ccm.c<br>
@@ -51,7 +51,14 @@ __FBSDID("$FreeBSD$");<br>
#include <arm/freescale/imx/imx6_anatopvar.h><br>
#include <arm/freescale/imx/imx6_ccmreg.h><br>
#include <arm/freescale/imx/imx_machdep.h><br>
+#ifndef __rtems__<br>
+#include <arm/freescale/imx/imx_ccmvar.h><br>
+#else /* __rtems__ */<br>
+#include <bsp.h><br>
+#ifdef LIBBSP_ARM_IMX_BSP_H<br>
#include <arm/freescale/imx/imx_ccmvar.h><br>
+#endif /* LIBBSP_ARM_IMX_BSP_H */<br>
+#endif /* __rtems__ */<br>
<br>
#ifndef CCGR_CLK_MODE_ALWAYS<br>
#define CCGR_CLK_MODE_OFF 0<br>
diff --git a/freebsd/sys/arm/freescale/imx/imx6_usbphy.c b/freebsd/sys/arm/freescale/imx/imx6_usbphy.c<br>
index 7df2e124..3a3495bb 100644<br>
--- a/freebsd/sys/arm/freescale/imx/imx6_usbphy.c<br>
+++ b/freebsd/sys/arm/freescale/imx/imx6_usbphy.c<br>
@@ -49,7 +49,11 @@ __FBSDID("$FreeBSD$");<br>
<br>
#include <machine/bus.h><br>
<br>
+#ifndef __rtems__<br>
#include <arm/freescale/imx/imx_ccmvar.h><br>
+#else /* __rtems__ */<br>
+void imx_ccm_usbphy_enable(device_t _phydev);<br>
+#endif /* __rtems__ */<br>
#include <arm/freescale/imx/imx6_anatopreg.h><br>
#include <arm/freescale/imx/imx6_anatopvar.h><br>
#ifdef __rtems__<br>
diff --git a/freebsd/sys/dev/usb/controller/ehci_imx.c b/freebsd/sys/dev/usb/controller/ehci_imx.c<br>
index 544a63b5..23f7e3a9 100644<br>
--- a/freebsd/sys/dev/usb/controller/ehci_imx.c<br>
+++ b/freebsd/sys/dev/usb/controller/ehci_imx.c<br>
@@ -67,7 +67,9 @@ __FBSDID("$FreeBSD$");<br>
#include <machine/bus.h><br>
#include <machine/resource.h><br>
<br>
+#ifndef __rtems__<br>
#include <arm/freescale/imx/imx_ccmvar.h><br>
+#endif /* __rtems__ */<br>
<br>
#include <rtems/bsd/local/opt_platform.h><br>
<br>
-- <br>
2.16.4<br>
<br>
</blockquote></div></div>