[U-Boot] [PATCH] warp7: Remove CONFIG_BOOTDELAY variable

2016-07-13 Thread Breno Lima
It's not necessary anymore to declare the CONFIG_BOOTDELAY variable, it's already set by default as 2 seconds. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- configs/warp7_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig

[U-Boot] [PATCH] warp7: Increase CONFIG_BOOTDELAY

2016-07-12 Thread Breno Lima
Increase the boot delay to 3 seconds, because it's more convenient to load u-boot from imx_usb_loader tool. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- configs/warp7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/warp7_defconfig b/c

[U-Boot] [PATCH] warp7: Move some USB configuration options to defconfig

2016-07-22 Thread Breno Lima
Currently it's recommended to move some configuration options to the defconfig file. Move some USB related options to the defconfig file. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- configs/warp7_defconfig | 6 ++ include/configs/warp7.h | 9 - 2 files changed, 6 inse

[U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"

2016-08-12 Thread Breno Lima
rts commit a13d3757f7df25d0f017e85551b899d598ad1bdb. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/warp/warp.c | 2 +- include/configs/warp.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/board/warp/warp.c b/board/warp/warp.c index 0bc0a6a..49dfdb6 100644 --- a/b

[U-Boot] [PATCH v2] warp7: Remove CONFIG_BOOTDELAY variable

2016-07-13 Thread Breno Lima
It's not necessary anymore to declare the CONFIG_BOOTDELAY variable, it's already set by default as 2 seconds. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- Changes since v1: -Remove CONFIG_BOOTDELAY as suggested by Otavio Salvador and Peter Robinson configs/warp7_defconfig | 1 -

[U-Boot] [PATCH] serial_mxc: Remove unconditional DCE setting

2016-07-20 Thread Breno Lima
l behavior by removing UFCR_DCEDTE setting in the non-dm case. Tested on mx7sabresd and mx6wandboard. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- drivers/serial/serial_mxc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc

[U-Boot] [PATCH] Revert "imx_common: Return MMCSD_MODE_FS in spl_boot_mode() also for EXTFS"

2016-07-20 Thread Breno Lima
This error is seen when SPL and u-boot.img are stored in the raw SD card partition. This reverts commit c1ebf54868359005c32944c1473668d5fcaca158. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/imx-common/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH v2] warp7: Modify fdt_file environment variable

2016-08-08 Thread Breno Lima
Use imx7s-warp.dts as fdt_file because this is the name that upstream kernel will deploy. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- Changes since v1: - Remove 1/2 from the Subject include/configs/warp7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i

[U-Boot] [PATCH 1/2] warp7: Modify fdt_file environment variable

2016-08-08 Thread Breno Lima
Use imx7s-warp.dts as fdt_file because this is the name that upstream kernel will deploy. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/warp7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index e

[U-Boot] [PATCH 1/3] wandboard: Replace is_cpu_type() for macro

2016-07-22 Thread Breno Lima
It's not necessary to use the is_cpu_type function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/wandboard/wandboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/wandboard/wandboard.c b

[U-Boot] [PATCH 2/3] mx6cuboxi: Replace is_mx6q() for macro

2016-07-22 Thread Breno Lima
It's not necessary to implement the is_mx6q function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/board/so

[U-Boot] [PATCH 3/3] cgtqmx6eval: Replace is_mx6q() for macro

2016-07-22 Thread Breno Lima
It's not necessary to implement the is_mx6q function, there is a macro in sys_proto.h already implemented. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a

[U-Boot] [PATCH] mx6sx: Add initial support for UDOO Neo Board

2016-11-25 Thread Breno Lima
-neo/ This work is based on a previous commit of Francesco Montefoschi <francesco.mo...@gmail.com>: https://github.com/fmntf/u-boot/commit/877b71184a5105e708024f232d36aed574961844 Only tested on the UDOO Neo Full board. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/c

[U-Boot] [PATCH 3/3] udoo_neo: Add Ethernet support

2016-12-06 Thread Breno Lima
UDOO Neo boards has one FEC port connected to KSZ8091, add support for it. Tested on a UDOO Neo Full with "dhcp zImage" command. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/udoo/neo/neo.c | 95 ++ configs/udoo_ne

[U-Boot] [PATCH 2/3] udoo_neo: Add PFUZE300 PMIC support

2016-12-06 Thread Breno Lima
UDOO Neo boards has a PFUZE300 connected to I2C1 bus. Tested on a UDOO Neo Full with "pmic PFUZE3000 dump" command. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/udoo/neo/neo.c | 143 + include/configs/udoo_neo.h | 1

[U-Boot] [PATCH 1/3] power: pmic: Add Voltage configuration macro

2016-12-06 Thread Breno Lima
Add pfuze3000 voltage configuration macro for SW1AB, SW3 and VLDO1/2 according to tables 53, 57 and 62 on PF3000 datasheet. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- Note: This patch series depends on my last series submission. include/power/pfuze3000_pmic.h | 5 + 1 file chan

[U-Boot] [PATCH 1/3] udoo_neo: Add fdt_addr_r environment variable

2017-01-10 Thread Breno Lima
er...@suse.de> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/udoo_neo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index 915d0f0..f1e1c93 100644 --- a/include/configs/udoo_neo.h +++ b/include/configs/udo

[U-Boot] [PATCH 2/3] udoo_neo: Remove trailing semicolon and space

2017-01-10 Thread Breno Lima
Remove the trailing semicolon and space. It's not necessary to have it on the last condition. Suggested-by: Andreas Färber <afaer...@suse.de> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/udoo_neo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[U-Boot] [PATCH 3/3] udoo_neo: Remove ramdiskaddr environment variable

2017-01-10 Thread Breno Lima
Remove unused ramdiskaddr environment variable. Suggested-by: Andreas Färber <afaer...@suse.de> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/udoo_neo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h i

[U-Boot] [PATCH] imx_common: spl: Fix SPL boot from SD card

2016-11-30 Thread Breno Lima
EVICE_MMC1. Tested on mx6cuboxi and mx6sx UDOO neo boards. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/imx-common/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index 325ba26..cbcd936 100644 --- a/arch/arm/imx-co

[U-Boot] [PATCH 3/6] udoo_neo: Staticize board_string()

2016-12-01 Thread Breno Lima
Change board_string() function to static because it's being used locally. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/udoo/neo/neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c index efe8605..cfeed6f

[U-Boot] [PATCH 4/6] udoo_neo: Remove mmcautodetect option

2016-12-01 Thread Breno Lima
It's not necessary to define the mmcautodetect as it is not used anywhere. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/udoo_neo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index cf75186..164980f

[U-Boot] [PATCH 1/6] udoo_neo: Remove USDHC3 support

2016-12-01 Thread Breno Lima
It's not necessary to support USDHC3 in U-Boot as it's being used for the WLAN. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/udoo/neo/neo.c | 94 +++--- include/configs/udoo_neo.h | 1 - 2 files changed, 6 insertions(+), 89 del

[U-Boot] [PATCH 6/6] udoo_neo: Add thermal support

2016-12-01 Thread Breno Lima
Add thermal support on the Kconfig file. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/cpu/armv7/mx6/Kconfig | 2 ++ include/configs/udoo_neo.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig index 0

[U-Boot] [PATCH 2/6] udoo_neo: Move MX6SX configuration to Kconfig

2016-12-01 Thread Breno Lima
It's not necessary to define the processor in the defconfig file. The preferred method to select the SoC is via Kconfig file. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/cpu/armv7/mx6/Kconfig | 1 + configs/udoo_neo_defconfig | 2 +- 2 files changed, 2 insertions

[U-Boot] [PATCH 5/6] udoo_neo: Remove console option

2016-12-01 Thread Breno Lima
It's not necessary to define the console option as we use the distro config. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- include/configs/udoo_neo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index 164980f..1b7a03f

[U-Boot] [PATCH] Revert "ARM: mx6: add MMC2 boot device detection support in SPL"

2016-11-30 Thread Breno Lima
rts commit 54e4fcfa3c749a789192e83740a53234182f4ca3. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/imx-common/spl.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index 325ba26..bdcda7d 100644 --- a/arch/arm/imx-co

[U-Boot] [PATCH v2] mx6sabresd: README: Add eMMC boot configuration

2017-04-10 Thread Breno Lima
Explain how to flash the eMMC and how to boot from it. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- Changes since v1: - Add an extra section for booting from eMMC. board/freescale/mx6sabresd/README | 53 +-- 1 file changed, 46 insertions(+), 7 del

[U-Boot] [PATCH v3] mx6sabresd: README: Add eMMC boot configuration

2017-04-10 Thread Breno Lima
Explain how to flash the eMMC and how to boot from it. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- Changes since v2: -Fix number of methods for booting mx6sabresd boards. board/freescale/mx6sabresd/README | 55 +-- 1 file changed, 47 insertions

[U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration

2017-04-07 Thread Breno Lima
Explain how to flash the eMMC and how to boot from it. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/freescale/mx6sabresd/README | 22 ++ 1 file changed, 22 insertions(+) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README

[U-Boot] [PATCH] mx6sabresd: Fix IOMUXC_GPR6 and IOMUXC_GPR7 values

2017-08-02 Thread Breno Lima
The IPU AXI QoS for the i.MX6QP and i.MX6DP processors have to be set as commented in the code: /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ Set IOMUXC_GPR6 and IOMUXC_GPR7 to 0x77177717 instead of 0x007F007F. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/freescale/mx6s

[U-Boot] [PATCH] mx6sabreauto: Fix IOMUXC_GPR6 and IOMUXC_GPR7 values

2017-08-02 Thread Breno Lima
The IPU AXI QoS for the i.MX6QP and i.MX6DP processors have to be set as commented in the code: /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ Set IOMUXC_GPR6 and IOMUXC_GPR7 to 0x77177717 instead of 0x007F007F. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/freescale/mx6sab

[U-Boot] [PATCH] README.imx6: Fix Code Signing Tool command line

2017-06-26 Thread Breno Lima
The CST input option was replaced by -i on CST 2.3.2, so update the Code Signing Tool command line. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- doc/README.imx6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/README.imx6 b/doc/README.imx6 index 0

[U-Boot] [PATCH] imx: imx6: Move gpr_init() function to soc.c

2017-08-24 Thread Breno Lima
Since the gpr_init() function is common for boards using MX6S, MX6DL, MX6D, MX6Q and MX6QP processors move it to the soc.c file. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 ++ arch/arm/mach-imx/mx6/soc.c

[U-Boot] [PATCH 2/5] warp: imximage.cfg: Handle the CONFIG_SECURE_BOOT case

2017-11-27 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Secure boot is not enabled in warp imximage.cfg, add support for it. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/warp/imximage.cfg | 9 + 1 file changed, 9 insertions(+) diff --git a/board/warp/imximage.cfg b/board/warp/

[U-Boot] [PATCH 3/5] mx6sl: Select MX6SL option via Kconfig

2017-11-27 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Currently the MX6SL option is selected via CONFIG_SYS_EXTRA_OPTIONS, but it is better to select it directly via Kconfig. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/mach-imx/mx6/Kconfig | 2 ++ configs/mx6slevk_defconfi

[U-Boot] [PATCH 5/5] imx: Kconfig: Add HAS_CAAM option

2017-11-27 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Currently CONFIG_SECURE_BOOT is selecting FSL_CAAM for all i.MX devices, this causes the following error when building mx6sl boards since this SoC doesn't have the CAAM block: In file included from drivers/crypto/fsl/jobdesc.c:12:0: drivers/cryp

[U-Boot] [PATCH 1/5] mx6slevk: imximage.cfg: Handle the CONFIG_SECURE_BOOT case

2017-11-27 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Secure boot is not enabled in mx6slevk imximage.cfg, add support for it. Signed-off-by: Breno Lima <breno.l...@nxp.com> --- board/freescale/mx6slevk/imximage.cfg | 9 + 1 file changed, 9 insertions(+) diff --git a/board/freesc

[U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL

2017-11-27 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> MX6UL contains features that MX6ULL doesn't support. Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS. The motivation for doing this change is that MX6UL supports CAAM and MX6ULL does not. Signed-off-by: Breno Lima &l

[U-Boot] [PATCH 4/5] imx: hab: Check if CSF contains deprecated commands

2018-02-19 Thread Breno Lima
to add this check. Signed-off-by: Utkarsh Gupta <utkarsh.gu...@nxp.com> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/include/asm/mach-imx/hab.h | 4 arch/arm/mach-imx/hab.c | 20 2 files changed, 24 insertions(+) diff --git a/arch/arm/in

[U-Boot] [PATCH 3/5] imx: hab: Check if CSF is valid before authenticating image

2018-02-19 Thread Breno Lima
nvalid conditions are met: - CSF pointer is NULL - CSF Header does not exist - CSF does not lie within the image bounds - CSF command length zero Signed-off-by: Utkarsh Gupta <utkarsh.gu...@nxp.com> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/include/asm/mach-imx/hab.h | 8 +

[U-Boot] [PATCH 5/5] arm: imx: hab: Define HAB_RVT_BASE according to the processor version

2018-02-19 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Currently the following devices are using a different definition for ROM Vector Table addresses: - i.MX6DQP = All rev - i.MX6DQ >= rev 1.5 - i.MX6SDL >= rev 1.2 There is no need to create a new RVT macros since the only update were the RVT

[U-Boot] [PATCH 1/5] imx: hab: Keep CAAM clock enabled after authenticating additional images

2018-02-19 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Currently it is not possible to run CMD_DEK on i.MX SPL targets: => dek_blob 0x1200 0x12001000 128 The system hangs after running dek_blob because the CAAM clock is being disabled by the HAB code. There is no need to disable CAAM cl

[U-Boot] [PATCH 2/5] imx: hab: Ensure the IVT DCD pointer is Null prior to calling HAB authenticate function.

2018-02-19 Thread Breno Lima
ges do not include a DCD table. Signed-off-by: Utkarsh Gupta <utkarsh.gu...@nxp.com> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- arch/arm/mach-imx/hab.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index 1e6b31d..ba6b31d 100

[U-Boot] [PATCH 2/2] doc: mxc_hab: Update i.MX HAB documentation

2018-02-21 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> The README.mxc_hab is outdated and need improvements, add the following modifications: - Reorganize document and remove duplicate content - Add CST download link - Update CST package name - Align command lines with CST v2.3.3 - Update U-Boot binar

[U-Boot] [PATCH 1/2] doc: mxc_hab: Move HAB related info to the appropriate doc

2018-02-21 Thread Breno Lima
From: Breno Lima <breno.l...@nxp.com> Currently the High Assurance Boot procedure is documented in two places: - doc/README.imx6 - doc/README.mxc_hab It is better to consolidate all HAB related information into README.mxc_hab file, so move the content from README.imx6 to README.mxc_hab.

[U-Boot] [PATCH] doc: Move device tree bindings documentation to doc/device-tree-bindings

2018-07-20 Thread Breno Lima
From: Breno Lima Currently the U-Boot project contains 2 documentation directories: - doc/ - Documentation/ The Documentation directory only contains device tree bindings related content, so move the 3 files to doc/device-tree-bindings/. Signed-off-by: Breno Lima --- .../devicetree/bindings

[U-Boot] [PATCH] crypto/fsl: Fix HW accelerated hash commands

2018-01-17 Thread Breno Lima
schin <ag...@denx.de> Signed-off-by: Breno Lima <breno.l...@nxp.com> --- common/hash.c | 7 ++- drivers/crypto/fsl/fsl_hash.c | 20 +++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/common/hash.c b/common/hash.c index cf4d70f..69d53ed