The ast driver's ast_get_dram_info() helper is supposed to return information about the hardware's memory setup. It depends on the various types of configurations and the chipset model. The problem is that most of this is not needed or outright wrong.
Really needed is only the bank layout of the memory for posting Gen2 and Gen3 systems with P2A configuration. This series removes ast_gem_dram_info(). The code for retrieving the bank layout goes into the Gen2 source code and runs when required. Tested on AST2100 and AST2600 hardware. Thomas Zimmermann (6): drm/ast: Do not print DRAM info drm/ast: Remove unused dram_bus_width field drm/ast: Remove unused mclk field drm/ast: Remove unused SCU-MPLL and SCU-STRAP values drm/ast: Move DRAM info next to its only user drm/ast: Put AST_DRAM_ constants into enum ast_dram_layout drivers/gpu/drm/ast/ast_2100.c | 45 +++++++++++- drivers/gpu/drm/ast/ast_drv.h | 20 +++--- drivers/gpu/drm/ast/ast_main.c | 126 --------------------------------- 3 files changed, 51 insertions(+), 140 deletions(-) -- 2.50.1