Linux Audio

Check our new training course

Loading...
v3.5.6
 1config DTC
 2	bool
 3
 4config OF
 5	bool
 6
 7menu "Device Tree and Open Firmware support"
 8	depends on OF
 9
10config 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
18config 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
 
 
 
 
 
 
 
 
 
 
27config OF_FLATTREE
28	bool
29	select DTC
 
 
30
31config OF_EARLY_FLATTREE
32	bool
33	select OF_FLATTREE
34
35config 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.
40config OF_DYNAMIC
41	bool
 
 
 
 
42
43config OF_ADDRESS
44	def_bool y
45	depends on !SPARC
 
46
47config OF_IRQ
48	def_bool y
49	depends on !SPARC
50
51config OF_DEVICE
52	def_bool y
53
54config OF_I2C
55	def_tristate I2C
56	depends on I2C && !SPARC
57	help
58	  OpenFirmware I2C accessors
59
60config OF_NET
61	depends on NETDEVICES
62	def_bool y
63
64config OF_MDIO
65	def_tristate PHYLIB
66	depends on PHYLIB
67	help
68	  OpenFirmware MDIO bus (Ethernet PHY) accessors
69
70config OF_PCI
71	def_tristate PCI
72	depends on PCI
73	help
74	  OpenFirmware PCI bus accessors
75
76config OF_PCI_IRQ
77	def_tristate PCI
78	depends on OF_PCI && OF_IRQ
79	help
80	  OpenFirmware PCI IRQ routing helpers
81
82config OF_MTD
83	depends on MTD
84	def_bool y
85
86endmenu # OF
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
v4.6
  1config DTC
  2	bool
  3
  4menuconfig OF
  5	bool "Device Tree and Open Firmware support"
 
 
 
 
 
 
 
  6	help
  7	  This option enables the device tree infrastructure.
  8	  It is automatically selected by platforms that need it or can
  9	  be enabled manually for unittests, overlays or
 10	  compile-coverage.
 11
 12if OF
 13
 14config OF_UNITTEST
 15	bool "Device Tree runtime unit tests"
 16	depends on OF_IRQ
 17	select OF_EARLY_FLATTREE
 18	select OF_RESOLVE
 19	help
 20	  This option builds in test cases for the device tree infrastructure
 21	  that are executed once at boot time, and the results dumped to the
 22	  console.
 23
 24	  If unsure, say N here, but this option is safe to enable.
 25
 26config OF_ALL_DTBS
 27	bool "Build all Device Tree Blobs"
 28	depends on COMPILE_TEST
 29	select DTC
 30	help
 31	  This option builds all possible Device Tree Blobs (DTBs) for the
 32	  current architecture.
 33
 34	  If unsure, say N here, but this option is safe to enable.
 35
 36config OF_FLATTREE
 37	bool
 38	select DTC
 39	select LIBFDT
 40	select CRC32
 41
 42config OF_EARLY_FLATTREE
 43	bool
 44	select OF_FLATTREE
 45
 46config OF_PROMTREE
 47	bool
 48
 49# Hardly any platforms need this.  It is safe to select, but only do so if you
 50# need it.
 51config OF_DYNAMIC
 52	bool "Support for dynamic device trees" if OF_UNITTEST
 53	help
 54	  On some platforms, the device tree can be manipulated at runtime.
 55	  While this option is selected automatically on such platforms, you
 56	  can enable it manually to improve device tree unit test coverage.
 57
 58config OF_ADDRESS
 59	def_bool y
 60	depends on !SPARC && HAS_IOMEM
 61	select OF_ADDRESS_PCI if PCI
 62
 63config OF_ADDRESS_PCI
 64	bool
 
 65
 66config OF_IRQ
 67	def_bool y
 68	depends on !SPARC && IRQ_DOMAIN
 
 
 
 
 
 69
 70config OF_NET
 71	depends on NETDEVICES
 72	def_bool y
 73
 74config OF_MDIO
 75	def_tristate PHYLIB
 76	depends on PHYLIB
 77	help
 78	  OpenFirmware MDIO bus (Ethernet PHY) accessors
 79
 80config OF_PCI
 81	def_tristate PCI
 82	depends on PCI
 83	help
 84	  OpenFirmware PCI bus accessors
 85
 86config OF_PCI_IRQ
 87	def_tristate PCI
 88	depends on OF_PCI && OF_IRQ
 89	help
 90	  OpenFirmware PCI IRQ routing helpers
 91
 92config OF_MTD
 93	depends on MTD
 94	def_bool y
 95
 96config OF_RESERVED_MEM
 97	depends on OF_EARLY_FLATTREE
 98	bool
 99	help
100	  Helpers to allow for reservation of memory regions
101
102config OF_RESOLVE
103	bool
104
105config OF_OVERLAY
106	bool "Device Tree overlays"
107	select OF_DYNAMIC
108	select OF_RESOLVE
109	help
110	  Overlays are a method to dynamically modify part of the kernel's
111	  device tree with dynamically loaded data.
112	  While this option is selected automatically when needed, you can
113	  enable it manually to improve device tree unit test coverage.
114
115endif # OF