diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-18 19:52:21 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-20 19:10:15 -0700 |
commit | 5a54194515caa4f4183dc9086938456612749573 (patch) | |
tree | 65c18464f928cbe4763893de46c54c12276be05d /include | |
parent | 8703ef3fdbfda239bcc67818e9b0f6ddaa7f6ad4 (diff) | |
download | u-boot-imx-5a54194515caa4f4183dc9086938456612749573.zip u-boot-imx-5a54194515caa4f4183dc9086938456612749573.tar.gz u-boot-imx-5a54194515caa4f4183dc9086938456612749573.tar.bz2 |
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')
-rw-r--r-- | include/asm-generic/global_data.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 5d8b043..a587d3c 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 |