blob: e57ce84b98d95085bf5f71896434342e419a4b58 [file] [log] [blame]
Masahiro Yamada9fadbc82014-09-22 19:59:05 +09001#
2# Device Tree Control
3#
Masahiro Yamada9fadbc82014-09-22 19:59:05 +09004
5config SUPPORT_OF_CONTROL
6 bool
7
Masahiro Yamada87247af2017-10-17 13:42:44 +09008config PYLIBFDT
9 bool
10
11config DTOC
12 bool
13 select PYLIBFDT
14
15config BINMAN
16 bool
17 select DTOC
18
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090019menu "Device Tree Control"
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090020 depends on SUPPORT_OF_CONTROL
21
22config OF_CONTROL
23 bool "Run-time configuration via Device Tree"
Sean Anderson08c854a2019-12-17 21:40:09 -050024 select OF_LIBFDT if !OF_PLATDATA
Simon Glass3580f6d2021-08-07 07:24:03 -060025 select OF_REAL if !OF_PLATDATA
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090026 help
27 This feature provides for run-time configuration of U-Boot
28 via a flattened device tree.
29
Simon Glass7c4ba162021-08-07 07:24:02 -060030config OF_REAL
Simon Glass3580f6d2021-08-07 07:24:03 -060031 bool
Simon Glass7c4ba162021-08-07 07:24:02 -060032 help
33 Indicates that a real devicetree is available which can be accessed
34 at runtime. This means that dev_read_...() functions can be used to
35 read data from the devicetree for each device. This is true if
36 OF_CONTROL is enabled in U-Boot proper.
37
mario.six@gdsys.cc7e9b9d62017-02-22 16:07:22 +010038config OF_BOARD_FIXUP
39 bool "Board-specific manipulation of Device Tree"
40 help
41 In certain circumstances it is necessary to be able to modify
42 U-Boot's device tree (e.g. to delete device from it). This option
43 make the Device Tree writeable and provides a board-specific
44 "board_fix_fdt" callback (called during pre-relocation time), which
45 enables the board initialization to modifiy the Device Tree. The
46 modified copy is subsequently used by U-Boot after relocation.
47
Masahiro Yamada1e35f392015-08-12 07:31:54 +090048config SPL_OF_CONTROL
49 bool "Enable run-time configuration via Device Tree in SPL"
50 depends on SPL && OF_CONTROL
Sean Anderson08c854a2019-12-17 21:40:09 -050051 select SPL_OF_LIBFDT if !SPL_OF_PLATDATA
Simon Glass7c4ba162021-08-07 07:24:02 -060052 select SPL_OF_REAL if !SPL_OF_PLATDATA
Simon Glass400d0402015-02-27 22:06:38 -070053 help
54 Some boards use device tree in U-Boot but only have 4KB of SRAM
Walter Lozano7b3d2582019-10-22 11:50:19 -030055 which is not enough to support device tree. Disable this option to
Simon Glass400d0402015-02-27 22:06:38 -070056 allow such boards to be supported by U-Boot SPL.
57
Philipp Tomsich2341dc62017-06-29 11:11:21 +020058config TPL_OF_CONTROL
59 bool "Enable run-time configuration via Device Tree in TPL"
60 depends on TPL && OF_CONTROL
Sean Anderson08c854a2019-12-17 21:40:09 -050061 select TPL_OF_LIBFDT if !TPL_OF_PLATDATA
Simon Glass7c4ba162021-08-07 07:24:02 -060062 select TPL_OF_REAL if !TPL_OF_PLATDATA
Philipp Tomsich2341dc62017-06-29 11:11:21 +020063 help
64 Some boards use device tree in U-Boot but only have 4KB of SRAM
65 which is not enough to support device tree. Enable this option to
66 allow such boards to be supported by U-Boot TPL.
67
Simon Glassa6eedb82017-05-18 20:08:53 -060068config OF_LIVE
69 bool "Enable use of a live tree"
Bin Meng85f737b2021-02-03 21:20:03 +080070 depends on DM && OF_CONTROL
Simon Glassa6eedb82017-05-18 20:08:53 -060071 help
72 Normally U-Boot uses a flat device tree which saves space and
73 avoids the need to unpack the tree before use. However a flat
Michal Simek97a0e492018-08-17 10:16:36 +020074 tree does not support modification from within U-Boot since it
Simon Glassa6eedb82017-05-18 20:08:53 -060075 can invalidate driver-model device tree offsets. This option
76 enables a live tree which is available after relocation,
77 and can be adjusted as needed.
78
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090079choice
80 prompt "Provider of DTB for DT control"
81 depends on OF_CONTROL
82
83config OF_SEPARATE
84 bool "Separate DTB for DT control"
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090085 help
86 If this option is enabled, the device tree will be built and
87 placed as a separate u-boot.dtb file alongside the U-Boot image.
88
89config OF_EMBED
90 bool "Embedded DTB for DT control"
91 help
92 If this option is enabled, the device tree will be picked up and
Simon Glassd9b64ea2015-08-31 18:47:52 -060093 built into the U-Boot image. This is suitable for local debugging
94 and development only and is not recommended for production devices.
95 Boards in the mainline U-Boot tree should not use it.
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090096
Simon Glass4cea97f2021-12-16 20:59:21 -070097endchoice
98
Alex Deymo5b661ec2017-04-02 01:25:20 -070099config OF_BOARD
Ilias Apalodimasdc35df42021-10-12 00:00:13 +0300100 bool "Provided by the board (e.g a previous loader) at runtime"
Simon Glass37604392021-12-16 20:59:35 -0700101 default y if SANDBOX || OF_HAS_PRIOR_STAGE
Alex Deymo5b661ec2017-04-02 01:25:20 -0700102 help
Simon Glass37604392021-12-16 20:59:35 -0700103 If this option is enabled, the device tree is provided at runtime by
104 a custom function called board_fdt_blob_setup(). The board must
105 implement this function if it wishes to provide special behaviour.
106
107 With this option, the device tree build by U-Boot may be overridden or
108 ignored. See OF_HAS_PRIOR_STAGE.
109
110 Note: Boards which use this to handle a device tree passed from an
111 earlier stage should enable OF_HAS_PRIOR_STAGE.
112
113config OF_HAS_PRIOR_STAGE
114 bool
115 help
116 Indicates that a prior stage of the firmware (before U-Boot proper)
117 makes use of device tree and this board normally boots with that prior
118 stage, that provides a devicetree to U-Boot.
119
120 This means that the device tree built in U-Boot should not be packaged
121 in the firmware image. Instead, the prior stage's device tree should
122 be so packaged. At runtime, the prior stage reads this, does any
123 necessary fix-ups, then passes it to U-Boot. See OF_BOARD.
124
125 This option does not preclude using the U-Boot device tree, e.g. for
126 development purposes, but it is not recommended, and likely will not
127 even work, for production systems.
Alex Deymo5b661ec2017-04-02 01:25:20 -0700128
Simon Glass37604392021-12-16 20:59:35 -0700129 Note: This option must be set in Kconfig and cannot be enabled or
130 disabled in the board's defconfig file.
Masahiro Yamada9fadbc82014-09-22 19:59:05 +0900131
Masahiro Yamada8c65b9d2014-09-22 19:59:06 +0900132config DEFAULT_DEVICE_TREE
133 string "Default Device Tree for DT control"
Simon Glass644f5bc2016-02-22 22:55:44 -0700134 depends on OF_CONTROL
Masahiro Yamada8c65b9d2014-09-22 19:59:06 +0900135 help
136 This option specifies the default Device Tree used for DT control.
Robert P. J. Dayeb61df52014-10-21 16:44:32 -0400137 It can be overridden from the command line:
Masahiro Yamada8c65b9d2014-09-22 19:59:06 +0900138 $ make DEVICE_TREE=<device-tree-name>
139
Simon Glass963817b2016-02-22 22:55:57 -0700140config OF_LIST
141 string "List of device tree files to include for DT control"
Jean-Jacques Hiblot2037fa42017-09-15 12:57:24 +0200142 depends on SPL_LOAD_FIT || MULTI_DTB_FIT
Michal Simek9b2e95a2016-05-04 15:14:11 +0200143 default DEFAULT_DEVICE_TREE
Simon Glass963817b2016-02-22 22:55:57 -0700144 help
145 This option specifies a list of device tree files to use for DT
Cooper Jr., Franklin06c7b622017-06-16 17:25:09 -0500146 control. These will be packaged into a FIT. At run-time, U-boot
147 or SPL will select the correct DT to use by examining the
148 hardware (e.g. reading a board ID value). This is a list of
149 device tree files (without the directory or .dtb suffix)
150 separated by <space>.
Simon Glass963817b2016-02-22 22:55:57 -0700151
Jean-Jacques Hiblot985cec32019-10-22 16:39:21 +0200152config OF_OVERLAY_LIST
153 string "List of device tree overlays to include for DT control"
154 depends on SPL_LOAD_FIT_APPLY_OVERLAY
155 help
156 This option specifies a list of device tree overlays to use for DT
157 control. This option can then be used by a FIT generator to include
158 the overlays in the FIT image.
159
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100160choice
Baruch Siach45508fc2019-10-07 15:05:47 +0300161 prompt "OF LIST compression"
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100162 depends on MULTI_DTB_FIT
163 default MULTI_DTB_FIT_NO_COMPRESSION
164
165config MULTI_DTB_FIT_LZO
166 bool "LZO"
167 depends on SYS_MALLOC_F
168 select LZO
169 help
170 Compress the FIT image containing the DTBs available for the SPL
171 using LZO compression. (requires lzop on host).
172
173config MULTI_DTB_FIT_GZIP
174 bool "GZIP"
175 depends on SYS_MALLOC_F
176 select GZIP
177 help
178 Compress the FIT image containing the DTBs available for the SPL
179 using GZIP compression. (requires gzip on host)
180
181config MULTI_DTB_FIT_NO_COMPRESSION
182 bool "No compression"
183 help
184 Do not compress the FIT image containing the DTBs available for the SPL.
185 Use this options only if LZO is not available and the DTBs are very small.
186endchoice
187
188choice
189 prompt "Location of uncompressed DTBs"
190 depends on (MULTI_DTB_FIT_GZIP || MULTI_DTB_FIT_LZO)
191 default MULTI_DTB_FIT_DYN_ALLOC if SYS_MALLOC_F
192
193config MULTI_DTB_FIT_DYN_ALLOC
194 bool "Dynamically allocate the memory"
195 depends on SYS_MALLOC_F
196
197config MULTI_DTB_FIT_USER_DEFINED_AREA
198 bool "User-defined location"
199endchoice
200
201config MULTI_DTB_FIT_UNCOMPRESS_SZ
202 hex "Size of memory reserved to uncompress the DTBs"
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100203 default 0x8000
204 help
205 This is the size of this area where the DTBs are uncompressed.
206 If this area is dynamically allocated, make sure that
207 SYS_MALLOC_F_LEN is big enough to contain it.
208
209config MULTI_DTB_FIT_USER_DEF_ADDR
210 hex "Address of memory where dtbs are uncompressed"
211 depends on MULTI_DTB_FIT_USER_DEFINED_AREA
212 help
213 the FIT image containing the DTBs is uncompressed in an area defined
214 at compilation time. This is the address of this area. It must be
215 aligned on 2-byte boundary.
Jean-Jacques Hiblot2037fa42017-09-15 12:57:24 +0200216
217config DTB_RESELECT
218 bool "Support swapping dtbs at a later point in boot"
219 depends on MULTI_DTB_FIT
220 help
221 It is possible during initial boot you may need to use a generic
222 dtb until you can fully determine the board your running on. This
223 config allows boards to implement a function at a later point
224 during boot to switch to the "correct" dtb.
225
226config MULTI_DTB_FIT
227 bool "Support embedding several DTBs in a FIT image for u-boot"
228 help
229 This option provides hooks to allow U-boot to parse an
230 appended FIT image and enable board specific code to then select
231 the correct DTB to be used. Use this if you need to support
232 multiple DTBs but don't use the SPL.
233
Jean-Jacques Hiblota2fee162017-09-15 12:57:32 +0200234
235config SPL_MULTI_DTB_FIT
Simon Glass7c4ba162021-08-07 07:24:02 -0600236 depends on SPL_LOAD_FIT && SPL_OF_REAL
Jean-Jacques Hiblota2fee162017-09-15 12:57:32 +0200237 bool "Support embedding several DTBs in a FIT image for the SPL"
238 help
239 This option provides the SPL with the ability to select its own
240 DTB at runtime from an appended FIT image containing several DTBs.
241 This allows using the same SPL binary on multiple platforms.
242 The primary purpose is to handle different versions of
243 the same platform without tweaking the platform code if the
244 differences can be expressed in the DTBs (common examples are: bus
245 capabilities, pad configurations).
246
247config SPL_OF_LIST
248 string "List of device tree files to include for DT control in SPL"
249 depends on SPL_MULTI_DTB_FIT
250 default OF_LIST
251 help
252 This option specifies a list of device tree files to use for DT
253 control in the SPL. These will be packaged into a FIT. At run-time,
254 the SPL will select the correct DT to use by examining the
255 hardware (e.g. reading a board ID value). This is a list of
256 device tree files (without the directory or .dtb suffix)
257 separated by <space>.
258
259choice
260 prompt "SPL OF LIST compression"
261 depends on SPL_MULTI_DTB_FIT
262 default SPL_MULTI_DTB_FIT_LZO
263
264config SPL_MULTI_DTB_FIT_LZO
265 bool "LZO"
266 depends on SYS_MALLOC_F
267 select SPL_LZO
268 help
269 Compress the FIT image containing the DTBs available for the SPL
270 using LZO compression. (requires lzop on host).
271
272config SPL_MULTI_DTB_FIT_GZIP
273 bool "GZIP"
274 depends on SYS_MALLOC_F
275 select SPL_GZIP
276 help
277 Compress the FIT image containing the DTBs available for the SPL
278 using GZIP compression. (requires gzip on host)
279
280config SPL_MULTI_DTB_FIT_NO_COMPRESSION
281 bool "No compression"
282 help
283 Do not compress the FIT image containing the DTBs available for the SPL.
284 Use this options only if LZO is not available and the DTBs are very small.
285endchoice
286
287choice
Michal Simekc7df3a22018-07-23 08:38:56 +0200288 prompt "Location of uncompressed DTBs"
Jean-Jacques Hiblota2fee162017-09-15 12:57:32 +0200289 depends on (SPL_MULTI_DTB_FIT_GZIP || SPL_MULTI_DTB_FIT_LZO)
290 default SPL_MULTI_DTB_FIT_DYN_ALLOC if SYS_MALLOC_F
291
292config SPL_MULTI_DTB_FIT_DYN_ALLOC
293 bool "Dynamically allocate the memory"
294 depends on SYS_MALLOC_F
295
296config SPL_MULTI_DTB_FIT_USER_DEFINED_AREA
297 bool "User-defined location"
298endchoice
299
300config SPL_MULTI_DTB_FIT_UNCOMPRESS_SZ
301 hex "Size of memory reserved to uncompress the DTBs"
302 depends on (SPL_MULTI_DTB_FIT_GZIP || SPL_MULTI_DTB_FIT_LZO)
303 default 0x8000
304 help
305 This is the size of this area where the DTBs are uncompressed.
306 If this area is dynamically allocated, make sure that
307 SPL_SYS_MALLOC_F_LEN is big enough to contain it.
308
309config SPL_MULTI_DTB_FIT_USER_DEF_ADDR
310 hex "Address of memory where dtbs are uncompressed"
311 depends on SPL_MULTI_DTB_FIT_USER_DEFINED_AREA
312 help
313 the FIT image containing the DTBs is uncompressed in an area defined
314 at compilation time. This is the address of this area. It must be
315 aligned on 2-byte boundary.
316
Simon Glass89caf332015-06-23 15:38:29 -0600317config OF_SPL_REMOVE_PROPS
318 string "List of device tree properties to drop for SPL"
Masahiro Yamadaddb9aa972015-08-28 20:28:42 +0900319 depends on SPL_OF_CONTROL
Michal Simekde218072019-02-22 10:50:23 +0100320 default "interrupt-parent interrupts" if SPL_PINCTRL && SPL_CLK
321 default "clocks clock-names interrupt-parent interrupts" if SPL_PINCTRL
322 default "pinctrl-0 pinctrl-names interrupt-parent interrupts" if SPL_CLK
323 default "pinctrl-0 pinctrl-names clocks clock-names interrupt-parent interrupts"
Simon Glass89caf332015-06-23 15:38:29 -0600324 help
325 Since SPL normally runs in a reduced memory space, the device tree
326 is cut down to only what is needed to load and start U-Boot. Only
327 nodes marked with the property "u-boot,dm-pre-reloc" will be
328 included. In addition, some properties are not used by U-Boot and
329 can be discarded. This option defines the list of properties to
330 discard.
331
Anatolij Gustschin08568342020-01-12 15:57:42 +0100332config OF_DTB_PROPS_REMOVE
333 bool "Enable removal of device tree properties"
334 depends on OF_CONTROL
335 help
336 Some boards have restricted amount of storage for U-Boot image.
337 If the generated binary doesn't fit into available image storage,
338 the built-in device tree could probably be cut down by removing
339 some not required device tree properties to reduce the image size.
340 Enable this option and define the properties to be removed in the
341 CONFIG_OF_REMOVE_PROPS list. Do not enable this option if you must
342 pass the built-in DTB directly to the kernel!
343
344config OF_REMOVE_PROPS
345 string "List of device tree properties to drop"
346 depends on OF_DTB_PROPS_REMOVE
347 default "interrupt-parent interrupts" if PINCTRL
348 help
349 Some properties are not used by U-Boot and can be discarded.
350 This option defines the list of properties to discard.
351
Simon Glass7bc65f32016-07-04 11:58:06 -0600352config SPL_OF_PLATDATA
353 bool "Generate platform data for use in SPL"
354 depends on SPL_OF_CONTROL
Masahiro Yamada87247af2017-10-17 13:42:44 +0900355 select DTOC
Simon Glass8beeb282021-03-15 17:25:36 +1300356 select SPL_OF_PLATDATA_DRIVER_RT if !SPL_OF_PLATDATA_INST
Simon Glass7bc65f32016-07-04 11:58:06 -0600357 help
358 For very constrained SPL environments the overhead of decoding
359 device tree nodes and converting their contents into platform data
360 is too large. This overhead includes libfdt code as well as the
361 device tree contents itself. The latter is fairly compact, but the
362 former can add 3KB or more to a Thumb 2 Image.
363
364 This option enables generation of platform data from the device
Simon Glass1d8364a2020-12-28 20:34:54 -0700365 tree as C code. This code creates devices using U_BOOT_DRVINFO()
Simon Glass7bc65f32016-07-04 11:58:06 -0600366 declarations. The benefit is that it allows driver code to access
367 the platform data directly in C structures, avoidin the libfdt
368 overhead.
369
370 This option works by generating C structure declarations for each
Simon Glass1d8364a2020-12-28 20:34:54 -0700371 compatible string, then adding platform data and U_BOOT_DRVINFO
Simon Goldschmidt49ce8ca2019-01-16 20:40:18 +0100372 declarations for each node. See of-plat.txt for more information.
Simon Glass7bc65f32016-07-04 11:58:06 -0600373
Simon Glass7c4ba162021-08-07 07:24:02 -0600374config SPL_OF_REAL
375 bool
376 help
377 Indicates that a real devicetree is available which can be accessed
378 at runtime. This means that dev_read_...() functions can be used to
379 read data from the devicetree for each device. This is true if
380 SPL_OF_CONTROL is enabled and not SPL_OF_PLATDATA
381
Simon Glass240d5f62021-02-03 06:01:13 -0700382if SPL_OF_PLATDATA
383
Simon Glass36b15e22020-10-03 11:31:35 -0600384config SPL_OF_PLATDATA_PARENT
385 bool "Support parent information in devices"
Simon Glass36b15e22020-10-03 11:31:35 -0600386 default y
387 help
388 Generally it is useful to be able to access the parent of a device
389 with of-platdata. To save space this can be disabled, but in that
390 case dev_get_parent() will always return NULL;
391
Simon Glass240d5f62021-02-03 06:01:13 -0700392config SPL_OF_PLATDATA_INST
393 bool "Declare devices at build time"
394 help
395 Declare devices as udevice instances so that they do not need to be
396 bound when U-Boot starts. This can save time and code space.
397
Simon Glass47fd4a22021-03-15 17:25:15 +1300398config SPL_OF_PLATDATA_NO_BIND
399 bool "Don't allow run-time binding of devices"
400 depends on SPL_OF_PLATDATA_INST
401 default y
402 help
403 This removes the ability to bind devices at run time, thus saving
404 some code space in U-Boot. This can be disabled if binding is needed,
405 at the code of some code size increase.
406
Simon Glass5b21b342021-03-15 17:25:35 +1300407config SPL_OF_PLATDATA_RT
408 bool "Use a separate struct for device runtime data"
409 depends on SPL_OF_PLATDATA_INST
410 default y
411 help
412 For systems running SPL from read-only memory it is convenient to
413 separate out the runtime information, so that the devices don't need
414 to be copied before being used. This moves the read-write parts of
415 struct udevice (at present just the flags) into a separate struct,
416 which is allocated at runtime.
417
Simon Glass8beeb282021-03-15 17:25:36 +1300418config SPL_OF_PLATDATA_DRIVER_RT
419 bool
420 help
421 Use a separate struct for driver runtime data.
422
423 This enables the driver_rt information, used with of-platdata when
424 of-platdata-inst is not used. It allows finding devices by their
425 driver data.
426
Simon Glass240d5f62021-02-03 06:01:13 -0700427endif
428
Simon Glass7c4ba162021-08-07 07:24:02 -0600429config TPL_OF_REAL
430 bool
431 help
432 Indicates that a real devicetree is available which can be accessed
433 at runtime. This means that dev_read_...() functions can be used to
434 read data from the devicetree for each device. This is true if
435 TPL_OF_CONTROL is enabled and not TPL_OF_PLATDATA
436
Philipp Tomsich2341dc62017-06-29 11:11:21 +0200437config TPL_OF_PLATDATA
438 bool "Generate platform data for use in TPL"
439 depends on TPL_OF_CONTROL
Masahiro Yamada87247af2017-10-17 13:42:44 +0900440 select DTOC
Simon Glass8beeb282021-03-15 17:25:36 +1300441 select TPL_OF_PLATDATA_DRIVER_RT if !TPL_OF_PLATDATA_INST
Philipp Tomsich2341dc62017-06-29 11:11:21 +0200442 help
443 For very constrained SPL environments the overhead of decoding
444 device tree nodes and converting their contents into platform data
445 is too large. This overhead includes libfdt code as well as the
446 device tree contents itself. The latter is fairly compact, but the
447 former can add 3KB or more to a Thumb 2 Image.
448
449 This option enables generation of platform data from the device
Simon Glass1d8364a2020-12-28 20:34:54 -0700450 tree as C code. This code creates devices using U_BOOT_DRVINFO()
Philipp Tomsich2341dc62017-06-29 11:11:21 +0200451 declarations. The benefit is that it allows driver code to access
452 the platform data directly in C structures, avoidin the libfdt
453 overhead.
454
455 This option works by generating C structure declarations for each
Simon Glass1d8364a2020-12-28 20:34:54 -0700456 compatible string, then adding platform data and U_BOOT_DRVINFO
Simon Goldschmidt49ce8ca2019-01-16 20:40:18 +0100457 declarations for each node. See of-plat.txt for more information.
Philipp Tomsich2341dc62017-06-29 11:11:21 +0200458
Simon Glass240d5f62021-02-03 06:01:13 -0700459if TPL_OF_PLATDATA
460
Simon Glass36b15e22020-10-03 11:31:35 -0600461config TPL_OF_PLATDATA_PARENT
462 bool "Support parent information in devices"
Simon Glass36b15e22020-10-03 11:31:35 -0600463 default y
464 help
465 Generally it is useful to be able to access the parent of a device
466 with of-platdata. To save space this can be disabled, but in that
467 case dev_get_parent() will always return NULL;
468
Simon Glass240d5f62021-02-03 06:01:13 -0700469config TPL_OF_PLATDATA_INST
470 bool "Declare devices at build time"
471
472 help
473 Declare devices as udevice instances so that they do not need to be
474 bound when U-Boot starts. This can save time and code space.
475
Simon Glass47fd4a22021-03-15 17:25:15 +1300476config TPL_OF_PLATDATA_NO_BIND
477 bool "Don't allow run-time binding of devices"
478 depends on TPL_OF_PLATDATA_INST
479 default y
480 help
481 This removes the ability to bind devices at run time, thus saving
482 some code space in U-Boot. This can be disabled if binding is needed,
483 at the code of some code size increase.
484
Simon Glass5b21b342021-03-15 17:25:35 +1300485config TPL_OF_PLATDATA_RT
486 bool "Use a separate struct for device runtime data"
487 depends on TPL_OF_PLATDATA_INST
488 default y
489 help
490 For systems running TPL from read-only memory it is convenient to
491 separate out the runtime information, so that the devices don't need
492 to be copied before being used. This moves the read-write parts of
493 struct udevice (at present just the flags) into a separate struct,
494 which is allocated at runtime.
495
Simon Glass8beeb282021-03-15 17:25:36 +1300496config TPL_OF_PLATDATA_DRIVER_RT
497 bool
498 help
499 Use a separate struct for driver runtime data.
500
501 This enables the driver_rt information, used with of-platdata when
502 of-platdata-inst is not used. It allows finding devices by their
503 driver data.
504
Simon Glass240d5f62021-02-03 06:01:13 -0700505endif
506
Masahiro Yamada9fadbc82014-09-22 19:59:05 +0900507endmenu