From 3391c580960febcb9fa8f686f9666adaa462c349 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Tue, 4 Feb 2025 21:25:17 +0100 Subject: parisc: Add LMMIO range for internal artist graphic card Register a LMMIO range for the internal graphic card. That allow to boot with STI graphic card (artist) when booting on a 64-bit machine. Signed-off-by: Helge Deller --- src/fw/pciinit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fw/pciinit.c') diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index ce64fdb..7b5aaaf 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -574,11 +574,14 @@ static void parisc_mem_addr_setup(struct pci_device *dev, void *arg) } #endif /* CONFIG_PARISC */ -static unsigned long add_lmmio_directed_range(unsigned long size, int rope) +unsigned long add_lmmio_directed_range(unsigned long size, int rope) { #ifdef CONFIG_PARISC int i; + if (!has_astro) + return -1; + /* Astro has 4 directed ranges. */ for (i = 0; i < 4; i++) { unsigned long addr; @@ -590,7 +593,7 @@ static unsigned long add_lmmio_directed_range(unsigned long size, int rope) /* fixme for multiple addresses */ /* Linux driver currently only allows one distr. range per IOC */ - addr = 0xfa000000; /* graphics card area for parisc, f8 is used by artist */ + addr = 0xf8000000; /* graphics card area for parisc, LASI_GFX_HPA is usually artist */ addr += i * 0x02000000; /* clear bit 0 of address to disable LMMIO while we modify things */ -- cgit v1.1