]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/of/Kconfig
of: define CONFIG_OF globally so architectures can select it
[karo-tx-linux.git] / drivers / of / Kconfig
index 7cecc8fea9bd799ffd37e7361c7636cbe3bd69f1..d836b47d0be58a96a94783c63e3b71c0bc5463d6 100644 (file)
@@ -1,3 +1,6 @@
+config OF
+       bool
+
 config OF_FLATTREE
        bool
        depends on OF
@@ -6,6 +9,14 @@ config OF_DYNAMIC
        def_bool y
        depends on OF && PPC_OF
 
+config OF_ADDRESS
+       def_bool y
+       depends on OF && !SPARC
+
+config OF_IRQ
+       def_bool y
+       depends on OF && !SPARC
+
 config OF_DEVICE
        def_bool y
        depends on OF && (SPARC || PPC_OF || MICROBLAZE)
@@ -18,7 +29,7 @@ config OF_GPIO
 
 config OF_I2C
        def_tristate I2C
-       depends on (PPC_OF || MICROBLAZE) && I2C
+       depends on OF && !SPARC && I2C
        help
          OpenFirmware I2C accessors