Store additional information in struct ast_device and struct
ast_device_quirk to describe each model. Replace the per-Gen
branching in the mode-setting code with the new data. Makes mode
setting more flexible and puts more of the per-Gen information
in a single source file per model.

Tested on AST2600 hardware.

Next to address will be the remaining per-Gen cases in the POST and
in the DP501 code. After that there will be a single specific source
file per hardware generation.

Thomas Zimmermann (5):
  drm/ast: Store DRAM clock table in struct ast_device
  drm/ast: Support device quirks
  drm/ast: Store CRTC memory request threshold in device quirks
  drm/ast: Store precatch settings in struct ast_device_quirks
  drm/ast: Store HSync adjustment in device quirks

 drivers/gpu/drm/ast/ast_2000.c |  9 ++++++-
 drivers/gpu/drm/ast/ast_2100.c |  9 ++++++-
 drivers/gpu/drm/ast/ast_2200.c |  9 ++++++-
 drivers/gpu/drm/ast/ast_2300.c |  9 ++++++-
 drivers/gpu/drm/ast/ast_2400.c |  9 ++++++-
 drivers/gpu/drm/ast/ast_2500.c | 10 +++++++-
 drivers/gpu/drm/ast/ast_2600.c | 11 +++++++-
 drivers/gpu/drm/ast/ast_drv.c  |  4 ++-
 drivers/gpu/drm/ast/ast_drv.h  | 27 +++++++++++++++++++-
 drivers/gpu/drm/ast/ast_mode.c | 46 +++++++++++-----------------------
 10 files changed, 103 insertions(+), 40 deletions(-)

-- 
2.51.0

Reply via email to