Re: [U-Boot] [RESEND PATCH V2 3/3] imx: mx7: add system suspend/resume support

2018-08-29 Thread Anson Huang
Hi, all Can anyone pick up this patch set, it has been tested and suspend/resume is an important feature many people want, thanks! Anson Huang Best Regards! > -Original Message- > From: Stefan Agner > Sent: Wednesday, August 8, 2018 8:09 PM > To: Anson Huan

Re: [U-Boot] [RESEND PATCH V2 3/3] imx: mx7: add system suspend/resume support

2018-08-08 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Wednesday, August 8, 2018 5:03 PM > To: Anson Huang > Cc: sba...@denx.de; Fabio Estevam ; > albert.u.b...@aribaud.net; bryan.odonog...@linar

Re: [U-Boot] [RESEND 1/3] imx: mx7: psci: add cpu hotplug support

2018-08-07 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Wednesday, August 8, 2018 1:54 PM > To: Anson Huang > Cc: sba...@denx.de; Fabio Estevam ; > albert.u.b...@aribaud.net; bryan.odonog...@linaro.org; Stefan

[U-Boot] [RESEND PATCH V2 3/3] imx: mx7: add system suspend/resume support

2018-08-07 Thread Anson Huang
pointer before calling C code, otherwise there will be an external abort occur, in additional, invalidate L1 cache must be done in secure section as well, so this patch also adds assembly code back and keep it as simple as possible. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/Makefile

[U-Boot] [RESEND PATCH V2 2/3] imx: mx7: add gpc initialization for low power mode

2018-08-07 Thread Anson Huang
; - Configure wakeup source mechanism; - Disable DSM/RBC related settings. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/soc.c | 103 1 file changed, 103 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c

[U-Boot] [RESEND PATCH V2 1/3] imx: mx7: psci: improve cpu hotplug flow

2018-08-07 Thread Anson Huang
number of ~0 as handshake for killing a offline CPU, when the online CPU checks the psci_affinity_info, it will help kill the offline CPU according to the magic number stored in SRC parameter register. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 23 +-- 1

Re: [U-Boot] [RESEND 3/3] imx: mx7: add system suspend/resume support

2018-08-07 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Tuesday, August 7, 2018 7:59 PM > To: Anson Huang > Cc: sba...@denx.de; Fabio Estevam ; > albert.u.b...@aribaud.net; bryan.odonog...@linaro.org; Stefan

Re: [U-Boot] [RESEND 2/3] imx: mx7: add gpc initialization for low power mode

2018-08-07 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Tuesday, August 7, 2018 6:56 PM > To: Anson Huang > Cc: sba...@denx.de; Fabio Estevam ; > albert.u.b...@aribaud.net; bryan.odonog...@linaro.org; Stefan

Re: [U-Boot] [RESEND 1/3] imx: mx7: psci: add cpu hotplug support

2018-08-07 Thread Anson Huang
Hi, Stefan Anson Huang Best Regards! > -Original Message- > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: Tuesday, August 7, 2018 6:48 PM > To: Anson Huang > Cc: sba...@denx.de; Fabio Estevam ; > albert.u.b...@aribaud.net; bryan.odonog...@linaro.org; Stefan

[U-Boot] [RESEND 3/3] imx: mx7: add system suspend/resume support

2018-08-06 Thread Anson Huang
pointer before calling C code, otherwise there will be an external abort occur, in additional, invalidate L1 cache must be done in secure section as well, so this patch also adds assembly code back and keep it as simple as possible. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/Makefile | 2

[U-Boot] [RESEND 2/3] imx: mx7: add gpc initialization for low power mode

2018-08-06 Thread Anson Huang
; - Configure wakeup source mechanism; - Disable DSM/RBC related settings. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/soc.c | 101 1 file changed, 101 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c

[U-Boot] [RESEND 1/3] imx: mx7: psci: add cpu hotplug support

2018-08-06 Thread Anson Huang
magic number of ~0 as handshake for killing a offline CPU, when the online CPU checks the psci_affinity_info, it will help kill the offline CPU according to the magic number stored in SRC parameter register. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 23

[U-Boot] [PATCH V2 4/4] imx: mx7: add psci_features support

2018-06-24 Thread Anson Huang
psci_features, otherwise, s2idle will be entered instead. Signed-off-by: Anson Huang --- no change since V1. arch/arm/mach-imx/mx7/psci.S | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/mach-imx/mx7/psci.S b/arch/arm/mach-imx/mx7/psci.S index cbe6781

[U-Boot] [PATCH V2 3/4] imx: mx7: add system suspend/resume support

2018-06-24 Thread Anson Huang
tuple 0x80 (7 bytes) [ 339.284158] mmc1: queuing unknown CIS tuple 0x80 (6 bytes) [ 339.385065] PM: resume devices took 0.400 seconds [ 339.389836] OOM killer enabled. [ 339.392986] Restarting tasks ... done. [ 339.398990] PM: suspend exit Signed-off-by: Anson Huang --- no change since V1

[U-Boot] [PATCH V2 2/4] imx: mx7: add gpc initialization for low power mode

2018-06-24 Thread Anson Huang
; - Configure wakeup source mechanism; - Disable DSM/RBC related settings. Signed-off-by: Anson Huang --- no change since V1. arch/arm/mach-imx/mx7/soc.c | 101 1 file changed, 101 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm

[U-Boot] [PATCH V2 1/4] imx: mx7: psci: add cpu hotplug support

2018-06-24 Thread Anson Huang
magic number of ~0 as handshake for killing a offline CPU, when the online CPU checks the psci_affinity_info, it will help kill the offline CPU according to the magic number stored in SRC parameter register. Signed-off-by: Anson Huang --- changes since V1: Defining magic number for CPU

Re: [U-Boot] [PATCH 1/4] mx7: psci: add cpu hotplug support

2018-05-28 Thread Anson Huang
Hi, Bryan Anson Huang Best Regards! > -Original Message- > From: Bryan O'Donoghue [mailto:bryan.odonog...@linaro.org] > Sent: Monday, May 28, 2018 4:59 PM > To: Anson Huang ; sba...@denx.de; Fabio Estevam > ; albert.u.b...@aribaud.net; > christian.gmei

Re: [U-Boot] [PATCH] mx7: psci: add cpu hotplug support

2018-05-27 Thread Anson Huang
gpc initialization for low power mode Sent [PATCH 3/4] imx: mx7: add system suspend/resume support Sent [PATCH 4/4] imx: mx7: add psci_features support Anson Huang Best Regards! > -Original Message- > From: Anson Huang > Sent: Friday, May 25, 2018 2:11 PM > To: sba...@de

[U-Boot] [PATCH 3/4] imx: mx7: add system suspend/resume support

2018-05-27 Thread Anson Huang
tuple 0x80 (7 bytes) [ 339.284158] mmc1: queuing unknown CIS tuple 0x80 (6 bytes) [ 339.385065] PM: resume devices took 0.400 seconds [ 339.389836] OOM killer enabled. [ 339.392986] Restarting tasks ... done. [ 339.398990] PM: suspend exit Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7

[U-Boot] [PATCH 4/4] imx: mx7: add psci_features support

2018-05-27 Thread Anson Huang
psci_features, otherwise, s2idle will be entered instead. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci.S | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/mach-imx/mx7/psci.S b/arch/arm/mach-imx/mx7/psci.S index cbe6781..694cef7 100644 --- a

[U-Boot] [PATCH 2/4] imx: mx7: add gpc initialization for low power mode

2018-05-27 Thread Anson Huang
; - Configure wakeup source mechanism; - Disable DSM/RBC related settings. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/soc.c | 101 1 file changed, 101 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c

[U-Boot] [PATCH 1/4] mx7: psci: add cpu hotplug support

2018-05-27 Thread Anson Huang
magic number of ~0 as handshake for killing a offline CPU, when the online CPU checks the psci_affinity_info, it will help kill the offline CPU according to the magic number stored in SRC parameter register. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 31

[U-Boot] [PATCH] mx7: psci: add cpu hotplug support

2018-05-24 Thread Anson Huang
magic number of ~0 as handshake for killing a offline CPU, when the online CPU checks the psci_affinity_info, it will help kill the offline CPU according to the magic number stored in SRC parameter register. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 31

[U-Boot] [PATCH V3 2/3] imx: mx7: psci: add system reset support

2018-01-07 Thread Anson Huang
Add i.MX7 PSCI system reset support, linux kernel can use "reboot" command to reset system even wdog driver is disabled in kernel. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 15 ++- arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files changed, 21

[U-Boot] [PATCH V3 3/3] imx: mx7: psci: add system power off support

2018-01-07 Thread Anson Huang
Add i.MX7 PSCI system power off support, linux kernel can use "poweroff" command to power off system via SNVS, PMIC power will be disabled. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 18 ++ arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files c

[U-Boot] [PATCH V3 1/3] mx7_common: use psci 1.0 instead of 0.1

2018-01-07 Thread Anson Huang
Use PSCI 1.0 instead of 0.1 to support more power management feature like system reset, power off etc.. Signed-off-by: Anson Huang --- include/configs/mx7_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index 16e4d95

Re: [U-Boot] [PATCH V2] imx: mx7: psci: add system reset support

2018-01-07 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018-01-07 6:48 AM > To: Anson Huang > Cc: Stefano Babic ; Fabio Estevam > ; Albert ARIBAUD ; > Christian Gmeiner ; Peng Fan > ; U-Boot-Denx > Subject:

Re: [U-Boot] [PATCH V2 1/3] mx7_common: use psci 1.0 instead of 0.1

2018-01-07 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018-01-07 12:05 AM > To: Anson Huang > Cc: Stefano Babic ; Fabio Estevam > ; Albert ARIBAUD ; > Troy Kisky ; Christian Gmeiner > ; Peng Fan ; U-Boot- &

Re: [U-Boot] [PATCH V2] imx: mx7: psci: add system reset support

2018-01-07 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018-01-07 6:48 AM > To: Anson Huang > Cc: Stefano Babic ; Fabio Estevam > ; Albert ARIBAUD ; > Christian Gmeiner ; Peng Fan > ; U-Boot-Denx > Subject:

[U-Boot] [PATCH V2 1/3] mx7_common: use psci 1.0 instead of 0.1

2018-01-06 Thread Anson Huang
Use PSCI 1.0 instead of 0.1 to support more power management feature like system reset, power off etc.. Signed-off-by: Anson Huang --- no changes since v1. include/configs/mx7_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mx7_common.h b/include/configs

Re: [U-Boot] [PATCH 3/3] imx: mx7: psci: add system power off support

2018-01-06 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Troy Kisky [mailto:troy.ki...@boundarydevices.com] > Sent: 2018-01-06 2:49 AM > To: Anson Huang ; sba...@denx.de; Fabio Estevam > ; albert.u.b...@aribaud.net; > christian.gmei...@gmail.com; Peng Fan ; u- &g

[U-Boot] [PATCH V2 3/3] imx: mx7: psci: add system power off support

2018-01-06 Thread Anson Huang
Add i.MX7 PSCI system power off support, linux kernel can use "poweroff" command to power off system via SNVS, PMIC power will be disabled. Signed-off-by: Anson Huang --- changes since v1: use "bl" instead of "b" as we need the call to return back. arch/ar

[U-Boot] [PATCH V2 2/3] imx: mx7: psci: add system reset support

2018-01-06 Thread Anson Huang
Add i.MX7 PSCI system reset support, linux kernel can use "reboot" command to reset system even wdog driver is disabled in kernel. Signed-off-by: Anson Huang --- changes since v1: use "bl" instead of "b" as we need the call to return back. arch/a

Re: [U-Boot] [PATCH V2] imx: mx7: psci: add system reset support

2018-01-05 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018-01-04 8:57 PM > To: Anson Huang > Cc: Stefano Babic ; Fabio Estevam > ; Albert ARIBAUD ; > Christian Gmeiner ; Peng Fan > ; U-Boot-Denx

[U-Boot] [PATCH 3/3] imx: mx7: psci: add system power off support

2018-01-05 Thread Anson Huang
Add i.MX7 PSCI system power off support, linux kernel can use "poweroff" command to power off system via SNVS, PMIC power will be disabled. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 18 ++ arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files c

[U-Boot] [PATCH 1/3] mx7_common: use psci 1.0 instead of 0.1

2018-01-05 Thread Anson Huang
Use PSCI 1.0 instead of 0.1 to support more power management feature like system reset, power off etc.. Signed-off-by: Anson Huang --- include/configs/mx7_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index 16e4d95

[U-Boot] [PATCH 2/3] imx: mx7: psci: add system reset support

2018-01-05 Thread Anson Huang
Add i.MX7 PSCI system reset support, linux kernel can use "reboot" command to reset system even wdog driver is disabled in kernel. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 5 + arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files changed, 12 insertion

Re: [U-Boot] [PATCH V2] imx: mx7: psci: add system reset support

2018-01-04 Thread Anson Huang
Hi, Peng Best Regards! Anson Huang > -Original Message- > From: Peng Fan > Sent: 2018-01-04 5:48 PM > To: Anson Huang ; sba...@denx.de; Fabio Estevam > ; albert.u.b...@aribaud.net; > christian.gmei...@gmail.com; u-boot@lists.denx.de > Subject: RE: [PATCH V2] imx:

[U-Boot] [PATCH] imx: mx7: psci: add system reset support

2018-01-04 Thread Anson Huang
Add i.MX7 PSCI system reset support, linux kernel now can use "reboot" command to reset system. Signed-off-by: Anson Huang --- arch/arm/mach-imx/mx7/psci-mx7.c | 5 + arch/arm/mach-imx/mx7/psci.S | 7 +++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach-imx/mx

[U-Boot] [PATCH V2] imx: mx7: psci: add system reset support

2018-01-04 Thread Anson Huang
Add i.MX7 PSCI system reset support, linux kernel now can use "reboot" command to reset system. Signed-off-by: Anson Huang --- changes since V1: write WDOG register directly instead of calling reset_cpu which is NOT safe since it is NOT in secure section. arch/arm/ma

[U-Boot] [PATCH 1/2] imx6: ensure AHB clock is 132MHz in low freq boot mode

2014-01-22 Thread Anson Huang
i.MX6SL EVK board. Reviewed-by: Fabio Estevam Signed-off-by: Anson Huang --- arch/arm/cpu/armv7/mx6/soc.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 0208cba..33a2939 100644 --- a/arch/arm/cpu/armv7/mx6

[U-Boot] [PATCH 2/2] imx6: make sure MMDC_CHx_MASK is clear to avoid warm reset failure

2014-01-22 Thread Anson Huang
ned-off-by: Anson Huang --- arch/arm/cpu/armv7/mx6/soc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 33a2939..2b162c2 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -189,

[U-Boot] [PATCH] i.MX6: Ensure AHB clock is 132MHz in low freq boot mode

2014-01-07 Thread Anson Huang
i.MX6SL EVK board. Signed-off-by: Anson Huang --- arch/arm/cpu/armv7/mx6/soc.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index a390296..edf3139 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu

[U-Boot] [PATCH] i.MX6: Ensure AHB clock is 132MHz in low freq boot mode

2014-01-07 Thread Anson Huang
i.MX6SL EVK board. Signed-off-by: Anson Huang --- arch/arm/cpu/armv7/mx6/soc.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index a390296..edf3139 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu