[rtems-libbsd commit] imx6_ccm: Add and build module.
Christian Mauderer
christianm at rtems.org
Wed Apr 15 15:13:21 UTC 2020
Module: rtems-libbsd
Branch: 5-freebsd-12
Commit: 3a1d48c70c69fa3220487b1fe156bc017e37c429
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3a1d48c70c69fa3220487b1fe156bc017e37c429
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 43ea82a..ac8c9c4 100644
--- a/buildset/default.ini
+++ b/buildset/default.ini
@@ -40,6 +40,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 d791efe..e069060 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -5010,6 +5010,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
#
@@ -5166,6 +5188,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 a916c66..9266540 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -127,6 +127,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