From: Tang Yuantian
Read DMA operations causes CRC error on armv8 chassis 2 platforms
due to the erratum A-010635.
In order to support sata on these platforms, ECC needs to be disabled.
Signed-off-by: Tang Yuantian
---
v2:
- refine the commit message
arch/arm/cpu/armv8/fsl-layerscape/soc.c
From: Tang Yuantian
Read DMA operations causes CRC error on armv8 chassis 2 platforms
due to the erratum A-010635.
In order to support sata on these platforms, ECC needs to be disabled.
Signed-off-by: Tang Yuantian
---
v2:
- refine the commit message
arch/arm/cpu/armv8/fsl-layerscape/soc.c
From: Tang Yuantian
The Read DMA operations get early termination indication from the
controller. This issue is observed as CRC error in the status
registers. The issue is due to address collision at address 0 in
the dual port memory. The read is a dummy read to flush out the
header, but due to c
From: Tang Yuantian
The LS1046A processor has three integrated USB 3.0 controllers
(USB1, USB2, and USB3) that allow direct connection to the USB
ports with appropriate protection circuitry and power supplies.
USB1 and USB2 ports are powered by a NX5P2190UK device, which
supplies 5v power at up t
From: Tang Yuantian
Signed-off-by: Tang Yuantian
---
configs/ls1046aqds_defconfig | 2 ++
configs/ls1046aqds_lpuart_defconfig | 2 ++
configs/ls1046aqds_nand_defconfig| 2 ++
configs/ls1046aqds_qspi_defconfig| 2 ++
configs/ls1046aqds_sdcard_ifc_defconfig | 2 +
From: Tang Yuantian
The LS1046AQDS processor has three integrated USB 3.0 controllers
(USB1, USB2, and USB3) that allow direct connection to the USB
ports with appropriate protection circuitry and power supplies.
USB1 and USB2 ports are powered by a NX5P2190UK device, which
supplies 5v power at u
From: Tang Yuantian
Signed-off-by: Tang Yuantian
---
configs/ls1046aqds_defconfig | 6 ++
configs/ls1046aqds_lpuart_defconfig | 6 ++
configs/ls1046aqds_nand_defconfig| 6 ++
configs/ls1046aqds_qspi_defconfig| 6 ++
configs/ls1046aqds_sdcard_ifc_
From: Tang Yuantian
The LS1046AQDS processor has three integrated USB 3.0 controllers
(USB1, USB2, and USB3) that allow direct connection to the USB
ports with appropriate protection circuitry and power supplies.
USB1 and USB2 ports are powered by a NX5P2190UK device, which
supplies 5v power at u
From: Tang Yuantian
Enables driver model flag CONFIG_DM_USB for LS1012A platform
in defconfigs.
Signed-off-by: Tang Yuantian
---
configs/ls1012afrdm_qspi_defconfig | 1 +
configs/ls1012aqds_qspi_defconfig | 1 +
configs/ls1012ardb_qspi_defconfig | 1 +
3 files changed, 3 insertions(+)
diff
From: Tang Yuantian
The LS1012A processor has two integrated USB controllers.
One is USB2.0 controller, the other is USB3.0 controller that
allow direct connection to the USB ports with appropriate
protection circuitry and power supplies.
Signed-off-by: Tang Yuantian
---
arch/arm/dts/fsl-ls101
From: Tang Yuantian
The LS1046A processor has three integrated USB 3.0 controllers
(USB1, USB2, and USB3) that allow direct connection to the USB
ports with appropriate protection circuitry and power supplies.
USB1 and USB2 ports are powered by a NX5P2190UK device, which
supplies 5v power at up t
From: Tang Yuantian
By default the SATA IP on the ls208Xa SoCs does not generating
coherent/snoopable transactions. This patch enable it in the
sata axicc register.
Signed-off-by: Tang Yuantian
---
arch/arm/cpu/armv8/fsl-layerscape/soc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/a
From: Tang Yuantian
Commit d97dc8a0 separated the non-command code into its own file
which caused variable sata_curr_device can not be set to a correct
value.
Before commit d97dc8a0, variable sata_curr_device can be set
correctly in sata_initialize().
After commit d97dc8a0, sata_initialize() is
From: Tang Yuantian
Commit d97dc8a0 separated the non-command code into its own file
which caused variable sata_curr_device can not be set to a correct
value.
Before commit d97dc8a0, variable sata_curr_device can be set
correctly in sata_initialize().
After commit d97dc8a0, sata_initialize() is
From: Tang Yuantian
Variable sata_curr_device is used to indicate if
there is a available sata disk on board.
Previously, sata_curr_device is set in sata_initialize().
Now, sata_initialize() is separated from other sata commands.
Accordingly, sata_curr_device is removed from sata_initialize() to
From: Tang Yuantian
The default values for Port Phy2Cfg register and
Port Phy3Cfg register are better, no need to overwrite them.
Signed-off-by: Tang Yuantian
---
arch/arm/cpu/armv8/fsl-layerscape/soc.c| 2 --
arch/arm/include/asm/arch-fsl-layerscape/soc.h | 2 --
2 files changed, 4 de
From: Tang Yuantian
By default the SATA IP on the ls1043a/ls1046a SoCs does not generating
coherent/snoopable transactions. This patch enable it in the SCFG_SNPCNFGCR
register along with sata axicc register.
In addition, the dma-coherent property must be set on the SATA controller
nodes.
Signed
From: Tang Yuantian
Ensure data the following sata command used is flushed out of dcache
and written to physical memory or timeout error may happen.
Signed-off-by: Tang Yuantian
---
drivers/block/ahci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/ahci.c b/drivers/block/ah
From: Tang Yuantian
Updated the default sata register values to enhance the
performance and stability.
Signed-off-by: Tang Yuantian
---
arch/arm/cpu/armv7/ls102xa/ls102xa_sata.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_sa
From: Tang Yuantian
Freescale ARM-based Layerscape contains a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls2080aqds, ls2080ardb and
ls1043aqds boards.
Signed-off-by: Tang Yuantian
---
v6:
- update rx
From: Tang Yuantian
Freescale ARM-based Layerscape contains a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls2080aqds, ls2080ardb and
ls1043aqds boards.
Signed-off-by: Tang Yuantian
---
v5:
- re-organi
From: Tang Yuantian
Freescale ARM-based Layerscape contains a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls2080aqds, ls2080ardb and
ls1043aqds boards.
Signed-off-by: Tang Yuantian
---
v4:
- rebase to
From: Tang Yuantian
Freescale ARM-based Layerscape LS102xA contain a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls1021aqds and ls1021atwr boards.
Signed-off-by: Tang Yuantian
---
v2:
- rebase to late
From: Tang Yuantian
Freescale ARM-based Layerscape LS2085A contain a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls2085aqds and ls2085ardb boards.
Signed-off-by: Tang Yuantian
---
v2:
- rebase to the
From: Tang Yuantian
Freescale ARM-based Layerscape SoCs contain a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds some basic SATA APIs which would be called by
specific board.
Signed-off-by: Tang Yuantian
---
board/freescale/co
From: Tang Yuantian
When compling under 64bit platforms, there are lots of warnings,
like:
drivers/block/ahci.c:114:18: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio;
^
drivers/block/ahci
From: Tang Yuantian
When compling under 64bit platforms, there are lots of warnings,
like:
drivers/block/ahci.c:114:18: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio;
^
drivers/block/ahci
From: Tang Yuantian
When compling under 64bit platforms, there are lots of warnings,
like:
drivers/block/ahci.c:114:18: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio;
^
drivers/block/ahci
From: Tang Yuantian
Signed-off-by: Tang Yuantian
---
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 4 ++
board/freescale/ls1021atwr/ls1021atwr.c | 68 ++-
include/configs/ls1021atwr.h | 7 ++-
3 files changed, 75 insertions(+), 4 deleti
From: Tang Yuantian
Function 'sprintf' does not check buffer boundaries but outputs
to the buffer of fixed size which could potentially cause buffer
overflow. Use a safer function to replace it.
Signed-off-by: Tang Yuantian
---
drivers/block/fsl_sata.c | 2 +-
1 file changed, 1 insertion(+), 1
From: Tang Yuantian
Function 'sprintf' does not check buffer boundaries but outputs
to the buffer of fixed size which could cause buffer overflow.
Use a safer function to replace it.
Signed-off-by: Tang Yuantian
---
drivers/block/fsl_sata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Tang Yuantian
Function dp_ddr_restore is to restore the first 128-byte space
of DDR. However those codes may be optimized out by compiler
since the destination address is at 0x0. In order to avoid
compiler optimization, we restore the space from high address,
which is not at 0x0, to low add
From: Tang Yuantian
In stead of user_buffer_size, transfer_size should be used to pass to
ahci_device_data_io(). transfer_size is the length that we want the
low level function to transfer each time.
If we use user_buffer_size which is the totally data length as parameter,
low level function will
From: Tang Yuantian
A new interface is introduced to support generic board structure.
Converts it to use new interface.
Signed-off-by: Tang Yuantian
---
board/freescale/t104xrdb/ddr.c | 19 +++
board/freescale/t104xrdb/spl.c | 19 +++
board/freescale/t
From: Tang Yuantian
With the introducing of generic board and ARM-based cores, current
deep sleep framework doesn't work anymore.
This patch will convert the current framework to adapt this change.
Basically it does:
1. Converts all the Freescale's DDR driver to support deep sleep.
2. Added basic
From: Tang Yuantian
Added deep sleep support on T102xRDB platforms.
Signed-off-by: Tang Yuantian
---
board/freescale/t102xrdb/t102xrdb.c | 66 +
include/configs/T102xRDB.h | 2 +-
2 files changed, 67 insertions(+), 1 deletion(-)
diff --git a/board
From: Tang Yuantian
Added deep sleep support on T104xRDB platforms.
Support both SD/SPI boot and NOR boot.
Signed-off-by: Tang Yuantian
---
board/freescale/t104xrdb/spl.c | 41 +++--
board/freescale/t104xrdb/t104xrdb.c | 60 +++--
includ
From: Tang Yuantian
Deep sleep for generic board is not supported on PowerPC.
This patch make deep sleep work for both non-generic
board and generic board on PowerPC platforms.
For ARM-based QorIQ platforms, deep sleep has been
already supported.
Signed-off-by: Tang Yuantian
---
README
From: Tang Yuantian
Signed-off-by: Tang Yuantian
---
include/configs/P1022DS.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
index 54e2569..de0613f 100644
--- a/include/configs/P1022DS.h
+++ b/include/configs/P1022DS.h
@@ -11,6 +11,
From: Tang Yuantian
The bus frequency in SOC node should be clock frequency of platform.
That is not true if it is devided by 2.
Signed-off-by: Tang Yuantian
---
arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.
From: Tang Yuantian
These patches depend on the following patches:
https://patchwork.ozlabs.org/patch/389949/
https://patchwork.ozlabs.org/patch/389950/
https://patchwork.ozlabs.org/patch/389951/
https://patchwork.ozlabs.org/patch/389952/
Tang Yuantian (4):
Add deep sleep framework support for
From: Tang Yuantian
Defining variable gic_dist_addr as a globe one prevents function
armv7_init_nonsec() from being used before relocation which is
the case in the deep sleep resume process on Freescale QorIQ SoC
platforms.
This patch removes this limitation by adding a extra same meaning
local v
From: Tang Yuantian
Add deep sleep support on Freescale LS1021QDS platform.
Signed-off-by: Tang Yuantian
---
board/freescale/ls1021aqds/ddr.c| 7
board/freescale/ls1021aqds/ls1021aqds.c | 60 +
include/configs/ls1021aqds.h| 4 +++
3 fi
From: Tang Yuantian
There are 8 SCFG_SPARECR registers in SCFG memory block, not one.
Signed-off-by: Tang Yuantian
---
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
b/arch
From: Tang Yuantian
When Freescale QorIQ SoCs wake up from deep sleep, control is
passed to the primary core that starts executing uboot. After
re-initialized some IP blocks, like DDRC, kernel will take
responsibility to continue to restore environment it leaves before.
This patch adds the deep
From: Tang Yuantian
When Freescale QorIQ SoCs wake up from deep sleep, control is
passed to the primary core that starts executing uboot. After
re-initialized some IP blocks, like DDRC, kernel will take
responsibility to continue to restore environment it leaves before.
This patch adds the deep
From: Tang Yuantian
Add deep sleep support on Freescale LS1021QDS platform.
Signed-off-by: Tang Yuantian
---
board/freescale/ls1021aqds/ddr.c| 7
board/freescale/ls1021aqds/ls1021aqds.c | 60 +
include/configs/ls1021aqds.h| 4 +++
3 fi
From: Tang Yuantian
Defining variable gic_dist_addr as a globe one prevents function
armv7_init_nonsec() from being used before relocation which is
the case in the deep sleep resume process on Freescale QorIQ SoC
platforms.
This patch removes this limitation by adding a extra same meaning
local v
From: Tang Yuantian
These patches depend on the following patches:
https://patchwork.ozlabs.org/patch/389949/
https://patchwork.ozlabs.org/patch/389950/
https://patchwork.ozlabs.org/patch/389951/
https://patchwork.ozlabs.org/patch/389952/
Tang Yuantian (4):
Add deep sleep framework support for
From: Tang Yuantian
There are 8 SCFG_SPARECR registers in SCFG memory block, not one.
Signed-off-by: Tang Yuantian
---
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
b/arch
From: Tang Yuantian
Add deep sleep support in SPI/SD boot. The destination address
second stage uboot image is loaded to is changed because
currently this address will be used by kernel which means
we can't reserve it for resume.
Entry point to kernel is still placed in second stage uboot.
Sign
From: Tang Yuantian
bootflag as a parameter is passed to board_init_f().
But it is not actually used in this function.
Make it effective by assigned it to gd->flags.
Signed-off-by: Tang Yuantian
---
arch/powerpc/lib/board.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/lib
From: Tang Yuantian
When T104x soc wakes up from deep sleep, control is passed to the
primary core that starts executing uboot. After re-initialized some
IP blocks, like DDRC, kernel will take responsibility to continue
to restore environment it leaves before.
Signed-off-by: Tang Yuantian
---
v
From: Tang Yuantian
The supplement configuration unit (SCFG) provides chip-specific
configuration and status registers for the device. It is the chip
defined module for extending the device configuration unit (DCFG)
module. It provides a set of CCSR registers in addition to those
available in the
From: Tang Yuantian
The offset of register address within GPIO module is just
CONFIG_SYS_MPC85xx_GPIO_ADDR. So, fix it. The following platforms
are confirmed: MPC8572, P1023, P1020, P1022, P2020, P4080,
P5020, P5040, T4240, B4860.
Signed-off-by: Tang Yuantian
---
v2:
- updated the commi
From: Tang Yuantian
The source clock frequency of I2C bus on p1022 is the platform(CCB)
clock, not CCB/2. The wrong source clock frequency leads to wrong
I2C bus speed setting. so, fixed it.
Signed-off-by: Tang Yuantian
---
fix bug: ENGR00274019
arch/powerpc/cpu/mpc85xx/speed.c | 3 ++-
1 fil
From: Tang Yuantian
For T4/B4, the clockgen node compatible string is updated to version 2.0.
Add clock-frequency setting for this new version.
Signed-off-by: Tang Yuantian
---
v3:
- update the compatible string from *-2 to *-2.0
v2:
- fix the codestyle
arch/powerpc/cpu/mpc85x
From: Tang Yuantian
For T4/B4, the clockgen node compatible string is updated to version 2.
Add clock-frequency setting for this new version.
Signed-off-by: Tang Yuantian
---
arch/powerpc/cpu/mpc85xx/fdt.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/c
58 matches
Mail list logo