ili9486.c (8284bae723f025cb6a8431566757a3854a3c53eb) | ili9486.c (216b9bbaeaea96b7f05c220f61855d174be972d8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * DRM driver for Ilitek ILI9486 panels 4 * 5 * Copyright 2020 Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com> 6 */ 7 8#include <linux/backlight.h> --- 136 unchanged lines hidden (view full) --- 145 addr_mode |= ILI9486_MADCTL_BGR; 146 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); 147 mipi_dbi_enable_flush(dbidev, crtc_state, plane_state); 148 out_exit: 149 drm_dev_exit(idx); 150} 151 152static const struct drm_simple_display_pipe_funcs waveshare_pipe_funcs = { | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * DRM driver for Ilitek ILI9486 panels 4 * 5 * Copyright 2020 Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com> 6 */ 7 8#include <linux/backlight.h> --- 136 unchanged lines hidden (view full) --- 145 addr_mode |= ILI9486_MADCTL_BGR; 146 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, addr_mode); 147 mipi_dbi_enable_flush(dbidev, crtc_state, plane_state); 148 out_exit: 149 drm_dev_exit(idx); 150} 151 152static const struct drm_simple_display_pipe_funcs waveshare_pipe_funcs = { |
153 .mode_valid = mipi_dbi_pipe_mode_valid, |
|
153 .enable = waveshare_enable, 154 .disable = mipi_dbi_pipe_disable, 155 .update = mipi_dbi_pipe_update, 156}; 157 158static const struct drm_display_mode waveshare_mode = { 159 DRM_SIMPLE_MODE(480, 320, 73, 49), 160}; --- 113 unchanged lines hidden --- | 154 .enable = waveshare_enable, 155 .disable = mipi_dbi_pipe_disable, 156 .update = mipi_dbi_pipe_update, 157}; 158 159static const struct drm_display_mode waveshare_mode = { 160 DRM_SIMPLE_MODE(480, 320, 73, 49), 161}; --- 113 unchanged lines hidden --- |