Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-03-02 Thread Dongsheng Wang
+Zhang Hongbo. > > Hi Scott, > > Thanks for your review. > > > On Tue, 2016-01-19 at 06:28 +, Dongsheng Wang wrote: > > > Hi Scott, > > > > > > > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > > > > From:

Re: [U-Boot] [PATCH 0/9] ARM: ARMv7: PSCI: add PSCI v1.0 support

2016-03-02 Thread Dongsheng Wang
Hi all, +Zhang Hongbo, Hongbo will take over this patchset. Thanks. Regards, -Dongsheng > From: Wang Dongsheng > > Support PSCI v1.0 for u-boot. > > Wang Dongsheng (9): > ARM: PSCI: Change function ID base value > ARM: PSCI: Change PSCI related macro definition

Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-21 Thread Dongsheng Wang
Hi Scott, Thanks for your review. > On Tue, 2016-01-19 at 06:28 +0000, Dongsheng Wang wrote: > > Hi Scott, > > > > > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > > > From: Wang Dongsheng <dongsheng.w...@nxp.com> > > > > >

Re: [U-Boot] [PATCH 7/9] ARM: ARMv7: PSCI: Add PSCI 1.0 version support

2016-01-18 Thread Dongsheng Wang
Hi Scott, Thanks for your review. > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > + > > +#ifdef CONFIG_ARMV7_PSCI_GTE_1_0 > > + tmp = fdt_psci_gte_1_0_fixup(fdt, nodeoff); > > if (tmp) > > return tmp; > > - tmp =

Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-18 Thread Dongsheng Wang
Hi Scott, > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > From: Wang Dongsheng <dongsheng.w...@nxp.com> > > > > Based on PSCI v1.0, implement interface for ls102xa SoC: > > psci_version, > > psci_features, > > psci_cpu_suspend,

Re: [U-Boot] [PATCH 6/9] ARM: ARMv7: PSCI: ls102xa: Verify CPU ID for CPU_ON

2016-01-18 Thread Dongsheng Wang
Hi Scott, > > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > From: Wang Dongsheng <dongsheng.w...@nxp.com> > > > > Add validation code to make sure target cpu ID is valid. > > > > Signed-off-by: Wang Dongsheng <dongsheng.w...@nxp.com>

[U-Boot] [PATCH 9/9] ARM: ARMv7: PSCI: ls102xa: put secure text section into OCRAM

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng LS1021 support two secure OCRAM block for trustzone. So move all of secure text section into OCRAM, and not need to use memory anymore. Signed-off-by: Wang Dongsheng --- arch/arm/include/asm/arch-ls102xa/config.h | 2 +-

[U-Boot] [PATCH 1/9] ARM: PSCI: Change function ID base value

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Following PSCI v1.0 spec and Linux kernel bindings: U-Boot's choice of base value is arbitrary for v0.1, because it's described in the device tree, so we're choosing to make things easier by using 0x8400 for all PSCI versions. Signed-off-by:

[U-Boot] [PATCH 0/9] ARM: ARMv7: PSCI: add PSCI v1.0 support

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Support PSCI v1.0 for u-boot. Wang Dongsheng (9): ARM: PSCI: Change function ID base value ARM: PSCI: Change PSCI related macro definition style ARM: ARMv7: PSCI: move target PC in each CPU stack no longer is shared ARM: ARMv7: PSCI: Factor

[U-Boot] [PATCH 4/9] ARM: ARMv7: PSCI: Factor out reusable psci_cpu_on_common

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Move save target PC codes to a common function. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 20 -- arch/arm/cpu/armv7/mx7/psci.S | 3 --- arch/arm/cpu/armv7/psci.S

[U-Boot] [PATCH 5/9] ARM: ARMv7: PSCI: Pass contextID to target CPU

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng To follow PSCI, we need to save a "Context ID" in CPU_ON, and pass it to a CPU when it first enters the OS. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/nonsec_virt.S | 4 arch/arm/cpu/armv7/psci.S| 28

[U-Boot] [PATCH 3/9] ARM: ARMv7: PSCI: move target PC in each CPU stack no longer is shared

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng All of cpu share the same targetPC space that is unsafe. So move target PC save space into CPU stack. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 4 +-- arch/arm/cpu/armv7/mx7/psci.S |

[U-Boot] [PATCH 7/9] ARM: ARMv7: PSCI: Add PSCI 1.0 version support

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Add the PSCI v1.0 API to U-Boot: PSCI_VERSION, AFFINITY_INFO, MIGRATE_INFO_TYPE, MIGRATE_INFO_UP_CPU, SYSTEM_OFF, SYSTEM_RESET, PSCI_FEATURES, SYSTEM_SUSPEND. In order to be compatible with PSCI v0.1 version, introduce

[U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Based on PSCI v1.0, implement interface for ls102xa SoC: psci_version, psci_features, psci_cpu_suspend, psci_affinity_info, psci_system_reset, psci_system_off. Tested on LS1021aQDS, LS1021aTWR. Signed-off-by: Wang Dongsheng

[U-Boot] [PATCH 2/9] ARM: PSCI: Change PSCI related macro definition style

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng The macro style changes just to keep the style of the macro concise and consistent, and style mimicking linux. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 2 +- arch/arm/cpu/armv7/psci.S

[U-Boot] [PATCH 6/9] ARM: ARMv7: PSCI: ls102xa: Verify CPU ID for CPU_ON

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng Add validation code to make sure target cpu ID is valid. Signed-off-by: Wang Dongsheng --- arch/arm/cpu/armv7/ls102xa/psci.S | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2016-01-17 Thread Dongsheng Wang
From: Wang Dongsheng "DISCARD" will remove ._secure.text relocate, but PSCI framework has already used some absolute address those need to relocate. Use readelf -t -r u-boot show us: .__secure_start addr: 601408e4 .__secure_end addr: 60141460 60141140

Re: [U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2016-01-17 Thread Dongsheng Wang
Hi Tom, Thanks for your review. I will update this patch. Regards, -Dongsheng > On Mon, Jan 11, 2016 at 02:51:39AM +0000, Dongsheng Wang wrote: > > Hi Tom, > > > > Sorry for my late reply, and thanks for your reply. > > > > How about the following comments, f

Re: [U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2016-01-10 Thread Dongsheng Wang
address. * * So DISCARD is only for CONFIG_ARMV7_SECURE_BASE. */ /DISCARD/ : { *(.rel._secure*) } #endif Regards, -Dongsheng > > On Fri, Dec 11, 2015 at 03:30:24PM +0000, Dongsheng Wang wrote: > > Hi Tom, > > > > > On Fri, Dec 11, 2015 at 10:15:03AM +000

Re: [U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2015-12-11 Thread Dongsheng Wang
Hi Tom, Thanks for your review. > On Thu, Dec 10, 2015 at 10:49:01AM +0800, Dongsheng Wang wrote: > > > From: Wang Dongsheng <dongsheng.w...@nxp.com> > > > > Fix PSCI hang up without CONFIG_ARMV7_SECURE_BASE define. > > "DISCARD" will remove

Re: [U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2015-12-11 Thread Dongsheng Wang
Hi Tom, > On Fri, Dec 11, 2015 at 10:15:03AM +0000, Dongsheng Wang wrote: > > Hi Tom, > > > > Thanks for your review. > > > > > On Thu, Dec 10, 2015 at 10:49:01AM +0800, Dongsheng Wang wrote: > > > > > > > From: Wang Dongsheng <dong

[U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2015-12-09 Thread Dongsheng Wang
From: Wang Dongsheng Fix PSCI hang up without CONFIG_ARMV7_SECURE_BASE define. "DISCARD" will remove ._secure.text relocate, but PSCI framework has already used some absolute address those need to relocate. Use readelf -t -r u-boot show us: .__secure_start addr:

[U-Boot] [PATCH] arm/ls102xa: Add STANDBY implement based on PSCI

2015-09-09 Thread Dongsheng Wang
From: Wang Dongsheng Base on PSCI services, implement CPU_SUSPEND for ls102xa platform. Signed-off-by: Wang Dongsheng diff --git a/arch/arm/cpu/armv7/ls102xa/psci.S b/arch/arm/cpu/armv7/ls102xa/psci.S index cf5cd48..1bc7e45 100644

[U-Boot] [PATCH v2] powerpc/fsl: support low power boot for e500 and later

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com low power boot means u-boot will put non-boot cpus into a low power status. Non-boot cpus don't need any more spin wait. e500, e500v2 will going to DOZE status. e500mc, e5500, e6500 will going to PW10 state. e500/e500v2 will be kicked up by

[U-Boot] [PATCH] arm/layerscape: Fix non-boot cpus cannot correctly fall in spin table

2015-06-18 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com Bootrom will put cpus into WFE state when boot cpu release cpus, so target cpu cannot correctly go to spin state. Add 'sev' to wakeup non-boot cpu that hold on bootrom space, let target cpu can fall into u-boot spin table. Signed-off-by: Wang

[U-Boot] [PATCH 2/2] arm/ls102xa: Add PSCI support for ls102xa

2015-06-03 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com Base on PSCI services, implement CPU_ON/CPU_OFF for ls102xa platform. Tested on LS1021AQDS, LS1021ATWR. Test CPU hotplug times: 60K Test kernel boot times: 1.2K Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git

[U-Boot] [PATCH 1/2] ARMv7: Factor out reusable timer_wait from sunxi/psci_sun7i.S

2015-06-03 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com timer_wait is moved from sunxi/psci_sun7i.S, and it can be converted completely into a reusable armv7 generic timer. LS1021A will use it as well. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git

[U-Boot] [PATCH 1/2] ARMv7: Factor out reusable timer_wait from sunxi/psci.S

2015-05-13 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com timer_wait is moved from sunxi/psci.S, and it can be converted completely into a reusable armv7 generic timer. LS1021A will use it as well. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com --- This patch depend on Jan Kiszka

[U-Boot] [PATCH 2/2] arm/ls102xa: Add PSCI support for ls102xa

2015-05-13 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com Base on PSCI services, implement CPU_ON/CPU_OFF for ls102xa platform. Tested on LS1021AQDS, LS1021ATWR. Test CPU hotplug times: 60K Test kernel boot times: 1.2K Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com --- This patch depend on

[U-Boot] [PATCH] mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB

2015-04-20 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com Base on CPLD changes, so DIU switch channel also need to fix. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com --- This patch depends on T1042D4RDB platform code patches. Priyanka Jain has send T1042D4RDB patches to upstrem, but I

[U-Boot] [PATCH] mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB

2015-04-20 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com T1042D4RDB CPLD SFPCSR register defined has changed to 0:1 QE_MUX. There have two bits to control DVI, DFP, PROFIBUS, TMD MUX select. So we need to update a macro define value to switch to DIU channel. Signed-off-by: Wang Dongsheng

[U-Boot] [PATCH] powerpc/fsl: support low power boot for e500 and later

2015-01-14 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com low power boot means u-boot will put non-boot cpus into a low power status. Non-boot cpus don't need any more spin wait. e500, e500v2 will going to DOZE status. e500mc, e5500, e6500rev1 will going to PW10 state. e6500rev2 will going to PW20 state.

[U-Boot] [PATCH] powerpc/t1040qds: Remove Video - HDMI support

2014-04-18 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com We should remove this support. First, there is not any documents to say we need to support this feature, and kernel also not support this feature. Second, Kerneal not support this on T1040QDS, so if we open it in u-boot, FPGA will be changed and

[U-Boot] [PATCH 1/2] fsl/diu: ch7301 encoder split off from t1040qds/diu.c

2014-03-18 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com The ch7301 encoder not only used in t1040qds platform, so we split it for t1042rdb and LSx platform. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile index

[U-Boot] [PATCH 2/2] powerpc/t1042RDB: Add Video - HDMI support

2014-03-18 Thread Dongsheng Wang
From: Jason Jin jason@freescale.com T1042 has internal display interface unit (DIU) for driving video. T1042RDB supports video mode via -LCD using TI enconder -HDMI type interface via HDMI encoder Chrontel, CH7301C encoder which is I2C programmable is used as HDMI connector on T1042RDB.

[U-Boot] [PATCH v2 2/2] powerpc/t1042RDB: Add Video - HDMI support

2014-03-18 Thread Dongsheng Wang
From: Jason Jin jason@freescale.com T1042 has internal display interface unit (DIU) for driving video. T1042RDB supports video mode via -LCD using TI enconder -HDMI type interface via HDMI encoder Chrontel, CH7301C encoder which is I2C programmable is used as HDMI connector on T1042RDB. This

[U-Boot] [PATCH v2 1/2] fsl/diu: ch7301 encoder split off from t1040qds/diu.c

2014-03-18 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com The ch7301 encoder not only used in t1040qds platform, so we split it for t1042rdb and LSx platform. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com --- V2: No Change diff --git a/board/freescale/common/Makefile