diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-07-05 14:02:13 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-05 18:14:55 -0400 |
commit | 5ab5fc7e35705cf1a8a506d8e8b71acc27feec75 (patch) | |
tree | a0557f867fe39ec91f440fc34f7d50528c7353d3 /drivers/of/Kconfig | |
parent | dd5e73794c9af30d6491963e13436d9f05ee6df6 (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/Kconfig | 25 |
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 @@ | |||
1 | config DTC | ||
2 | bool | ||
3 | |||
1 | config OF | 4 | config OF |
2 | bool | 5 | bool |
3 | 6 | ||
7 | menu "Flattened Device Tree and Open Firmware support" | ||
8 | depends on OF | ||
9 | |||
4 | config OF_FLATTREE | 10 | config OF_FLATTREE |
5 | bool | 11 | bool |
6 | depends on OF | 12 | select DTC |
7 | 13 | ||
8 | config OF_DYNAMIC | 14 | config OF_DYNAMIC |
9 | def_bool y | 15 | def_bool y |
10 | depends on OF && PPC_OF | 16 | depends on PPC_OF |
11 | 17 | ||
12 | config OF_ADDRESS | 18 | config OF_ADDRESS |
13 | def_bool y | 19 | def_bool y |
14 | depends on OF && !SPARC | 20 | depends on !SPARC |
15 | 21 | ||
16 | config OF_IRQ | 22 | config OF_IRQ |
17 | def_bool y | 23 | def_bool y |
18 | depends on OF && !SPARC | 24 | depends on !SPARC |
19 | 25 | ||
20 | config OF_DEVICE | 26 | config OF_DEVICE |
21 | def_bool y | 27 | def_bool y |
22 | depends on OF && (SPARC || PPC_OF || MICROBLAZE) | ||
23 | 28 | ||
24 | config OF_GPIO | 29 | config 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 | ||
30 | config OF_I2C | 35 | config 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 | ||
36 | config OF_SPI | 41 | config 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 | ||
42 | config OF_MDIO | 47 | config 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 | |||
53 | endmenu # OF | ||