ili9225.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) ili9225.c (820c1707177c6fe96beed7f8cc842a683afbf890)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * DRM driver for Ilitek ILI9225 panels
4 *
5 * Copyright 2017 David Lechner <david@lechnology.com>
6 *
7 * Some code copied from mipi-dbi.c
8 * Copyright 2016 Noralf Trønnes

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

17#include <video/mipi_display.h>
18
19#include <drm/drm_atomic_helper.h>
20#include <drm/drm_damage_helper.h>
21#include <drm/drm_drv.h>
22#include <drm/drm_fb_cma_helper.h>
23#include <drm/drm_fb_helper.h>
24#include <drm/drm_fourcc.h>
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * DRM driver for Ilitek ILI9225 panels
4 *
5 * Copyright 2017 David Lechner <david@lechnology.com>
6 *
7 * Some code copied from mipi-dbi.c
8 * Copyright 2016 Noralf Trønnes

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

17#include <video/mipi_display.h>
18
19#include <drm/drm_atomic_helper.h>
20#include <drm/drm_damage_helper.h>
21#include <drm/drm_drv.h>
22#include <drm/drm_fb_cma_helper.h>
23#include <drm/drm_fb_helper.h>
24#include <drm/drm_fourcc.h>
25#include <drm/drm_gem_atomic_helper.h>
25#include <drm/drm_gem_cma_helper.h>
26#include <drm/drm_gem_cma_helper.h>
26#include <drm/drm_gem_framebuffer_helper.h>
27#include <drm/drm_managed.h>
28#include <drm/drm_mipi_dbi.h>
29#include <drm/drm_rect.h>
30
31#define ILI9225_DRIVER_READ_CODE 0x00
32#define ILI9225_DRIVER_OUTPUT_CONTROL 0x01
33#define ILI9225_LCD_AC_DRIVING_CONTROL 0x02
34#define ILI9225_ENTRY_MODE 0x03

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

323
324 return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num);
325}
326
327static const struct drm_simple_display_pipe_funcs ili9225_pipe_funcs = {
328 .enable = ili9225_pipe_enable,
329 .disable = ili9225_pipe_disable,
330 .update = ili9225_pipe_update,
27#include <drm/drm_managed.h>
28#include <drm/drm_mipi_dbi.h>
29#include <drm/drm_rect.h>
30
31#define ILI9225_DRIVER_READ_CODE 0x00
32#define ILI9225_DRIVER_OUTPUT_CONTROL 0x01
33#define ILI9225_LCD_AC_DRIVING_CONTROL 0x02
34#define ILI9225_ENTRY_MODE 0x03

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

323
324 return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num);
325}
326
327static const struct drm_simple_display_pipe_funcs ili9225_pipe_funcs = {
328 .enable = ili9225_pipe_enable,
329 .disable = ili9225_pipe_disable,
330 .update = ili9225_pipe_update,
331 .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb,
331 .prepare_fb = drm_gem_simple_display_pipe_prepare_fb,
332};
333
334static const struct drm_display_mode ili9225_mode = {
335 DRM_SIMPLE_MODE(176, 220, 35, 44),
336};
337
338DEFINE_DRM_GEM_CMA_FOPS(ili9225_fops);
339

--- 110 unchanged lines hidden ---
332};
333
334static const struct drm_display_mode ili9225_mode = {
335 DRM_SIMPLE_MODE(176, 220, 35, 44),
336};
337
338DEFINE_DRM_GEM_CMA_FOPS(ili9225_fops);
339

--- 110 unchanged lines hidden ---