aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2013-03-26 20:47:03 -0400
committerMichael Ellerman <michael@ellerman.id.au>2013-04-17 23:03:53 -0400
commit933ee7119fb14156f46dc8bce8218f62db13c568 (patch)
treed42fe89c8f7a28351e8139743601c45c9c6a32df /drivers
parent9850baed30dd445b0a2bb58045b8edff74953952 (diff)
powerpc: remove PReP platform
PPC_PREP is marked as BROKEN since v2.6.15. Remove all PReP specific code now. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pnp/pnpbios/core.c9
-rw-r--r--drivers/video/cirrusfb.c62
2 files changed, 13 insertions, 58 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
index 5d66e5585f97..9b86a01af631 100644
--- a/drivers/pnp/pnpbios/core.c
+++ b/drivers/pnp/pnpbios/core.c
@@ -513,10 +513,6 @@ static int __init pnpbios_init(void)
513{ 513{
514 int ret; 514 int ret;
515 515
516#if defined(CONFIG_PPC)
517 if (check_legacy_ioport(PNPBIOS_BASE))
518 return -ENODEV;
519#endif
520 if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table) || 516 if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table) ||
521 paravirt_enabled()) { 517 paravirt_enabled()) {
522 printk(KERN_INFO "PnPBIOS: Disabled\n"); 518 printk(KERN_INFO "PnPBIOS: Disabled\n");
@@ -570,10 +566,7 @@ fs_initcall(pnpbios_init);
570static int __init pnpbios_thread_init(void) 566static int __init pnpbios_thread_init(void)
571{ 567{
572 struct task_struct *task; 568 struct task_struct *task;
573#if defined(CONFIG_PPC) 569
574 if (check_legacy_ioport(PNPBIOS_BASE))
575 return 0;
576#endif
577 if (pnpbios_disabled) 570 if (pnpbios_disabled)
578 return 0; 571 return 0;
579 572
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index c3dbbe6e3acf..97db3ba8f237 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -53,12 +53,6 @@
53#ifdef CONFIG_AMIGA 53#ifdef CONFIG_AMIGA
54#include <asm/amigahw.h> 54#include <asm/amigahw.h>
55#endif 55#endif
56#ifdef CONFIG_PPC_PREP
57#include <asm/machdep.h>
58#define isPReP machine_is(prep)
59#else
60#define isPReP 0
61#endif
62 56
63#include <video/vga.h> 57#include <video/vga.h>
64#include <video/cirrus.h> 58#include <video/cirrus.h>
@@ -557,30 +551,18 @@ static int cirrusfb_check_var(struct fb_var_screeninfo *var,
557 break; 551 break;
558 552
559 case 16: 553 case 16:
560 if (isPReP) { 554 var->red.offset = 11;
561 var->red.offset = 2; 555 var->green.offset = 5;
562 var->green.offset = -3; 556 var->blue.offset = 0;
563 var->blue.offset = 8;
564 } else {
565 var->red.offset = 11;
566 var->green.offset = 5;
567 var->blue.offset = 0;
568 }
569 var->red.length = 5; 557 var->red.length = 5;
570 var->green.length = 6; 558 var->green.length = 6;
571 var->blue.length = 5; 559 var->blue.length = 5;
572 break; 560 break;
573 561
574 case 24: 562 case 24:
575 if (isPReP) { 563 var->red.offset = 16;
576 var->red.offset = 0; 564 var->green.offset = 8;
577 var->green.offset = 8; 565 var->blue.offset = 0;
578 var->blue.offset = 16;
579 } else {
580 var->red.offset = 16;
581 var->green.offset = 8;
582 var->blue.offset = 0;
583 }
584 var->red.length = 8; 566 var->red.length = 8;
585 var->green.length = 8; 567 var->green.length = 8;
586 var->blue.length = 8; 568 var->blue.length = 8;
@@ -1874,17 +1856,6 @@ static void cirrusfb_imageblit(struct fb_info *info,
1874 } 1856 }
1875} 1857}
1876 1858
1877#ifdef CONFIG_PPC_PREP
1878#define PREP_VIDEO_BASE ((volatile unsigned long) 0xC0000000)
1879#define PREP_IO_BASE ((volatile unsigned char *) 0x80000000)
1880static void get_prep_addrs(unsigned long *display, unsigned long *registers)
1881{
1882 *display = PREP_VIDEO_BASE;
1883 *registers = (unsigned long) PREP_IO_BASE;
1884}
1885
1886#endif /* CONFIG_PPC_PREP */
1887
1888#ifdef CONFIG_PCI 1859#ifdef CONFIG_PCI
1889static int release_io_ports; 1860static int release_io_ports;
1890 1861
@@ -2139,21 +2110,12 @@ static int cirrusfb_pci_register(struct pci_dev *pdev,
2139 dev_dbg(info->device, " base address 1 is 0x%Lx\n", 2110 dev_dbg(info->device, " base address 1 is 0x%Lx\n",
2140 (unsigned long long)pdev->resource[1].start); 2111 (unsigned long long)pdev->resource[1].start);
2141 2112
2142 if (isPReP) { 2113 dev_dbg(info->device,
2143 pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, 0x00000000); 2114 "Attempt to get PCI info for Cirrus Graphics Card\n");
2144#ifdef CONFIG_PPC_PREP 2115 get_pci_addrs(pdev, &board_addr, &info->fix.mmio_start);
2145 get_prep_addrs(&board_addr, &info->fix.mmio_start); 2116 /* FIXME: this forces VGA. alternatives? */
2146#endif 2117 cinfo->regbase = NULL;
2147 /* PReP dies if we ioremap the IO registers, but it works w/out... */ 2118 cinfo->laguna_mmio = ioremap(info->fix.mmio_start, 0x1000);
2148 cinfo->regbase = (char __iomem *) info->fix.mmio_start;
2149 } else {
2150 dev_dbg(info->device,
2151 "Attempt to get PCI info for Cirrus Graphics Card\n");
2152 get_pci_addrs(pdev, &board_addr, &info->fix.mmio_start);
2153 /* FIXME: this forces VGA. alternatives? */
2154 cinfo->regbase = NULL;
2155 cinfo->laguna_mmio = ioremap(info->fix.mmio_start, 0x1000);
2156 }
2157 2119
2158 dev_dbg(info->device, "Board address: 0x%lx, register address: 0x%lx\n", 2120 dev_dbg(info->device, "Board address: 0x%lx, register address: 0x%lx\n",
2159 board_addr, info->fix.mmio_start); 2121 board_addr, info->fix.mmio_start);