[U-Boot] [PATCH v2 03/33] dm: serial: Move current serial port pointer to global_data
Simon Glass
sjg at chromium.org
Thu Nov 13 06:24:32 CET 2014
On 10 November 2014 18:00, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2: None
>
> drivers/serial/serial-uclass.c | 35 +++++++++++++++++++----------------
> include/asm-generic/global_data.h | 1 +
> 2 files changed, 20 insertions(+), 16 deletions(-)
Applied to u-boot-x86.
More information about the U-Boot
mailing list