diff --git a/drivers/staging/fbtft/Kconfig b/drivers/staging/fbtft/Kconfig index 3faaf65d0c2e..e1e3dee97b14 100644 --- a/drivers/staging/fbtft/Kconfig +++ b/drivers/staging/fbtft/Kconfig @@ -214,3 +214,10 @@ config FB_TFT_HKTFT35 help Generic Framebuffer support for the Hardkernel 3.5 inch TFT LCD that uses the ILI9488 LCD Controller + +config FB_TFT_HKTFT32 + tristate "FB driver for the Hardkernel 3.2 inch TFT LCD" + depends on FB_TFT + help + Generic Framebuffer support for the Hardkernel 3.2 inch TFT LCD + that uses the ILI9340 LCD Controller diff --git a/drivers/staging/fbtft/Makefile b/drivers/staging/fbtft/Makefile index 3d41175663ed..34a5a14d1ab4 100644 --- a/drivers/staging/fbtft/Makefile +++ b/drivers/staging/fbtft/Makefile @@ -38,3 +38,4 @@ obj-$(CONFIG_FB_TFT_UC1701) += fb_uc1701.o obj-$(CONFIG_FB_TFT_UPD161704) += fb_upd161704.o obj-$(CONFIG_FB_TFT_WATTEROTT) += fb_watterott.o obj-$(CONFIG_FB_TFT_HKTFT35) += fb_hktft35.o +obj-$(CONFIG_FB_TFT_HKTFT32) += fb_hktft32.o diff --git a/drivers/staging/fbtft/fb_hktft32.c b/drivers/staging/fbtft/fb_hktft32.c new file mode 100644 index 000000000000..33ac19603cad --- /dev/null +++ b/drivers/staging/fbtft/fb_hktft32.c @@ -0,0 +1,156 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * FB driver for the Hardkernel 3.2 inch TFT LCD + * that uses the ILI9340 LCD Controller + * + * Copyright (C) 2019 Yang Deokgyu + * + * Based on fb_ili9340.c by Noralf Tronnes + */ + +#include +#include +#include +#include +#include +#include