From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 18 Jan 2016 00:39:25 +0100 Subject: [U-Boot] [PATCH 11/18] dm: common: Add memory reservation for the video uclass In-Reply-To: <1452011474-15207-12-git-send-email-sjg@chromium.org> References: <1452011474-15207-1-git-send-email-sjg@chromium.org> <1452011474-15207-12-git-send-email-sjg@chromium.org> Message-ID: <20160118003925.67825311@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 5 Jan 2016 09:31:07 -0700 Simon Glass wrote: > 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 > --- > > common/board_f.c | 47 +++++++++++++++++++++++++++++---------- > include/asm-generic/global_data.h | 4 ++++ > 2 files changed, 39 insertions(+), 12 deletions(-) Acked-by: Anatolij Gustschin -- Anatolij