[PATCH rtems-libbsd v2 04/14] imx6_ccm: Add and build module.
Christian Mauderer
christian.mauderer at embedded-brains.de
Tue Apr 14 14:51:05 UTC 2020
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 43ea82a3..ac8c9c48 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 d791efe4..e0690601 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 a916c664..92665409 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);
--
2.16.4
More information about the devel
mailing list