summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-05 12:02:13 -0600
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 16:14:55 -0600
commit5ab5fc7e35705cf1a8a506d8e8b71acc27feec75 (patch)
treea0557f867fe39ec91f440fc34f7d50528c7353d3 /drivers/of
parentdd5e73794c9af30d6491963e13436d9f05ee6df6 (diff)
downloadlinux-3.10-5ab5fc7e35705cf1a8a506d8e8b71acc27feec75.tar.gz
linux-3.10-5ab5fc7e35705cf1a8a506d8e8b71acc27feec75.tar.bz2
linux-3.10-5ab5fc7e35705cf1a8a506d8e8b71acc27feec75.zip
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')
-rw-r--r--drivers/of/Kconfig25
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index d836b47d0be..ae2d4ad67bd 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -1,46 +1,53 @@
+config DTC
+ bool
+
config OF
bool
+menu "Flattened Device Tree and Open Firmware support"
+ depends on OF
+
config OF_FLATTREE
bool
- depends on OF
+ select DTC
config OF_DYNAMIC
def_bool y
- depends on OF && PPC_OF
+ depends on PPC_OF
config OF_ADDRESS
def_bool y
- depends on OF && !SPARC
+ depends on !SPARC
config OF_IRQ
def_bool y
- depends on OF && !SPARC
+ depends on !SPARC
config OF_DEVICE
def_bool y
- depends on OF && (SPARC || PPC_OF || MICROBLAZE)
config OF_GPIO
def_bool y
- depends on OF && (PPC_OF || MICROBLAZE) && GPIOLIB
+ depends on GPIOLIB && !SPARC
help
OpenFirmware GPIO accessors
config OF_I2C
def_tristate I2C
- depends on OF && !SPARC && I2C
+ depends on I2C && !SPARC
help
OpenFirmware I2C accessors
config OF_SPI
def_tristate SPI
- depends on OF && (PPC_OF || MICROBLAZE) && SPI
+ depends on SPI && !SPARC
help
OpenFirmware SPI accessors
config OF_MDIO
def_tristate PHYLIB
- depends on OF && PHYLIB
+ depends on PHYLIB
help
OpenFirmware MDIO bus (Ethernet PHY) accessors
+
+endmenu # OF