[U-Boot] [PATCH v2] fsl_ifc: add support for different IFC bank count

2013-05-15 Thread Mingkai Hu
From: Mingkai Hu mingkai...@freescale.com Calculate reserved fields according to IFC bank count 1. Move csor_ext register behind csor register and fix res offset 2. Move ifc bank count to config_mpc85xx.h to support 8 bank count 3. Guard fsl_ifc.h with CONFIG_FSL_IFC macro to eliminate

[U-Boot] [PATCH][Upstream] cmd_sf: include header file common.h before div64.h

2013-04-08 Thread Mingkai Hu
before div64.h, Or else, the parameters of phys_addr_t type will be passed wrongly when CONFIG_PHYS_64BIT is defined. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based on master branch of git://git.denx.de/u-boot.git Also can apply direcly to git://www.denx.de/git/u-boot-mpc85xx.git Tested

[U-Boot] [PATCH] powpc/mpc85xx: explicit cast the SDRAM size to type phys_size_t

2013-04-12 Thread Mingkai Hu
To avoid sign extension problem, use explicit casting to cast the SDRAM size to type phys_size_t, or else, if the SDRAM size is 2G(0x8000), it will be extended to 0x8000 when phys_size_t is type 'unsigned long long'. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based

[U-Boot] [PATCH] powerpc/mpc85xx: explicit cast the SDRAM size to type phys_size_t

2013-04-12 Thread Mingkai Hu
To avoid sign extension problem, use explicit casting to cast the SDRAM size to type phys_size_t, or else, if the SDRAM size is 2G(0x8000), it will be extended to 0x8000 when phys_size_t is type 'unsigned long long'. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based

[U-Boot] [PATCH 00/10] add boot from NAND/eSDHC/eSPI support

2009-08-18 Thread Mingkai Hu
The MPC8536E is capable of booting form NAND/eSDHC/eSPI, this patchset implements these three bootup methods in a unified way - all of these use the general cpu/mpc85xx/start.S, and load the second stage image to L2SRAM which lets us use the SPD to initialize the SDRAM. [PATCH 01/10] mkconfig:

[U-Boot] [PATCH 02/10] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-08-18 Thread Mingkai Hu
So that we can set the NAND loader's relocate stack pointer to the value other than the relocate address + 0x1. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8313erdb/mpc8313erdb.c |2 +- board/sheldon/simpc8313/simpc8313.c |2 +- include/configs

[U-Boot] [PATCH 03/10] Add L2SRAM Register's macro definition

2009-08-18 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- cpu/mpc85xx/cpu_init.c |5 +++-- include/asm-ppc/immap_85xx.h |5 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c index 41de694..c4d1a9d 100644 --- a/cpu

[U-Boot] [PATCH 06/10] On-chip ROM boot: MPC8536DS support

2009-08-18 Thread Mingkai Hu
image need to switch to Address space 1 to disable this mapping and map the address space again. This patch implements loading the mian U-Boot image into L2SRAM, so the image can configure the system memory by using SPD EEPROM. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile

[U-Boot] [PATCH 07/10] Add README.mpc8536ds

2009-08-18 Thread Mingkai Hu
Add boot from NAND/eSDHC/eSPI description Signed-off-by: Mingkai Hu mingkai...@freescale.com --- doc/README.mpc8536ds | 127 ++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 doc/README.mpc8536ds diff --git a/doc

[U-Boot] [PATCH 05/10] NAND boot: MPC8536DS support

2009-08-18 Thread Mingkai Hu
that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile |5 +- board/freescale/mpc8536ds/config.mk|6 + board

[U-Boot] [PATCH 08/10] Make mmc init come before env_relocate

2009-08-18 Thread Mingkai Hu
If the environment variables are saved on the MMC/SD card, env_relocat can't relocate env from MMC/SD card without mmc init. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- lib_ppc/board.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib_ppc/board.c

[U-Boot] [PATCH 09/10] Add support for save environment variable to MMC/SD card

2009-08-18 Thread Mingkai Hu
Whether booting from MMC/SD card or not, the environment variables can be saved on it, this patch add the operation support. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- common/Makefile |1 + common/cmd_nvedit.c |3 +- common/env_sdcard.c | 135

[U-Boot] [PATCH 10/10] Get the address of env on the SDCard

2009-08-18 Thread Mingkai Hu
Both the save env and load env operation will call this function to get the address of env on the SDCard, so the user can control where to put the env freely. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8536ds/mpc8536ds.c | 43 + 1

[U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config

2009-09-08 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile|4 +--- include/configs/MPC8536DS.h |2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0449a5b..901a336 100644 --- a/Makefile +++ b/Makefile @@ -2444,9 +2444,7

[U-Boot] [PATCH v2 1/2] mkconfig: split the board make target to multiple config targets

2009-09-08 Thread Mingkai Hu
the board make target. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- According to the comments from Wolfgang and Scott, I modified the patch and made some modification over v1: - remove the sectence thats puts the splited variables to the config.mk, we can use the CONFIG_MK_

[U-Boot] [PATCH 2/2] mpc8536: simplify the top makefile for 36-bit config

2009-09-08 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile|4 +--- include/configs/MPC8536DS.h |2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dd01b66..9624beb 100644 --- a/Makefile +++ b/Makefile @@ -2444,9 +2444,7

[U-Boot] [PATCH v2 0/5] Add boot from NAND/eSDHC/eSPI support

2009-09-10 Thread Mingkai Hu
These patches implement boot from NAND/eSDHC/eSPI in a unified way - all of these use the general file cpu/mpc85xx/start.S and load the image into L2SRAM. Modification over v1: - Align to the latest tree: http://git.denx.de/u-boot-mpc85xx.git - Align the NAND board make config to the latest

[U-Boot] [PATCH v2 1/5] 85xx: add boot from NAND/eSDHC/eSPI support

2009-09-10 Thread Mingkai Hu
of the bootup methods above is selected. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- cpu/mpc85xx/cpu_init.c | 19 +++ cpu/mpc85xx/start.S| 23 ++- cpu/mpc85xx/tlb.c |6 ++ drivers/misc/fsl_law.c |2 ++ 4 files changed, 49 insertions(+), 1

[U-Boot] [PATCH v2 2/5] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-09-10 Thread Mingkai Hu
So that we can set the NAND loader's relocate stack pointer to the value other than the relocate address + 0x1. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8313erdb/mpc8313erdb.c |2 +- board/sheldon/simpc8313/simpc8313.c |2 +- include/configs

[U-Boot] [PATCH v2 4/5] On-chip ROM boot: MPC8536DS support

2009-09-10 Thread Mingkai Hu
image need to switch to Address space 1 to disable this mapping and map the address space again. This patch implements loading the mian U-Boot image into L2SRAM, so the image can configure the system memory by using SPD EEPROM. But save the env variables to NOWHERE. Signed-off-by: Mingkai Hu

[U-Boot] [PATCH v2 3/5] NAND boot: MPC8536DS support

2009-09-10 Thread Mingkai Hu
that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile |1 + board/freescale/mpc8536ds/config.mk|7 + board

[U-Boot] [PATCH v2 5/5] Add README.mpc8536ds

2009-09-10 Thread Mingkai Hu
Add boot from NAND/eSDHC/eSPI description Signed-off-by: Mingkai Hu mingkai...@freescale.com --- doc/README.mpc8536ds | 127 ++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 doc/README.mpc8536ds diff --git a/doc

[U-Boot] [PATCH v2 1/5] 85xx: add boot from NAND/eSDHC/eSPI support

2009-09-10 Thread Mingkai Hu
of the bootup methods above is selected. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- cpu/mpc85xx/cpu_init.c | 19 +++ cpu/mpc85xx/start.S| 23 ++- cpu/mpc85xx/tlb.c |6 ++ drivers/misc/fsl_law.c |2 ++ 4 files changed, 49 insertions(+), 1

[U-Boot] [PATCH v1 3/3] mpc8536: Get the address of env on the SDCard

2009-09-10 Thread Mingkai Hu
Both the save env and load env operation will call this function to get the address of env on the SDCard, so the user can control where to put the env freely. Also enable the functionlity of saving env variable to SDCard on mpc8536 Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board

[U-Boot] [PATCH v1 0/3] Add support for saveing env variable to SDCard

2009-09-10 Thread Mingkai Hu
[PATCH v1 1/3] Make mmc init come before env_relocate [PATCH v1 2/3] Add support for save environment variable to MMC/SD card [PATCH v1 3/3] mpc8536: Get the address of env on the SDCard ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v1 2/3] Add support for save environment variable to MMC/SD card

2009-09-10 Thread Mingkai Hu
Whether booting from MMC/SD card or not, the environment variables can be saved on it, this patch add the operation support. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- common/Makefile |1 + common/cmd_nvedit.c |3 +- common/env_sdcard.c | 135

[U-Boot] [PATCH v1 1/3] Make mmc init come before env_relocate

2009-09-10 Thread Mingkai Hu
If the environment variables are saved on the MMC/SD card, env_relocat can't relocate env from MMC/SD card without mmc init. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- lib_ppc/board.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib_ppc/board.c

[U-Boot] [PATCH v3 1/5] 85xx: add boot from NAND/eSDHC/eSPI support

2009-09-11 Thread Mingkai Hu
of the bootup methods above is selected. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- - Move u-boot-nand.lds from board directory to cpu/mpc85xx, which make it avalible for 85xx platform - Some modification on u-boot-nand.lds accoring to u-boot.lds cpu/mpc85xx/cpu_init.c | 19

[U-Boot] [PATCH v3 3/5] NAND boot: MPC8536DS support

2009-09-11 Thread Mingkai Hu
that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile |1 + board/freescale/mpc8536ds/config.mk|7 ++ board

[U-Boot] [PATCH v3 2/3] On-chip ROM boot: MPC8536DS support

2009-09-17 Thread Mingkai Hu
image need to switch to Address space 1 to disable this mapping and map the address space again. This patch implements loading the mian U-Boot image into L2SRAM, so the image can configure the system memory by using SPD EEPROM. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Change over

[U-Boot] [PATCH v3 1/3] NAND boot: MPC8536DS support

2009-09-17 Thread Mingkai Hu
that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Change over v2: - Intergrated Kumar's comments. - Aligned to the leatest git tree MAKEALL

[U-Boot] [PATCH v3 3/3] Add README.mpc8536ds

2009-09-17 Thread Mingkai Hu
Add boot from NAND/eSDHC/eSPI description Signed-off-by: Mingkai Hu mingkai...@freescale.com --- No change over v2, it comes here for the pick up convience. doc/README.mpc8536ds | 127 ++ 1 files changed, 127 insertions(+), 0 deletions

[U-Boot] [PATCH] mpc8536: simplify the top makefile for 36-bit config

2009-09-17 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile|4 +--- include/configs/MPC8536DS.h |2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0b61d05..99837a3 100644 --- a/Makefile +++ b/Makefile @@ -2448,9 +2448,7

[U-Boot] [PATCH] ppc/85xx: simplify the top makefile for 36-bit config for mpc8536ds

2009-09-17 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Sorry for the spam, ingnor the [PATCH] mpc8536: simplify the top makefile for 36-bit config, this is the new version. Makefile|4 +--- include/configs/MPC8536DS.h |2 +- 2 files changed, 2 insertions(+), 4

[U-Boot] [PATCH] ppc/85xx: add ld script file for boot from NAND

2009-09-22 Thread Mingkai Hu
The first stage 4K image uses a seperate ld script file to generate 4K image. This patch moves it to the cpu/mpc85xx/* to make it avaliable for 85xx platform. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- ChangeLog: - move from board specific directory to cpu/mpc85xx/*, make

[U-Boot] [PATCH] ppc/85xx: add cpu init config file for boot from NAND

2009-09-22 Thread Mingkai Hu
When boot from NAND, the NAND flash must be connected to br/or0. Also init RAM(L2 SRAM or DDR SDRAM) for load the second image to it. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- ChangeLog: - move the board specific config for br/or to board init file, i.e. nand_spl/board/freescale

[U-Boot] [PATCH] immap_85xx: add porpllsr's plat ratio definition

2009-09-22 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- include/asm-ppc/immap_85xx.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/asm-ppc/immap_85xx.h b/include/asm-ppc/immap_85xx.h index e7d412d..39fdb8e 100644 --- a/include/asm-ppc/immap_85xx.h +++ b/include

[U-Boot] [PATCH] mpc8536: fix board config file line length

2009-09-23 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Changelog: According to Woflgang's comments, fixed the line length of the board config file. include/configs/MPC8536DS.h | 147 +++ 1 files changed, 79 insertions(+), 68 deletions(-) diff --git

[U-Boot] [PATCH v4 1/3] NAND boot: MPC8536DS support

2009-09-23 Thread Mingkai Hu
that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Change over v3: - Intergrated Scott's comments. - Intergrated Wolfgang's comments. MAKEALL

[U-Boot] [PATCH v4 2/3] On-chip ROM boot: MPC8536DS support

2009-09-23 Thread Mingkai Hu
image need to switch to Address space 1 to disable this mapping and map the address space again. This patch implements loading the mian U-Boot image into L2SRAM, so the image can configure the system memory by using SPD EEPROM. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Change over

[U-Boot] [PATCH v4 3/3] Add README.mpc8536ds

2009-09-23 Thread Mingkai Hu
Add boot from NAND/eSDHC/eSPI description Signed-off-by: Mingkai Hu mingkai...@freescale.com --- No change over v3. doc/README.mpc8536ds | 127 ++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 doc/README.mpc8536ds diff

[U-Boot] [PATCH] NAND boot: fix nand_load overlap issue

2009-06-04 Thread Mingkai Hu
The code copy data from NAND flash block by block, so when the data length isn't a whole-number multiple of the block size, it will overlap the rest space. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- nand_spl/nand_boot_fsl_elbc.c |2 +- 1 files changed, 1 insertions(+), 1

[U-Boot] [PATCH] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-06-08 Thread Mingkai Hu
So that we can set the NAND loader's relocate stack pointer to the value other than the relocate address + 0x1. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8313erdb/mpc8313erdb.c |2 +- board/sheldon/simpc8313/simpc8313.c |2 +- include/configs

[U-Boot] [PATCH] NAND: redirect the pointer of bbt pattern to RAM

2009-06-18 Thread Mingkai Hu
. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- I came across this issue when worked on boot-from-nand on MPC8536DS board. Generally the 4K NAND loader initializes the RAM through fixed DDR config parameters, then copy the u-boot image to RAM. In order to allow SPD memory config, I load the u

[U-Boot] [PATCH] fsl_elbc_nand: remove the bbt descriptors relocation fixup

2009-10-20 Thread Mingkai Hu
The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/mtd/nand/fsl_elbc_nand.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand

[U-Boot] [PATCH] ppc/85xx: make boot from NAND full relocation to RAM

2009-10-20 Thread Mingkai Hu
Take advantage of the latest full relocation commit of PPC platform for boot from NAND. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Changelog: - according to Scott's comments to seperate this patch. cpu/mpc85xx/u-boot-nand.lds |1 - 1 files changed, 0 insertions(+), 1

[U-Boot] [PATCH] ppc/85xx: Clean up mpc8536DS PCI setup code

2009-10-28 Thread Mingkai Hu
Use new fsl_pci_init_port() that reduces amount of duplicated code in the board ports, use IO accessors and clean up printing of status info. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8536ds/mpc8536ds.c | 252 + 1 files changed, 64

[U-Boot] [PATCH] eSPI: add the eSPI register support

2009-03-31 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- include/asm-ppc/immap_85xx.h | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/include/asm-ppc/immap_85xx.h b/include/asm-ppc/immap_85xx.h index 7b97fe0..e84599d 100644 --- a/include/asm-ppc

[U-Boot] [PATCH v2] mtd: SPI Flash: Support the Spansion Flash

2009-03-31 Thread Mingkai Hu
Add MTD SPI Flash support for S25FL008A, S25FL016A, S25FL032A, S25FL064A, S25FL128P. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/mtd/spi/Makefile |1 + drivers/mtd/spi/spansion.c | 356 2 files changed, 357 insertions(+), 0

[U-Boot] [PATCH 4/7] eSPI: make the chip selsec enable

2009-03-15 Thread Mingkai Hu
On the MPC8536 processor, the eSPI chip selects and the eSDHC data interface have four pin-muxed pins shared between them, so if the eSDHC data interface is expanded to 8-bits, no eSPI chip selects are routed. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/mpc8536ds

[U-Boot] [PATCH 1/7] eSPI: add the eSPI register support

2009-03-15 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- include/asm-ppc/immap_85xx.h | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/include/asm-ppc/immap_85xx.h b/include/asm-ppc/immap_85xx.h index 094fb9c..f3ab750 100644 --- a/include/asm-ppc

[U-Boot] [PATCH 2/7] mtd: SPI Flash: Support the Spansion Flash

2009-03-15 Thread Mingkai Hu
Add MTD SPI Flash support for S25FL008A, S25FL016A, S25FL032A, S25FL064A, S25FL128P. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/mtd/spi/Makefile |1 + drivers/mtd/spi/spansion.c | 356 2 files changed, 357 insertions(+), 0

[U-Boot] [PATCH 3/7] eSPI: add eSPI controller support

2009-03-15 Thread Mingkai Hu
Add eSPI controller support under the SPI framework. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/mtd/spi/spi_flash.c | 94 +- drivers/spi/Makefile|1 + drivers/spi/fsl_espi.c | 232 +++ include/spi.h

[U-Boot] [PATCH 5/7] Make a special uboot used for booting from SDcard or SPI flash

2009-03-15 Thread Mingkai Hu
@freescale.com Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Makefile| 12 +++ board/freescale/mpc8536ds/config.mk |2 + board/freescale/mpc8536ds/mpc8536ds.c |4 + board/freescale/mpc8536ds/tlb.c |3 + board/freescale

[U-Boot] [PATCH 7/7] Save the env variables to SDcard and SPI flash for MPC8536DS

2009-03-15 Thread Mingkai Hu
MPC8536DS offer booting from SDcard or SPI flash. When after booting from SD card/SPI flash, the environment variables can to be saved on it, so this patch should be used together with the MMC driver and eSPI controller/SPI flash driver in u-boot. Signed-off-by: Mingkai Hu mingkai

[U-Boot] [PATCH 6/7] Add support for save the env to SDcard

2009-03-15 Thread Mingkai Hu
When after booting from SDcard, the environment variables can to be saved on it, this patch add the operation support. Signed-off-by: Jason Jin jason@freescale.com Signed-off-by: Mingkai Hu mingkai...@freescale.com --- common/Makefile |1 + common/cmd_nvedit.c |3 +- common

[U-Boot] [PATCH] powerpc/p2040rdb: Add p2040rdb board support

2011-06-30 Thread Mingkai Hu
module * I2C2: Vcore Regulator, 256Kbit I2C Bus EEPROM, PCIe slot1/2 UART: supports two UARTs up to 115200 bps for console Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based on http://git.denx.de/?p=u-boot/u-boot-mpc85xx.git;a=shortlog;h=refs/heads/next board/freescale/p2040rdb

[U-Boot] [PATCH v2] powerpc/p2040rdb: Add p2040rdb board support

2011-07-06 Thread Mingkai Hu
module * I2C2: Vcore Regulator, 256Kbit I2C Bus EEPROM, PCIe slot1/2 UART: supports two UARTs up to 115200 bps for console Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Fix some warning of checkpatch.pl, such as line over 80 characters. board/freescale/p2040rdb/Makefile | 56

[U-Boot] [PATCH] 85xx/eSDHC: fix eSDHC clock frequency mask

2010-01-20 Thread Mingkai Hu
The default value of the prescaler of eSDHC clock frequency is 0x80, so we need to mask the MSB to set a different clock, or else it maybe make the behavior of this prescaler undefined. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- include/fsl_esdhc.h |2 +- 1 files changed, 1

[U-Boot] [PATCH] powerpc/p2041rdb: Enable SATA support

2011-07-26 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- include/configs/P2041RDB.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h index 63c8123..918f1b9 100644 --- a/include/configs/P2041RDB.h

[U-Boot] [PATCH 00/14] powerpc/p4080: add support for FMan ethernet in Independent mode

2011-01-26 Thread Mingkai Hu
This patchset add support for the P4080's datapath accelation architecture in independent mode, and do some code refactor of the file tsec.c. 1. Add the releated MAC controller support, includeing dTSEC and 10GEC 2. Add support for FMan ethernet in Independent mode 3. Add PHY support (VSC8244 and

[U-Boot] [PATCH 01/14] powerpc/p4080: Add function to report which lane is used for a prtcl

2011-01-26 Thread Mingkai Hu
From: Kumar Gala ga...@kernel.crashing.org Also rename serdes_get_bank() to serdes_get_bank_by_lane(). Signed-off-by: Emil Medve emilian.me...@freescale.com Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/cpu/mpc85xx

[U-Boot] [PATCH 03/14] powerpc/fman: add dTSEC controller support

2011-01-26 Thread Mingkai Hu
From: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/include/asm/fsl_enet.h | 12 ++ drivers/net/fm/dtsec.c | 168 +++ drivers/net/fm/dtsec.h

[U-Boot] [PATCH 04/14] powerpc/fman: add 10GEC controller and PHY support

2011-01-26 Thread Mingkai Hu
From: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/fm/tgec.c | 104 drivers/net/fm/tgec.h | 230 + drivers/net

[U-Boot] [PATCH 06/14] powerpc/corenet_ds: Add fman support

2011-01-26 Thread Mingkai Hu
From: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Mingkai Hu mingkai...@freescale.com --- board/freescale/corenet_ds/Makefile |1 + board/freescale/corenet_ds/corenet_ds.c | 11 +- board/freescale/corenet_ds/eth_p4080.c

[U-Boot] [PATCH 02/14] powerpc/fman: add PHY support for dTSEC

2011-01-26 Thread Mingkai Hu
From: Kumar Gala ga...@kernel.crashing.org Add VSC8244 and VSC8234 phy support, this will be reused by etsec code. Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/include/asm/fsl_enet.h | 10 + drivers/net/fsl_phy.c

[U-Boot] [PATCH 07/14] tsec: use IO accessories to access the register

2011-01-26 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/tsec.c | 232 ++- include/tsec.h |6 +- 2 files changed, 121 insertions(+), 117 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 9c8fe62..910cf9e

[U-Boot] [PATCH 08/14] tsec: arrange the code to avoid useless function declaration

2011-01-26 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/tsec.c | 857 +--- 1 files changed, 416 insertions(+), 441 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 910cf9e..40f1c76 100644 --- a/drivers/net/tsec.c

[U-Boot] [PATCH 09/14] tsec: use general ethernet MII register struct(tsec_mii_t)

2011-01-26 Thread Mingkai Hu
This will pave the way to move the PHY code to fsl_phy.c which will be reused by all other code. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/tsec.c | 10 +- include/tsec.h | 35 +++ 2 files changed, 16 insertions(+), 29

[U-Boot] [PATCH 13/14] PHY: add some Marvell phy support

2011-01-26 Thread Mingkai Hu
Port from tsec.c file to add support for m88e1011s, m88es, m88e1118, m88e1121r, m88e1145, m88e1149s. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/fsl_phy.c | 299 + drivers/net/fsl_phy.h | 36 ++ 2 files changed

[U-Boot] [PATCH 14/14] PHY: add some misc phy code support

2011-01-26 Thread Mingkai Hu
Port from tsec.c file to add support for cis8201, cis8204, dm9161, dp83865, ksz804, lxt971, rtl8211b. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/fsl_phy.c | 356 - drivers/net/fsl_phy.h | 57 drivers/net/tsec.c

[U-Boot] [PATCH 10/14] tsec: refactor the PHY code to make it reuseable

2011-01-26 Thread Mingkai Hu
Also remove the PHY code which will be added by the following patches. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/Makefile |2 +- drivers/net/tsec.c | 1483 +++--- include/tsec.h | 246 +- 3 files changed

[U-Boot] [PATCH 11/14] PHY: add some Vitesse phy support

2011-01-26 Thread Mingkai Hu
Port from tsec.c file to add support for vsc8221, vsc8211, vsc8601, vsc8641. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/fsl_phy.c | 119 + drivers/net/fsl_phy.h | 21 + 2 files changed, 140 insertions(+), 0

[U-Boot] [PATCH 12/14] PHY: add some Broadcom phy support

2011-01-26 Thread Mingkai Hu
Port from tsec.c file to add support for bcm5461, bcm5464, bcm5482s. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/fsl_phy.c | 245 + drivers/net/fsl_phy.h | 22 + 2 files changed, 267 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH V2] sf: Add support for flag status register on Micron chips

2014-09-11 Thread Mingkai . Hu
From: Mingkai Hu mingkai...@freescale.com Enter 3 Byte address mode at first, because it may change to 4 Byte address mode in kernel driver and not reset to 3 Byte address mode after reboot. Add clear flag status register operation that some Micron SPI flash chips required after reading the flag

[U-Boot] [PATCH V2] sf: Add support for flag status register on Micron chips

2014-09-11 Thread Mingkai . Hu
From: Mingkai Hu mingkai...@freescale.com Enter 3 Byte address mode at first, because it may change to 4 Byte address mode in kernel driver and not reset to 3 Byte address mode after reboot. Add clear flag status register operation that some Micron SPI flash chips required after reading the flag

[U-Boot] [PATCH] phylib: Enable SMSC LAN87xx PHY support

2012-10-12 Thread Mingkai Hu
LAN8720 PHY is used on Freescale C2X0QDS board. Signed-off-by: Mingkai Hu mingkai...@freescale.com diff --git a/include/config_phylib_all_drivers.h b/include/config_phylib_all_drivers.h index 1db7cec..12828c6 100644 --- a/include/config_phylib_all_drivers.h +++ b/include

[U-Boot] [PATCH] powerpc/c29xpcie: Add secure boot support

2014-11-25 Thread Mingkai Hu
From: Po Liu po@freescale.com Add NOR and SPI flash secure boot target for C29XPCIE board. Signed-off-by: Po Liu po@freescale.com Signed-off-by: Mingkai.Hu mingkai...@freescale.com --- boards.cfg | 2 ++ include/configs/C29XPCIE.h | 2 ++ 2 files changed, 4 insertions(+)

[U-Boot] [PATCH] powerpc/c29xpcie: Add secure boot support

2014-11-25 Thread Mingkai Hu
From: Po Liu po@freescale.com Add NOR and SPI flash secure boot target for C29XPCIE board. Signed-off-by: Po Liu po@freescale.com Signed-off-by: Mingkai.Hu mingkai...@freescale.com --- configs/C29XPCIE_NOR_SECBOOT_defconfig | 4 configs/C29XPCIE_SPIFLASH_SECBOOT_defconfig | 4

[U-Boot] [PATCH V2] powerpc/c29xpcie: Add secure boot support

2014-11-25 Thread Mingkai Hu
From: Po Liu po@freescale.com Add NOR and SPI flash secure boot target for C29XPCIE board. Signed-off-by: Po Liu po@freescale.com Signed-off-by: Mingkai.Hu mingkai...@freescale.com --- board/freescale/c29xpcie/MAINTAINERS| 2 ++ configs/C29XPCIE_NOR_SECBOOT_defconfig | 4

[U-Boot] [PATCH] e1000: support 64bit physical address

2015-08-17 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/net/e1000.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index d5d48b1..e816410 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -4980,8 +4980,8

[U-Boot] [PATCH 1/5] armv8/ls1043a: remove print info

2015-12-07 Thread Mingkai Hu
Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- drivers/net/fm/ls1043.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/fm/ls1043.c b/drivers/net/fm/ls1043.c index cf2cc95..93ba318 100644 --- a/drivers/net/fm/ls1043.c +++ b/drivers/net/fm/ls

[U-Boot] [PATCH 3/5] armv8/ls1043a: Implement workaround for PEX erratum A009929

2015-12-07 Thread Mingkai Hu
Consecutive write transactions from core to PCI express outbound path hangs after 25 to 30 transactions depending on core freq. This erratum enable the mbist clock through COP register setting. Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- arch/arm/cpu/armv8/fsl-layerscape

[U-Boot] [PATCH 2/5] armv8/fsl_lsch2: fix DCSR_DCFG address

2015-12-07 Thread Mingkai Hu
Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_l

[U-Boot] [PATCH 5/5] armv8/ls1043aqds: change core frequency to 1600MHz

2015-12-07 Thread Mingkai Hu
For SD boot and NAND boot. Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- board/freescale/ls1043aqds/ls1043aqds_rcw_nand.cfg | 4 ++-- board/freescale/ls1043aqds/ls1043aqds_rcw_sd_ifc.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/fre

[U-Boot] [PATCH 4/5] armv8/ls1043ardb: change core frequency to 1600MHz

2015-12-07 Thread Mingkai Hu
For SD boot and NAND boot. Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- board/freescale/ls1043ardb/ls1043ardb_rcw_nand.cfg | 4 ++-- board/freescale/ls1043ardb/ls1043ardb_rcw_sd.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/freescale/ls10

[U-Boot] [PATCH] armv8/ls1043ardb: Add support for >2GB memory

2015-11-22 Thread Mingkai Hu
From: Shaohui Xie <shaohui@freescale.com> This patch also expose the complete DDR region(s) to Linux. Signed-off-by: Shaohui Xie <shaohui@freescale.com> Signed-off-by: Mingkai Hu <mingkai...@freescale.com> --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 ++-

Re: [U-Boot] [PATCH 1/4] armv8/ls1043aqds: added lpuart support

2016-01-18 Thread Mingkai Hu
> -Original Message- > From: Wenbin Song [mailto:wenbin.s...@nxp.com] > Sent: Tuesday, January 19, 2016 2:48 PM > To: york...@freescale.com; Mingkai Hu; Qianyu Gong; Shaohui Xie; Wenbin > Song; u-boot@lists.denx.de > Subject: [PATCH 1/4] armv8/ls1043aqds: added lpuart

Re: [U-Boot] [PATCH 3/4] armv8/ls1043aqds: Fix CONFIG_LPUART

2016-01-18 Thread Mingkai Hu
> -Original Message- > From: Wenbin Song [mailto:wenbin.s...@nxp.com] > Sent: Tuesday, January 19, 2016 2:48 PM > To: york...@freescale.com; Mingkai Hu; Qianyu Gong; Shaohui Xie; Wenbin > Song; u-boot@lists.denx.de > Cc: songwenbin > Subject: [PATCH 3/4]

Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-25 Thread Mingkai Hu
> -Original Message- > From: york sun > Sent: Saturday, January 23, 2016 1:44 AM > To: Mingkai Hu; Mingkai Hu; u-boot@lists.denx.de > Subject: Re: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > On 01/21/2016 11:50 PM, Mingkai Hu wrote: &g

Re: [U-Boot] [PATCH v2 3/3] QE: assgin pins to QE-HDLC

2016-01-25 Thread Mingkai Hu
> -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Tuesday, January 26, 2016 9:20 AM > To: Mingkai Hu > Cc: tr...@konsulko.com; york sun; u-boot@lists.denx.de; Qiang Zhao > Subject: [PATCH v2 3/3] QE: assgin pins to QE-HDLC > > qe-hdlc an

Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-31 Thread Mingkai Hu
> -Original Message- > From: york sun > Sent: Saturday, January 30, 2016 4:40 AM > To: Mingkai Hu; u-boot@lists.denx.de > Subject: Re: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > On 01/25/2016 10:12 PM, Mingkai Hu wrote: > >

Re: [U-Boot] [PATCH v4 2/4] QE: add QE support on ls1043ardb

2016-01-31 Thread Mingkai Hu
> -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Friday, January 29, 2016 12:28 PM > To: Mingkai Hu > Cc: tr...@konsulko.com; york sun; u-boot@lists.denx.de; Qiang Zhao > Subject: [PATCH v4 2/4] QE: add QE support on ls1043ardb >

[U-Boot] [PATCH v2] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-31 Thread Mingkai Hu
From: Mingkai Hu <mingkai...@nxp.com> Memory controller performance is not optimal with default internal target queue register value, write required value for optimal DDR performance. Signed-off-by: Mingkai Hu <mingkai...@nxp.com> --- v2: - Add a check to make sure A009660

Re: [U-Boot] [PATCH v4 4/4] qe: assgin pins to qe-hdlc

2016-01-31 Thread Mingkai Hu
> -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Friday, January 29, 2016 12:28 PM > To: Mingkai Hu > Cc: tr...@konsulko.com; york sun; u-boot@lists.denx.de; Qiang Zhao > Subject: [PATCH v4 4/4] qe: assgin pins to qe-hdlc > > qe-hdlc an

Re: [U-Boot] [PATCH v4 3/4] ls1043rdb: move USB mux config to config_board_mux

2016-01-31 Thread Mingkai Hu
> -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Friday, January 29, 2016 12:28 PM > To: Mingkai Hu > Cc: tr...@konsulko.com; york sun; u-boot@lists.denx.de; Qiang Zhao > Subject: [PATCH v4 3/4] ls1043rdb: move USB mux config to > config_bo

[U-Boot] [PATCH v3] armv8/ls1043a: Implement workaround for erratum A009660

2016-02-01 Thread Mingkai Hu
From: Mingkai Hu <mingkai...@nxp.com> Memory controller performance is not optimal with default internal target queue register value, write required value for optimal DDR performance. Signed-off-by: Mingkai Hu <mingkai...@nxp.com> --- v3: - Move the macro check to soc.c. v2: -

Re: [U-Boot] [PATCH v3 4/4] qe: assgin pins to qe-hdlc

2016-01-28 Thread Mingkai Hu
> -Original Message- > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > Sent: Friday, January 29, 2016 10:51 AM > To: Mingkai Hu > Cc: tr...@konsulko.com; york sun; u-boot@lists.denx.de; Qiang Zhao > Subject: [PATCH v3 4/4] qe: assgin pins to qe-hdlc > > qe-hdlc an

Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-20 Thread Mingkai Hu
> -Original Message- > From: york sun > Sent: Thursday, January 21, 2016 12:21 AM > To: Mingkai Hu; u-boot@lists.denx.de > Cc: Mingkai Hu > Subject: Re: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > On 01/19/2016 10:44 PM, Mingkai Hu

Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-21 Thread Mingkai Hu
> -Original Message- > From: Mingkai Hu > Sent: Thursday, January 21, 2016 11:18 AM > To: york sun; Mingkai Hu; u-boot@lists.denx.de > Subject: RE: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > > > > -Original Message

  1   2   >