blob: 19f70393b45a59b90f9dc9476e8d09af0a81d29b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glass0e724032012-12-13 20:49:12 +00002/*
3 * Copyright (c) 2012 The Chromium OS Authors.
4 * (C) Copyright 2002-2010
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glass0e724032012-12-13 20:49:12 +00006 */
7
8#ifndef __ASM_GENERIC_GBL_DATA_H
9#define __ASM_GENERIC_GBL_DATA_H
10/*
11 * The following data structure is placed in some memory which is
12 * available very early after boot (like DPRAM on MPC8xx/MPC82xx, or
13 * some locked parts of the data cache) to allow for a minimum set of
14 * global variables during system initialization (until we have set
15 * up the memory controller so that we can use RAM).
16 *
17 * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
18 *
19 * Each architecture has its own private fields. For now all are private
20 */
21
22#ifndef __ASSEMBLY__
Stefan Roese85bddff2019-04-12 16:42:28 +020023#include <fdtdec.h>
Simon Glass1bb49232015-11-08 23:47:48 -070024#include <membuff.h>
Simon Glassdd6ab882014-02-26 15:59:18 -070025#include <linux/list.h>
26
Simon Glassde0115a2020-11-04 09:57:19 -070027struct acpi_ctx;
Simon Glasscfd6a002020-10-03 11:31:33 -060028struct driver_rt;
29
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020030typedef struct global_data gd_t;
31
32/**
33 * struct global_data - global data structure
34 */
35struct global_data {
36 /**
37 * @bd: board information
38 */
Masahiro Yamadad788bba2020-02-25 02:22:27 +090039 struct bd_info *bd;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020040 /**
41 * @flags: global data flags
42 *
43 * See &enum gd_flags
44 */
Simon Glass0e724032012-12-13 20:49:12 +000045 unsigned long flags;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020046 /**
47 * @baudrate: baud rate of the serial interface
48 */
Simon Glass059c54f2013-03-05 14:40:05 +000049 unsigned int baudrate;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020050 /**
51 * @cpu_clk: CPU clock rate in Hz
52 */
53 unsigned long cpu_clk;
54 /**
55 * @bus_clk: platform clock rate in Hz
56 */
Simon Glass0e724032012-12-13 20:49:12 +000057 unsigned long bus_clk;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020058 /**
59 * @pci_clk: PCI clock rate in Hz
60 */
Simon Glass0e724032012-12-13 20:49:12 +000061 /* We cannot bracket this with CONFIG_PCI due to mpc5xxx */
62 unsigned long pci_clk;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020063 /**
64 * @mem_clk: memory clock rate in Hz
65 */
Simon Glass0e724032012-12-13 20:49:12 +000066 unsigned long mem_clk;
Heiko Schocher70bd8182019-07-22 06:49:04 +020067#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO) || defined(CONFIG_DM_VIDEO)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020068 /**
69 * @fb_base: base address of frame buffer memory
70 */
71 unsigned long fb_base;
Simon Glass0e724032012-12-13 20:49:12 +000072#endif
Simon Glass49badb92017-12-04 13:48:23 -070073#if defined(CONFIG_POST)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020074 /**
75 * @post_log_word: active POST tests
76 *
77 * @post_log_word is a bit mask defining which POST tests are recorded
78 * (see constants POST_*).
79 */
80 unsigned long post_log_word;
81 /**
82 * @post_log_res: POST results
83 *
84 * @post_log_res is a bit mask with the POST results. A bit with value 1
85 * indicates successful execution.
86 */
87 unsigned long post_log_res;
88 /**
89 * @post_init_f_time: time in ms when post_init_f() started
90 */
91 unsigned long post_init_f_time;
Simon Glass0e724032012-12-13 20:49:12 +000092#endif
93#ifdef CONFIG_BOARD_TYPES
Heinrich Schuchardt50d92862020-10-05 08:30:09 +020094 /**
95 * @board_type: board type
96 *
97 * If a U-Boot configuration supports multiple board types, the actual
98 * board type may be stored in this field.
99 */
Simon Glass0e724032012-12-13 20:49:12 +0000100 unsigned long board_type;
101#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200102 /**
103 * @have_console: console is available
104 *
105 * A value of 1 indicates that serial_init() was called and a console
106 * is available.
107 * A value of 0 indicates that console input and output drivers shall
108 * not be called.
109 */
110 unsigned long have_console;
Simon Glasse304a5e2016-10-17 20:12:36 -0600111#if CONFIG_IS_ENABLED(PRE_CONSOLE_BUFFER)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200112 /**
113 * @precon_buf_idx: pre-console buffer index
114 *
115 * @precon_buf_idx indicates the current position of the buffer used to
116 * collect output before the console becomes available
117 */
118 unsigned long precon_buf_idx;
Simon Glass0e724032012-12-13 20:49:12 +0000119#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200120 /**
121 * @env_addr: address of environment structure
122 *
123 * @env_addr contains the address of the structure holding the
124 * environment variables.
125 */
126 unsigned long env_addr;
127 /**
128 * @env_valid: environment is valid
129 *
130 * See &enum env_valid
131 */
132 unsigned long env_valid;
133 /**
134 * @env_has_init: bit mask indicating environment locations
135 *
136 * &enum env_location defines which bit relates to which location
137 */
138 unsigned long env_has_init;
139 /**
140 * @env_load_prio: priority of the loaded environment
141 */
142 int env_load_prio;
143 /**
144 * @ram_base: base address of RAM used by U-Boot
145 */
146 unsigned long ram_base;
147 /**
148 * @ram_top: top address of RAM used by U-Boot
149 */
150 unsigned long ram_top;
151 /**
152 * @relocaddr: start address of U-Boot in RAM
153 *
154 * After relocation this field indicates the address to which U-Boot
155 * has been relocated. It can be displayed using the bdinfo command.
156 * Its value is needed to display the source code when debugging with
157 * GDB using the 'add-symbol-file u-boot <relocaddr>' command.
158 */
159 unsigned long relocaddr;
160 /**
161 * @ram_size: RAM size in bytes
162 */
163 phys_size_t ram_size;
164 /**
165 * @mon_len: monitor length in bytes
166 */
167 unsigned long mon_len;
168 /**
169 * @irq_sp: IRQ stack pointer
170 */
171 unsigned long irq_sp;
172 /**
173 * @start_addr_sp: initial stack pointer address
174 */
175 unsigned long start_addr_sp;
176 /**
177 * @reloc_off: relocation offset
178 */
Simon Glass0e724032012-12-13 20:49:12 +0000179 unsigned long reloc_off;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200180 /**
181 * @new_gd: pointer to relocated global data
182 */
183 struct global_data *new_gd;
Simon Glassdd6ab882014-02-26 15:59:18 -0700184
185#ifdef CONFIG_DM
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200186 /**
Dario Binacchib574d682020-12-30 00:16:21 +0100187 * @dm_flags: additional flags for Driver Model
188 *
189 * See &enum gd_dm_flags
190 */
191 unsigned long dm_flags;
192 /**
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200193 * @dm_root: root instance for Driver Model
194 */
195 struct udevice *dm_root;
196 /**
197 * @dm_root_f: pre-relocation root instance
198 */
199 struct udevice *dm_root_f;
200 /**
201 * @uclass_root: head of core tree
202 */
Simon Glass784cd9e2020-12-19 10:40:17 -0700203 struct list_head uclass_root_s;
204 /**
205 * @uclass_root: pointer to head of core tree, if uclasses are in
206 * read-only memory and cannot be adjusted to use @uclass_root as a
207 * list head.
208 */
209 struct list_head *uclass_root;
Simon Glasscfd6a002020-10-03 11:31:33 -0600210# if CONFIG_IS_ENABLED(OF_PLATDATA)
Simon Glass9286eb92020-11-29 17:07:05 -0700211 /** @dm_driver_rt: Dynamic info about the driver */
Simon Glasscfd6a002020-10-03 11:31:33 -0600212 struct driver_rt *dm_driver_rt;
213# endif
Simon Glassdd6ab882014-02-26 15:59:18 -0700214#endif
Thomas Choufb798b12015-10-09 13:46:34 +0800215#ifdef CONFIG_TIMER
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200216 /**
217 * @timer: timer instance for Driver Model
218 */
219 struct udevice *timer;
Thomas Choufb798b12015-10-09 13:46:34 +0800220#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200221 /**
222 * @fdt_blob: U-Boot's own device tree, NULL if none
223 */
224 const void *fdt_blob;
225 /**
226 * @new_fdt: relocated device tree
227 */
228 void *new_fdt;
229 /**
230 * @fdt_size: space reserved for relocated device space
231 */
232 unsigned long fdt_size;
Simon Glass40916e62020-10-03 09:25:22 -0600233#if CONFIG_IS_ENABLED(OF_LIVE)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200234 /**
235 * @of_root: root node of the live tree
236 */
Simon Glassa6eedb82017-05-18 20:08:53 -0600237 struct device_node *of_root;
238#endif
Jean-Jacques Hiblot7c530e32018-12-07 14:50:52 +0100239
240#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200241 /**
242 * @multi_dtb_fit: pointer to uncompressed multi-dtb FIT image
243 */
244 const void *multi_dtb_fit;
Jean-Jacques Hiblot7c530e32018-12-07 14:50:52 +0100245#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200246 /**
247 * @jt: jump table
248 *
249 * The jump table contains pointers to exported functions. A pointer to
250 * the jump table is passed to standalone applications.
251 */
252 struct jt_funcs *jt;
253 /**
254 * @env_buf: buffer for env_get() before reloc
255 */
256 char env_buf[32];
Simon Glass209a1a62013-06-11 11:14:42 -0700257#ifdef CONFIG_TRACE
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200258 /**
259 * @trace_buff: trace buffer
260 *
261 * When tracing function in U-Boot this field points to the buffer
262 * recording the function calls.
263 */
264 void *trace_buff;
Simon Glass209a1a62013-06-11 11:14:42 -0700265#endif
Heiko Schochere7d9c4f2012-01-16 21:12:23 +0000266#if defined(CONFIG_SYS_I2C)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200267 /**
268 * @cur_i2c_bus: currently used I2C bus
269 */
270 int cur_i2c_bus;
Heiko Schochere7d9c4f2012-01-16 21:12:23 +0000271#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200272 /**
273 * @timebase_h: high 32 bits of timer
274 */
Peng Fan9a60a9e2017-05-09 10:32:03 +0800275 unsigned int timebase_h;
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200276 /**
277 * @timebase_l: low 32 bits of timer
278 */
Peng Fan9a60a9e2017-05-09 10:32:03 +0800279 unsigned int timebase_l;
Andy Yan1fa20e4d2017-07-24 17:43:34 +0800280#if CONFIG_VAL(SYS_MALLOC_F_LEN)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200281 /**
282 * @malloc_base: base address of early malloc()
283 */
284 unsigned long malloc_base;
285 /**
286 * @malloc_limit: limit address of early malloc()
287 */
288 unsigned long malloc_limit;
289 /**
290 * @malloc_ptr: current address of early malloc()
291 */
292 unsigned long malloc_ptr;
Simon Glass863e4042014-07-10 22:23:28 -0600293#endif
Bin Mengf1b81fc2014-12-30 22:53:21 +0800294#ifdef CONFIG_PCI
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200295 /**
296 * @hose: PCI hose for early use
297 */
298 struct pci_controller *hose;
299 /**
300 * @pci_ram_top: top of region accessible to PCI
301 */
302 phys_addr_t pci_ram_top;
Bin Mengf1b81fc2014-12-30 22:53:21 +0800303#endif
304#ifdef CONFIG_PCI_BOOTDELAY
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200305 /**
306 * @pcidelay_done: delay time before scanning of PIC hose expired
307 *
308 * If CONFIG_PCI_BOOTDELAY=y, pci_hose_scan() waits for the number of
309 * milliseconds defined by environment variable pcidelay before
310 * scanning. Once this delay has expired the flag @pcidelay_done
311 * is set to 1.
312 */
Bin Mengf1b81fc2014-12-30 22:53:21 +0800313 int pcidelay_done;
314#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200315 /**
316 * @cur_serial_dev: current serial device
317 */
318 struct udevice *cur_serial_dev;
319 /**
320 * @arch: architecture-specific data
321 */
322 struct arch_global_data arch;
Simon Glass1bb49232015-11-08 23:47:48 -0700323#ifdef CONFIG_CONSOLE_RECORD
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200324 /**
325 * @console_out: output buffer for console recording
326 *
327 * This buffer is used to collect output during console recording.
328 */
329 struct membuff console_out;
330 /**
331 * @console_in: input buffer for console recording
332 *
333 * If console recording is activated, this buffer can be used to
334 * emulate input.
335 */
336 struct membuff console_in;
Simon Glass1bb49232015-11-08 23:47:48 -0700337#endif
Simon Glassfce58f52016-01-18 19:52:21 -0700338#ifdef CONFIG_DM_VIDEO
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200339 /**
340 * @video_top: top of video frame buffer area
341 */
342 ulong video_top;
343 /**
344 * @video_bottom: bottom of video frame buffer area
345 */
346 ulong video_bottom;
Simon Glassfce58f52016-01-18 19:52:21 -0700347#endif
Simon Glass88200332017-05-22 05:05:25 -0600348#ifdef CONFIG_BOOTSTAGE
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200349 /**
350 * @bootstage: boot stage information
351 */
352 struct bootstage_data *bootstage;
353 /**
354 * @new_bootstage: relocated boot stage information
355 */
356 struct bootstage_data *new_bootstage;
Simon Glass88200332017-05-22 05:05:25 -0600357#endif
Simon Glassd95645d2017-12-04 13:48:24 -0700358#ifdef CONFIG_LOG
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200359 /**
360 * @log_drop_count: number of dropped log messages
361 *
362 * This counter is incremented for each log message which can not
363 * be processed because logging is not yet available as signaled by
364 * flag %GD_FLG_LOG_READY in @flags.
365 */
366 int log_drop_count;
367 /**
368 * @default_log_level: default logging level
369 *
370 * For logging devices without filters @default_log_level defines the
371 * logging level, cf. &enum log_level_t.
372 */
373 int default_log_level;
374 /**
375 * @log_head: list of logging devices
376 */
377 struct list_head log_head;
378 /**
379 * @log_fmt: bit mask for logging format
380 *
381 * The @log_fmt bit mask selects the fields to be shown in log messages.
382 * &enum log_fmt defines the bits of the bit mask.
383 */
384 int log_fmt;
Heinrich Schuchardtfdf55992020-10-17 14:31:57 +0200385
386 /**
387 * @processing_msg: a log message is being processed
388 *
389 * This flag is used to suppress the creation of additional messages
390 * while another message is being processed.
391 */
392 bool processing_msg;
Heinrich Schuchardt0fc9f4f2020-10-17 14:31:58 +0200393 /**
394 * @logc_prev: logging category of previous message
395 *
396 * This value is used as logging category for continuation messages.
397 */
398 int logc_prev;
399 /**
Heinrich Schuchardt14e77222020-10-30 18:50:31 +0100400 * @logl_prev: logging level of the previous message
Heinrich Schuchardt0fc9f4f2020-10-17 14:31:58 +0200401 *
402 * This value is used as logging level for continuation messages.
403 */
404 int logl_prev;
Simon Glassd95645d2017-12-04 13:48:24 -0700405#endif
Simon Glassa815dab2018-11-15 18:43:52 -0700406#if CONFIG_IS_ENABLED(BLOBLIST)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200407 /**
408 * @bloblist: blob list information
409 */
410 struct bloblist_hdr *bloblist;
411 /**
412 * @new_bloblist: relocated blob list information
413 */
414 struct bloblist_hdr *new_bloblist;
Ovidiu Panaitc1b30d52020-11-28 10:43:20 +0200415#endif
416#if CONFIG_IS_ENABLED(HANDOFF)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200417 /**
418 * @spl_handoff: SPL hand-off information
419 */
Simon Glasse14f1a22018-11-15 18:44:09 -0700420 struct spl_handoff *spl_handoff;
Simon Glassa815dab2018-11-15 18:43:52 -0700421#endif
Stefan Roese85bddff2019-04-12 16:42:28 +0200422#if defined(CONFIG_TRANSLATION_OFFSET)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200423 /**
424 * @translation_offset: optional translation offset
425 *
426 * See CONFIG_TRANSLATION_OFFSET.
427 */
428 fdt_addr_t translation_offset;
Stefan Roese85bddff2019-04-12 16:42:28 +0200429#endif
Marek Vasut55ec91b2019-06-09 03:46:21 +0200430#if CONFIG_IS_ENABLED(WDT)
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200431 /**
432 * @watchdog_dev: watchdog device
433 */
Stefan Roese502acb02019-04-11 15:58:44 +0200434 struct udevice *watchdog_dev;
435#endif
Simon Glassde0115a2020-11-04 09:57:19 -0700436#ifdef CONFIG_GENERATE_ACPI_TABLE
437 /**
438 * @acpi_ctx: ACPI context pointer
439 */
440 struct acpi_ctx *acpi_ctx;
441#endif
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200442};
Simon Glass0e724032012-12-13 20:49:12 +0000443
Heinrich Schuchardt50d92862020-10-05 08:30:09 +0200444/**
445 * gd_board_type() - retrieve board type
446 *
447 * Return: global board type
448 */
Simon Glassb4de3f32017-03-31 08:40:24 -0600449#ifdef CONFIG_BOARD_TYPES
450#define gd_board_type() gd->board_type
451#else
452#define gd_board_type() 0
453#endif
454
Simon Glass40916e62020-10-03 09:25:22 -0600455/* These macros help avoid #ifdefs in the code */
456#if CONFIG_IS_ENABLED(OF_LIVE)
457#define gd_of_root() gd->of_root
458#define gd_of_root_ptr() &gd->of_root
459#define gd_set_of_root(_root) gd->of_root = (_root)
460#else
461#define gd_of_root() NULL
462#define gd_of_root_ptr() NULL
463#define gd_set_of_root(_root)
464#endif
465
Simon Glasscfd6a002020-10-03 11:31:33 -0600466#if CONFIG_IS_ENABLED(OF_PLATDATA)
467#define gd_set_dm_driver_rt(dyn) gd->dm_driver_rt = dyn
468#define gd_dm_driver_rt() gd->dm_driver_rt
469#else
470#define gd_set_dm_driver_rt(dyn)
471#define gd_dm_driver_rt() NULL
472#endif
473
Simon Glassde0115a2020-11-04 09:57:19 -0700474#ifdef CONFIG_GENERATE_ACPI_TABLE
475#define gd_acpi_ctx() gd->acpi_ctx
476#else
477#define gd_acpi_ctx() NULL
478#endif
479
Dario Binacchib574d682020-12-30 00:16:21 +0100480#if CONFIG_IS_ENABLED(DM)
481#define gd_size_cells_0() (gd->dm_flags & GD_DM_FLG_SIZE_CELLS_0)
482#else
483#define gd_size_cells_0() (0)
484#endif
485
Heinrich Schuchardt1e5c4fe2020-10-05 08:30:08 +0200486/**
487 * enum gd_flags - global data flags
488 *
489 * See field flags of &struct global_data.
Simon Glass0e724032012-12-13 20:49:12 +0000490 */
Heinrich Schuchardt1e5c4fe2020-10-05 08:30:08 +0200491enum gd_flags {
492 /**
493 * @GD_FLG_RELOC: code was relocated to RAM
494 */
495 GD_FLG_RELOC = 0x00001,
496 /**
497 * @GD_FLG_DEVINIT: devices have been initialized
498 */
499 GD_FLG_DEVINIT = 0x00002,
500 /**
501 * @GD_FLG_SILENT: silent mode
502 */
503 GD_FLG_SILENT = 0x00004,
504 /**
505 * @GD_FLG_POSTFAIL: critical POST test failed
506 */
507 GD_FLG_POSTFAIL = 0x00008,
508 /**
509 * @GD_FLG_POSTSTOP: POST sequence aborted
510 */
511 GD_FLG_POSTSTOP = 0x00010,
512 /**
513 * @GD_FLG_LOGINIT: log Buffer has been initialized
514 */
515 GD_FLG_LOGINIT = 0x00020,
516 /**
517 * @GD_FLG_DISABLE_CONSOLE: disable console (in & out)
518 */
519 GD_FLG_DISABLE_CONSOLE = 0x00040,
520 /**
521 * @GD_FLG_ENV_READY: environment imported into hash table
522 */
523 GD_FLG_ENV_READY = 0x00080,
524 /**
525 * @GD_FLG_SERIAL_READY: pre-relocation serial console ready
526 */
527 GD_FLG_SERIAL_READY = 0x00100,
528 /**
529 * @GD_FLG_FULL_MALLOC_INIT: full malloc() is ready
530 */
531 GD_FLG_FULL_MALLOC_INIT = 0x00200,
532 /**
533 * @GD_FLG_SPL_INIT: spl_init() has been called
534 */
535 GD_FLG_SPL_INIT = 0x00400,
536 /**
537 * @GD_FLG_SKIP_RELOC: don't relocate
538 */
539 GD_FLG_SKIP_RELOC = 0x00800,
540 /**
541 * @GD_FLG_RECORD: record console
542 */
543 GD_FLG_RECORD = 0x01000,
544 /**
545 * @GD_FLG_ENV_DEFAULT: default variable flag
546 */
547 GD_FLG_ENV_DEFAULT = 0x02000,
548 /**
549 * @GD_FLG_SPL_EARLY_INIT: early SPL initialization is done
550 */
551 GD_FLG_SPL_EARLY_INIT = 0x04000,
552 /**
553 * @GD_FLG_LOG_READY: log system is ready for use
554 */
555 GD_FLG_LOG_READY = 0x08000,
556 /**
557 * @GD_FLG_WDT_READY: watchdog is ready for use
558 */
559 GD_FLG_WDT_READY = 0x10000,
560 /**
561 * @GD_FLG_SKIP_LL_INIT: don't perform low-level initialization
562 */
563 GD_FLG_SKIP_LL_INIT = 0x20000,
564 /**
565 * @GD_FLG_SMP_READY: SMP initialization is complete
566 */
567 GD_FLG_SMP_READY = 0x40000,
568};
569
Dario Binacchib574d682020-12-30 00:16:21 +0100570/**
571 * enum gd_dm_flags - global data flags for Driver Model
572 *
573 * See field dm_flags of &struct global_data.
574 */
575enum gd_dm_flags {
576 /**
577 * @GD_DM_FLG_SIZE_CELLS_0: Enable #size-cells=<0> translation
578 */
579 GD_DM_FLG_SIZE_CELLS_0 = 0x00001,
580};
581
Heinrich Schuchardt1e5c4fe2020-10-05 08:30:08 +0200582#endif /* __ASSEMBLY__ */
Simon Glass0e724032012-12-13 20:49:12 +0000583
584#endif /* __ASM_GENERIC_GBL_DATA_H */