drm/ast: Fix incorrect register check for DRAM width
authorTimothy Pearson <tpearson@raptorengineeringinc.com>
Fri, 26 Feb 2016 21:29:32 +0000 (15:29 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:23 +0000 (13:15 -0500)
commitf0adda6a9f5b1689cbf47dd56cf73da201c014d8
treeeb36401f9a1024fc4d5605a759c5bf2b9e8beaea
parentb8ad68546922dd5acb6cd32628bc9ae69a4795f9
drm/ast: Fix incorrect register check for DRAM width

[ Upstream commit 2d02b8bdba322b527c5f5168ce1ca10c2d982a78 ]

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 <tpearson@raptorengineeringinc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/ast/ast_main.c