Skip to content

Commit 2d02b8b

Browse files
madscientist159airlied
authored andcommitted
drm/ast: Fix incorrect register check for DRAM width
During DRAM initialization on certain ASpeed devices, an incorrect bit (bit 10) was checked in the "SDRAM Bus Width Status" register to determine DRAM width. Query bit 6 instead in accordance with the Aspeed AST2050 datasheet v1.05. Signed-off-by: Timothy Pearson <[email protected]> Cc: [email protected] Signed-off-by: Dave Airlie <[email protected]>
1 parent ead8f34 commit 2d02b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/ast/ast_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int ast_get_dram_info(struct drm_device *dev)
227227
} while (ast_read32(ast, 0x10000) != 0x01);
228228
data = ast_read32(ast, 0x10004);
229229

230-
if (data & 0x400)
230+
if (data & 0x40)
231231
ast->dram_bus_width = 16;
232232
else
233233
ast->dram_bus_width = 32;

0 commit comments

Comments
 (0)