st7735r.c (8284bae723f025cb6a8431566757a3854a3c53eb) | st7735r.c (216b9bbaeaea96b7f05c220f61855d174be972d8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * DRM driver for display panels connected to a Sitronix ST7715R or ST7735R 4 * display controller in SPI mode. 5 * 6 * Copyright 2017 David Lechner <david@lechnology.com> 7 * Copyright (C) 2019 Glider bvba 8 */ --- 119 unchanged lines hidden (view full) --- 128 msleep(20); 129 130 mipi_dbi_enable_flush(dbidev, crtc_state, plane_state); 131out_exit: 132 drm_dev_exit(idx); 133} 134 135static const struct drm_simple_display_pipe_funcs st7735r_pipe_funcs = { | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * DRM driver for display panels connected to a Sitronix ST7715R or ST7735R 4 * display controller in SPI mode. 5 * 6 * Copyright 2017 David Lechner <david@lechnology.com> 7 * Copyright (C) 2019 Glider bvba 8 */ --- 119 unchanged lines hidden (view full) --- 128 msleep(20); 129 130 mipi_dbi_enable_flush(dbidev, crtc_state, plane_state); 131out_exit: 132 drm_dev_exit(idx); 133} 134 135static const struct drm_simple_display_pipe_funcs st7735r_pipe_funcs = { |
136 .mode_valid = mipi_dbi_pipe_mode_valid, |
|
136 .enable = st7735r_pipe_enable, 137 .disable = mipi_dbi_pipe_disable, 138 .update = mipi_dbi_pipe_update, 139}; 140 141static const struct st7735r_cfg jd_t18003_t01_cfg = { 142 .mode = { DRM_SIMPLE_MODE(128, 160, 28, 35) }, 143 /* Cannot read from Adafruit 1.8" display via SPI */ --- 135 unchanged lines hidden --- | 137 .enable = st7735r_pipe_enable, 138 .disable = mipi_dbi_pipe_disable, 139 .update = mipi_dbi_pipe_update, 140}; 141 142static const struct st7735r_cfg jd_t18003_t01_cfg = { 143 .mode = { DRM_SIMPLE_MODE(128, 160, 28, 35) }, 144 /* Cannot read from Adafruit 1.8" display via SPI */ --- 135 unchanged lines hidden --- |