OSDN Git Service

b50c42b37725be936b390cec66d99000078c416b
[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 \
15         CONFIG_HDMI \
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_PANEL \
28         CONFIG_DRM_PANEL_BRIDGE \
29         CONFIG_DRM_PANEL_SIMPLE
30   FILES:= \
31         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi.ko \
32         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.ko \
33         $(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.ko \
34         $(LINUX_DIR)/drivers/media/cec/core/cec.ko \
35         $(LINUX_DIR)/drivers/phy/rockchip/phy-rockchip-inno-hdmi.ko \
36         $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko \
37         $(LINUX_DIR)/drivers/gpu/drm/rockchip/rockchipdrm.ko
38   AUTOLOAD:=$(call AutoProbe,rockchipdrm phy-rockchip-inno-hdmi dw-hdmi-cec)
39 endef
40
41 define KernelPackage/drm-rockchip/description
42   Direct Rendering Manager (DRM) support for Rockchip
43 endef
44
45 $(eval $(call KernelPackage,drm-rockchip))
46
47 define KernelPackage/saradc-rockchip
48   SUBMENU:=$(IIO_MENU)
49   TITLE:=Rockchip SARADC support
50   DEPENDS:=@TARGET_rockchip +kmod-industrialio-triggered-buffer
51   KCONFIG:= \
52         CONFIG_RESET_CONTROLLER=y \
53         CONFIG_ROCKCHIP_SARADC
54   FILES:= \
55         $(LINUX_DIR)/drivers/iio/adc/rockchip_saradc.ko
56   AUTOLOAD:=$(call AutoProbe,rockchip_saradc)
57 endef
58
59 define KernelPackage/saradc-rockchip/description
60   Support for the SARADC found in SoCs from Rockchip
61 endef
62
63 $(eval $(call KernelPackage,saradc-rockchip))