[PATCH] powerpc/85xx: DTS - re-organize the SPI partitions property

2013-09-06 Thread Mingkai Hu
|-| | kernel | | (5MB) | 0x70 |-| | file system | | (9MB) | 0x100 |-| Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based on 'next' branch on git tree: git

[PATCH 1/4] powerpc/mpic_msgr: fix compile error when SMP disabled

2012-04-15 Thread Mingkai Hu
/mpic_msgr.o] Error 1 Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/include/asm/mpic_msgr.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mpic_msgr.h b/arch/powerpc/include/asm/mpic_msgr.h index 3ec37dc..326d33c 100644 --- a/arch

[PATCH 2/4] powerpc/mpic_msgr: add lock for MPIC message global variable

2012-04-15 Thread Mingkai Hu
Also fix issue of accessing invalid msgr pointer issue. The local msgr pointer in fucntion mpic_msgr_get will be accessed before getting a valid address which will cause kernel crash. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/sysdev/mpic_msgr.c | 10 +- 1

[PATCH 3/4] powerpc/mpic_msgr: fix offset error when setting mer register

2012-04-15 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/sysdev/mpic_msgr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/mpic_msgr.c b/arch/powerpc/sysdev/mpic_msgr.c index dc1cfe3..483d8fa 100644 --- a/arch/powerpc/sysdev/mpic_msgr.c

[PATCH 4/4] powerpc/mpc85xx: add MPIC message dts node

2012-04-15 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- arch/powerpc/boot/dts/fsl/pq3-mpic-message-B.dtsi | 43 + arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi | 10 + 2 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/fsl

[PATCH] powerpc/85xx: Add p2040 RDB board support

2011-06-28 Thread Mingkai Hu
to one x4 PCIe SLOT2 Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Based on http://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git arch/powerpc/boot/dts/p2040rdb.dts | 166 +++ arch/powerpc/boot/dts/p2040si.dtsi | 623 ++ arch

[PATCH 1/2] eSPI: change the read behavior of the SPIRF

2010-12-20 Thread Mingkai Hu
, that is we can't clear the rx FIFO, then the CPU will loop on the espi rx interrupt. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- The patch 2/2 is againsted on this patch, so I resent this patch again for convience which sent several weeks ago. drivers/spi/spi_fsl_espi.c | 19

[PATCH 2/2] eSPI: fix wrong setting of the address in the command buffer

2010-12-20 Thread Mingkai Hu
Or else we cann't operate on the right address when the trans length is greater than 65535. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/spi/spi_fsl_espi.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi_fsl_espi.c b

[PATCH] eSPI: change the read behavior of the SPIRF

2010-12-01 Thread Mingkai Hu
, that is we can't clear the rx FIFO, then the CPU will loop on the espi rx interrupt. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/spi/spi_fsl_espi.c | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi_fsl_espi.c b/drivers/spi

[PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification

2010-10-12 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Add the SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). Documentation/powerpc/dts-bindings/fsl/spi.txt | 24

[PATCH v4 3/5] eSPI: add eSPI controller support

2010-10-12 Thread Mingkai Hu
is 0x. When used mkfs.ext2 command to create ext2 filesystem on the flash, the read length will exceed the max value of the SPCOM[TRANSLEN] field. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). - Added support to the transaction

[PATCH v4 2/5] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-10-12 Thread Mingkai Hu
the code operated the register to the driver code, not the common code. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). drivers/spi/Kconfig |5 + drivers/spi/Makefile |1 + drivers/spi/spi_fsl_lib.c | 237

[PATCH v4 5/5] mtd: m25p80: add support to parse the partitions by OF node

2010-10-12 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com Acked-by: Grant Likely grant.lik...@secretlab.ca --- v4: - Updated to latest kernel base(Linux 2.6.36-rc7). - Made changes according to Grant's comments. drivers/mtd/devices/m25p80.c |5 + 1 files changed, 5 insertions(+), 0 deletions

[PATCH v4 0/5] refactor spi_mpc8xxx.c and add eSPI controller support

2010-10-12 Thread Mingkai Hu
This patchset refactor the file spi_mpc8xxx.c to abstract some common code as a lib used by the SPI/eSPI controller driver, move the SPI controller driver code to spi_fsl_spi.c, and add the eSPI controller support with spi_fsl_espi.c. v4 main change: - Update to the latest kernel base(Linux

[PATCH v3 4/7] powerpc/of: add eSPI controller dts bindings and DTS modification

2010-09-30 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Add the SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v3: - Add fsl,p4080-espi compatible property. Documentation/powerpc/dts-bindings/fsl/spi.txt | 24

[PATCH v3 5/7] mtd: m25p80: add support to parse the SPI flash's partitions

2010-09-30 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v3: - Move the SPI flash partition code to the probe function. drivers/mtd/devices/m25p80.c | 39 +++ 1 files changed, 27 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b

[PATCH v3 2/7] spi/mpc8xxx: refactor the common code for SPI/eSPI controller

2010-09-30 Thread Mingkai Hu
the code operated the register to the driver code, not the common code. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v3: - Update to the latest kernel base. - Add a void *reg_base to compatible for SPI and eSPI register base. drivers/spi/Kconfig |5 + drivers/spi/Makefile

[PATCH v3 3/7] eSPI: add eSPI controller support

2010-09-30 Thread Mingkai Hu
, the command and data are put into different transfers, so we need to combine all the transfers to one transfer in order to pass the transfer to eSPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v3: - Update to the latest kernel base. drivers/spi/Kconfig|9

[PATCH v3 7/7] DTS: add fsl,spi-quirk-trans-len-limit property

2010-09-30 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v3: - Add spi-quirk-trans-len-limit property to the board's dts. Documentation/powerpc/dts-bindings/fsl/spi.txt |3 +++ arch/powerpc/boot/dts/mpc8536ds.dts|1 + arch/powerpc/boot/dts/p4080ds.dts |1 + 3

[PATCH v2 0/6] refactor spi_mpc8xxx.c and add eSPI controller support

2010-08-02 Thread Mingkai Hu
In-Reply-To: This patchset refactor the file spi_mpc8xxx.c to abstract some common code as a lib used by the SPI/eSPI controller driver, move the SPI controller driver code to spi_fsl_spi.c, and add the eSPI controller support with spi_fsl_espi.c. Tested on P4080DS and MPC8536DS board based on

[PATCH v2 6/6] DTS: add SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Remove the whitespace inconsitencies arch/powerpc/boot/dts/mpc8536ds.dts | 52 +++ arch/powerpc/boot/dts/p4080ds.dts | 11 +++- 2 files changed, 56 insertions(+), 7 deletions(-) diff --git

[PATCH v2 5/6] powerpc/of: add eSPI controller dts bindings

2010-08-02 Thread Mingkai Hu
Also modifiy the document of cell-index in SPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Add cell-index clarification - Add mpc8536 chip name to the compatible value Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 +++- 1 files changed

[PATCH v2 2/6] eSPI: add eSPI controller support

2010-08-02 Thread Mingkai Hu
, the command and data are put into different transfers, so we need to combine all the transfers to one transfer in order to pass the transfer to eSPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Rename fsl_espi.c to spi_fsl_espi.c, also the config name - Move register

[PATCH v2 3/6] mtd: m25p80: add support to parse the SPI flash's partitions

2010-08-02 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Move the flash partition function from of_spi.c to MTD driver drivers/mtd/devices/m25p80.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers

[PATCH v2 4/6] mtd: m25p80: add a read function to read page by page

2010-08-02 Thread Mingkai Hu
to read page by page. For other SPI flash driver, also needed to supply the read function if used the eSPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- v2: - Add SPI_MASTER_TRANS_LIMIT flag to indicate the master's trans length limitation, so the MTD driver can select

[PATCH 0/6] refactor spi_mpc8xxx.c and add eSPI controller support

2010-07-19 Thread Mingkai Hu
This patchset refactor the file spi_mpc8xxx.c to abstract some common code as a lib used by the SPI/eSPI controller driver, move the SPI controller driver code to fsl_spi.c, and add the eSPI controller support with fsl_espi.c. Tested on P4080DS and MPC8536DS board based on latest Linux tree.

[PATCH 4/6] mtd: m25p80: change the read function to read page by page

2010-07-19 Thread Mingkai Hu
to read page by page. For other SPI flash driver, also needed to change the read function if used the eSPI controller. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/mtd/devices/m25p80.c | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) diff --git

[PATCH 5/6] powerpc/of: add eSPI controller dts bindings

2010-07-19 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- Documentation/powerpc/dts-bindings/fsl/spi.txt | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/powerpc/dts-bindings/fsl/spi.txt index

[PATCH 3/6] of/spi: add support to parse the SPI flash's partitions

2010-07-19 Thread Mingkai Hu
Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/of/of_spi.c | 11 +++ drivers/spi/spi_mpc8xxx.c |1 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/of/of_spi.c b/drivers/of/of_spi.c index 5fed7e3..284ca0e 100644 --- a/drivers

[PATCH 2/6] eSPI: add eSPI controller support

2010-07-19 Thread Mingkai Hu
in the same message are needed to combine to one transfer. Signed-off-by: Mingkai Hu mingkai...@freescale.com --- drivers/spi/Kconfig |7 + drivers/spi/Makefile |1 + drivers/spi/fsl_espi.c| 562 + drivers/spi/spi_mpc8xxx.h | 12 + 4