aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-05 14:02:13 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 18:14:55 -0400
commit5ab5fc7e35705cf1a8a506d8e8b71acc27feec75 (patch)
treea0557f867fe39ec91f440fc34f7d50528c7353d3 /drivers/of/Kconfig
parentdd5e73794c9af30d6491963e13436d9f05ee6df6 (diff)
of: Put all CONFIG_OF dependencies into a Kconfig menu block
All of the options in drivers/of/Kconfig depend on CONFIG_OF. Putting all of them inside a menu block simplifies the dependency statements. It also creates a logical group for adding user selectable OF options. This patch also changes (PPC_OF || MICROBLAZE) statements to (!SPARC) so that those options are available to other architectures (and in fact the !SPARC conditions should probably be re-evalutated since the code is more generic now) This patch also moves the definition of CONFIG_DTC from arch/* to drivers/of/Kconfig Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r--drivers/of/Kconfig25
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index d836b47d0be5..ae2d4ad67bd0 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,46 +1,53 @@
1config DTC
2 bool
3
1config OF 4config OF
2 bool 5 bool
3 6
7menu "Flattened Device Tree and Open Firmware support"
8 depends on OF
9
4config OF_FLATTREE 10config OF_FLATTREE
5 bool 11 bool
6 depends on OF 12 select DTC
7 13
8config OF_DYNAMIC 14config OF_DYNAMIC
9 def_bool y 15 def_bool y
10 depends on OF && PPC_OF 16 depends on PPC_OF
11 17
12config OF_ADDRESS 18config OF_ADDRESS
13 def_bool y 19 def_bool y
14 depends on OF && !SPARC 20 depends on !SPARC
15 21
16config OF_IRQ 22config OF_IRQ
17 def_bool y 23 def_bool y
18 depends on OF && !SPARC 24 depends on !SPARC
19 25
20config OF_DEVICE 26config OF_DEVICE
21 def_bool y 27 def_bool y
22 depends on OF && (SPARC || PPC_OF || MICROBLAZE)
23 28
24config OF_GPIO 29config OF_GPIO
25 def_bool y 30 def_bool y
26 depends on OF && (PPC_OF || MICROBLAZE) && GPIOLIB 31 depends on GPIOLIB && !SPARC
27 help 32 help
28 OpenFirmware GPIO accessors 33 OpenFirmware GPIO accessors
29 34
30config OF_I2C 35config OF_I2C
31 def_tristate I2C 36 def_tristate I2C
32 depends on OF && !SPARC && I2C 37 depends on I2C && !SPARC
33 help 38 help
34 OpenFirmware I2C accessors 39 OpenFirmware I2C accessors
35 40
36config OF_SPI 41config OF_SPI
37 def_tristate SPI 42 def_tristate SPI
38 depends on OF && (PPC_OF || MICROBLAZE) && SPI 43 depends on SPI && !SPARC
39 help 44 help
40 OpenFirmware SPI accessors 45 OpenFirmware SPI accessors
41 46
42config OF_MDIO 47config OF_MDIO
43 def_tristate PHYLIB 48 def_tristate PHYLIB
44 depends on OF && PHYLIB 49 depends on PHYLIB
45 help 50 help
46 OpenFirmware MDIO bus (Ethernet PHY) accessors 51 OpenFirmware MDIO bus (Ethernet PHY) accessors
52
53endmenu # OF