diff options
author | Tai Kuo <taikuo@google.com> | 2021-01-28 21:25:27 +0800 |
---|---|---|
committer | Tai Kuo <taikuo@google.com> | 2021-02-19 00:54:23 +0000 |
commit | d14f349b5856ae60d32f233c1eb3acd972b32ff9 (patch) | |
tree | a45dd138cf5b9c8e92a8a597d0380ae120b9c518 /Makefile | |
parent | ce1ac162d224c42080a58180e93c05abc9981937 (diff) | |
download | common-d14f349b5856ae60d32f233c1eb3acd972b32ff9.tar.gz |
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 <taikuo@google.com>
Change-Id: I8b2e3e87086e013d91c75cf3e306f231e0d99f3d
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
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)" \ + $(@) |