diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-10-07 16:54:42 +0200 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-10-15 09:59:40 +0200 |
| commit | 4b3374d790567e5eb3c83f1f70c396ddc5da603d (patch) | |
| tree | 10ce8626ebd528bbc6452d2845b2a08b95b97eba /drivers/gpu/drm/ast/ast_2600.c | |
| parent | b076ed3017529ec528f2f28b8f37242a6a29a4b0 (diff) | |
drm/ast: Store DRAM clock table in struct ast_device
Init the new field dclk_table in struct ast_device to the per-gen
table of DRAM clock parameters. Use the field during modesetting.
The table is static, so a setup is only required once. Removes the
call to IS_AST_GEN() from the atomic commit's code path.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20251007150343.273718-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_2600.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_2600.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ast/ast_2600.c b/drivers/gpu/drm/ast/ast_2600.c index 30490c473797..1f709486f491 100644 --- a/drivers/gpu/drm/ast/ast_2600.c +++ b/drivers/gpu/drm/ast/ast_2600.c @@ -78,6 +78,8 @@ struct drm_device *ast_2600_device_create(struct pci_dev *pdev, ast_device_init(ast, chip, config_mode, regs, ioregs); + ast->dclk_table = ast_2500_dclk_table; + ast_2300_detect_tx_chip(ast); switch (ast->tx_chip) { |