Commit c377925
drm/vc4: hdmi: Update the CEC clock divider on HSM rate change
[ Upstream commit 47fa9a8 ]
As part of the enable sequence we might change the HSM clock rate if the
pixel rate is different than the one we were already dealing with.
On the BCM2835 however, the CEC clock derives from the HSM clock so any
rate change will need to be reflected in the CEC clock divider to output
40kHz.
Fixes: cd4cb49 ("drm/vc4: hdmi: Adjust HSM clock rate depending on pixel rate")
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111142309.193441-8-maxime@cerno.tech
(cherry picked from commit a9dd0b9)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent ecd8c74 commit c377925
1 file changed
Lines changed: 29 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
| |||
652 | 673 | | |
653 | 674 | | |
654 | 675 | | |
| 676 | + | |
| 677 | + | |
655 | 678 | | |
656 | 679 | | |
657 | 680 | | |
| |||
1468 | 1491 | | |
1469 | 1492 | | |
1470 | 1493 | | |
1471 | | - | |
1472 | 1494 | | |
1473 | 1495 | | |
1474 | 1496 | | |
| |||
1487 | 1509 | | |
1488 | 1510 | | |
1489 | 1511 | | |
| 1512 | + | |
1490 | 1513 | | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
| 1514 | + | |
| 1515 | + | |
1500 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1501 | 1520 | | |
1502 | 1521 | | |
1503 | 1522 | | |
| |||
0 commit comments