mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From 0da58dfbd2cc2cfa14a629787b9ba6fa10b5f666 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Wed, 29 Mar 2023 15:26:52 +0100
|
|
Subject: [PATCH] drm/vc4: hdmi: Enable the audio clock
|
|
|
|
The audio clock is used by the HDMI controller driver and we were using
|
|
it to get its audio rate and compute the dividers needed to reach a
|
|
given audio sample rate.
|
|
|
|
However, we were never enabling it, which was resulting in lockups on
|
|
the BCM2712.
|
|
|
|
Fixes: 632ee3aa8786 ("drm/vc4: hdmi: Add audio-related callbacks")
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -3625,6 +3625,7 @@ static int vc4_hdmi_runtime_suspend(stru
|
|
{
|
|
struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev);
|
|
|
|
+ clk_disable_unprepare(vc4_hdmi->audio_clock);
|
|
clk_disable_unprepare(vc4_hdmi->hsm_rpm_clock);
|
|
|
|
return 0;
|
|
@@ -3666,6 +3667,10 @@ static int vc4_hdmi_runtime_resume(struc
|
|
goto err_disable_clk;
|
|
}
|
|
|
|
+ ret = clk_prepare_enable(vc4_hdmi->audio_clock);
|
|
+ if (ret)
|
|
+ goto err_disable_clk;
|
|
+
|
|
if (vc4_hdmi->variant->reset)
|
|
vc4_hdmi->variant->reset(vc4_hdmi);
|
|
|