Skip to content

Commit 933ee71

Browse files
pebollempe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 9850bae commit 933ee71

File tree

12 files changed

+19
-242
lines changed

12 files changed

+19
-242
lines changed

Documentation/powerpc/00-INDEX

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ hvcs.txt
1414
- IBM "Hypervisor Virtual Console Server" Installation Guide
1515
mpc52xx.txt
1616
- Linux 2.6.x on MPC52xx family
17-
sound.txt
18-
- info on sound support under Linux/PPC
19-
zImage_layout.txt
20-
- info on the kernel images for Linux/PPC
2117
qe_firmware.txt
2218
- describes the layout of firmware binaries for the Freescale QUICC
2319
Engine and the code that parses and uploads the microcode therein.

Documentation/powerpc/sound.txt

Lines changed: 0 additions & 81 deletions
This file was deleted.

Documentation/powerpc/zImage_layout.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.

arch/powerpc/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ menu "Bus options"
647647

648648
config ISA
649649
bool "Support for ISA-bus hardware"
650-
depends on PPC_PREP || PPC_CHRP
650+
depends on PPC_CHRP
651651
select PPC_I8259
652652
help
653653
Find out whether you have ISA slots on your motherboard. ISA is the
654654
name of a bus system, i.e. the way the CPU talks to the other stuff
655655
inside your box. If you have an Apple machine, say N here; if you
656-
have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
657-
you have an embedded board, consult your board documentation.
656+
have an IBM RS/6000 or pSeries machine, say Y. If you have an
657+
embedded board, consult your board documentation.
658658

659659
config ZONE_DMA
660660
bool
@@ -968,7 +968,7 @@ config TASK_SIZE_BOOL
968968

969969
config TASK_SIZE
970970
hex "Size of user task space" if TASK_SIZE_BOOL
971-
default "0x80000000" if PPC_PREP || PPC_8xx
971+
default "0x80000000" if PPC_8xx
972972
default "0xc0000000"
973973

974974
config CONSISTENT_SIZE_BOOL

arch/powerpc/include/asm/dma.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
*
1717
* None of this really applies for Power Macintoshes. There is
1818
* basically just enough here to get kernel/dma.c to compile.
19-
*
20-
* There may be some comments or restrictions made here which are
21-
* not valid for the PReP platform. Take what you read
22-
* with a grain of salt.
2319
*/
2420

2521
#include <asm/io.h>
@@ -57,7 +53,6 @@
5753
* - page registers for 5-7 don't use data bit 0, represent 128K pages
5854
* - page registers for 0-3 use bit 0, represent 64K pages
5955
*
60-
* On PReP, DMA transfers are limited to the lower 16MB of _physical_ memory.
6156
* On CHRP, the W83C553F (and VLSI Tollgate?) support full 32 bit addressing.
6257
* Note that addresses loaded into registers must be _physical_ addresses,
6358
* not logical addresses (which may differ if paging is active).

arch/powerpc/include/asm/io.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
extern int check_legacy_ioport(unsigned long base_port);
1616
#define I8042_DATA_REG 0x60
1717
#define FDC_BASE 0x3f0
18-
/* only relevant for PReP */
19-
#define _PIDXR 0x279
20-
#define _PNPWRP 0xa79
21-
#define PNPBIOS_BASE 0xf000
2218

2319
#if defined(CONFIG_PPC64) && defined(CONFIG_PCI)
2420
extern struct pci_dev *isa_bridge_pcidev;

arch/powerpc/include/asm/processor.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* -- BenH.
4141
*/
4242

43-
/* PREP sub-platform types see residual.h for these */
43+
/* PREP sub-platform types. Unused */
4444
#define _PREP_Motorola 0x01 /* motorola prep */
4545
#define _PREP_Firm 0x02 /* firmworks prep */
4646
#define _PREP_IBM 0x00 /* ibm prep */
@@ -56,13 +56,6 @@
5656

5757
extern int _chrp_type;
5858

59-
#ifdef CONFIG_PPC_PREP
60-
61-
/* what kind of prep workstation we are */
62-
extern int _prep_type;
63-
64-
#endif /* CONFIG_PPC_PREP */
65-
6659
#endif /* defined(__KERNEL__) && defined(CONFIG_PPC32) */
6760

6861
/*

arch/powerpc/kernel/setup-common.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -621,12 +621,6 @@ int check_legacy_ioport(unsigned long base_port)
621621
case FDC_BASE: /* FDC1 */
622622
np = of_find_node_by_type(NULL, "fdc");
623623
break;
624-
#ifdef CONFIG_PPC_PREP
625-
case _PIDXR:
626-
case _PNPWRP:
627-
case PNPBIOS_BASE:
628-
/* implement me */
629-
#endif
630624
default:
631625
/* ipmi is supposed to fail here */
632626
break;

arch/powerpc/platforms/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ source "arch/powerpc/platforms/chrp/Kconfig"
66
source "arch/powerpc/platforms/512x/Kconfig"
77
source "arch/powerpc/platforms/52xx/Kconfig"
88
source "arch/powerpc/platforms/powermac/Kconfig"
9-
source "arch/powerpc/platforms/prep/Kconfig"
109
source "arch/powerpc/platforms/maple/Kconfig"
1110
source "arch/powerpc/platforms/pasemi/Kconfig"
1211
source "arch/powerpc/platforms/ps3/Kconfig"
@@ -233,7 +232,7 @@ endmenu
233232

234233
config PPC601_SYNC_FIX
235234
bool "Workarounds for PPC601 bugs"
236-
depends on 6xx && (PPC_PREP || PPC_PMAC)
235+
depends on 6xx && PPC_PMAC
237236
help
238237
Some versions of the PPC601 (the first PowerPC chip) have bugs which
239238
mean that extra synchronization instructions are required near

arch/powerpc/platforms/prep/Kconfig

Lines changed: 0 additions & 23 deletions
This file was deleted.

drivers/pnp/pnpbios/core.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,6 @@ static int __init pnpbios_init(void)
513513
{
514514
int ret;
515515

516-
#if defined(CONFIG_PPC)
517-
if (check_legacy_ioport(PNPBIOS_BASE))
518-
return -ENODEV;
519-
#endif
520516
if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table) ||
521517
paravirt_enabled()) {
522518
printk(KERN_INFO "PnPBIOS: Disabled\n");
@@ -570,10 +566,7 @@ fs_initcall(pnpbios_init);
570566
static int __init pnpbios_thread_init(void)
571567
{
572568
struct task_struct *task;
573-
#if defined(CONFIG_PPC)
574-
if (check_legacy_ioport(PNPBIOS_BASE))
575-
return 0;
576-
#endif
569+
577570
if (pnpbios_disabled)
578571
return 0;
579572

drivers/video/cirrusfb.c

Lines changed: 12 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@
5353
#ifdef CONFIG_AMIGA
5454
#include <asm/amigahw.h>
5555
#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
6256

6357
#include <video/vga.h>
6458
#include <video/cirrus.h>
@@ -557,30 +551,18 @@ static int cirrusfb_check_var(struct fb_var_screeninfo *var,
557551
break;
558552

559553
case 16:
560-
if (isPReP) {
561-
var->red.offset = 2;
562-
var->green.offset = -3;
563-
var->blue.offset = 8;
564-
} else {
565-
var->red.offset = 11;
566-
var->green.offset = 5;
567-
var->blue.offset = 0;
568-
}
554+
var->red.offset = 11;
555+
var->green.offset = 5;
556+
var->blue.offset = 0;
569557
var->red.length = 5;
570558
var->green.length = 6;
571559
var->blue.length = 5;
572560
break;
573561

574562
case 24:
575-
if (isPReP) {
576-
var->red.offset = 0;
577-
var->green.offset = 8;
578-
var->blue.offset = 16;
579-
} else {
580-
var->red.offset = 16;
581-
var->green.offset = 8;
582-
var->blue.offset = 0;
583-
}
563+
var->red.offset = 16;
564+
var->green.offset = 8;
565+
var->blue.offset = 0;
584566
var->red.length = 8;
585567
var->green.length = 8;
586568
var->blue.length = 8;
@@ -1874,17 +1856,6 @@ static void cirrusfb_imageblit(struct fb_info *info,
18741856
}
18751857
}
18761858

1877-
#ifdef CONFIG_PPC_PREP
1878-
#define PREP_VIDEO_BASE ((volatile unsigned long) 0xC0000000)
1879-
#define PREP_IO_BASE ((volatile unsigned char *) 0x80000000)
1880-
static 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-
18881859
#ifdef CONFIG_PCI
18891860
static int release_io_ports;
18901861

@@ -2139,21 +2110,12 @@ static int cirrusfb_pci_register(struct pci_dev *pdev,
21392110
dev_dbg(info->device, " base address 1 is 0x%Lx\n",
21402111
(unsigned long long)pdev->resource[1].start);
21412112

2142-
if (isPReP) {
2143-
pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, 0x00000000);
2144-
#ifdef CONFIG_PPC_PREP
2145-
get_prep_addrs(&board_addr, &info->fix.mmio_start);
2146-
#endif
2147-
/* PReP dies if we ioremap the IO registers, but it works w/out... */
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-
}
2113+
dev_dbg(info->device,
2114+
"Attempt to get PCI info for Cirrus Graphics Card\n");
2115+
get_pci_addrs(pdev, &board_addr, &info->fix.mmio_start);
2116+
/* FIXME: this forces VGA. alternatives? */
2117+
cinfo->regbase = NULL;
2118+
cinfo->laguna_mmio = ioremap(info->fix.mmio_start, 0x1000);
21572119

21582120
dev_dbg(info->device, "Board address: 0x%lx, register address: 0x%lx\n",
21592121
board_addr, info->fix.mmio_start);

0 commit comments

Comments
 (0)