tests: Adjust tco-test to use qpci_legacy_iomap()
Avoid tco-test making assumptions about the internal format of the address tokens passed to PCI IO accessors, by using the new qpci_legacy_iomap() function. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
a7b85b6062
commit
9ff50be2ff
@ -70,7 +70,7 @@ static void test_init(TestData *d)
|
||||
/* set Root Complex BAR */
|
||||
qpci_config_writel(d->dev, ICH9_LPC_RCBA, RCBA_BASE_ADDR | 0x1);
|
||||
|
||||
d->tco_io_base = (void *)((uintptr_t)PM_IO_BASE_ADDR + 0x60);
|
||||
d->tco_io_base = qpci_legacy_iomap(d->dev, PM_IO_BASE_ADDR + 0x60);
|
||||
}
|
||||
|
||||
static void stop_tco(const TestData *d)
|
||||
|
Loading…
Reference in New Issue
Block a user