Merge branch 'for_3.5/gpio/cleanup' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / drivers / of / Kconfig
1 config DTC
2         bool
3
4 config OF
5         bool
6
7 menu "Device Tree and Open Firmware support"
8         depends on OF
9
10 config PROC_DEVICETREE
11         bool "Support for device tree in /proc"
12         depends on PROC_FS && !SPARC
13         help
14           This option adds a device-tree directory under /proc which contains
15           an image of the device tree that the kernel copies from Open
16           Firmware or other boot firmware. If unsure, say Y here.
17
18 config OF_SELFTEST
19         bool "Device Tree Runtime self tests"
20         help
21           This option builds in test cases for the device tree infrastructure
22           that are executed one at boot time, and the results dumped to the
23           console.
24
25           If unsure, say N here, but this option is safe to enable.
26
27 config OF_FLATTREE
28         bool
29         select DTC
30
31 config OF_EARLY_FLATTREE
32         bool
33         select OF_FLATTREE
34
35 config OF_PROMTREE
36         bool
37
38 # Hardly any platforms need this.  It is safe to select, but only do so if you
39 # need it.
40 config OF_DYNAMIC
41         bool
42
43 config OF_ADDRESS
44         def_bool y
45         depends on !SPARC
46
47 config OF_IRQ
48         def_bool y
49         depends on !SPARC
50
51 config OF_DEVICE
52         def_bool y
53
54 config OF_I2C
55         def_tristate I2C
56         depends on I2C && !SPARC
57         help
58           OpenFirmware I2C accessors
59
60 config OF_NET
61         depends on NETDEVICES
62         def_bool y
63
64 config OF_SPI
65         def_tristate SPI
66         depends on SPI && !SPARC
67         help
68           OpenFirmware SPI accessors
69
70 config OF_MDIO
71         def_tristate PHYLIB
72         depends on PHYLIB
73         help
74           OpenFirmware MDIO bus (Ethernet PHY) accessors
75
76 config OF_PCI
77         def_tristate PCI
78         depends on PCI
79         help
80           OpenFirmware PCI bus accessors
81
82 config OF_PCI_IRQ
83         def_tristate PCI
84         depends on OF_PCI && OF_IRQ
85         help
86           OpenFirmware PCI IRQ routing helpers
87
88 config OF_MTD
89         depends on MTD
90         def_bool y
91
92 endmenu # OF