Commit Graph

7 Commits

Author SHA1 Message Date
Viresh Kumar
413a840d0b gpio: Fix get_config()
get_config() must return only the relevant part of the config, as
requested by the caller, instead of returning entire config structure.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-29 16:00:36 +05:30
Viresh Kumar
131464787d gpio: Skip musl builds
Disable builds for musl, where libgpiod build fails on
rust-vmm-container due to missing tools and headers.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
cc6d1e608f gpio: Add tests
Add tests to validate functionality of the GPIO crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
679224af8d gpio: Add support for interrupts
Add support for GPIO interrupts. Only edge interrupts are supported by
libgpiod.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
8a021c704f gpio: Process virtio requests
This patch implements process_queue() to process incoming requests.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
472870d44d gpio: Implement low level GPIO helpers
This patch implements the low level GPIO helpers responsible for pin
level functioning.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
5caff0a8ad gpio: Add boilerplate code
This adds the boilerplate code and its dependencies to get the basic
structure for the gpio crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30