diff options
author | Tejun Heo <htejun@gmail.com> | 2008-04-07 09:47:21 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:24 -0400 |
commit | 127102aea2ea9ec4e9ca233e2b1a75c8d3b058c4 (patch) | |
tree | 92fb528eac658adbc7307a009bd8a7558db2658a /drivers/ata/Kconfig | |
parent | 350756f6dab6d37ef9ed3f18dec520e88969ddac (diff) |
libata: make SFF support optional
Now that SFF support is completely separated out from the core layer,
it can be made optional. Add CONFIG_ATA_SFF and let SFF drivers
depend on it. If CONFIG_ATA_SFF isn't set, all codes in libata-sff.c
and data structures for SFF support are disabled. This saves good
number of bytes for small systems.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/Kconfig')
-rw-r--r-- | drivers/ata/Kconfig | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index ea665c249035..48c8fc55391e 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig | |||
@@ -49,6 +49,32 @@ config SATA_AHCI | |||
49 | 49 | ||
50 | If unsure, say N. | 50 | If unsure, say N. |
51 | 51 | ||
52 | config SATA_SIL24 | ||
53 | tristate "Silicon Image 3124/3132 SATA support" | ||
54 | depends on PCI | ||
55 | help | ||
56 | This option enables support for Silicon Image 3124/3132 Serial ATA. | ||
57 | |||
58 | If unsure, say N. | ||
59 | |||
60 | config SATA_FSL | ||
61 | tristate "Freescale 3.0Gbps SATA support" | ||
62 | depends on FSL_SOC | ||
63 | help | ||
64 | This option enables support for Freescale 3.0Gbps SATA controller. | ||
65 | It can be found on MPC837x and MPC8315. | ||
66 | |||
67 | If unsure, say N. | ||
68 | |||
69 | config ATA_SFF | ||
70 | bool "ATA SFF support" | ||
71 | default y | ||
72 | help | ||
73 | This option adds support for ATA controllers with SFF | ||
74 | compliant or similar programming interface. | ||
75 | |||
76 | if ATA_SFF | ||
77 | |||
52 | config SATA_SVW | 78 | config SATA_SVW |
53 | tristate "ServerWorks Frodo / Apple K2 SATA support" | 79 | tristate "ServerWorks Frodo / Apple K2 SATA support" |
54 | depends on PCI | 80 | depends on PCI |
@@ -125,14 +151,6 @@ config SATA_SIL | |||
125 | 151 | ||
126 | If unsure, say N. | 152 | If unsure, say N. |
127 | 153 | ||
128 | config SATA_SIL24 | ||
129 | tristate "Silicon Image 3124/3132 SATA support" | ||
130 | depends on PCI | ||
131 | help | ||
132 | This option enables support for Silicon Image 3124/3132 Serial ATA. | ||
133 | |||
134 | If unsure, say N. | ||
135 | |||
136 | config SATA_SIS | 154 | config SATA_SIS |
137 | tristate "SiS 964/965/966/180 SATA support" | 155 | tristate "SiS 964/965/966/180 SATA support" |
138 | depends on PCI | 156 | depends on PCI |
@@ -183,15 +201,6 @@ config PATA_ACPI | |||
183 | firmware in the BIOS. This driver can sometimes handle | 201 | firmware in the BIOS. This driver can sometimes handle |
184 | otherwise unsupported hardware. | 202 | otherwise unsupported hardware. |
185 | 203 | ||
186 | config SATA_FSL | ||
187 | tristate "Freescale 3.0Gbps SATA support" | ||
188 | depends on FSL_SOC | ||
189 | help | ||
190 | This option enables support for Freescale 3.0Gbps SATA controller. | ||
191 | It can be found on MPC837x and MPC8315. | ||
192 | |||
193 | If unsure, say N. | ||
194 | |||
195 | config PATA_ALI | 204 | config PATA_ALI |
196 | tristate "ALi PATA support (Experimental)" | 205 | tristate "ALi PATA support (Experimental)" |
197 | depends on PCI && EXPERIMENTAL | 206 | depends on PCI && EXPERIMENTAL |
@@ -679,4 +688,5 @@ config PATA_BF54X | |||
679 | 688 | ||
680 | If unsure, say N. | 689 | If unsure, say N. |
681 | 690 | ||
691 | endif # ATA_SFF | ||
682 | endif # ATA | 692 | endif # ATA |