summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-08-04 01:49:45 +0530
committerChristian Mauderer <oss@c-mauderer.de>2019-08-11 15:57:54 +0200
commit530f8f5abd06d6bef49a9bf9b2541b233ca63745 (patch)
tree8530b54fdd2ccc5c603d7cf0e9705cc1efc94e43
parent7adbe5b0bd87b3946b7f274fe8924168133333c3 (diff)
downloadrtems-libbsd-530f8f5abd06d6bef49a9bf9b2541b233ca63745.tar.bz2
am335x display drivers: Port to RTEMS
-rw-r--r--libbsd.py5
-rw-r--r--rtemsbsd/include/bsp/nexus-devices.h2
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/libbsd.py b/libbsd.py
index 4b729b6a..3d950f7c 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -805,6 +805,8 @@ class display(builder.Module):
'sys/sys/fbio.h',
'sys/sys/consio.h',
'sys/sys/terminal.h',
+ 'sys/arm/ti/am335x/am335x_lcd.h',
+ 'sys/arm/ti/am335x/am335x_pwm.h',
]
)
self.addKernelSpaceSourceFiles(
@@ -816,6 +818,9 @@ class display(builder.Module):
'sys/dev/videomode/videomode.c',
'sys/dev/fb/fb.c',
'sys/dev/fb/fbd.c',
+ 'sys/arm/ti/am335x/am335x_lcd.c',
+ 'sys/arm/ti/am335x/am335x_pwmss.c',
+ 'sys/arm/ti/am335x/am335x_ecap.c',
],
mm.generator['source']()
)
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index ebf1ba13..e9da3be1 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -56,6 +56,8 @@ SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
SYSINIT_DRIVER_REFERENCE(ti_scm, simplebus);
SYSINIT_DRIVER_REFERENCE(ti_pinmux, simplebus);
SYSINIT_DRIVER_REFERENCE(am335x_prcm, simplebus);
+SYSINIT_DRIVER_REFERENCE(am335x_pwmss, simplebus);
+SYSINIT_DRIVER_REFERENCE(am335x_lcd, simplebus);
SYSINIT_DRIVER_REFERENCE(usbss, simplebus);
SYSINIT_DRIVER_REFERENCE(musbotg, usbss);
SYSINIT_DRIVER_REFERENCE(sdhci_ti, simplebus);
diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
index 94dc2cbd..17ee381a 100644
--- a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
+++ b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
@@ -46,6 +46,8 @@
#define altq_remove _bsd_altq_remove
#define altq_remove_queue _bsd_altq_remove_queue
#define altqs_inactive_open _bsd_altqs_inactive_open
+#define am335x_pwm_config_ecap _bsd_am335x_pwm_config_ecap
+#define am335x_pwmss_driver _bsd_am335x_pwmss_driver
#define arp_announce_ifaddr _bsd_arp_announce_ifaddr
#define arp_ifinit _bsd_arp_ifinit
#define arprequest _bsd_arprequest