summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-18 19:52:21 -0700
committerSimon Glass <sjg@chromium.org>2016-01-20 19:10:15 -0700
commit5a54194515caa4f4183dc9086938456612749573 (patch)
tree65c18464f928cbe4763893de46c54c12276be05d /include/asm-generic
parent8703ef3fdbfda239bcc67818e9b0f6ddaa7f6ad4 (diff)
downloadtalos-obmc-uboot-5a54194515caa4f4183dc9086938456612749573.tar.gz
talos-obmc-uboot-5a54194515caa4f4183dc9086938456612749573.zip
dm: common: Add memory reservation for the video uclass
Before relocation we need to reserve memory for the video driver frame buffers so that they can use this memory when they start up (after relocation). Add a call to the uclass to permit this. The current top and bottom of the region is stored in global_data so that it can be checked post-relocation to ensure enough memory is available. No video device should be probed before relocation. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 5d8b043f14..a587d3c203 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -122,6 +122,10 @@ typedef struct global_data {
struct membuff console_out; /* console output */
struct membuff console_in; /* console input */
#endif
+#ifdef CONFIG_DM_VIDEO
+ ulong video_top; /* Top of video frame buffer area */
+ ulong video_bottom; /* Bottom of video frame buffer area */
+#endif
} gd_t;
#endif
OpenPOWER on IntegriCloud