Re: [U-Boot] mx6qp sabreauto hangs after saveenv/reset

2015-10-09 Thread Nitin Garg
On 10/09/2015 09:59 AM, Fabio Estevam wrote: > Hi Peng, > > On Thu, Oct 8, 2015 at 11:12 PM, Peng Fan wrote: > >> Whether plugging nand chip into the socket or without nand chip, the board >> reboot >> well in my side. I did not do stress test, only do a few test, and each time >> 'reset', it c

Re: [U-Boot] [PATCH 02/11] imx: power: add pmic pfuze300 support

2015-07-15 Thread Nitin Garg
On 07/15/2015 05:49 PM, Adrian Alonso wrote: > * Add pmic pfuze300 support for imx7 and iMX6 DL/SL/SX SoC's > * Implement power_pfuze300_init to be used in power_init_board > callback function. > > Signed-off-by: Adrian Alonso > Signed-off-by: Peng Fan > --- > drivers/power/pmic/Makefile

Re: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-07-07 Thread Nitin Garg
On 06/30/2015 03:02 AM, Peng Fan wrote: > Hi Stefano, > > On Sun, Jun 28, 2015 at 01:00:07PM +0200, Stefano Babic wrote: >> Hi Peng, >> >> On 14/06/2015 11:38, Peng Fan wrote: >>> Since rom code supports the following commands, add new commands support in >>> imximage. >>> >> >> It is better to ex

Re: [U-Boot] arm: imx: Kernel not booting when environment is in QSPI

2015-06-09 Thread Nitin Garg
On 06/09/2015 10:02 AM, Fabio Estevam wrote: > Adding some FSL folks in case they have some suggestions. > > Regards, > > Fabio Estevam > > On Tue, Jun 9, 2015 at 11:41 AM, Matthias Weißer > wrote: >> Hi >> >> I work with an imx6sx sdb. I observed that placing u-boot in QSPI >> flash and also

Re: [U-Boot] bootcount: Add dcache flush to bootcount_store()

2015-03-27 Thread Nitin Garg
; void enable_caches(void) > { > ... > /* Enable caching on OCRAM and ROM */ > mmu_set_region_dcache_behaviour(ROMCP_ARB_BASE_ADDR, > ROMCP_ARB_END_ADDR, > option); > mmu_set_re

Re: [U-Boot] [PATCH v6 0/5] add i.MX6 thermal sensor driver

2014-11-15 Thread Nitin Garg
On 11/15/2014 06:34 AM, Albert ARIBAUD wrote: > Hello nitin.g...@freescale.com, > > On Fri, 14 Nov 2014 14:13:02 -0600, nitin.g...@freescale.com > wrote: >> From: Nitin Garg >> >> This patch set adds i.MX6 thermal sensor driver >> and enables it for mx6sabre

[U-Boot] [PATCH v5 5/5] mx6: thermal: Enable thermal sensor for mx6 sabre boards.

2014-10-01 Thread Nitin Garg
Add CONFIG_IMX6_THERMAL to mx6sabre_common.h file. Since thermal driver depends on ocotp, make sure to enable CONFIG_MXC_OCOTP when CONFIG_IMX6_THERMAL is slected. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of cpu.c and crm_regs.h file Changes in v4: -Added

[U-Boot] [PATCH v5 3/5] mx6: thermal: Add i.MX6 CPU thermal sensor support

2014-10-01 Thread Nitin Garg
i.MX6 SoC has onchip temperature sensor. Add driver for this sensor. Signed-off-by: Nitin Garg --- drivers/Makefile |1 + drivers/thermal/Makefile |8 +++ drivers/thermal/imx_thermal.c | 137 + include/imx_thermal.h

[U-Boot] [PATCH v5 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Add bit definitons for various anadig registers as required by various drivers. Signed-off-by: Nitin Garg --- arch/arm/include/asm/arch-mx6/crm_regs.h | 541 ++ 1 file changed, 541 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h b/arch/arm

[U-Boot] [PATCH v5 4/5] mx6: thermal: Check cpu temperature via thermal sensor

2014-10-01 Thread Nitin Garg
read cpu temperature using the onchip thermal sensor. Signed-off-by: Nitin Garg --- arch/arm/imx-common/cpu.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index ed826a0..a7b49bd 100644 --- a/arch/arm/imx-common/cpu.c +++ b

[U-Boot] [PATCH v5 2/5] mx6: clock: Add api to enable pll3

2014-10-01 Thread Nitin Garg
Add api to check and enable pll3 as required for thermal sensor driver. Signed-off-by: Nitin Garg --- arch/arm/cpu/armv7/mx6/clock.c| 25 + arch/arm/include/asm/arch-mx6/clock.h |1 + 2 files changed, 26 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6

[U-Boot] [PATCH v5 0/5] add i.MX6 thermal sensor driver

2014-10-01 Thread Nitin Garg
river support -adds the mx6 thermal support to mx6sabresd board. Changes in v2: -run checkpatch and fix reported issues Nitin Garg (5): mx6: crm_regs: Add bit definitions for anadig registers mx6: clock: Add api to enable pll3 mx6: thermal: Add i.MX6 CPU thermal sensor support mx6: thermal: Chec

Re: [U-Boot] [PATCH v5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
On 10/01/2014 07:26 AM, Fabio Estevam wrote: > Hi Nitin, > > On Wed, Oct 1, 2014 at 9:19 AM, Nitin Garg wrote: >> Add bit definitons for various anadig registers as >> required by various drivers. >> >> Signed-off-by: Nitin Garg > > In the previous

[U-Boot] [PATCH v5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Add bit definitons for various anadig registers as required by various drivers. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of crm_regs.h file Changes in v4: -Added imx6 thermal sensor as a driver -Renamed the config define to be more meaningful -Move the

[U-Boot] [PATCH v5] mx6: thermal: Check cpu temperature via thermal sensor

2014-10-01 Thread Nitin Garg
read cpu temperature using the onchip thermal sensor. Signed-off-by: Nitin Garg --- Changes in v5: -Don't modify the copyright of cpu.c file Changes in v4: -Added imx6 thermal sensor as a driver -Renamed the config define to be more meaningful -Move the clock code to clock.c -Reusing

Re: [U-Boot] [PATCH v4 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-10-01 Thread Nitin Garg
Hi Stefano, On 10/01/2014 02:21 AM, Stefano Babic wrote: > Hi Nitin, Tom, Wolfgang, > > On 16/09/2014 18:48, Nitin Garg wrote: >> Add bit definitons for various anadig registers as >> required by various drivers. >> >> Signed-off-by: Nitin Garg >> --- >

[U-Boot] [PATCH v3] imx6sx: Fix i.MX6SX HAB api function table offset

2014-09-30 Thread Nitin Garg
i.MX6SX ROM implements unified table sections. The HAB function table is at offset 0x100. Update the HAB function pointers accordingly. Signed-off-by: Nitin Garg Tested-by: Fabio Estevam --- Changes in v3: -Removed CONFIG_ROM_UNIFIED_SECTIONS instead use CONFIG_MX6SX Changes in v2: -Moved

[U-Boot] [PATCH v2] imx6sx: Fix i.MX6SX HAB api function table offset

2014-09-30 Thread Nitin Garg
i.MX6SX ROM implements unified table sections. The HAB function table is at offset 0x100. Update the HAB function pointers accordingly. Signed-off-by: Nitin Garg Tested-by: Fabio Estevam --- Changes in v2: -Moved CONFIG_ROM_UNIFIED_SECTIONS to mx6_common.h -Simplified hab.h changes -Added

[U-Boot] [PATCH v1] imx6sx: Fix i.MX6SX HAB api function table offset

2014-09-30 Thread Nitin Garg
i.MX6SX ROM implements unified table sections. The HAB function table is at offset 0x100. Update the HAB function pointers accordingly. Signed-off-by: Nitin Garg Tested-by: Fabio Estevam --- arch/arm/include/asm/arch-mx6/hab.h | 16 +++- include/configs/mx6_common.h

Re: [U-Boot] [PATCH v4] imx: Support i.MX6 High Assurance Boot authentication

2014-09-30 Thread Nitin Garg
Hi Fabio, On 09/30/2014 08:44 AM, Fabio Estevam wrote: > Hi Nitin, > > On Tue, Sep 16, 2014 at 3:33 PM, Nitin Garg wrote: >> When CONFIG_SECURE_BOOT is enabled, the signed images >> like kernel and dtb can be authenticated using iMX6 CAAM. >> The added command hab_a

[U-Boot] [PATCH v1] imx6sx: Fix i.MX6SX HAB api function table offset

2014-09-30 Thread Nitin Garg
i.MX6SX ROM implements unified table sections. The HAB function table is at offset 0x100. Update the HAB function pointers accordingly. Signed-off-by: Nitin Garg --- arch/arm/include/asm/arch-mx6/hab.h | 33 +++-- include/configs/mx6sxsabresd.h |1 + 2

Re: [U-Boot] [PATCH v4] imx: Support i.MX6 High Assurance Boot authentication

2014-09-22 Thread Nitin Garg
Hi Stefano, On 09/22/2014 09:07 AM, Stefano Babic wrote: > Hi Nitin, > > On 16/09/2014 20:33, Nitin Garg wrote: >> When CONFIG_SECURE_BOOT is enabled, the signed images >> like kernel and dtb can be authenticated using iMX6 CAAM. >> The added command hab_a

Re: [U-Boot] [PATCH 1/2 v3] Add i.MX6 CPU temperature sensor support

2014-09-16 Thread Nitin Garg
Hi Stefano, On 09/11/2014 04:01 AM, Stefano Babic wrote: > Hi Nitin, > > > On 02/09/2014 00:48, nitin.g...@freescale.com wrote: >> From: Nitin Garg >> >> i.MX6 SoC has onChip temperature sensor. Add support >> for this sensor. >> >> Signed-off-b

Re: [U-Boot] [PATCH v3] imx: Support i.MX6 High Assurance Boot authentication

2014-09-16 Thread Nitin Garg
Hi Stefano, On 09/12/2014 03:46 AM, Stefano Babic wrote: > Hi Nitin, > > On 04/09/2014 03:18, Nitin Garg wrote: >> When CONFIG_SECURE_BOOT is enabled, the signed images >> like kernel and dtb can be authenticated using iMX6 CAAM. >> The added command hab_a

[U-Boot] [PATCH v4] imx: Support i.MX6 High Assurance Boot authentication

2014-09-16 Thread Nitin Garg
. Detailed info about signing images can be found in Freescale AppNote AN4581. Signed-off-by: Nitin Garg --- Changes in v4: - Use single hab_caam_clock_enable api for en/disable - Remove unused DEBUG_AUTHENTICATE_IMAGE - Use DEBUG instead of DEBUG_AUTHENTICATE_IMAGE - Add defined for pu_irom_mmu_enabled

[U-Boot] [PATCH v4 4/5] mx6: thermal: Check cpu temperature via thermal sensor

2014-09-16 Thread Nitin Garg
read cpu temperature using the onchip thermal sensor. Signed-off-by: Nitin Garg --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/imx-common/cpu.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx

[U-Boot] [PATCH v4 5/5] mx6: thermal: Enable thermal sensor for mx6 sabre boards.

2014-09-16 Thread Nitin Garg
Add CONFIG_IMX6_THERMAL to mx6sabre_common.h file. Since thermal driver depends on ocotp, make sure to enable CONFIG_MXC_OCOTP when CONFIG_IMX6_THERMAL is slected. Signed-off-by: Nitin Garg --- Changes in v4: -Added imx6 thermal sensor as a driver -Renamed the config define to be more

[U-Boot] [PATCH v4 0/5] add i.MX6 thermal sensor driver

2014-09-16 Thread Nitin Garg
: -run checkpatch and fix reported issues Nitin Garg (5): mx6: crm_regs: Add bit definitions for anadig registers mx6: clock: Add api to enable pll3 mx6: thermal: Add i.MX6 CPU thermal sensor support mx6: thermal: Check cpu temperature via thermal sensor mx6: thermal: Enable thermal sensor for

[U-Boot] [PATCH v4 2/5] mx6: clock: Add api to enable pll3

2014-09-16 Thread Nitin Garg
Add api to check and enable pll3 as required for thermal sensor driver. Signed-off-by: Nitin Garg --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/mx6/clock.c| 25 + arch/arm/include/asm/arch-mx6/clock.h |1 + 2 files

[U-Boot] [PATCH v4 3/5] mx6: thermal: Add i.MX6 CPU thermal sensor support

2014-09-16 Thread Nitin Garg
i.MX6 SoC has onchip temperature sensor. Add driver for this sensor. Signed-off-by: Nitin Garg --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/Makefile |1 + drivers/thermal/Makefile |8 +++ drivers/thermal/imx_thermal.c | 137

[U-Boot] [PATCH v4 1/5] mx6: crm_regs: Add bit definitions for anadig registers

2014-09-16 Thread Nitin Garg
Add bit definitons for various anadig registers as required by various drivers. Signed-off-by: Nitin Garg --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-mx6/crm_regs.h | 543 +- 1 file changed, 542 insertions(+), 1

Re: [U-Boot] [PATCH 4/4] iMX6Q/DL:arm2: Add support for i.MX6Q/DL arm2 LPDDR2 boards

2014-09-03 Thread Nitin Garg
Hi Ye, On 09/03/2014 03:34 AM, Ye.Li wrote: > diff --git a/board/freescale/mx6qarm2/mx6qarm2.c > b/board/freescale/mx6qarm2/mx6qarm2.c > index f2e577d..090f3a8 100644 > --- a/board/freescale/mx6qarm2/mx6qarm2.c > +++ b/board/freescale/mx6qarm2/mx6qarm2.c > @@ -32,7 +32,11 @@ DECLARE_GLOBAL_DATA_P

[U-Boot] [PATCH v3] imx: Support i.MX6 High Assurance Boot authentication

2014-09-03 Thread Nitin Garg
. Detailed info about signing images can be found in Freescale AppNote AN4581. Signed-off-by: Nitin Garg --- Changes in v3: - Remove typecast of get_cpu_rev since its not required Changes in v2: - Cleaned up clock code as per review comments - Removed dead code as per review comments - Re-written commit

Re: [U-Boot] [PATCH] Support i.MX6 High Assurance Boot (HAB) authentication of images

2014-09-03 Thread Nitin Garg
On 09/03/2014 07:10 PM, Fabio Estevam wrote: > On Tue, Sep 2, 2014 at 10:55 PM, Nitin Garg wrote: > >> In the macros of HAB, like: >> hab_rvt_report_event_p >> >> The compiler generates bhi instead of bgt. > > hab_rvt_report_event_p exists prior to this patc

Re: [U-Boot] [PATCH 2/2] iMX6SLEVK: Change to use generic board

2014-09-03 Thread Nitin Garg
e of malloc() pool */ > #define CONFIG_SYS_MALLOC_LEN(3 * SZ_1M) > > Acked-by: Nitin Garg ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] iMX6Q/DL:ARM2: Change to use generic board

2014-09-03 Thread Nitin Garg
BOARD > + > /* Size of malloc() pool */ > #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * > 1024) > > Acked-by: Nitin Garg ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] Support i.MX6 High Assurance Boot (HAB) authentication of images

2014-09-02 Thread Nitin Garg
On 09/02/2014 08:52 PM, Fabio Estevam wrote: > On Tue, Sep 2, 2014 at 10:47 PM, Nitin Garg wrote: > >> But get_cpu_rev is correct, it returns unsigned int. >> The problem happens in hab code where there are >> comparisons between int and unsigned int, hence > >

Re: [U-Boot] [PATCH] Support i.MX6 High Assurance Boot (HAB) authentication of images

2014-09-02 Thread Nitin Garg
On 09/02/2014 08:41 PM, Otavio Salvador wrote: > Hello Nitin, > > On Tue, Sep 2, 2014 at 10:36 PM, Nitin Garg wrote: >> On 08/31/2014 08:09 PM, Otavio Salvador wrote: >>>> diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h >>>> b/arch/arm/include/asm/

Re: [U-Boot] [PATCH] Support i.MX6 High Assurance Boot (HAB) authentication of images

2014-09-02 Thread Nitin Garg
On 08/31/2014 08:09 PM, Otavio Salvador wrote: > Hello Nitin, > > On Sun, Aug 31, 2014 at 5:16 PM, wrote: >> From: Nitin Garg >> >> Add hab_auth_img u-boot command which can be used for HAB authentication >> of images. >> >> Signed-off-by: Nitin Ga

[U-Boot] [PATCH v2] imx: Support i.MX6 High Assurance Boot authentication

2014-09-02 Thread Nitin Garg
. Detailed info about signing images can be found in Freescale AppNote AN4581. Signed-off-by: Nitin Garg --- Changes in v2: - Cleaned up clock code as per review comments - Removed dead code as per review comments - Re-written commit log as per review comments arch/arm/cpu/armv7/mx6/clock.c

Re: [U-Boot] [PATCH] tools: imximage: Fix the maximum DCD size for mx53/mx6

2014-09-02 Thread Nitin Garg
/* Max number of registers imx can set for v2 > */ > #define MAX_HW_CFG_SIZE_V1 60 /* Max number of registers imx can set for v1 > */ > #define APP_CODE_BARKER 0xB1 > #define DCD_BARKER 0xB17219E9 > Acked-by: Nitin Garg ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] tools: imximage: Fix the maximum DCD size for mx53/mx6

2014-09-02 Thread Nitin Garg
/* Max number of registers imx can set for v2 > */ > #define MAX_HW_CFG_SIZE_V1 60 /* Max number of registers imx can set for v1 > */ > #define APP_CODE_BARKER 0xB1 > #define DCD_BARKER 0xB17219E9 > Acked-by: Nitin Garg ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2] imx: ddr: Move mx6q_4x_mt41j128.cfg to mx6sabresd board dir

2014-09-01 Thread Nitin Garg
Move board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg to board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg as this is was designed for the mx6sabresd board. This also updates the cgtqmx6qeval which makes use of this configuration. Signed-off-by: Nitin Garg --- .../{imx/ddr => mx6sabr

Re: [U-Boot] [PATCH] tools: imximage: Fix the maximum DCD size for mx53/mx6

2014-09-01 Thread Nitin Garg
Acked! Regards, Nitin Garg -Original Message- From: Fabio Estevam [mailto:fabio.este...@freescale.com] Sent: Monday, September 01, 2014 7:56 AM To: sba...@denx.de Cc: u-boot@lists.denx.de; jonas.d.karls...@gmail.com; Li Ye-B37916; Garg Nitin-B37173; Estevam Fabio-R49496 Subject

[U-Boot] [imx PATCH v2] Add i.MX6 CPU temperature sensor support

2014-08-31 Thread Nitin Garg
i.MX6 SoC has onChip temperature sensor. Add support for this sensor. Signed-off-by: Nitin Garg --- arch/arm/cpu/armv7/mx6/soc.c | 142 +++- arch/arm/imx-common/cpu.c|7 +- arch/arm/include/asm/arch-mx6/crm_regs.h | 543 +- arch

Re: [U-Boot] [PATCH] mx6: drop ARM errata 742230

2014-06-11 Thread Nitin Garg
Acked-by: Nitin Garg Regards, Nitin Garg -Original Message- From: Shawn Guo [mailto:shawn@freescale.com] Sent: Wednesday, June 11, 2014 3:53 AM To: u-boot@lists.denx.de Cc: Garg Nitin-B37173; Stefano Babic; Guo Shawn-R65073 Subject: [PATCH] mx6: drop ARM errata 742230 Commit

Re: [U-Boot] [PATCH v3 2/3] ARM: Add workaround for Cortex-A9 errata 761320

2014-04-02 Thread Nitin Garg
Sorry, I don't have a link. We are in the process of updating the i.MX6 Chip errata document to include this. Regards, Nitin Garg -Original Message- From: Stefano Babic [mailto:sba...@denx.de] Sent: Wednesday, April 02, 2014 10:29 AM To: Garg Nitin-B37173; tr...@ti.com; Estevam

Re: [U-Boot] [PATCH v3 1/3] ARM: Add workaround for Cortex-A9 errata 794072

2014-04-02 Thread Nitin Garg
lead to confusion if one has to enable 742230 (for 794072 workaround) even though the core revision does not need it. Regards, Nitin Garg -Original Message- From: Stefano Babic [mailto:sba...@denx.de] Sent: Wednesday, April 02, 2014 10:26 AM To: Garg Nitin-B37173; tr...@ti.com; Estevam

Re: [U-Boot] [PATCH 2/2] ARM: Add workaround for Cortex-A9 errata 761320

2014-04-02 Thread Nitin Garg
Hi Dirk, There is no revision and variant in this cpu_init_cp15 function. I think this function is common unlike kernel code which was cortex specific. Regards, Nitin Garg -Original Message- From: Dirk Behme [mailto:dirk.be...@de.bosch.com] Sent: Wednesday, April 02, 2014 1:46 AM To

Re: [U-Boot] [PATCH 1/2] ARM: Add workaround for Cortex-A9 errata 794072

2014-04-02 Thread Nitin Garg
Good point! I will do that. Regards, Nitin Garg -Original Message- From: Dirk Behme [mailto:dirk.be...@de.bosch.com] Sent: Wednesday, April 02, 2014 1:42 AM To: Garg Nitin-B37173 Cc: tr...@ti.com; Estevam Fabio-R49496; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 1/2] ARM: Add