[U-Boot] [PATCH v2] mpc83xx: Add NAND boot support for MPC8315E-RDB boards

Kim Phillips kim.phillips at freescale.com
Fri Jan 8 01:53:00 CET 2010


On Tue, 24 Nov 2009 20:12:12 +0300
Anton Vorontsov <avorontsov at ru.mvista.com> wrote:

> The core support for NAND booting is there already, so this patch
> is pretty straightforward.
> 
> There is one trick though: top level Makefile expects nand_spl to
> be in nand_spl/board/$(BOARDDIR), but we can fully reuse the code
> from mpc8313erdb boards, and so to not duplicate the code we just
> symlink nand_spl/board/freescale/mpc8315erdb to mpc8313erdb.
> 
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
> ---
> 
> On Thu, Nov 19, 2009 at 01:17:36PM -0600, Kumar Gala wrote:
> [...]
> > >	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
> > >+	@if [ "$(findstring _NAND_,$@)" ] ; then \
> > >+		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
> > >+	fi ;
> > 
> > Use the new -t option to mkconfig.
> 
> Thanks for the hint.
> 
> Here is the updated patch.
> 
>  MAKEALL                                   |    1 +
>  Makefile                                  |    6 ++-
>  board/freescale/mpc8315erdb/config.mk     |    8 +++
>  board/freescale/mpc8315erdb/mpc8315erdb.c |   42 +++++++++++++
>  board/freescale/mpc8315erdb/sdram.c       |    7 ++
>  include/configs/MPC8315ERDB.h             |   95 +++++++++++++++++++++++------
>  6 files changed, 139 insertions(+), 20 deletions(-)

applied, with the below fixes merged into the same commit.

Thanks,

Kim



More information about the U-Boot mailing list