mi0283qt.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | mi0283qt.c (820c1707177c6fe96beed7f8cc842a683afbf890) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * DRM driver for Multi-Inno MI0283QT panels 4 * 5 * Copyright 2016 Noralf Trønnes 6 */ 7 8#include <linux/backlight.h> 9#include <linux/delay.h> 10#include <linux/gpio/consumer.h> 11#include <linux/module.h> 12#include <linux/property.h> 13#include <linux/regulator/consumer.h> 14#include <linux/spi/spi.h> 15 16#include <drm/drm_atomic_helper.h> 17#include <drm/drm_drv.h> 18#include <drm/drm_fb_helper.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * DRM driver for Multi-Inno MI0283QT panels 4 * 5 * Copyright 2016 Noralf Trønnes 6 */ 7 8#include <linux/backlight.h> 9#include <linux/delay.h> 10#include <linux/gpio/consumer.h> 11#include <linux/module.h> 12#include <linux/property.h> 13#include <linux/regulator/consumer.h> 14#include <linux/spi/spi.h> 15 16#include <drm/drm_atomic_helper.h> 17#include <drm/drm_drv.h> 18#include <drm/drm_fb_helper.h> |
19#include <drm/drm_gem_atomic_helper.h> |
|
19#include <drm/drm_gem_cma_helper.h> | 20#include <drm/drm_gem_cma_helper.h> |
20#include <drm/drm_gem_framebuffer_helper.h> | |
21#include <drm/drm_managed.h> 22#include <drm/drm_mipi_dbi.h> 23#include <drm/drm_modeset_helper.h> 24#include <video/mipi_display.h> 25 26#define ILI9341_FRMCTR1 0xb1 27#define ILI9341_DISCTRL 0xb6 28#define ILI9341_ETMOD 0xb7 --- 110 unchanged lines hidden (view full) --- 139out_exit: 140 drm_dev_exit(idx); 141} 142 143static const struct drm_simple_display_pipe_funcs mi0283qt_pipe_funcs = { 144 .enable = mi0283qt_enable, 145 .disable = mipi_dbi_pipe_disable, 146 .update = mipi_dbi_pipe_update, | 21#include <drm/drm_managed.h> 22#include <drm/drm_mipi_dbi.h> 23#include <drm/drm_modeset_helper.h> 24#include <video/mipi_display.h> 25 26#define ILI9341_FRMCTR1 0xb1 27#define ILI9341_DISCTRL 0xb6 28#define ILI9341_ETMOD 0xb7 --- 110 unchanged lines hidden (view full) --- 139out_exit: 140 drm_dev_exit(idx); 141} 142 143static const struct drm_simple_display_pipe_funcs mi0283qt_pipe_funcs = { 144 .enable = mi0283qt_enable, 145 .disable = mipi_dbi_pipe_disable, 146 .update = mipi_dbi_pipe_update, |
147 .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb, | 147 .prepare_fb = drm_gem_simple_display_pipe_prepare_fb, |
148}; 149 150static const struct drm_display_mode mi0283qt_mode = { 151 DRM_SIMPLE_MODE(320, 240, 58, 43), 152}; 153 154DEFINE_DRM_GEM_CMA_FOPS(mi0283qt_fops); 155 --- 133 unchanged lines hidden --- | 148}; 149 150static const struct drm_display_mode mi0283qt_mode = { 151 DRM_SIMPLE_MODE(320, 240, 58, 43), 152}; 153 154DEFINE_DRM_GEM_CMA_FOPS(mi0283qt_fops); 155 --- 133 unchanged lines hidden --- |