aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-02-06 19:22:46 -0500
committerRichard Weinberger <richard@nod.at>2012-03-24 19:29:56 -0400
commit087fafd15204fb7a5df44b635ed3d3f4348f2d5e (patch)
tree92feb580b5d88150a17442fc833bc95294e8ee85 /lib
parent4c3ff74742b481eaf32d010d072b421c97fd8f08 (diff)
Introduce CONFIG_GENERIC_IO
There are situations where CONFIG_HAS_IOMEM is too restrictive. For example CONFIG_MTD_NAND_NANDSIM depends on CONFIG_HAS_IOMEM but it works perfectly fine if an architecture without io memory just includes asm-generic/io.h or implements everything defined in it. UML is such a corner case. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 028aba9e72af..ed7ca8ef4f9f 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -29,6 +29,10 @@ config GENERIC_IOMAP
29 bool 29 bool
30 select GENERIC_PCI_IOMAP 30 select GENERIC_PCI_IOMAP
31 31
32config GENERIC_IO
33 boolean
34 default n
35
32config CRC_CCITT 36config CRC_CCITT
33 tristate "CRC-CCITT functions" 37 tristate "CRC-CCITT functions"
34 help 38 help
@@ -224,6 +228,7 @@ config BTREE
224config HAS_IOMEM 228config HAS_IOMEM
225 boolean 229 boolean
226 depends on !NO_IOMEM 230 depends on !NO_IOMEM
231 select GENERIC_IO
227 default y 232 default y
228 233
229config HAS_IOPORT 234config HAS_IOPORT