hx8357d.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) hx8357d.c (820c1707177c6fe96beed7f8cc842a683afbf890)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * DRM driver for the HX8357D LCD controller
4 *
5 * Copyright 2018 Broadcom
6 * Copyright 2018 David Lechner <david@lechnology.com>
7 * Copyright 2016 Noralf Trønnes
8 * Copyright (C) 2015 Adafruit Industries

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

14#include <linux/gpio/consumer.h>
15#include <linux/module.h>
16#include <linux/property.h>
17#include <linux/spi/spi.h>
18
19#include <drm/drm_atomic_helper.h>
20#include <drm/drm_drv.h>
21#include <drm/drm_fb_helper.h>
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * DRM driver for the HX8357D LCD controller
4 *
5 * Copyright 2018 Broadcom
6 * Copyright 2018 David Lechner <david@lechnology.com>
7 * Copyright 2016 Noralf Trønnes
8 * Copyright (C) 2015 Adafruit Industries

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

14#include <linux/gpio/consumer.h>
15#include <linux/module.h>
16#include <linux/property.h>
17#include <linux/spi/spi.h>
18
19#include <drm/drm_atomic_helper.h>
20#include <drm/drm_drv.h>
21#include <drm/drm_fb_helper.h>
22#include <drm/drm_gem_atomic_helper.h>
22#include <drm/drm_gem_cma_helper.h>
23#include <drm/drm_gem_cma_helper.h>
23#include <drm/drm_gem_framebuffer_helper.h>
24#include <drm/drm_managed.h>
25#include <drm/drm_mipi_dbi.h>
26#include <drm/drm_modeset_helper.h>
27#include <video/mipi_display.h>
28
29#define HX8357D_SETOSC 0xb0
30#define HX8357D_SETPOWER 0xb1
31#define HX8357D_SETRGB 0xb3

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

179out_exit:
180 drm_dev_exit(idx);
181}
182
183static const struct drm_simple_display_pipe_funcs hx8357d_pipe_funcs = {
184 .enable = yx240qv29_enable,
185 .disable = mipi_dbi_pipe_disable,
186 .update = mipi_dbi_pipe_update,
24#include <drm/drm_managed.h>
25#include <drm/drm_mipi_dbi.h>
26#include <drm/drm_modeset_helper.h>
27#include <video/mipi_display.h>
28
29#define HX8357D_SETOSC 0xb0
30#define HX8357D_SETPOWER 0xb1
31#define HX8357D_SETRGB 0xb3

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

179out_exit:
180 drm_dev_exit(idx);
181}
182
183static const struct drm_simple_display_pipe_funcs hx8357d_pipe_funcs = {
184 .enable = yx240qv29_enable,
185 .disable = mipi_dbi_pipe_disable,
186 .update = mipi_dbi_pipe_update,
187 .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb,
187 .prepare_fb = drm_gem_simple_display_pipe_prepare_fb,
188};
189
190static const struct drm_display_mode yx350hv15_mode = {
191 DRM_SIMPLE_MODE(320, 480, 60, 75),
192};
193
194DEFINE_DRM_GEM_CMA_FOPS(hx8357d_fops);
195

--- 103 unchanged lines hidden ---
188};
189
190static const struct drm_display_mode yx350hv15_mode = {
191 DRM_SIMPLE_MODE(320, 480, 60, 75),
192};
193
194DEFINE_DRM_GEM_CMA_FOPS(hx8357d_fops);
195

--- 103 unchanged lines hidden ---