drm/radeon/kms: add ioport register access
This is required for the NB_MISC regs on rs780/rs880 which means HDMI/DVI/DP ports using PCIEPHY won't work without it. It might also help with s/r (asic init) issues on other atombios cards. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28774 and similar issues reported by Alberto Milone. [airlied: Squash io fix patch] Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Tested-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
committed by
Dave Airlie
parent
fe50ac78a6
commit
351a52a241
@@ -108,12 +108,11 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
|
||||
base++;
|
||||
break;
|
||||
case ATOM_IIO_READ:
|
||||
temp = ctx->card->reg_read(ctx->card, CU16(base + 1));
|
||||
temp = ctx->card->ioreg_read(ctx->card, CU16(base + 1));
|
||||
base += 3;
|
||||
break;
|
||||
case ATOM_IIO_WRITE:
|
||||
(void)ctx->card->reg_read(ctx->card, CU16(base + 1));
|
||||
ctx->card->reg_write(ctx->card, CU16(base + 1), temp);
|
||||
ctx->card->ioreg_write(ctx->card, CU16(base + 1), temp);
|
||||
base += 3;
|
||||
break;
|
||||
case ATOM_IIO_CLEAR:
|
||||
|
Reference in New Issue
Block a user