Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions a210/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ ALIBABA_IN_TREE_MODULES_PATH = [
"drivers/usb/dwc3/dwc3-zhihe.ko",
"drivers/phy/zhihe/phy-zhihe-snps-usb2.ko",
"drivers/phy/zhihe/phy-zhihe-snps-c10phy.ko",
"drivers/gpu/drm/verisilicon/verisilicon-dc.ko",
"drivers/gpu/drm/bridge/th1520-dw-hdmi.ko",
"drivers/gpu/drm/bridge/synopsys/dw-hdmi.ko",
"drivers/gpu/drm/drm_dma_helper.ko",
"drivers/gpu/drm/display/drm_display_helper.ko",
]

# ============================================================
Expand Down Expand Up @@ -165,6 +170,11 @@ ALIBABA_VENDOR_DLKM_MODULES = [
"dwc3-zhihe.ko",
"phy-zhihe-snps-usb2.ko",
"phy-zhihe-snps-c10phy.ko",
"verisilicon-dc.ko",
"th1520-dw-hdmi.ko",
"dw-hdmi.ko",
"drm_dma_helper.ko",
"drm_display_helper.ko",
]

# ============================================================
Expand Down Expand Up @@ -199,6 +209,7 @@ kernel_build(
get_kunit_modules_list("riscv64") +
ALIBABA_IN_TREE_MODULES_PATH +
ALIBABA_SYSTEM_DLKM_EXTRA_MODULES,
pahole = "//common:pahole",
pre_defconfig_fragments = [":zhihe_a210.fragment"],
visibility = ["//visibility:public"],
)
Expand Down
11 changes: 11 additions & 0 deletions a210/zhihe_a210.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ CONFIG_RESET_A210=m
# ============================================================
CONFIG_PINCTRL_A210=m

# ============================================================
# IOPMP
# ============================================================
# Must be =y, not =m: a210-pd.c guards its iopmp_enable()
# iopmp_disable() # calls with a bare `#ifdef CONFIG_ZH_IOPMP`
CONFIG_IOPMP=y
CONFIG_ZH_IOPMP=y

# ============================================================
# Power Domain
# ============================================================
Expand Down Expand Up @@ -137,3 +145,6 @@ CONFIG_PHY_ZHIHE_SNPS_C10PHY=m
# TEMPORARY: VKMS boot-completion test
# ============================================================
CONFIG_DRM_VKMS=m

CONFIG_DRM_VERISILICON_DC=m
CONFIG_DRM_THEAD_TH1520_DW_HDMI=m