aboutsummaryrefslogtreecommitdiff
path: root/src/fw/pciinit.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2025-02-04 21:25:17 +0100
committerHelge Deller <deller@gmx.de>2025-02-04 21:25:17 +0100
commit3391c580960febcb9fa8f686f9666adaa462c349 (patch)
tree78c6136d29bd6f065547a3562307aef2bb7e41b7 /src/fw/pciinit.c
parent1c516b481339f511d83a4afba9a48d1ac904e93e (diff)
downloadseabios-hppa-3391c580960febcb9fa8f686f9666adaa462c349.zip
seabios-hppa-3391c580960febcb9fa8f686f9666adaa462c349.tar.gz
seabios-hppa-3391c580960febcb9fa8f686f9666adaa462c349.tar.bz2
parisc: Add LMMIO range for internal artist graphic cardHEADmaster-nextmaster
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 <deller@gmx.de>
Diffstat (limited to 'src/fw/pciinit.c')
-rw-r--r--src/fw/pciinit.c7
1 files changed, 5 insertions, 2 deletions
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 */