target/amlogic: supports HDMI output

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
Liangbin Lian 2026-01-05 17:40:53 +08:00
parent f517288e11
commit 29b14d07da
5 changed files with 638 additions and 216 deletions

View File

@ -0,0 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
::askconsole:/usr/libexec/login.sh
tty1::askfirst:/usr/libexec/login.sh

View File

@ -1,6 +1,7 @@
CONFIG_AMLOGIC_THERMAL=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_DEVFREQ_THERMAL=y
# CONFIG_DRM_DW_HDMI_GP_AUDIO is not set
# CONFIG_DRM_MESON is not set
# CONFIG_DRM_MESON_DW_HDMI is not set
CONFIG_HW_CONSOLE=y

View File

@ -15,7 +15,7 @@ for l_devtype in "sd usb mmc" ; do
for devnum in ${l_mmc} ; do
if test -e ${devtype} ${devnum}:1 /boot.scr; then
part uuid ${devtype} ${devnum}:2 uuid
setenv bootargs "console=tty0 no_console_suspend consoleblank=0 console=ttyAML0,115200n8 root=PARTUUID=${uuid} rw rootwait"
setenv bootargs "console=tty1 no_console_suspend consoleblank=0 console=ttyAML0,115200n8 root=PARTUUID=${uuid} rw rootwait"
if printenv mac; then
setenv bootargs ${bootargs} mac=${mac}
elif printenv eth_mac; then

File diff suppressed because it is too large Load Diff

View File

@ -1,57 +0,0 @@
define KernelPackage/drm-amlogic-meson
SUBMENU:=$(VIDEO_MENU)
DEPENDS:=@TARGET_amlogic_meson +kmod-drm +kmod-drm-display-helper +kmod-drm-dma-helper +kmod-meson-canvas
TITLE:=DRM for Amlogic meson
KCONFIG:=\
CONFIG_DRM_MESON \
CONFIG_DRM_BRIDGE=y \
CONFIG_DRM_DISPLAY_CONNECTOR \
CONFIG_DRM_DW_HDMI \
CONFIG_DRM_DW_HDMI_CEC \
CONFIG_DRM_DW_HDMI_GP_AUDIO=n
FILES:=\
$(LINUX_DIR)/drivers/gpu/drm/meson/meson-drm.ko \
$(LINUX_DIR)/drivers/gpu/drm/bridge/display-connector.ko \
$(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi.ko \
$(LINUX_DIR)/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.ko \
$(LINUX_DIR)/drivers/media/cec/core/cec.ko
AUTOLOAD:=$(call AutoLoad,80,dw-hdmi-cec meson-drm display-connector)
endef
define KernelPackage/drm-amlogic-meson/description
DRM for Amlogic meson
endef
$(eval $(call KernelPackage,drm-amlogic-meson))
define KernelPackage/drm-amlogic-meson-hdmitx
SUBMENU:=$(VIDEO_MENU)
DEPENDS:=kmod-drm-amlogic-meson
TITLE:=Meson HDMI TX
KCONFIG:=\
CONFIG_DRM_MESON_DW_HDMI
FILES:=\
$(LINUX_DIR)/drivers/gpu/drm/meson/meson_dw_hdmi.ko
AUTOLOAD:=$(call AutoLoad,70,meson_dw_hdmi)
endef
define KernelPackage/drm-amlogic-meson-hdmitx/description
Support HDMI TX on meson
endef
$(eval $(call KernelPackage,drm-amlogic-meson-hdmitx))
define KernelPackage/meson-canvas
SUBMENU:=$(VIDEO_MENU)
DEPENDS:=@TARGET_amlogic_meson
TITLE:=Amlogic Meson Canvas driver
HIDDEN:=1
KCONFIG:=\
CONFIG_MESON_CANVAS
FILES:=\
$(LINUX_DIR)/drivers/soc/amlogic/meson-canvas.ko
endef
$(eval $(call KernelPackage,meson-canvas))