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)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Mar 2016 07:50:17 +0000 (17:50 +1000)
commit2d02b8bdba322b527c5f5168ce1ca10c2d982a78
tree562afede287656dae0c54d491c7b76a6c067080b
parentead8f34c701ec7bf3234118b8c746227f30dfd1a
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 <tpearson@raptorengineeringinc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_main.c