Lines Matching +full:stm32 +full:- +full:ltdc
1 // SPDX-License-Identifier: GPL-2.0
22 #include "ltdc.h"
38 unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in stm_gem_cma_dumb_create()
44 args->pitch = roundup(min_pitch, 128); in stm_gem_cma_dumb_create()
45 args->height = roundup(args->height, 4); in stm_gem_cma_dumb_create()
79 struct platform_device *pdev = to_platform_device(ddev->dev); in drv_load()
85 ldev = devm_kzalloc(ddev->dev, sizeof(*ldev), GFP_KERNEL); in drv_load()
87 return -ENOMEM; in drv_load()
89 ddev->dev_private = (void *)ldev; in drv_load()
98 ddev->mode_config.min_width = 0; in drv_load()
99 ddev->mode_config.min_height = 0; in drv_load()
100 ddev->mode_config.max_width = STM_MAX_FB_WIDTH; in drv_load()
101 ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; in drv_load()
102 ddev->mode_config.funcs = &drv_mode_config_funcs; in drv_load()
111 if (ddev->mode_config.num_connector) { in drv_load()
137 struct device *dev = &pdev->dev; in stm_drm_platform_probe()
179 { .compatible = "st,stm32-ltdc"},
188 .name = "stm32-display",
199 MODULE_DESCRIPTION("STMicroelectronics ST DRM LTDC driver");