Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 189470
Collapse All | Expand All

(-)a/Documentation/kernel-parameters.txt (-5 lines)
Lines 850-860 Link Here
850
	lasi=		[HW,SCSI] PARISC LASI driver for the 53c700 chip
850
	lasi=		[HW,SCSI] PARISC LASI driver for the 53c700 chip
851
			Format: addr:<io>,irq:<irq>
851
			Format: addr:<io>,irq:<irq>
852
852
853
	legacy_serial.force [HW,IA-32,X86-64]
854
			Probe for COM ports at legacy addresses even
855
			if PNPBIOS or ACPI should describe them.  This
856
			is for working around firmware defects.
857
858
	llsc*=		[IA64] See function print_params() in
853
	llsc*=		[IA64] See function print_params() in
859
			arch/ia64/sn/kernel/llsc4.c.
854
			arch/ia64/sn/kernel/llsc4.c.
860
855
(-)a/arch/i386/kernel/Makefile (-1 lines)
Lines 35-41 Link Here
35
obj-$(CONFIG_ACPI_SRAT) 	+= srat.o
35
obj-$(CONFIG_ACPI_SRAT) 	+= srat.o
36
obj-$(CONFIG_EFI) 		+= efi.o efi_stub.o
36
obj-$(CONFIG_EFI) 		+= efi.o efi_stub.o
37
obj-$(CONFIG_DOUBLEFAULT) 	+= doublefault.o
37
obj-$(CONFIG_DOUBLEFAULT) 	+= doublefault.o
38
obj-$(CONFIG_SERIAL_8250)	+= legacy_serial.o
39
obj-$(CONFIG_VM86)		+= vm86.o
38
obj-$(CONFIG_VM86)		+= vm86.o
40
obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
39
obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
41
obj-$(CONFIG_HPET_TIMER) 	+= hpet.o
40
obj-$(CONFIG_HPET_TIMER) 	+= hpet.o
(-)a/arch/i386/kernel/legacy_serial.c (-67 lines)
Lines 1-67 Link Here
1
/*
2
 * Legacy COM port devices for x86 platforms without PNPBIOS or ACPI.
3
 * Data taken from include/asm-i386/serial.h.
4
 *
5
 * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
6
 *	Bjorn Helgaas <bjorn.helgaas@hp.com>
7
 *
8
 * This program is free software; you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License version 2 as
10
 * published by the Free Software Foundation.
11
 */
12
#include <linux/module.h>
13
#include <linux/init.h>
14
#include <linux/pnp.h>
15
#include <linux/serial_8250.h>
16
17
/* Standard COM flags (except for COM4, because of the 8514 problem) */
18
#ifdef CONFIG_SERIAL_DETECT_IRQ
19
#define COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ)
20
#define COM4_FLAGS (UPF_BOOT_AUTOCONF | UPF_AUTO_IRQ)
21
#else
22
#define COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST)
23
#define COM4_FLAGS UPF_BOOT_AUTOCONF
24
#endif
25
26
#define PORT(_base,_irq,_flags)				\
27
	{						\
28
		.iobase		= _base,		\
29
		.irq		= _irq,			\
30
		.uartclk	= 1843200,		\
31
		.iotype		= UPIO_PORT,		\
32
		.flags		= _flags,		\
33
	}
34
35
static struct plat_serial8250_port x86_com_data[] = {
36
	PORT(0x3F8, 4, COM_FLAGS),
37
	PORT(0x2F8, 3, COM_FLAGS),
38
	PORT(0x3E8, 4, COM_FLAGS),
39
	PORT(0x2E8, 3, COM4_FLAGS),
40
	{ },
41
};
42
43
static struct platform_device x86_com_device = {
44
	.name			= "serial8250",
45
	.id			= PLAT8250_DEV_PLATFORM,
46
	.dev			= {
47
		.platform_data	= x86_com_data,
48
	},
49
};
50
51
static int force_legacy_probe;
52
module_param_named(force, force_legacy_probe, bool, 0);
53
MODULE_PARM_DESC(force, "Force legacy serial port probe");
54
55
static int __init serial8250_x86_com_init(void)
56
{
57
	if (pnp_platform_devices && !force_legacy_probe)
58
		return -ENODEV;
59
60
	return platform_device_register(&x86_com_device);
61
}
62
63
module_init(serial8250_x86_com_init);
64
65
MODULE_AUTHOR("Bjorn Helgaas");
66
MODULE_LICENSE("GPL");
67
MODULE_DESCRIPTION("Generic 8250/16x50 legacy probe module");
(-)a/arch/x86_64/kernel/Makefile (-2 lines)
Lines 32-38 Link Here
32
obj-$(CONFIG_IOMMU)		+= pci-gart.o aperture.o
32
obj-$(CONFIG_IOMMU)		+= pci-gart.o aperture.o
33
obj-$(CONFIG_CALGARY_IOMMU)	+= pci-calgary.o tce.o
33
obj-$(CONFIG_CALGARY_IOMMU)	+= pci-calgary.o tce.o
34
obj-$(CONFIG_SWIOTLB)		+= pci-swiotlb.o
34
obj-$(CONFIG_SWIOTLB)		+= pci-swiotlb.o
35
obj-$(CONFIG_SERIAL_8250)	+= legacy_serial.o
36
obj-$(CONFIG_KPROBES)		+= kprobes.o
35
obj-$(CONFIG_KPROBES)		+= kprobes.o
37
obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer.o
36
obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer.o
38
obj-$(CONFIG_X86_VSMP)		+= vsmp.o
37
obj-$(CONFIG_X86_VSMP)		+= vsmp.o
Lines 50-56 Link Here
50
49
51
therm_throt-y                   += ../../i386/kernel/cpu/mcheck/therm_throt.o
50
therm_throt-y                   += ../../i386/kernel/cpu/mcheck/therm_throt.o
52
bootflag-y			+= ../../i386/kernel/bootflag.o
51
bootflag-y			+= ../../i386/kernel/bootflag.o
53
legacy_serial-y			+= ../../i386/kernel/legacy_serial.o
54
cpuid-$(subst m,y,$(CONFIG_X86_CPUID))  += ../../i386/kernel/cpuid.o
52
cpuid-$(subst m,y,$(CONFIG_X86_CPUID))  += ../../i386/kernel/cpuid.o
55
topology-y                     += ../../i386/kernel/topology.o
53
topology-y                     += ../../i386/kernel/topology.o
56
microcode-$(subst m,y,$(CONFIG_MICROCODE))  += ../../i386/kernel/microcode.o
54
microcode-$(subst m,y,$(CONFIG_MICROCODE))  += ../../i386/kernel/microcode.o
(-)a/drivers/serial/Kconfig (-9 / +5 lines)
Lines 74-94 Link Here
74
	depends on SERIAL_8250 && PCI
74
	depends on SERIAL_8250 && PCI
75
	default SERIAL_8250
75
	default SERIAL_8250
76
	help
76
	help
77
	  Say Y here if you have PCI serial ports.
77
	  This builds standard PCI serial support. You may be able to
78
78
	  disable this feature if you only need legacy serial support.
79
	  To compile this driver as a module, choose M here: the module
79
	  Saves about 9K.
80
	  will be called 8250_pci.
81
80
82
config SERIAL_8250_PNP
81
config SERIAL_8250_PNP
83
	tristate "8250/16550 PNP device support" if EMBEDDED
82
	tristate "8250/16550 PNP device support" if EMBEDDED
84
	depends on SERIAL_8250 && PNP
83
	depends on SERIAL_8250 && PNP
85
	default SERIAL_8250
84
	default SERIAL_8250
86
	help
85
	help
87
	  Say Y here if you have serial ports described by PNPBIOS or ACPI.
86
	  This builds standard PNP serial support. You may be able to
88
	  These are typically ports built into the system board.
87
	  disable this feature if you only need legacy serial support.
89
90
	  To compile this driver as a module, choose M here: the module
91
	  will be called 8250_pnp.
92
88
93
config SERIAL_8250_HP300
89
config SERIAL_8250_HP300
94
	tristate
90
	tristate
(-)a/include/asm-i386/serial.h (+16 lines)
Lines 11-13 Link Here
11
 * megabits/second; but this requires the faster clock.
11
 * megabits/second; but this requires the faster clock.
12
 */
12
 */
13
#define BASE_BAUD ( 1843200 / 16 )
13
#define BASE_BAUD ( 1843200 / 16 )
14
15
/* Standard COM flags (except for COM4, because of the 8514 problem) */
16
#ifdef CONFIG_SERIAL_DETECT_IRQ
17
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
18
#define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
19
#else
20
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
21
#define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
22
#endif
23
24
#define SERIAL_PORT_DFNS			\
25
	/* UART CLK   PORT IRQ     FLAGS        */			\
26
	{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },	/* ttyS0 */	\
27
	{ 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },	/* ttyS1 */	\
28
	{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },	/* ttyS2 */	\
29
	{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },	/* ttyS3 */
(-)a/include/asm-x86_64/serial.h (+16 lines)
Lines 11-13 Link Here
11
 * megabits/second; but this requires the faster clock.
11
 * megabits/second; but this requires the faster clock.
12
 */
12
 */
13
#define BASE_BAUD ( 1843200 / 16 )
13
#define BASE_BAUD ( 1843200 / 16 )
14
15
/* Standard COM flags (except for COM4, because of the 8514 problem) */
16
#ifdef CONFIG_SERIAL_DETECT_IRQ
17
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
18
#define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
19
#else
20
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
21
#define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
22
#endif
23
24
#define SERIAL_PORT_DFNS			\
25
	/* UART CLK   PORT IRQ     FLAGS        */			\
26
	{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },	/* ttyS0 */	\
27
	{ 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },	/* ttyS1 */	\
28
	{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },	/* ttyS2 */	\
29
	{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },	/* ttyS3 */

Return to bug 189470