OSDN Git Service

rockchip: drm-rockchip: add missing dependency
[immortalwrt/immortalwrt.git] / target / linux / rockchip / modules.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2020 OpenWrt.org
4
5 define KernelPackage/drm-rockchip
6   SUBMENU:=$(VIDEO_MENU)
7   TITLE:=Rockchip DRM support
8   DEPENDS:=@TARGET_rockchip +kmod-backlight +kmod-drm-kms-helper +kmod-multimedia-input
9   KCONFIG:= \
10         CONFIG_DRM_ROCKCHIP \
11         CONFIG_DRM_LOAD_EDID_FIRMWARE=y \
12         CONFIG_DRM_FBDEV_EMULATION=y \
13         CONFIG_DRM_FBDEV_OVERALLOC=100 \
14         CONFIG_DRM_BRIDGE=y \
15         CONFIG_HDMI=y \
16         CONFIG_PHY_ROCKCHIP_INNO_HDMI \
17         CONFIG_DRM_DW_HDMI \
18         CONFIG_DRM_DW_HDMI_CEC \
19         CONFIG_ROCKCHIP_ANALOGIX_DP=n \
20         CONFIG_ROCKCHIP_CDN_DP=n \
21         CONFIG_ROCKCHIP_DW_HDMI=y \
22         CONFIG_ROCKCHIP_INNO_HDMI=y \
23         CONFIG_ROCKCHIP_DW_MIPI_DSI=y \
24         CONFIG_ROCKCHIP_LVDS=y \
25         CONFIG_ROCKCHIP_RGB=n \
26         CONFIG_ROCKCHIP_RK3066_HDMI=n \
27         CONFIG_DRM_DP_AUX_BUS@ge5.15 \
28         CONFIG_DRM_PANEL=y \
29         CONFIG_DRM_PANEL_BRIDGE=y \
30         CONFIG_DRM_PANEL_SIMPLE
31   FILES:= \
32         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi.ko \
33         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.ko \
34         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.ko \
35         $(LINUX_DIR)/drivers/media/cec/core/cec.ko \
36         $(LINUX_DIR)/drivers/phy/rockchip/phy-rockchip-inno-hdmi.ko \
37         $(LINUX_DIR)/drivers/gpu/drm/drm_dp_aux_bus.ko@ge5.15 \
38         $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko \
39         $(LINUX_DIR)/drivers/gpu/drm/rockchip/rockchipdrm.ko
40   AUTOLOAD:=$(call AutoProbe,rockchipdrm phy-rockchip-inno-hdmi dw-hdmi-cec)
41 endef
42
43 define KernelPackage/drm-rockchip/description
44   Direct Rendering Manager (DRM) support for Rockchip
45 endef
46
47 $(eval $(call KernelPackage,drm-rockchip))
48
49 define KernelPackage/saradc-rockchip
50   SUBMENU:=$(IIO_MENU)
51   TITLE:=Rockchip SARADC support
52   DEPENDS:=@TARGET_rockchip +kmod-industrialio-triggered-buffer
53   KCONFIG:= \
54         CONFIG_RESET_CONTROLLER=y \
55         CONFIG_ROCKCHIP_SARADC
56   FILES:= \
57         $(LINUX_DIR)/drivers/iio/adc/rockchip_saradc.ko
58   AUTOLOAD:=$(call AutoProbe,rockchip_saradc)
59 endef
60
61 define KernelPackage/saradc-rockchip/description
62   Support for the SARADC found in SoCs from Rockchip
63 endef
64
65 $(eval $(call KernelPackage,saradc-rockchip))