summaryrefslogtreecommitdiff
path: root/include/asm-generic/global_data.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-11 01:00:20 (GMT)
committerSimon Glass <sjg@chromium.org>2014-11-21 06:24:11 (GMT)
commit469a579df2907a421afec06e37d50e61b7d80227 (patch)
tree6c122952681674360e6360b0d6d923c6741824e3 /include/asm-generic/global_data.h
parenta9f04d49e519383f98689d603facdee227a2f94d (diff)
downloadu-boot-469a579df2907a421afec06e37d50e61b7d80227.tar.xz
dm: serial: Move current serial port pointer to global_data
In general we can't store things in the data section until we have inited SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move the pointer to global_data so that it will work on all platforms. Without this fix the serial port will not work prior to relocation with driver model on some platforms. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/asm-generic/global_data.h')
-rw-r--r--include/asm-generic/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 74df210..f61acbc 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -91,6 +91,7 @@ typedef struct global_data {
unsigned long malloc_limit; /* limit address */
unsigned long malloc_ptr; /* current address */
#endif
+ struct udevice *cur_serial_dev; /* current serial device */
struct arch_global_data arch; /* architecture-specific data */
} gd_t;
#endif