Skip to content

Commit

Permalink
Added rule to compile rpmsg-gpio driver in Make and Kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
deebot committed Aug 26, 2020
1 parent 661e124 commit 2f2471e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/rpmsg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,15 @@ config RPMSG_PRU

If unsure, say N.

config CONFIG_RPMSG_GPIOHIP_INTERFACE
tristate "A rpmsg driver with gpiochip interface"
default m
depends on RPMSG_VIRTIO
depends on REMOTEPROC
help
This driver provides provides gpiochip inteface which can be accessed
in userspace using libgpiod. You would see a char dev interface in /dev
using this driver. Follow the read me files below for more info:
https://github.com/deebot/Beaglebone-BidirectionBus/tree/dev

endmenu
2 changes: 2 additions & 0 deletions drivers/rpmsg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ obj-$(CONFIG_RPMSG_QCOM_SMD) += qcom_smd.o
obj-$(CONFIG_RPMSG_VIRTIO) += virtio_rpmsg_bus.o

obj-$(CONFIG_RPMSG_RPC) += rpmsg-rpc.o
obj-$(CONFIG_RPMSG_GPIOCHIP_INTERFACE) += rpmsg_gpio.o
rpmsg-rpc-y := rpmsg_rpc.o rpmsg_rpc_sysfs.o rpmsg_rpc_dmabuf.o

0 comments on commit 2f2471e

Please sign in to comment.