ili9341.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) ili9341.c (820c1707177c6fe96beed7f8cc842a683afbf890)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * DRM driver for Ilitek ILI9341 panels
4 *
5 * Copyright 2018 David Lechner <david@lechnology.com>
6 *
7 * Based on mi0283qt.c:
8 * Copyright 2016 Noralf Trønnes

--- 4 unchanged lines hidden (view full) ---

13#include <linux/gpio/consumer.h>
14#include <linux/module.h>
15#include <linux/property.h>
16#include <linux/spi/spi.h>
17
18#include <drm/drm_atomic_helper.h>
19#include <drm/drm_drv.h>
20#include <drm/drm_fb_helper.h>
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * DRM driver for Ilitek ILI9341 panels
4 *
5 * Copyright 2018 David Lechner <david@lechnology.com>
6 *
7 * Based on mi0283qt.c:
8 * Copyright 2016 Noralf Trønnes

--- 4 unchanged lines hidden (view full) ---

13#include <linux/gpio/consumer.h>
14#include <linux/module.h>
15#include <linux/property.h>
16#include <linux/spi/spi.h>
17
18#include <drm/drm_atomic_helper.h>
19#include <drm/drm_drv.h>
20#include <drm/drm_fb_helper.h>
21#include <drm/drm_gem_atomic_helper.h>
21#include <drm/drm_gem_cma_helper.h>
22#include <drm/drm_gem_cma_helper.h>
22#include <drm/drm_gem_framebuffer_helper.h>
23#include <drm/drm_managed.h>
24#include <drm/drm_mipi_dbi.h>
25#include <drm/drm_modeset_helper.h>
26#include <video/mipi_display.h>
27
28#define ILI9341_FRMCTR1 0xb1
29#define ILI9341_DISCTRL 0xb6
30#define ILI9341_ETMOD 0xb7

--- 104 unchanged lines hidden (view full) ---

135out_exit:
136 drm_dev_exit(idx);
137}
138
139static const struct drm_simple_display_pipe_funcs ili9341_pipe_funcs = {
140 .enable = yx240qv29_enable,
141 .disable = mipi_dbi_pipe_disable,
142 .update = mipi_dbi_pipe_update,
23#include <drm/drm_managed.h>
24#include <drm/drm_mipi_dbi.h>
25#include <drm/drm_modeset_helper.h>
26#include <video/mipi_display.h>
27
28#define ILI9341_FRMCTR1 0xb1
29#define ILI9341_DISCTRL 0xb6
30#define ILI9341_ETMOD 0xb7

--- 104 unchanged lines hidden (view full) ---

135out_exit:
136 drm_dev_exit(idx);
137}
138
139static const struct drm_simple_display_pipe_funcs ili9341_pipe_funcs = {
140 .enable = yx240qv29_enable,
141 .disable = mipi_dbi_pipe_disable,
142 .update = mipi_dbi_pipe_update,
143 .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb,
143 .prepare_fb = drm_gem_simple_display_pipe_prepare_fb,
144};
145
146static const struct drm_display_mode yx240qv29_mode = {
147 DRM_SIMPLE_MODE(240, 320, 37, 49),
148};
149
150DEFINE_DRM_GEM_CMA_FOPS(ili9341_fops);
151

--- 111 unchanged lines hidden ---
144};
145
146static const struct drm_display_mode yx240qv29_mode = {
147 DRM_SIMPLE_MODE(240, 320, 37, 49),
148};
149
150DEFINE_DRM_GEM_CMA_FOPS(ili9341_fops);
151

--- 111 unchanged lines hidden ---