Commit 9c442b7a authored by Samuel Holland's avatar Samuel Holland Committed by Maxime Ripard

drm/sun4i: Update Kconfig defaults and descriptions

Allwinner display drivers are split roughly into two generations. The
first generation was found on early 32-bit ARM SoCs and contains DE1.0
and a custom HDMI controller. Clarify that these options only apply to
a specific list of SoCs, and limit selecting them to 32-bit ARM, to
avoid confusion.

The second generation, found in A83T and newer SoCs (both 32-bit and
64-bit), contains a DE2.0 and a DesignWare HDMI controller. Since this
is the most widely-used generation, enable it by default. The previous
default condition (MACH_SUN8I) was limited to 32-bit SoCs. Also enable
the DSI controller by default, which is found on 64-bit SoCs as well.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220702193250.52959-1-samuel@sholland.org
parent 53565c28
...@@ -16,23 +16,25 @@ config DRM_SUN4I ...@@ -16,23 +16,25 @@ config DRM_SUN4I
if DRM_SUN4I if DRM_SUN4I
config DRM_SUN4I_HDMI config DRM_SUN4I_HDMI
tristate "Allwinner A10 HDMI Controller Support" tristate "Allwinner A10/A10s/A20/A31 HDMI Controller Support"
depends on ARM || COMPILE_TEST
default DRM_SUN4I default DRM_SUN4I
help help
Choose this option if you have an Allwinner SoC with an HDMI Choose this option if you have an Allwinner A10/A10s/A20/A31
controller. SoC with an HDMI controller.
config DRM_SUN4I_HDMI_CEC config DRM_SUN4I_HDMI_CEC
bool "Allwinner A10 HDMI CEC Support" bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
depends on DRM_SUN4I_HDMI depends on DRM_SUN4I_HDMI
select CEC_CORE select CEC_CORE
select CEC_PIN select CEC_PIN
help help
Choose this option if you have an Allwinner SoC with an HDMI Choose this option if you have an Allwinner A10/A10s/A20/A31
controller and want to use CEC. SoC with an HDMI controller and want to use CEC.
config DRM_SUN4I_BACKEND config DRM_SUN4I_BACKEND
tristate "Support for Allwinner A10 Display Engine Backend" tristate "Support for Allwinner A10 Display Engine Backend"
depends on ARM || COMPILE_TEST
default DRM_SUN4I default DRM_SUN4I
help help
Choose this option if you have an Allwinner SoC with the Choose this option if you have an Allwinner SoC with the
...@@ -41,8 +43,8 @@ config DRM_SUN4I_BACKEND ...@@ -41,8 +43,8 @@ config DRM_SUN4I_BACKEND
selected the module will be called sun4i-backend. selected the module will be called sun4i-backend.
config DRM_SUN6I_DSI config DRM_SUN6I_DSI
tristate "Allwinner A31 MIPI-DSI Controller Support" tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
default MACH_SUN8I default DRM_SUN4I
select CRC_CCITT select CRC_CCITT
select DRM_MIPI_DSI select DRM_MIPI_DSI
select RESET_CONTROLLER select RESET_CONTROLLER
...@@ -55,15 +57,17 @@ config DRM_SUN6I_DSI ...@@ -55,15 +57,17 @@ config DRM_SUN6I_DSI
config DRM_SUN8I_DW_HDMI config DRM_SUN8I_DW_HDMI
tristate "Support for Allwinner version of DesignWare HDMI" tristate "Support for Allwinner version of DesignWare HDMI"
depends on DRM_SUN4I depends on DRM_SUN4I
default DRM_SUN4I
select DRM_DW_HDMI select DRM_DW_HDMI
help help
Choose this option if you have an Allwinner SoC with the Choose this option if you have an Allwinner SoC with the
DesignWare HDMI controller with custom HDMI PHY. If M is DesignWare HDMI controller. SoCs that support HDMI and
have a Display Engine 2.0 contain this controller. If M is
selected the module will be called sun8i_dw_hdmi. selected the module will be called sun8i_dw_hdmi.
config DRM_SUN8I_MIXER config DRM_SUN8I_MIXER
tristate "Support for Allwinner Display Engine 2.0 Mixer" tristate "Support for Allwinner Display Engine 2.0 Mixer"
default MACH_SUN8I default DRM_SUN4I
help help
Choose this option if you have an Allwinner SoC with the Choose this option if you have an Allwinner SoC with the
Allwinner Display Engine 2.0, which has a mixer to do some Allwinner Display Engine 2.0, which has a mixer to do some
...@@ -75,6 +79,6 @@ config DRM_SUN8I_TCON_TOP ...@@ -75,6 +79,6 @@ config DRM_SUN8I_TCON_TOP
default DRM_SUN4I if DRM_SUN8I_MIXER!=n default DRM_SUN4I if DRM_SUN8I_MIXER!=n
help help
TCON TOP is responsible for configuring display pipeline for TCON TOP is responsible for configuring display pipeline for
HTMI, TVE and LCD. HDMI, TVE and LCD.
endif endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment