[U-Boot] [PATCH 2/2 v2] powerpc:t4240: MAC9 and MAC10 should not be identified as 1G interface in some case

2016-04-18 Thread ying.zhang
From: Ying Zhang When using rcw protocols to support 10G on MAC9 and MAC10, these MACs should not be identified as 1G interface, otherwise, one MAC will be listed as two Ethernet ports. For example, MAC9 will be listed as FM1@TGEC1 and FM1@DTSEC9. Signed-off-by: Ying Zhang --- [changed from v1]

[U-Boot] [PATCH 1/2 v2] powerpc:t4240rdb: Disable the non-existent ethernet port on T4240RDB

2016-04-18 Thread ying.zhang
From: Ying Zhang There are 12 ethernet port on T4240RDB, but there need to set 16 MAC addressed for ethernets. There need to disable non-existent ethernet ports in U-boot Signed-off-by: Ying Zhang --- [changed from v1]: --- update the title. board/freescale/t4rdb/eth.c | 5 + 1 file chan

[U-Boot] [PATCH 2/2] board/t4240rdb: some ethernet ports shouldn't be detected

2016-04-15 Thread ying.zhang
From: Ying Zhang FM1_DTSEC9 & FM1_DTSEC10 should not be detected. Signed-off-by: Ying Zhang --- drivers/net/fm/t4240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fm/t4240.c b/drivers/net/fm/t4240.c index ae5aca4..70887fa 100644 --- a/drivers/net/fm/t4240.c

[U-Boot] [PATCH 1/2] board/t4240rdb: Disable the non-existent ethernet port on T4240RDB

2016-04-15 Thread ying.zhang
From: Ying Zhang There are 12 ethernet port on T4240RDB, but there need to set 16 MAC addressed for ethernets. There need to disable non-existent ethernet ports in U-boot Signed-off-by: Ying Zhang --- board/freescale/t4rdb/eth.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/f

[U-Boot] [PATCH 1/2 v3] VID: support IR chip is used in Intel mode

2016-01-21 Thread ying.zhang
From: Ying Zhang IR chip on all the boards support VID are required to be used in Intel mode. the VDD will not be adjusted while IR chip is not used in Intel mode. Signed-off-by: Ying Zhang --- Changed from v2: - Separate this patch from T4RDB VID support patch Changed from v1: - Not su

[U-Boot] [PATCH 2/2 v3] board/t4240rdb: VID support

2016-01-21 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] board/t4240rdb: VID support

2016-01-21 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] board/t4240rdb: VID support

2015-12-09 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] 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] board/p2020rdb: fix the FDT_ERR_NOTFOUND issue

2015-03-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 --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c |

[U-Boot] [PATCH] board/t208xrdb: VID support

2015-03-10 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: 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] board/freescale: use generic board architecture for p1010rdb

2014-11-05 Thread ying.zhang
From: Ying Zhang Use generic board architecture for p1010rdb, tested with NOR boot on p1010rdb-pb. Signed-off-by: Ying Zhang --- include/configs/P1010RDB.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index d378dbd..cd6a39c 10064

[U-Boot] [PATCH] board/freescale: use generic board architecture for p1025-twr

2014-11-04 Thread ying.zhang
From: Ying Zhang Use generic board architecture for p1025-twr, tested with NOR boot and NAND boot on p1025-twr. Signed-off-by: Ying Zhang --- include/configs/p1_twr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/p1_twr.h b/include/configs/p1_twr.h index 911203d..b98c71

[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/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 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 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 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] 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 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/3] powerpc: p1_p2_rdb_pc: add TPL for p1_p2_rdb_pc nand boot

2013-09-06 Thread ying.zhang
From: Ying Zhang Enable TPL for p1_p2_rdb_pc nand boot. Signed-off-by: Ying Zhang --- board/freescale/p1_p2_rdb_pc/spl.c | 15 + board/freescale/p1_p2_rdb_pc/spl_minimal.c | 83 ++-- board/freescale/p1_p2_rdb_pc/tlb.c |8 ++- include/configs/

[U-Boot] [PATCH 2/3] powerpc : p1_p2_rdb_pc : Enable p1_p2_rdb_pc to start from eSPI with SPL

2013-09-06 Thread ying.zhang
From: Ying Zhang Enable p1_p2_rdb_pc to start from eSPI with SPL. Signed-off-by: Ying Zhang --- board/freescale/p1_p2_rdb_pc/spl.c |9 + include/configs/p1_p2_rdb_pc.h | 36 +--- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/b

[U-Boot] [PATCH 1/3] powerpc: p1_p2_rdb_pc: Enable p1_p2_rdb_pc to boot from SD Card with SPL

2013-09-06 Thread ying.zhang
From: Ying Zhang Enable p1_p2_rdb_pc to start from eSDHC with SPL. Signed-off-by: Ying Zhang --- board/freescale/p1_p2_rdb_pc/Makefile |3 + board/freescale/p1_p2_rdb_pc/spl.c| 98 + board/freescale/p1_p2_rdb_pc/tlb.c| 21 +++ include/configs

[U-Boot] [PATCH] SPL: P1022DS: switch to new multibus/multiadapter support

2013-09-04 Thread ying.zhang
From: Ying Zhang - Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds - Use the function i2c_init_all instead of i2c_init Signed-off-by: Ying Zhang --- arch/powerpc/cpu/mpc85xx/u-boot-spl.lds |5 + board/freescale/p1022ds/spl.c |6 +- 2 files chang

[U-Boot] [PATCH 1/3] SPL: P1022DS: switch to new multibus/multiadapter support

2013-09-04 Thread ying.zhang
From: Ying Zhang - Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds - Use the function i2c_init_all instead of i2c_init Signed-off-by: Ying Zhang --- arch/powerpc/cpu/mpc85xx/u-boot-spl.lds |5 + board/freescale/p1022ds/spl.c |6 +- 2 files chang

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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

  1   2   >