Lines Matching +full:stm32 +full:- +full:ltdc
1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/dma-mapping.h>
30 #include "ltdc.h"
45 unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in stm_gem_dma_dumb_create()
51 args->pitch = roundup(min_pitch, 128); in stm_gem_dma_dumb_create()
52 args->height = roundup(args->height, 4); in stm_gem_dma_dumb_create()
73 struct platform_device *pdev = to_platform_device(ddev->dev); in drv_load()
81 return -ENOMEM; in drv_load()
83 ddev->dev_private = (void *)ldev; in drv_load()
94 ddev->mode_config.min_width = 0; in drv_load()
95 ddev->mode_config.min_height = 0; in drv_load()
96 ddev->mode_config.max_width = STM_MAX_FB_WIDTH; in drv_load()
97 ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; in drv_load()
98 ddev->mode_config.funcs = &drv_mode_config_funcs; in drv_load()
99 ddev->mode_config.normalize_zpos = true; in drv_load()
125 struct ltdc_device *ldev = ddev->dev_private; in drv_suspend()
128 WARN_ON(ldev->suspend_state); in drv_suspend()
134 ldev->suspend_state = state; in drv_suspend()
143 struct ltdc_device *ldev = ddev->dev_private; in drv_resume()
146 if (WARN_ON(!ldev->suspend_state)) in drv_resume()
147 return -ENOENT; in drv_resume()
150 ret = drm_atomic_helper_resume(ddev, ldev->suspend_state); in drv_resume()
154 ldev->suspend_state = NULL; in drv_resume()
185 struct device *dev = &pdev->dev; in stm_drm_platform_probe()
238 { .compatible = "st,stm32-ltdc"},
248 .name = "stm32-display",
260 MODULE_DESCRIPTION("STMicroelectronics ST DRM LTDC driver");