drm/ast: Try to use MMIO registers when PIO isn't supported
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 4 Sep 2014 07:44:18 +0000 (17:44 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Sep 2014 01:37:43 +0000 (11:37 +1000)
commit0dd68309b9c516eac76549b71f68f01f57bb0c71
tree66b958e685c72bb58004f344fd04c7406073d792
parent98faa78ce7f1f986e11e7805d31b409782a6d2d4
drm/ast: Try to use MMIO registers when PIO isn't supported

If the PIO resources haven't been assigned, then we have no choice
but try to use the MMIO version. This is the case for example on
POWER8 which doesn't support PIO at all.

Chips rev 0x20 or later have MMIO decoding enabled by default.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c