Skip to content

Commit e5d310b

Browse files
Brent CasavantLinus Torvalds
authored andcommitted
[PATCH] ioc4: CONFIG split
The SGI IOC4 I/O controller chip drivers are currently all configured by CONFIG_BLK_DEV_SGIIOC4. This is undesirable as not all IOC4 hardware features are needed by all systems. This patch adds two configuration variables, CONFIG_SGI_IOC4 for core IOC4 driver support (see patch 1/3 in this series for further explanation) and CONFIG_SERIAL_SGI_IOC4 to independently enable serial port support. Signed-off-by: Brent Casavant <bcasavan@sgi.com> Acked-by: Pat Gefre <pfg@sgi.com> Acked-by: Jeremy Higdon <jeremy@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 22329b5 commit e5d310b

9 files changed

Lines changed: 48 additions & 5 deletions

File tree

‎arch/ia64/configs/sn2_defconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ CONFIG_SGI_MBCS=m
588588
CONFIG_SERIAL_CORE=y
589589
CONFIG_SERIAL_CORE_CONSOLE=y
590590
CONFIG_SERIAL_SGI_L1_CONSOLE=y
591+
CONFIG_SERIAL_SGI_IOC4=y
591592
CONFIG_UNIX98_PTYS=y
592593
CONFIG_LEGACY_PTYS=y
593594
CONFIG_LEGACY_PTY_COUNT=256
@@ -787,6 +788,11 @@ CONFIG_INFINIBAND_MTHCA=m
787788
CONFIG_INFINIBAND_IPOIB=m
788789
# CONFIG_INFINIBAND_IPOIB_DEBUG is not set
789790

791+
#
792+
# SN Devices
793+
#
794+
CONFIG_SGI_IOC4=y
795+
790796
#
791797
# File systems
792798
#

‎arch/ia64/defconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ CONFIG_SERIAL_8250_SHARE_IRQ=y
638638
CONFIG_SERIAL_CORE=y
639639
CONFIG_SERIAL_CORE_CONSOLE=y
640640
CONFIG_SERIAL_SGI_L1_CONSOLE=y
641+
CONFIG_SERIAL_SGI_IOC4=y
641642
CONFIG_UNIX98_PTYS=y
642643
CONFIG_LEGACY_PTYS=y
643644
CONFIG_LEGACY_PTY_COUNT=256
@@ -942,6 +943,11 @@ CONFIG_INFINIBAND_MTHCA=m
942943
CONFIG_INFINIBAND_IPOIB=m
943944
# CONFIG_INFINIBAND_IPOIB_DEBUG is not set
944945

946+
#
947+
# SN Devices
948+
#
949+
CONFIG_SGI_IOC4=y
950+
945951
#
946952
# File systems
947953
#

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ source "drivers/mmc/Kconfig"
5858

5959
source "drivers/infiniband/Kconfig"
6060

61+
source "drivers/sn/Kconfig"
62+
6163
endmenu

‎drivers/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ obj-$(CONFIG_EISA) += eisa/
6161
obj-$(CONFIG_CPU_FREQ) += cpufreq/
6262
obj-$(CONFIG_MMC) += mmc/
6363
obj-$(CONFIG_INFINIBAND) += infiniband/
64-
obj-$(CONFIG_BLK_DEV_SGIIOC4) += sn/
64+
obj-$(CONFIG_SGI_IOC4) += sn/
6565
obj-y += firmware/
6666
obj-$(CONFIG_CRYPTO) += crypto/

‎drivers/ide/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,8 @@ config BLK_DEV_SVWKS
672672
chipsets.
673673

674674
config BLK_DEV_SGIIOC4
675-
tristate "Silicon Graphics IOC4 chipset support"
676-
depends on IA64_SGI_SN2 || IA64_GENERIC
675+
tristate "Silicon Graphics IOC4 chipset ATA/ATAPI support"
676+
depends on (IA64_SGI_SN2 || IA64_GENERIC) && SGI_IOC4
677677
help
678678
This driver adds PIO & MultiMode DMA-2 support for the SGI IOC4
679679
chipset, which has one channel and can support two devices.

‎drivers/serial/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,4 +843,13 @@ config SERIAL_JSM
843843
To compile this driver as a module, choose M here: the
844844
module will be called jsm.
845845

846+
config SERIAL_SGI_IOC4
847+
tristate "SGI IOC4 controller serial support"
848+
depends on (IA64_GENERIC || IA64_SGI_SN2) && SGI_IOC4
849+
select SERIAL_CORE
850+
help
851+
If you have an SGI Altix with an IOC4 based Base IO card
852+
and wish to use the serial ports on this card, say Y.
853+
Otherwise, say N.
854+
846855
endmenu

‎drivers/serial/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ obj-$(CONFIG_ETRAX_SERIAL) += crisv10.o
5151
obj-$(CONFIG_SERIAL_JSM) += jsm/
5252
obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o
5353
obj-$(CONFIG_SERIAL_VR41XX) += vr41xx_siu.o
54-
obj-$(CONFIG_BLK_DEV_SGIIOC4) += ioc4_serial.o
54+
obj-$(CONFIG_SERIAL_SGI_IOC4) += ioc4_serial.o

‎drivers/sn/Kconfig‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Miscellaneous SN-specific devices
3+
#
4+
5+
menu "SN Devices"
6+
7+
config SGI_IOC4
8+
tristate "SGI IOC4 Base IO support"
9+
depends on IA64_GENERIC || IA64_SGI_SN2
10+
default m
11+
---help---
12+
This option enables basic support for the SGI IOC4-based Base IO
13+
controller card. This option does not enable any specific
14+
functions on such a card, but provides necessary infrastructure
15+
for other drivers to utilize.
16+
17+
If you have an SGI Altix with an IOC4-based
18+
I/O controller say Y. Otherwise say N.
19+
20+
endmenu

‎drivers/sn/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
#
44
#
55

6-
obj-$(CONFIG_BLK_DEV_SGIIOC4) += ioc4.o
6+
obj-$(CONFIG_SGI_IOC4) += ioc4.o

0 commit comments

Comments
 (0)