diff options
| author | Brent Casavant <bcasavan@sgi.com> | 2005-06-21 20:16:01 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 21:46:32 -0400 |
| commit | e5d310b349b2cbcc0dab31139c92201f332695bb (patch) | |
| tree | 2884b77c09a575d8252bb490d384e8f1ece19d42 | |
| parent | 22329b511a97557b293583194037d1f4c71e1504 (diff) | |
[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>
| -rw-r--r-- | arch/ia64/configs/sn2_defconfig | 6 | ||||
| -rw-r--r-- | arch/ia64/defconfig | 6 | ||||
| -rw-r--r-- | drivers/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/Makefile | 2 | ||||
| -rw-r--r-- | drivers/ide/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/serial/Kconfig | 9 | ||||
| -rw-r--r-- | drivers/serial/Makefile | 2 | ||||
| -rw-r--r-- | drivers/sn/Kconfig | 20 | ||||
| -rw-r--r-- | drivers/sn/Makefile | 2 |
9 files changed, 48 insertions, 5 deletions
diff --git a/arch/ia64/configs/sn2_defconfig b/arch/ia64/configs/sn2_defconfig index 6ff7107fee4d..a01bb02d074d 100644 --- a/arch/ia64/configs/sn2_defconfig +++ b/arch/ia64/configs/sn2_defconfig | |||
| @@ -588,6 +588,7 @@ CONFIG_SGI_MBCS=m | |||
| 588 | CONFIG_SERIAL_CORE=y | 588 | CONFIG_SERIAL_CORE=y |
| 589 | CONFIG_SERIAL_CORE_CONSOLE=y | 589 | CONFIG_SERIAL_CORE_CONSOLE=y |
| 590 | CONFIG_SERIAL_SGI_L1_CONSOLE=y | 590 | CONFIG_SERIAL_SGI_L1_CONSOLE=y |
| 591 | CONFIG_SERIAL_SGI_IOC4=y | ||
| 591 | CONFIG_UNIX98_PTYS=y | 592 | CONFIG_UNIX98_PTYS=y |
| 592 | CONFIG_LEGACY_PTYS=y | 593 | CONFIG_LEGACY_PTYS=y |
| 593 | CONFIG_LEGACY_PTY_COUNT=256 | 594 | CONFIG_LEGACY_PTY_COUNT=256 |
| @@ -788,6 +789,11 @@ CONFIG_INFINIBAND_IPOIB=m | |||
| 788 | # CONFIG_INFINIBAND_IPOIB_DEBUG is not set | 789 | # CONFIG_INFINIBAND_IPOIB_DEBUG is not set |
| 789 | 790 | ||
| 790 | # | 791 | # |
| 792 | # SN Devices | ||
| 793 | # | ||
| 794 | CONFIG_SGI_IOC4=y | ||
| 795 | |||
| 796 | # | ||
| 791 | # File systems | 797 | # File systems |
| 792 | # | 798 | # |
| 793 | CONFIG_EXT2_FS=y | 799 | CONFIG_EXT2_FS=y |
diff --git a/arch/ia64/defconfig b/arch/ia64/defconfig index 7539e83bf054..9997ef45ab23 100644 --- a/arch/ia64/defconfig +++ b/arch/ia64/defconfig | |||
| @@ -638,6 +638,7 @@ CONFIG_SERIAL_8250_SHARE_IRQ=y | |||
| 638 | CONFIG_SERIAL_CORE=y | 638 | CONFIG_SERIAL_CORE=y |
| 639 | CONFIG_SERIAL_CORE_CONSOLE=y | 639 | CONFIG_SERIAL_CORE_CONSOLE=y |
| 640 | CONFIG_SERIAL_SGI_L1_CONSOLE=y | 640 | CONFIG_SERIAL_SGI_L1_CONSOLE=y |
| 641 | CONFIG_SERIAL_SGI_IOC4=y | ||
| 641 | CONFIG_UNIX98_PTYS=y | 642 | CONFIG_UNIX98_PTYS=y |
| 642 | CONFIG_LEGACY_PTYS=y | 643 | CONFIG_LEGACY_PTYS=y |
| 643 | CONFIG_LEGACY_PTY_COUNT=256 | 644 | CONFIG_LEGACY_PTY_COUNT=256 |
| @@ -943,6 +944,11 @@ CONFIG_INFINIBAND_IPOIB=m | |||
| 943 | # CONFIG_INFINIBAND_IPOIB_DEBUG is not set | 944 | # CONFIG_INFINIBAND_IPOIB_DEBUG is not set |
| 944 | 945 | ||
| 945 | # | 946 | # |
| 947 | # SN Devices | ||
| 948 | # | ||
| 949 | CONFIG_SGI_IOC4=y | ||
| 950 | |||
| 951 | # | ||
| 946 | # File systems | 952 | # File systems |
| 947 | # | 953 | # |
| 948 | CONFIG_EXT2_FS=y | 954 | CONFIG_EXT2_FS=y |
diff --git a/drivers/Kconfig b/drivers/Kconfig index ed41d9036bfc..aed4a9b97c14 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig | |||
| @@ -58,4 +58,6 @@ source "drivers/mmc/Kconfig" | |||
| 58 | 58 | ||
| 59 | source "drivers/infiniband/Kconfig" | 59 | source "drivers/infiniband/Kconfig" |
| 60 | 60 | ||
| 61 | source "drivers/sn/Kconfig" | ||
| 62 | |||
| 61 | endmenu | 63 | endmenu |
diff --git a/drivers/Makefile b/drivers/Makefile index 15681de688f4..3167be54fedd 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
| @@ -61,6 +61,6 @@ obj-$(CONFIG_EISA) += eisa/ | |||
| 61 | obj-$(CONFIG_CPU_FREQ) += cpufreq/ | 61 | obj-$(CONFIG_CPU_FREQ) += cpufreq/ |
| 62 | obj-$(CONFIG_MMC) += mmc/ | 62 | obj-$(CONFIG_MMC) += mmc/ |
| 63 | obj-$(CONFIG_INFINIBAND) += infiniband/ | 63 | obj-$(CONFIG_INFINIBAND) += infiniband/ |
| 64 | obj-$(CONFIG_BLK_DEV_SGIIOC4) += sn/ | 64 | obj-$(CONFIG_SGI_IOC4) += sn/ |
| 65 | obj-y += firmware/ | 65 | obj-y += firmware/ |
| 66 | obj-$(CONFIG_CRYPTO) += crypto/ | 66 | obj-$(CONFIG_CRYPTO) += crypto/ |
diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig index 3ac0a535b4aa..0273f124a4f7 100644 --- a/drivers/ide/Kconfig +++ b/drivers/ide/Kconfig | |||
| @@ -672,8 +672,8 @@ config BLK_DEV_SVWKS | |||
| 672 | chipsets. | 672 | chipsets. |
| 673 | 673 | ||
| 674 | config BLK_DEV_SGIIOC4 | 674 | config BLK_DEV_SGIIOC4 |
| 675 | tristate "Silicon Graphics IOC4 chipset support" | 675 | tristate "Silicon Graphics IOC4 chipset ATA/ATAPI support" |
| 676 | depends on IA64_SGI_SN2 || IA64_GENERIC | 676 | depends on (IA64_SGI_SN2 || IA64_GENERIC) && SGI_IOC4 |
| 677 | help | 677 | help |
| 678 | This driver adds PIO & MultiMode DMA-2 support for the SGI IOC4 | 678 | This driver adds PIO & MultiMode DMA-2 support for the SGI IOC4 |
| 679 | chipset, which has one channel and can support two devices. | 679 | chipset, which has one channel and can support two devices. |
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 6a15703f1cb9..25fcef2c42de 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
| @@ -843,4 +843,13 @@ config SERIAL_JSM | |||
| 843 | To compile this driver as a module, choose M here: the | 843 | To compile this driver as a module, choose M here: the |
| 844 | module will be called jsm. | 844 | module will be called jsm. |
| 845 | 845 | ||
| 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 | |||
| 846 | endmenu | 855 | endmenu |
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index 81b77d769b84..8f1cdde7dbed 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile | |||
| @@ -51,4 +51,4 @@ obj-$(CONFIG_ETRAX_SERIAL) += crisv10.o | |||
| 51 | obj-$(CONFIG_SERIAL_JSM) += jsm/ | 51 | obj-$(CONFIG_SERIAL_JSM) += jsm/ |
| 52 | obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o | 52 | obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o |
| 53 | obj-$(CONFIG_SERIAL_VR41XX) += vr41xx_siu.o | 53 | 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 |
diff --git a/drivers/sn/Kconfig b/drivers/sn/Kconfig new file mode 100644 index 000000000000..20f7515ab830 --- /dev/null +++ b/drivers/sn/Kconfig | |||
| @@ -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 | ||
diff --git a/drivers/sn/Makefile b/drivers/sn/Makefile index 631e54958448..c2a284185372 100644 --- a/drivers/sn/Makefile +++ b/drivers/sn/Makefile | |||
| @@ -3,4 +3,4 @@ | |||
| 3 | # | 3 | # |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | obj-$(CONFIG_BLK_DEV_SGIIOC4) += ioc4.o | 6 | obj-$(CONFIG_SGI_IOC4) += ioc4.o |
