From 81204bd23a173de0459f1b026148a650655f9380 Mon Sep 17 00:00:00 2001 From: Andrew D'Angelo Date: Tue, 11 Jul 2023 17:43:35 -0500 Subject: [PATCH] Remove SCS GPIO --- Makefile | 9 ++++++++- drm_iface.c | 6 +----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ed351ea..61a3b96 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,17 @@ sharp-objs += main.o drm_iface.o params_iface.o ioctl_iface.o export KROOT=/lib/modules/$(shell uname -r)/build -all: modules +all: modules sharp.dtbo modules modules_install clean:: @$(MAKE) -C $(KROOT) M=$(shell pwd) $@ +modules_install:: sharp.dtbo + @$(MAKE) -C $(KROOT) M=$(shell pwd) $@ + cp sharp.dtbo /boot/overlays + +sharp.dtbo: sharp.dts + dtc -@ -I dts -O dtb -o sharp.dtbo sharp.dts + clean:: rm -rf Module.symvers modules.order diff --git a/drm_iface.c b/drm_iface.c index 7ebaeef..9b5c006 100644 --- a/drm_iface.c +++ b/drm_iface.c @@ -351,10 +351,6 @@ static void sharp_memory_pipe_enable(struct drm_simple_display_pipe *pipe, } // Power up sequence - if (panel->gpio_scs) - { - gpiod_set_value(panel->gpio_scs, 0); - } gpiod_set_value(panel->gpio_disp, 1); gpiod_set_value(panel->gpio_vcom, 0); usleep_range(5000, 10000); @@ -598,7 +594,7 @@ void drm_remove(struct spi_device *spi) // Clean up the GPIO descriptors dev = &spi->dev; - panel = drm_to_panel(drm) + panel = drm_to_panel(drm); devm_gpiod_put(dev, panel->gpio_disp); devm_gpiod_put(dev, panel->gpio_vcom);