On Mon, 10 Aug 2020 07:27:08 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user "Mark A. Yoder"
<
mark.a.yoder-Re5J...@public.gmane.org> wrote:
>Yes, but the hardware on the am335x can toggle multiple pins on the same
>chip in the same clock cycle. Seems like the software should be able to
>support it.
You could always look at the source code for libgpiod.
https://github.com/brgl/libgpiod/
"""
libgpiod - C library and tools for interacting with the linux GPIO
character device (gpiod stands for GPIO device)
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should
use the character device instead. This library encapsulates the ioctl calls
and data structures behind a straightforward API.
"""
However, to save some time -- from what I can tell, while the library
consolidates multiple pins (lines) per controller chip, it then passes that
on to a kernel call. I've not located the source (kernel) for that level.
If it is somewhat generalized, it may be coded to handle hardware that can
only get/set one line at a time -- even if the actual hardware allows
parallel access.
--
Dennis L Bieber