From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 1 Dec 2014 20:24:53 -0800 Subject: [U-Boot] [PATCH] powerpc/t1040qds: Add support of SD boot for T1040QDS Board In-Reply-To: <1414827111-8393-1-git-send-email-vijay.rai@freescale.com> References: <1414827111-8393-1-git-send-email-vijay.rai@freescale.com> Message-ID: <547D3F15.5000907@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/01/2014 12:31 AM, Vijay Rai wrote: > Add support of 2 stage SD boot loader using SPL framework. > here, PBL initialise the internal SRAM and copy SPL(160KB). This further > initialise DDR using SPD environment and copy u-boot(768 KB) from NAND to DDR. > Finally SPL transer control to u-boot. > > Initialise/create followings required for SPL framework > - Add spl.c which defines board_init_f, board_init_r > - Update tlb and ddr accordingly > > Add T1040QDS_SDCARD_defconfig > Update t1040_pbi.cfg to support errata A-007662, A-008007 and LAW for CPC1 > > Signed-off-by: Vijay Rai > --- > board/freescale/t1040qds/MAINTAINERS | 5 ++ > board/freescale/t1040qds/Makefile | 10 ++- > board/freescale/t1040qds/ddr.c | 5 +- > board/freescale/t1040qds/spl.c | 155 ++++++++++++++++++++++++++++++++ > board/freescale/t1040qds/t1040_pbi.cfg | 16 +++- > board/freescale/t1040qds/t1040qds.c | 6 +- > board/freescale/t1040qds/tlb.c | 11 +++ > configs/T1040QDS_SDCARD_defconfig | 5 ++ > include/configs/T1040QDS.h | 85 ++++++++++++++---- > 9 files changed, 275 insertions(+), 23 deletions(-) > create mode 100644 board/freescale/t1040qds/spl.c > create mode 100644 configs/T1040QDS_SDCARD_defconfig > I don't know if you have tested this patch. It has at least two issues. First, it fails compiling for T1040QDS_SDCARD target. I think you missed a change to Kconfig. Second, it breaks T1040QDS target. I guess your change to include/configs/T1040QDS.h has ifdef/endif messed up. Please try it on top of tree git://git.denx.de/u-boot.git, or u-boot-mpc85xx.git. York