From 2f2471eeef2053c57799d5b91e6c54467c6e1f7d Mon Sep 17 00:00:00 2001 From: deebot Date: Sun, 23 Aug 2020 13:40:44 +0200 Subject: [PATCH] Added rule to compile rpmsg-gpio driver in Make and Kconfig --- drivers/rpmsg/Kconfig | 11 +++++++++++ drivers/rpmsg/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig index bf5e7b4450d9b..8c09fc2382be0 100644 --- a/drivers/rpmsg/Kconfig +++ b/drivers/rpmsg/Kconfig @@ -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 diff --git a/drivers/rpmsg/Makefile b/drivers/rpmsg/Makefile index 6666c8d6327e2..3b93ea58ae36e 100644 --- a/drivers/rpmsg/Makefile +++ b/drivers/rpmsg/Makefile @@ -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 +