From d14f349b5856ae60d32f233c1eb3acd972b32ff9 Mon Sep 17 00:00:00 2001 From: Tai Kuo Date: Thu, 28 Jan 2021 21:25:27 +0800 Subject: touch: common: Add touch bus negotiator module Touch bus negotiator is used for bus switching handshaking. Driver need to ensure the bus ownership before any spi transfer. Bug: 170687957 Bug: 173331067 Test: gpio handshake pins work. Signed-off-by: Tai Kuo Change-Id: I8b2e3e87086e013d91c75cf3e306f231e0d99f3d --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a83051 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +obj-$(CONFIG_TOUCHSCREEN_TBN) += touch_bus_negotiator.o + +KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build +M ?= $(shell pwd) + +KBUILD_OPTIONS += CONFIG_TOUCHSCREEN_TBN=m +EXTRA_CFLAGS += -DDYNAMIC_DEBUG_MODULE + +modules modules_install clean: + $(MAKE) -C $(KERNEL_SRC) M=$(M) \ + $(KBUILD_OPTIONS) \ + EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \ + $(@) -- cgit v1.2.3