[rtems-libbsd commit] imx6_ccm: Add and build module.

Christian Mauderer christianm at rtems.org
Wed Apr 15 15:11:43 UTC 2020


Module:    rtems-libbsd
Branch:    master
Commit:    6624d6ee32064d4ad6f1e0192766c9d36fd5a88e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=6624d6ee32064d4ad6f1e0192766c9d36fd5a88e

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Thu Apr  2 17:43:10 2020 +0200

imx6_ccm: Add and build module.

Update #3869.

---

 buildset/default.ini                 |  1 +
 libbsd.py                            | 23 +++++++++++++++++++++++
 rtemsbsd/include/bsp/nexus-devices.h |  2 ++
 3 files changed, 26 insertions(+)

diff --git a/buildset/default.ini b/buildset/default.ini
index 36af4c3..04d9952 100644
--- a/buildset/default.ini
+++ b/buildset/default.ini
@@ -43,6 +43,7 @@ dhcpcd = on
 dpaa = on
 evdev = on
 fdt = on
+imx = on
 in_cksum = on
 mdnsresponder = on
 mmc = on
diff --git a/libbsd.py b/libbsd.py
index c2693e2..2c25983 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -5183,6 +5183,28 @@ class dpaa(builder.Module):
             mm.generator['source']()
         )
 
+class imx(builder.Module):
+    def __init__(self, manager):
+        super(imx, self).__init__(manager, type(self).__name__)
+
+    def generate(self):
+        mm = self.manager
+        self.addKernelSpaceHeaderFiles(
+            [
+                'sys/arm/freescale/imx/imx6_anatopreg.h',
+                'sys/arm/freescale/imx/imx6_anatopvar.h',
+                'sys/arm/freescale/imx/imx6_ccmreg.h',
+                'sys/arm/freescale/imx/imx6_machdep.h',
+                'sys/arm/freescale/imx/imx_machdep.h',
+            ]
+        )
+        self.addKernelSpaceSourceFiles(
+            [
+                'sys/arm/freescale/imx/imx6_ccm.c',
+            ],
+            mm.generator['source']()
+        )
+
 #
 # Tests
 #
@@ -5342,6 +5364,7 @@ def load(mm):
     mm.addModule(dev_nic_broadcomm(mm))
 
     mm.addModule(nvme(mm))
+    mm.addModule(imx(mm))
 
     # Add in_chksum
     mm.addModule(in_cksum(mm))
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index ac9afbc..5b60cf2 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -136,6 +136,8 @@ RTEMS_BSD_DRIVER_MMC;
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);
 SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
 
+SYSINIT_DRIVER_REFERENCE(ccm, simplebus);
+
 SYSINIT_DRIVER_REFERENCE(ffec, simplebus);
 SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
 



More information about the vc mailing list