From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 18 Apr 2017 15:25:49 +0200 Subject: [U-Boot] [PATCH 1/5] spl: reorder the assignment of board info to global data In-Reply-To: <1492516647-26840-2-git-send-email-ravibabu@ti.com> References: <1492516647-26840-1-git-send-email-ravibabu@ti.com> <1492516647-26840-2-git-send-email-ravibabu@ti.com> Message-ID: <20170418152549.1b345488@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Ravi, > From: Lokesh Vutla > > Move the assignment of board info to global data a bit early which is > safe, > so that ram details can be used to enable caches. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Ravi Babu > --- > common/spl/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl.c b/common/spl/spl.c > index a3e73b8..f11b370 100644 > --- a/common/spl/spl.c > +++ b/common/spl/spl.c > @@ -322,6 +322,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) > struct spl_image_info spl_image; > > debug(">>spl:board_init_r()\n"); > + gd->bd = &bdata; > > #if defined(CONFIG_SYS_SPL_MALLOC_START) > mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START, > @@ -383,7 +384,6 @@ void board_init_r(gd_t *dummy1, ulong dummy2) > */ > void preloader_console_init(void) > { > - gd->bd = &bdata; > gd->baudrate = CONFIG_BAUDRATE; > > serial_init(); /* serial communications setup > */ Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de