Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78031
b: refs/heads/master
c: 19388fb
h: refs/heads/master
i:
  78029: ced8b84
  78027: e8bad57
  78023: a4abf03
  78015: 1ff3e58
v: v3
  • Loading branch information
Ralf Baechle committed Jan 29, 2008
1 parent 9f2754c commit d9ca7e6
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 35 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ab7aefc4d43a6dee26c891b41ef9c7a67d2379b
refs/heads/master: 19388fb092d89e179575bd0b44f51b57e175edf5
6 changes: 0 additions & 6 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ config MACH_JAZZ
select I8253
select I8259
select ISA
select PCSPEAKER
select SYS_HAS_CPU_R4X00
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
Expand Down Expand Up @@ -378,7 +377,6 @@ config QEMU
select I8259
select IRQ_CPU
select ISA
select PCSPEAKER
select SWAP_IO_SPACE
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_EARLY_PRINTK
Expand Down Expand Up @@ -590,7 +588,6 @@ config SNI_RM
select I8253
select I8259
select ISA
select PCSPEAKER
select SWAP_IO_SPACE if CPU_BIG_ENDIAN
select SYS_HAS_CPU_R4X00
select SYS_HAS_CPU_R5000
Expand Down Expand Up @@ -1995,9 +1992,6 @@ config MMU
config I8253
bool

config PCSPEAKER
bool

config ZONE_DMA32
bool

Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/mips/jazz/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,19 @@ static struct platform_device jazz_cmos_pdev = {
.resource = jazz_cmos_rsrc
};

static struct platform_device pcspeaker_pdev = {
.name = "pcspkr",
.id = -1,
};

static int __init jazz_setup_devinit(void)
{
platform_device_register(&jazz_serial8250_device);
platform_device_register(&jazz_esp_pdev);
platform_device_register(&jazz_sonic_pdev);
platform_device_register(&jazz_cmos_pdev);
platform_device_register(&pcspeaker_pdev);

return 0;
}

Expand Down
28 changes: 0 additions & 28 deletions trunk/arch/mips/kernel/pcspeaker.c

This file was deleted.

15 changes: 15 additions & 0 deletions trunk/arch/mips/qemu/q-setup.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <linux/init.h>
#include <linux/platform_device.h>

#include <asm/i8253.h>
#include <asm/io.h>
Expand All @@ -20,3 +21,17 @@ void __init plat_mem_setup(void)
{
qemu_reboot_setup();
}

static struct platform_device pcspeaker_pdev = {
.name = "pcspkr",
.id = -1,
};

static int __init qemu_platform_devinit(void)
{
platform_device_register(&pcspeaker_pdev);

return 0;
}

device_initcall(qemu_platform_devinit);
7 changes: 7 additions & 0 deletions trunk/arch/mips/sni/pcit.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ static struct platform_device pcit_cmos_device = {
.resource = pcit_cmos_rsrc
};

static struct platform_device pcit_pcspeaker_pdev = {
.name = "pcspkr",
.id = -1,
};

static struct resource sni_io_resource = {
.start = 0x00000000UL,
.end = 0x03bfffffUL,
Expand Down Expand Up @@ -277,11 +282,13 @@ static int __init snirm_pcit_setup_devinit(void)
case SNI_BRD_PCI_TOWER:
platform_device_register(&pcit_serial8250_device);
platform_device_register(&pcit_cmos_device);
platform_device_register(&pcit_pcspeaker_pdev);
break;

case SNI_BRD_PCI_TOWER_CPLUS:
platform_device_register(&pcit_cplus_serial8250_device);
platform_device_register(&pcit_cmos_device);
platform_device_register(&pcit_pcspeaker_pdev);
break;
}
return 0;
Expand Down

0 comments on commit d9ca7e6

Please sign in to comment.