Skip to content

Commit 16102ed

Browse files
chulsprodaeinki
authored andcommitted
drm/exynos: add fimc ipp driver
FIMC is stand for Fully Interfactive Mobile Camera and supports image scaler/rotator/crop/flip/csc and input/output DMA operations and also supports writeback and display output operations. This driver is registered to IPP subsystem framework to be used by user side and user can control the FIMC hardware through some interfaces of IPP subsystem framework. Changelog v6: - fix build warning. Changelog v1 ~ v5: - add comments, code fixups and cleanups. Signed-off-by: Eunchul Kim <chulspro.kim@samsung.com> Signed-off-by: Jinyoung Jeon <jy0.jeon@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
1 parent c12e261 commit 16102ed

8 files changed

Lines changed: 2756 additions & 0 deletions

File tree

‎drivers/gpu/drm/exynos/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ config DRM_EXYNOS_IPP
5151
depends on DRM_EXYNOS
5252
help
5353
Choose this option if you want to use IPP feature for DRM.
54+
55+
config DRM_EXYNOS_FIMC
56+
bool "Exynos DRM FIMC"
57+
depends on DRM_EXYNOS_IPP
58+
help
59+
Choose this option if you want to use Exynos FIMC for DRM.

‎drivers/gpu/drm/exynos/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ exynosdrm-$(CONFIG_DRM_EXYNOS_HDMI) += exynos_hdmi.o exynos_mixer.o \
1717
exynosdrm-$(CONFIG_DRM_EXYNOS_VIDI) += exynos_drm_vidi.o
1818
exynosdrm-$(CONFIG_DRM_EXYNOS_G2D) += exynos_drm_g2d.o
1919
exynosdrm-$(CONFIG_DRM_EXYNOS_IPP) += exynos_drm_ipp.o
20+
exynosdrm-$(CONFIG_DRM_EXYNOS_FIMC) += exynos_drm_fimc.o
2021

2122
obj-$(CONFIG_DRM_EXYNOS) += exynosdrm.o

‎drivers/gpu/drm/exynos/exynos_drm_drv.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ static int __init exynos_drm_init(void)
372372
goto out_g2d;
373373
#endif
374374

375+
#ifdef CONFIG_DRM_EXYNOS_FIMC
376+
ret = platform_driver_register(&fimc_driver);
377+
if (ret < 0)
378+
goto out_fimc;
379+
#endif
380+
375381
#ifdef CONFIG_DRM_EXYNOS_IPP
376382
ret = platform_driver_register(&ipp_driver);
377383
if (ret < 0)
@@ -400,6 +406,11 @@ static int __init exynos_drm_init(void)
400406
out_ipp:
401407
#endif
402408

409+
#ifdef CONFIG_DRM_EXYNOS_FIMC
410+
platform_driver_unregister(&fimc_driver);
411+
out_fimc:
412+
#endif
413+
403414
#ifdef CONFIG_DRM_EXYNOS_G2D
404415
platform_driver_unregister(&g2d_driver);
405416
out_g2d:
@@ -440,6 +451,10 @@ static void __exit exynos_drm_exit(void)
440451
platform_driver_unregister(&ipp_driver);
441452
#endif
442453

454+
#ifdef CONFIG_DRM_EXYNOS_FIMC
455+
platform_driver_unregister(&fimc_driver);
456+
#endif
457+
443458
#ifdef CONFIG_DRM_EXYNOS_G2D
444459
platform_driver_unregister(&g2d_driver);
445460
#endif

‎drivers/gpu/drm/exynos/exynos_drm_drv.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,5 +349,6 @@ extern struct platform_driver mixer_driver;
349349
extern struct platform_driver exynos_drm_common_hdmi_driver;
350350
extern struct platform_driver vidi_driver;
351351
extern struct platform_driver g2d_driver;
352+
extern struct platform_driver fimc_driver;
352353
extern struct platform_driver ipp_driver;
353354
#endif

0 commit comments

Comments
 (0)