[U-Boot] [PATCH 5/8] powerpc: spl: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and introduced new symbol CONFIG_SPL_MINIMAL

2013-06-07 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Introduced a new symbol CONFIG_SPL_MINIMAL: It is different from the common SPL. If set, only a tiny part code of the SPL is built and to avoid unreferenced functions. For example: mpc85xx nand SPL. It bel

[U-Boot] [PATCH 6/8 v2] spl: env_common.c: make CONFIG_SPL_BUILD contain function env_import

2013-06-07 Thread ying.zhang
From: Ying Zhang The functionality env_import will be used in the SPL. They had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it into the SPL. Signed-off-by: Ying Zhang --- Compared with the previous version, split into two separate patches. this pactch only enables function env_import in

[U-Boot] [PATCH 8/8] powerpc/p1022ds: boot from spi flash with SPL

2013-06-07 Thread ying.zhang
From: Ying Zhang Support to boot from spi flash. This patch is on top of the patch: powerpc/p1022ds: boot from SD Card with SPL Signed-off-by: Ying Zhang --- board/freescale/p1022ds/spl.c | 12 +- drivers/mtd/spi/Makefile |1 + drivers/mtd/spi/fsl_espi_spl.c | 79 ++

[U-Boot] [PATCH 2/8 v2] powerpc/mpc85xx: modify the functionality clear_bss and aligning the end address of the BSS

2013-06-07 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the address is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it wil

[U-Boot] [PATCH] powerpc/p1022ds: nand: introduce the TPL based on the SPL

2013-06-08 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on the board P1022DS has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the SPL. It initializes

[U-Boot] [PATCH 05/10 v2] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-06-18 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Compared with the previous version, use !defined(C

[U-Boot] [PATCH 09/10 v2] nand: tpl : introduce the TPL based on the SPL

2013-06-18 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the SPL. It initia

[U-Boot] [PATCH 10/10] powerpc: p1022ds: support TPL on the P1022DS

2013-06-18 Thread ying.zhang
From: Ying Zhang Support TPL on the P1022DS. The TPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initializes the DDR through SPD code, and copys final uboot image to DDR. So there are three stage uboot images: * spl_boot, 4KB size, pad to 128K byte.

[U-Boot] [PATCH 04/10 v5] Makefile: move the common makefile line to public area

2013-06-20 Thread ying.zhang
From: Ying Zhang Move the common makefile line shared by the SPL and non-SPL to the public area, so that we can avoid excessive SPL symbols. Some of them will be used by the SPL later. This patch is on top of the patch "common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SP

[U-Boot] [PATCH 02/10 v5] powerpc/mpc85xx: modify the functionality clear_bss and aligning the end address of the BSS

2013-06-20 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the address is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it wil

[U-Boot] [PATCH 03/10 v5] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-06-20 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Ying Zhang

[U-Boot] [PATCH 05/10 v5] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-06-20 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Compared with the original version, Changed as bel

[U-Boot] [PATCH 06/10 v5] spl: env_common.c: make CONFIG_SPL_BUILD contain function env_import

2013-06-20 Thread ying.zhang
From: Ying Zhang The functionality env_import will be used in the SPL. They had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it into the SPL. Signed-off-by: Ying Zhang --- Compared with the original version, Changed as below: 1. Split from "boot from SD card/SPI flash with SPL". 2. Split

[U-Boot] [PATCH 01/10 v5] powerpc/mpc85xx: support application without resetvec segment in the linker script

2013-06-20 Thread ying.zhang
From: Ying Zhang For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM, then jump to it to begin execution. After that, the SPL loads the final uboot image into DDR, then jump to it to begin execution. The segment .resetvec in the SPL and in final U-boot is useless. So,

[U-Boot] [PATCH 07/10 v5] powerpc/p1022ds: boot from SD Card with SPL

2013-06-20 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH 08/10 v5] powerpc/p1022ds: boot from spi flash with SPL

2013-06-20 Thread ying.zhang
From: Ying Zhang Support to boot from spi flash. This patch is on top of the patch: powerpc/p1022ds: boot from SD Card with SPL Signed-off-by: Ying Zhang --- Compared with the original version, Changed as below: 1. Split from "boot from SD card/SPI flash with SPL". 2. No change. 3. No change.

[U-Boot] [PATCH 10/10 v5] powerpc: p1022ds: support TPL on the P1022DS

2013-06-20 Thread ying.zhang
From: Ying Zhang Support TPL on the P1022DS. The TPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initializes the DDR through SPD code, and copys final uboot image to DDR. So there are three stage uboot images: * spl_boot, 4KB size, pad to 128K byte.

[U-Boot] [PATCH 09/10 v5] nand: tpl : introduce the TPL based on the SPL

2013-06-20 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the SPL. It initia

[U-Boot] [PATCH 2/7 v6] spl: env_common.c: add new symbol CONFIG_SPL_ENV_IMPORT to contain function env_import

2013-06-26 Thread ying.zhang
From: Ying Zhang The functionality env_import will be used in the SPL. They had been excluded by ifndef CONFIG_SPL_BUILD. Now, add new symbol CONFIG_SPL_ENV_IMPORT to contian the functionality env_import in SPL. Signed-off-by: Ying Zhang --- Compared with the original version, Changed as below:

[U-Boot] [PATCH 3/7 v6] powerpc/p1022ds: boot from SD Card with SPL

2013-06-26 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH 1/7 v6] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-06-26 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Compared with the original version, Changed as belo

[U-Boot] [PATCH 5/7 v6] powerpc : p1022ds : enable p1022ds to start from eSPI with SPL

2013-06-26 Thread ying.zhang
From: Ying Zhang enable p1022ds to start from eSPI with SPL. This patch is on top of the patch: SPL : spi flash : support to start from eSPI with SPL Signed-off-by: Ying Zhang --- Compared with the original version, Changed as below: 1. Split from "boot from SD card/SPI flash with SPL". 2. No

[U-Boot] [PATCH 4/7 v6] SPL : spi flash : support to start from eSPI with SPL

2013-06-26 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH 7/7 v6] powerpc: p1022ds: support TPL on the P1022DS

2013-06-26 Thread ying.zhang
From: Ying Zhang Support TPL on the P1022DS. The TPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initializes the DDR through SPD code, and copys final uboot image to DDR. So there are three stage uboot images: * spl_boot, 4KB size, pad to 128K byte.

[U-Boot] [PATCH 6/7 v6] nand: tpl : introduce the TPL based on the SPL

2013-06-26 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the SPL. It initia

[U-Boot] [PATCH 1/7 v7] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Change from v6: - No change. Change from v5: - No c

[U-Boot] [PATCH 4/7 v7] powerpc : spi flash : Support to start from eSPI with SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 6/7 v7] NAND: TPL : introduce the TPL based on the SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that is loaded by the code from the SPL. It initializes the DDR with the SPD or

[U-Boot] [PATCH 2/7 v7] powerpc: mpc85xx: Support booting from SD Card with SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 5/7 v7] powerpc : p1022ds : enable p1022ds to start from eSPI with SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSPI with SPL. Signed-off-by: Ying Zhang --- Change from v6: - No longer changes the header file included by the file - "board/freescale/p1022ds/spl.c" Change from v5: - Split from "powerpc/p1022ds: boot from spi flash with SPL" - this patch enable

[U-Boot] [PATCH 3/7 v7] powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

2013-07-09 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- Change from v6: - Split from the patch "powerpc/p1022ds: boot from SD Card with SPL", - this patch only enables p1022ds to boot from SD Card with SPL. Change from v5: - No change. Change from v4: - No ch

[U-Boot] [PATCH 7/7 v7] powerpc: p1022ds: add TPL for p1022ds nand boot

2013-07-09 Thread ying.zhang
From: Ying Zhang TPL is introduced in the patch "NAND: TPL : introduce the TPL based on the SPL", here enable TPL for p1022ds nand boot. Signed-off-by: Ying Zhang --- Change from v6: - Delete the file "board/freescale/p1022ds/tpl.c". - Reuse the file "board/freescale/p1022ds/spl.c" in the TPL.

[U-Boot] [PATCH 1/7 v8] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Change from v7: - No change. Change from v6: - No c

[U-Boot] [PATCH 3/7 v8] powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- Change from v7: - No change. Change from v6: - Split from the patch "powerpc/p1022ds: boot from SD Card with SPL", - this patch only enables p1022ds to boot from SD Card with SPL. Change from v5: - No ch

[U-Boot] [PATCH 4/7 v8] powerpc : spi flash : Support to start from eSPI with SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 2/7 v8] powerpc: mpc85xx: Support booting from SD Card with SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 7/7 v8] powerpc: p1022ds: add TPL for p1022ds nand boot

2013-07-15 Thread ying.zhang
From: Ying Zhang TPL is introduced in the patch "NAND: TPL : introduce the TPL based on the SPL", here enable TPL for p1022ds nand boot. Signed-off-by: Ying Zhang --- Change from v7: - No change. Change from v6: - Delete the file "board/freescale/p1022ds/tpl.c". - Reuse the file "board/freescal

[U-Boot] [PATCH 5/7 v8] powerpc : p1022ds : enable p1022ds to start from eSPI with SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSPI with SPL. Signed-off-by: Ying Zhang --- Change from v7: - No change. Change from v6: - No longer changes the header file included by the file - "board/freescale/p1022ds/spl.c" Change from v5: - Split from "powerpc/p1022ds: boot from spi flash w

[U-Boot] [PATCH 6/7 v8] NAND: TPL : introduce the TPL based on the SPL

2013-07-15 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that is loaded by the code from the SPL. It initializes the DDR with the SPD or

[U-Boot] [PATCH 2/4] SPL: P2020RDB: fix the problem booting from spi flash

2014-01-23 Thread ying.zhang
From: Ying Zhang There was no enough stack in SPL, so the buffer needed in SPL is to malloc from memory pool and to repalce the temporary variable. Signed-off-by: Ying Zhang --- common/env_sf.c| 7 ++- include/configs/p1_p2_rdb_pc.h | 6 +- 2 files changed, 11 insertion

[U-Boot] [PATCH 3/4] SPL: P2020RDB: fix the problem booting from spi flash

2014-01-23 Thread ying.zhang
From: Ying Zhang There was no enough stack in SPL, so the buffer needed in SPL is to malloc from memory pool and to repalce the temporary variable. Signed-off-by: Ying Zhang --- include/configs/P1022DS.h | 6 +++--- include/configs/p1_p2_rdb_pc.h | 8 2 files changed, 7 insertion

[U-Boot] [PATCH 4/4] powerpc: p1010rdb: Enable p1010rdb to start from NAND/SD/SPI flash with SPL

2014-01-23 Thread ying.zhang
From: Ying Zhang In the previous patches, we introduced the SPL/TPL fraamework. For SD/SPI flash booting way, we introduce the SPL to enable a loader stub. The SPL was loaded by the code from the internal on-chip ROM. The SPL initializes the DDR according to the SPD and loads the final uboot imag

[U-Boot] [PATCH 1/4] SPL: powerpc: expand SPL's length to 128K

2014-01-23 Thread ying.zhang
From: Ying Zhang 1. The SPL's length of SDCARD boot has not enough,expand the SPL's length to 128K. 2. deleted unused symbol: CONFIG_SYS_RUN_INDDR Signed-off-by: Ying Zhang --- include/configs/P1022DS.h | 12 ++-- include/configs/p1_p2_rdb_pc.h | 12 ++-- 2 files changed,

[U-Boot] [PATCH 3/4 v2] SPL: P1022DS: fix the problem booting from spi flash

2014-01-24 Thread ying.zhang
From: Ying Zhang There was no enough memory for malloc in SPL booting from spi flash, so relayout the memory in SPL: reduce the memory for global data from 16K Bytes to 4K Bytes, save the space for malloc. Signed-off-by: Ying Zhang --- Change from v1: - Move the content about P2020RDB to 2 of p

[U-Boot] [PATCH 1/4 v2] SPL: powerpc: expand SPL's length to 128K

2014-01-24 Thread ying.zhang
From: Ying Zhang 1. The SPL's length of SDCARD boot has not enough,expand the SPL's length to 128K. 2. deleted unused symbol: CONFIG_SYS_RUN_INDDR Signed-off-by: Ying Zhang --- Change from v1: - No change. include/configs/P1022DS.h | 12 ++-- include/configs/p1_p2_rdb_pc.h | 12 +

[U-Boot] [PATCH 4/4 v2] powerpc: p1010rdb: Enable p1010rdb to start from NAND/SD/SPI flash with SPL

2014-01-24 Thread ying.zhang
From: Ying Zhang In the previous patches, we introduced the SPL/TPL fraamework. For SD/SPI flash booting way, we introduce the SPL to enable a loader stub. The SPL was loaded by the code from the internal on-chip ROM. The SPL initializes the DDR according to the SPD and loads the final uboot imag

[U-Boot] [PATCH 2/4 v2] SPL: P2020RDB: fix the problem booting from spi flash

2014-01-24 Thread ying.zhang
From: Ying Zhang There was no enough stack in SPL, so the buffer needed in SPL is to malloc from memory pool and to repalce the temporary variable. Signed-off-by: Ying Zhang --- Change from v1: - The malloc size expand to 364K bytes. common/env_sf.c| 7 ++- include/config

[U-Boot] [PATCH] powerpc: 85xx: Modify CONFIG_USB_MAX_CONTROLLER_COUNT for P1022DS

2015-01-30 Thread ying.zhang
From: Ying Zhang Modify CONFIG_USB_MAX_CONTROLLER_COUNT value to 1 on P1022DS. As ETSEC2 and USB2 are muxed; thus if ETSEC2 is enabled, the system bus hangs on USB2 if ETSEC2 is enabled but "usb start" command is issued. Hence making default controller count to 1 to avoid system hang. Signed-off

[U-Boot] [PATCH v2] board/p2020rdb: fix the FDT_ERR_NOTFOUND issue

2015-04-24 Thread ying.zhang
From: Ying Zhang Because the function ft_board_setup() delete the USB2 device node, it leads to can't find the device node and hung up. In fact only P1020RDB needs to delete the USB2 node, this patch fixes this issue. Signed-off-by: Ying Zhang --- Change from v1: - To define the parameter "err

[U-Boot] [PATCH] powerpc/t208xqds: VID support

2014-10-30 Thread ying.zhang
From: Ying Zhang The fuse status register provides the values from on-chip voltage ID efuses programmed at the factory. These values define the voltage requirements for the chip. u-boot reads FUSESR and translates the values into the appropriate commands to set the voltage output value of an exte

[U-Boot] [PATCH v2] powerpc/t208xqds: VID support

2014-10-31 Thread ying.zhang
From: Ying Zhang The fuse status register provides the values from on-chip voltage ID efuses programmed at the factory. These values define the voltage requirements for the chip. u-boot reads FUSESR and translates the values into the appropriate commands to set the voltage output value of an exte

[U-Boot] [PATCH] powerpc/p1022ds: boot from SD card/SPI flash with SPL

2013-05-08 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH] drivers/mmc: move spl_mmc.c to common/spl

2013-05-10 Thread ying.zhang
From: Ying Zhang The mpc85xx repuires a special layout on the memory device that is connected to the eSDHC controller interface. But the file spl_mmc.c didn't handle this specfic case, there needs a special treatmen, in the powerpc drictory. So, there is no longer to keep spl_mmc.c on mpc85xx, CO

[U-Boot] [PATCH] powerpc/mpc85xx: support application without resetvec segment in the linker script

2013-05-10 Thread ying.zhang
From: Ying Zhang For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM, then jump to it to begin execution. After that, the SPL loads the final uboot image into DDR, then jump to it to begin execution. The segment .resetvec in the SPL and in final U-boot is useless. So,

[U-Boot] [PATCH] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT

2013-05-10 Thread ying.zhang
From: Ying Zhang Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT. In common/Makefile, the environment-related files in SPL is difined by CONFIG_SPL_NET_SUPPORT, it is wrong. Signed-off-by: Ying Zhang --- common/Makefile | 12 +--- include/confi

[U-Boot] [PATCH v2] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT

2013-05-13 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT in common/Makefile. Signed-off-by: Ying Zhang --- README

[U-Boot] [PATCH] Makefile: move the common makefile line out of the CONFIG_SPL_BUILD ifdef

2013-05-13 Thread ying.zhang
From: Ying Zhang Move the common makefile line that U-Boot and SPL shared to the public area, so that we can avoid excessive SPL symbols. Some of them will be used by the SPL later. This patch is on top of the patch "add new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT". Sign

[U-Boot] [PATCH] powerpc/mpc85xx: The end address of the bss in the SPL should be 4byte alignment

2013-05-14 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the adress is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it will

[U-Boot] [PATCH v2] powerpc/mpc85xx: The end address of the bss in the SPL should be 4byte alignment

2013-05-14 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the adress is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it will

[U-Boot] [PATCH v3] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-05-14 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Ying Zhang

[U-Boot] [PATCH v2] Makefile: move the common makefile line to public area

2013-05-14 Thread ying.zhang
From: Ying Zhang Move the common makefile line shared by the SPL and non-SPL to the public area, so that we can avoid excessive SPL symbols. Some of them will be used by the SPL later. This patch is on top of the patch "common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SP

[U-Boot] [PATCH v3] powerpc/mpc85xx: modify the function clear_bss and the end address of the BSS

2013-05-14 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the address is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it wil

[U-Boot] [PATCH] Add the symbol for the minimal SPL used to eliminate unused code

2013-05-15 Thread ying.zhang
From: Ying Zhang Add the symbol CONFIG_SPL_BUILD_MINIMAL for the minimal SPL. It used to eliminate code unused in the minimal SPL but used in the SPL. This patch is on top of the following patch: 1. common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL. 2. powerpc/mpc85xx

[U-Boot] [PATCH] powerpc/p1022ds: boot from SD Card with SPL

2013-05-15 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH v4] common/Makefile: Add new symbol CONFIG_SPL_ENV_xxx for environment in SPL

2013-05-16 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Meanwhile we add the followi

[U-Boot] [PATCH v5] Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-05-16 Thread ying.zhang
From: Zhang Ying There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Zhang Ying

[U-Boot] [PATCH v5] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-05-16 Thread ying.zhang
From: Zhang Ying There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Zhang Ying

[U-Boot] [PATCH] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-05-16 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Ying Zhang

[U-Boot] [PATCH v2] spl: Make CONFIG_SPL_BUILD contain more functionality

2013-05-17 Thread ying.zhang
From: Ying Zhang There was some functionality will be used in the SPL. They had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it into the SPL. Signed-off-by: Ying Zhang --- Compared with the previous version, give up new symbol and delete the line ifndef CONFIG_SPL_BUILD in common/env_comm

[U-Boot] [PATCH v3] Makefile: move the common makefile line to public area

2013-05-17 Thread ying.zhang
From: Ying Zhang Move the common makefile line shared by the SPL and non-SPL to the public area, so that we can avoid excessive SPL symbols. Some of them will be used by the SPL later. This patch is on top of the patch "common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SP

[U-Boot] [PATCH 1/6] powerpc/mpc85xx: support application without resetvec segment in the linker script

2013-05-19 Thread ying.zhang
From: Ying Zhang For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM, then jump to it to begin execution. After that, the SPL loads the final uboot image into DDR, then jump to it to begin execution. The segment .resetvec in the SPL and in final U-boot is useless. So,

[U-Boot] [PATCH 3/6] common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SPL

2013-05-19 Thread ying.zhang
From: Ying Zhang There will need the environment in SPL for reasons other than network support (in particular, hwconfig contains info for how to set up DDR). Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT for environment in common/Makefile. Signed-off-by: Ying Zhang

[U-Boot] [PATCH 2/6] powerpc/mpc85xx: modify the functionality clear_bss and the end address of the BSS

2013-05-19 Thread ying.zhang
From: Ying Zhang There will clear the BSS in the function clear_bss(), the reset address of the BSS started from the __bss_start, and increased by four-byte increments, finally stoped depending on the address is equal to the _bss_end. If the end address __bss_end is not alignment to 4byte, it wil

[U-Boot] [PATCH 4/6] Makefile: move the common makefile line to public area

2013-05-19 Thread ying.zhang
From: Ying Zhang Move the common makefile line shared by the SPL and non-SPL to the public area, so that we can avoid excessive SPL symbols. Some of them will be used by the SPL later. This patch is on top of the patch "common/Makefile: Add new symbol CONFIG_SPL_ENV_SUPPORT for environment in SP

[U-Boot] [PATCH 6/6] powerpc/p1022ds: boot from SD Card with SPL

2013-05-19 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that runs in the L2 SRAM, after being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the

[U-Boot] [PATCH 5/6] spl: Make CONFIG_SPL_BUILD contain more functionality

2013-05-19 Thread ying.zhang
From: Ying Zhang There was some functionality will be used in the SPL. They had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it into the SPL. Signed-off-by: Ying Zhang --- arch/powerpc/cpu/mpc85xx/tlb.c |2 +- arch/powerpc/cpu/mpc8xxx/law.c |4 ++-- common/env_common.c

[U-Boot] [PATCH 1/7 v9] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Change from v8: - No change. Change from v7: - No c

[U-Boot] [PATCH 5/7 v9] powerpc : p1022ds : enable p1022ds to start from eSPI with SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSPI with SPL. Signed-off-by: Ying Zhang --- Change from v8: - No change. Change from v7: - No change. Change from v6: - No longer changes the header file included by the file - "board/freescale/p1022ds/spl.c" Change from v5: - Split from "powerpc/p

[U-Boot] [PATCH 7/7 v9] powerpc: p1022ds: add TPL for p1022ds nand boot

2013-07-23 Thread ying.zhang
From: Ying Zhang TPL is introduced in the patch "NAND: TPL : introduce the TPL based on the SPL", here enable TPL for p1022ds nand boot. Signed-off-by: Ying Zhang --- Change from v8: - Add new symbol CONFIG_SPL_ENV_IN_NAND. Change from v7: - No change. Change from v6: - Delete the file "board/f

[U-Boot] [PATCH 2/7 v9] powerpc: mpc85xx: Support booting from SD Card with SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 4/7 v9] powerpc : spi flash : Support to start from eSPI with SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 3/7 v9] powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- Change from v8: - No change. Change from v7: - No change. Change from v6: - Split from the patch "powerpc/p1022ds: boot from SD Card with SPL", - this patch only enables p1022ds to boot from SD Card with

[U-Boot] [PATCH 6/7 v9] NAND: TPL : introduce the TPL based on the SPL

2013-07-23 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that is loaded by the code from the SPL. It initializes the DDR with the SPD or

[U-Boot] [PATCH 1/7 v10] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Change from v9: - No change. Change from v8: - No c

[U-Boot] [PATCH 2/7 v10] powerpc: mpc85xx: Support booting from SD Card with SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initializes the DDR through SPD code, and copys final uboot image to DDR. So

[U-Boot] [PATCH 3/7 v10] powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- Change from v9: - Mofidy board/freescale/p1022ds/spl.c, fix checkpatch warnings. Change from v8: - No change. Change from v7: - No change. Change from v6: - Split from the patch "powerpc/p1022ds: boot fr

[U-Boot] [PATCH 6/7 v10] NAND: TPL : introduce the TPL based on the SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that is loaded by the code from the SPL. It initializes the DDR with the SPD or

[U-Boot] [PATCH 4/7 v10] powerpc : spi flash : Support to start from eSPI with SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 7/7 v10] powerpc: p1022ds: add TPL for p1022ds nand boot

2013-07-25 Thread ying.zhang
From: Ying Zhang TPL is introduced in the patch "NAND: TPL : introduce the TPL based on the SPL", here enable TPL for p1022ds nand boot. Signed-off-by: Ying Zhang --- Change from v9: - Modify drivers/mtd/nand/Makefile. - Modify drivers/mtd/nand/fsl_elbc_spl.c. - Modify include/configs/P1022DS.h

[U-Boot] [PATCH 5/7 v10] powerpc : p1022ds : enable p1022ds to start from eSPI with SPL

2013-07-25 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSPI with SPL. Signed-off-by: Ying Zhang --- Change from v9: - No change. Change from v8: - No change. Change from v7: - No change. Change from v6: - No longer changes the header file included by the file. - "board/freescale/p1022ds/spl.c". Change f

[U-Boot] [PATCH v3] SPL: Makefile: Build a separate autoconf.mk for SPL

2013-08-14 Thread ying.zhang
From: Zhang Ying SPL defines CONFIG_SPL_BUILD but this does not percolate to the autoconf.mk Makefile. As a result the build breaks when CONFIG_SPL_BUILD is used in the board-specific include header file. With this, there is a possibility of having a CONFIG option defined in the header file bu

[U-Boot] [PATCH v4] SPL: Makefile: Build a separate autoconf.mk for SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang SPL defines CONFIG_SPL_BUILD but this does not percolate to the autoconf.mk Makefile. As a result the build breaks when CONFIG_SPL_BUILD is used in the board-specific include header file. With this, there is a possibility of having a CONFIG option defined in the header file bu

[U-Boot] [PATCH 3/7 v11] powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- Change from v10: - Fix the warning from spl.c. Change from v9: - Mofidy board/freescale/p1022ds/spl.c, fix checkpatch warnings. Change from v8: - No change. Change from v7: - No change. Change from v6: -

[U-Boot] [PATCH 1/7 v11] powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang 1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it. 2. Some functions were unused in the minimal SPL, but it is useful in the common SPL. So, enabled some functionality for common SPL. Signed-off-by: Ying Zhang --- Change from v10: - No change. Change from v9: - No

[U-Boot] [PATCH 2/7 v11] powerpc: mpc85xx: Support booting from SD Card with SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang The code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initializes the DDR through SPD code, and copys final uboot image to DDR. So

[U-Boot] [PATCH 4/7 v11] powerpc : spi flash : Support to start from eSPI with SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang This patch introduces SPL to enable a loader stub that being loaded by the code from the internal on-chip ROM. It loads the final uboot image into DDR, then jump to it to begin execution. The SPL's size is sizeable, the maximum size must not exceed the size of L2 SRAM. It initia

[U-Boot] [PATCH 6/7 v11] NAND: TPL : introduce the TPL based on the SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can not be more than 4K. So, the SPL cannot initialize the DDR with the SPD code. This patch introduces TPL to enable a loader stub that is loaded by the code from the SPL. It initializes the DDR with the SPD or

[U-Boot] [PATCH 7/7 v11] powerpc: p1022ds: add TPL for p1022ds nand boot

2013-08-16 Thread ying.zhang
From: Ying Zhang TPL is introduced in the patch "NAND: TPL : introduce the TPL based on the SPL", here enable TPL for p1022ds nand boot. Signed-off-by: Ying Zhang --- Change from v10: - No change. Change from v9: - Modify drivers/mtd/nand/Makefile. - Modify drivers/mtd/nand/fsl_elbc_spl.c. - Mo

[U-Boot] [PATCH 5/7 v11] powerpc : p1022ds : Enable p1022ds to start from eSPI with SPL

2013-08-16 Thread ying.zhang
From: Ying Zhang Enable p1022ds to start from eSPI with SPL. Signed-off-by: Ying Zhang --- Change from v10: - No change. Change from v9: - No change. Change from v8: - No change. Change from v7: - No change. Change from v6: - No longer changes the header file included by the file. - "board/free

[U-Boot] [PATCH v5] SPL: Makefile: Build a separate autoconf.mk for SPL

2013-08-19 Thread ying.zhang
From: Ying Zhang SPL defines CONFIG_SPL_BUILD but this does not percolate to the autoconf.mk Makefile. As a result the build breaks when CONFIG_SPL_BUILD is used in the board-specific include header file. With this, there is a possibility of having a CONFIG option defined in the header file bu

  1   2   >