Skip to content

Commit 2048e32

Browse files
Mark Yaoyzq
authored andcommitted
drm: rockchip: Add basic drm driver
This patch adds the basic structure of a DRM Driver for Rockchip Socs. Signed-off-by: Mark Yao <[email protected]> Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Daniel Vetter <[email protected]> Reviewed-by: Rob Clark <[email protected]>
1 parent 656d707 commit 2048e32

14 files changed

+3111
-0
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ config DRM_SAVAGE
167167

168168
source "drivers/gpu/drm/exynos/Kconfig"
169169

170+
source "drivers/gpu/drm/rockchip/Kconfig"
171+
170172
source "drivers/gpu/drm/vmwgfx/Kconfig"
171173

172174
source "drivers/gpu/drm/gma500/Kconfig"

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
4949
obj-$(CONFIG_DRM_VIA) +=via/
5050
obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
5151
obj-$(CONFIG_DRM_EXYNOS) +=exynos/
52+
obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
5253
obj-$(CONFIG_DRM_GMA500) += gma500/
5354
obj-$(CONFIG_DRM_UDL) += udl/
5455
obj-$(CONFIG_DRM_AST) += ast/

drivers/gpu/drm/rockchip/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
config DRM_ROCKCHIP
2+
tristate "DRM Support for Rockchip"
3+
depends on DRM && ROCKCHIP_IOMMU
4+
select DRM_KMS_HELPER
5+
select DRM_KMS_FB_HELPER
6+
select DRM_PANEL
7+
select FB_CFB_FILLRECT
8+
select FB_CFB_COPYAREA
9+
select FB_CFB_IMAGEBLIT
10+
select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
11+
select VIDEOMODE_HELPERS
12+
help
13+
Choose this option if you have a Rockchip soc chipset.
14+
This driver provides kernel mode setting and buffer
15+
management to userspace. This driver does not provide
16+
2D or 3D acceleration; acceleration is performed by other
17+
IP found on the SoC.

drivers/gpu/drm/rockchip/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Makefile for the drm device driver. This driver provides support for the
3+
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
4+
5+
rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o rockchip_drm_fbdev.o \
6+
rockchip_drm_gem.o
7+
8+
obj-$(CONFIG_DRM_ROCKCHIP) += rockchipdrm.o rockchip_drm_vop.o

0 commit comments

Comments
 (0)