u-boot.git
2 years agoimx8mm-somdevices: Read MAC and if it is different from environment variable save it. rel_imx_5.10.35_2.0.0-somdevices.0
Josep Orga [Wed, 5 Oct 2022 15:41:07 +0000 (17:41 +0200)]
imx8mm-somdevices: Read MAC and if it is different from environment variable save it.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: configs: Disable cursor blink.
Josep Orga [Fri, 29 Oct 2021 08:28:41 +0000 (10:28 +0200)]
imx8mn-somdevices: configs: Disable cursor blink.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: spl: Changes to decrease temperature.
Josep Orga [Fri, 29 Oct 2021 08:26:53 +0000 (10:26 +0200)]
imx8mn-somdevices: spl: Changes to decrease temperature.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mmn-somdevices: arm: dts: Changed pmic interrupt gpio.
Josep Orga [Fri, 29 Oct 2021 08:25:57 +0000 (10:25 +0200)]
imx8mmn-somdevices: arm: dts: Changed pmic interrupt gpio.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Removed not used peripherals and changed phy-reset-gpios.
Josep Orga [Fri, 29 Oct 2021 08:20:17 +0000 (10:20 +0200)]
imx8mm-somdevices: arm: dts: Removed not used peripherals and changed phy-reset-gpios.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Removed usb2 (not present) and changed phy-reset-gpios.
Josep Orga [Fri, 29 Oct 2021 08:18:43 +0000 (10:18 +0200)]
imx8mn-somdevices: arm: dts: Removed usb2 (not present) and changed phy-reset-gpios.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Add imx8mm-somdevices-u-boot.dtsi copying imx8mm-evk...
Josep Orga [Fri, 29 Oct 2021 07:05:07 +0000 (09:05 +0200)]
imx8mm-somdevices: arm: dts: Add imx8mm-somdevices-u-boot.dtsi copying imx8mm-evk-u-boot.dtsi file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Add imx8mn-somdevices-u-boot.dtsi copying imx8mn-evk...
Josep Orga [Fri, 29 Oct 2021 06:55:55 +0000 (08:55 +0200)]
imx8mn-somdevices: arm: dts: Add imx8mn-somdevices-u-boot.dtsi copying imx8mn-evk-u-boot.dtsi file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: configs: Change bootdelay to 0.
Josep Orga [Thu, 7 Oct 2021 17:37:54 +0000 (19:37 +0200)]
imx8mn-somdevices: configs: Change bootdelay to 0.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: spl: Turn on display at boot.
Josep Orga [Thu, 7 Oct 2021 17:34:39 +0000 (19:34 +0200)]
imx8mn-somdevices: spl: Turn on display at boot.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: configs: Disable video.
Josep Orga [Thu, 7 Oct 2021 17:32:49 +0000 (19:32 +0200)]
imx8mn-somdevices: configs: Disable video.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Read MAC from EEPROM and save it in ethaddr environment variable.
Josep Orga [Thu, 7 Oct 2021 17:31:01 +0000 (19:31 +0200)]
imx8mn-somdevices: Read MAC from EEPROM and save it in ethaddr environment variable.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Light on LED at boot up.
Josep Orga [Thu, 7 Oct 2021 17:16:11 +0000 (19:16 +0200)]
imx8mn-somdevices: Light on LED at boot up.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Removed not used peripherals.
Josep Orga [Thu, 7 Oct 2021 16:21:12 +0000 (18:21 +0200)]
imx8mn-somdevices: arm: dts: Removed not used peripherals.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Enable ethernet.
Josep Orga [Thu, 7 Oct 2021 16:20:40 +0000 (18:20 +0200)]
imx8mn-somdevices: Enable ethernet.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Disable CONFIG_USB_TCPC to enable USB.
Josep Orga [Thu, 7 Oct 2021 14:52:27 +0000 (16:52 +0200)]
imx8mn-somdevices: Disable CONFIG_USB_TCPC to enable USB.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Change uart2 pinmux.
Josep Orga [Thu, 7 Oct 2021 14:48:36 +0000 (16:48 +0200)]
imx8mn-somdevices: Change uart2 pinmux.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Change usdhc2 cd gpio.
Josep Orga [Thu, 7 Oct 2021 14:20:45 +0000 (16:20 +0200)]
imx8mn-somdevices: Change usdhc2 cd gpio.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Change memory size from 2GB to 512MB.
Josep Orga [Thu, 7 Oct 2021 13:44:14 +0000 (15:44 +0200)]
imx8mn-somdevices: Change memory size from 2GB to 512MB.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Add imx8mn-somdevices lpddr4 configuration.
Josep Orga [Thu, 7 Oct 2021 13:43:15 +0000 (15:43 +0200)]
imx8mn-somdevices: Add imx8mn-somdevices lpddr4 configuration.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: spl: Changed EVK reference to SOMDEVICES.
Josep Orga [Thu, 7 Oct 2021 12:56:56 +0000 (14:56 +0200)]
imx8mn-somdevices: spl: Changed EVK reference to SOMDEVICES.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Added imx8mn-evk.dts features to imx8mn-somdevices.dts.
Josep Orga [Wed, 6 Oct 2021 14:48:28 +0000 (16:48 +0200)]
imx8mn-somdevices: arm: dts: Added imx8mn-evk.dts features to imx8mn-somdevices.dts.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: Add imx8mn_somdevices Kconfig.
Josep Orga [Wed, 6 Oct 2021 14:45:23 +0000 (16:45 +0200)]
imx8mn-somdevices: arm: Add imx8mn_somdevices Kconfig.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Add imx8mn-somdevices.dtb to Makefile.
Josep Orga [Wed, 6 Oct 2021 14:43:59 +0000 (16:43 +0200)]
imx8mn-somdevices: arm: dts: Add imx8mn-somdevices.dtb to Makefile.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Changed evk/freescale references to somdevices.
Josep Orga [Wed, 6 Oct 2021 14:43:01 +0000 (16:43 +0200)]
imx8mn-somdevices: Changed evk/freescale references to somdevices.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: Renamed imx8mn_evk.c -> imx8mn_somdevices.c
Josep Orga [Wed, 6 Oct 2021 13:17:12 +0000 (15:17 +0200)]
imx8mn-somdevices: Renamed imx8mn_evk.c -> imx8mn_somdevices.c

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: configs: Add imx8mn_somdevices.h copying imx8mn_evk.h file.
Josep Orga [Wed, 6 Oct 2021 13:14:52 +0000 (15:14 +0200)]
imx8mn-somdevices: configs: Add imx8mn_somdevices.h copying imx8mn_evk.h file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn-somdevices: arm: dts: Add imx8mn-somdevices.dts copying imx8mn-evk.dtsi file.
Josep Orga [Wed, 6 Oct 2021 13:13:03 +0000 (15:13 +0200)]
imx8mn-somdevices: arm: dts: Add imx8mn-somdevices.dts copying imx8mn-evk.dtsi file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn_somdevices: configs: Add imx8mn_somdevices_defconfig copying imx8mn_evk_defcon...
Josep Orga [Wed, 6 Oct 2021 13:09:16 +0000 (15:09 +0200)]
imx8mn_somdevices: configs: Add imx8mn_somdevices_defconfig copying imx8mn_evk_defconfig file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mn_somdevices: Add somdevices board files based on freescale/imx8mn_evk files.
Josep Orga [Wed, 6 Oct 2021 13:05:11 +0000 (15:05 +0200)]
imx8mn_somdevices: Add somdevices board files based on freescale/imx8mn_evk files.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Disable cursor blink.
Alejandro Benete [Wed, 6 Oct 2021 12:51:10 +0000 (14:51 +0200)]
imx8mm-somdevices: configs: Disable cursor blink.

Signed-off-by: Alejandro Benete <abenete@somdevices.com>
3 years agoimx8mm-somdevices: spl: Changes to decrease temperature.
Josep Orga [Mon, 4 Oct 2021 16:04:39 +0000 (18:04 +0200)]
imx8mm-somdevices: spl: Changes to decrease temperature.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Change bootdelay to 0.
Josep Orga [Fri, 1 Oct 2021 11:27:57 +0000 (13:27 +0200)]
imx8mm-somdevices: configs: Change bootdelay to 0.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: spl: Turn on display at boot.
Josep Orga [Fri, 1 Oct 2021 11:27:10 +0000 (13:27 +0200)]
imx8mm-somdevices: spl: Turn on display at boot.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Disable video.
Josep Orga [Fri, 1 Oct 2021 11:21:10 +0000 (13:21 +0200)]
imx8mm-somdevices: configs: Disable video.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Read MAC from EEPROM and save it in ethaddr environment variable.
Josep Orga [Mon, 6 Sep 2021 13:43:14 +0000 (15:43 +0200)]
imx8mm-somdevices: Read MAC from EEPROM and save it in ethaddr environment variable.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Light on LED at boot up.
Josep Orga [Mon, 6 Sep 2021 13:38:41 +0000 (15:38 +0200)]
imx8mm-somdevices: Light on LED at boot up.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Removed not used peripherals.
Josep Orga [Mon, 6 Sep 2021 13:32:11 +0000 (15:32 +0200)]
imx8mm-somdevices: arm: dts: Removed not used peripherals.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Enable ethernet.
Josep Orga [Thu, 2 Sep 2021 17:06:17 +0000 (19:06 +0200)]
imx8mm-somdevices: Enable ethernet.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Disable CONFIG_USB_TCPC to enable USB.
Josep Orga [Thu, 2 Sep 2021 17:05:19 +0000 (19:05 +0200)]
imx8mm-somdevices: configs: Disable CONFIG_USB_TCPC to enable USB.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Change uart2 pinmux.
Josep Orga [Thu, 2 Sep 2021 15:09:19 +0000 (17:09 +0200)]
imx8mm-somdevices: Change uart2 pinmux.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Change usdhc2 cd gpio.
Josep Orga [Thu, 2 Sep 2021 15:06:10 +0000 (17:06 +0200)]
imx8mm-somdevices: Change usdhc2 cd gpio.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Change memory size from 2GB to 1GB.
Josep Orga [Thu, 2 Sep 2021 14:40:55 +0000 (16:40 +0200)]
imx8mm-somdevices: Change memory size from 2GB to 1GB.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Add imx8mm-somdevices lpddr4 configuration.
Josep Orga [Thu, 2 Sep 2021 07:22:41 +0000 (09:22 +0200)]
imx8mm-somdevices: Add imx8mm-somdevices lpddr4 configuration.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Add somdevices board necessary files based on freescale/common.
Josep Orga [Thu, 2 Sep 2021 07:14:41 +0000 (09:14 +0200)]
imx8mm-somdevices: Add somdevices board necessary files based on freescale/common.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Added imx8mm-evk.dts features to imx8mm-somdevices.dts.
Josep Orga [Thu, 2 Sep 2021 07:08:27 +0000 (09:08 +0200)]
imx8mm-somdevices: arm: dts: Added imx8mm-evk.dts features to imx8mm-somdevices.dts.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: Add imx8mm_somdevices Kconfig.
Josep Orga [Wed, 1 Sep 2021 17:33:57 +0000 (19:33 +0200)]
imx8mm-somdevices: arm: Add imx8mm_somdevices Kconfig.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Add imx8mm-somdevices.dtb to Makefile.
Josep Orga [Wed, 1 Sep 2021 17:31:35 +0000 (19:31 +0200)]
imx8mm-somdevices: arm: dts: Add imx8mm-somdevices.dtb to Makefile.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Changed evk/freescale references to somdevices.
Josep Orga [Wed, 1 Sep 2021 17:30:16 +0000 (19:30 +0200)]
imx8mm-somdevices: Changed evk/freescale references to somdevices.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Renamed imx8mm_evk.c -> imx8mm_somdevices.c.
Josep Orga [Wed, 1 Sep 2021 17:25:07 +0000 (19:25 +0200)]
imx8mm-somdevices: Renamed imx8mm_evk.c -> imx8mm_somdevices.c.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Add imx8mm_somdevices.h file copying imx8mm_evk.h file.
Josep Orga [Wed, 1 Sep 2021 17:23:04 +0000 (19:23 +0200)]
imx8mm-somdevices: configs: Add imx8mm_somdevices.h file copying imx8mm_evk.h file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: arm: dts: Add imx8mm-somdevices.dts copying imx8mm-evk.dtsi file.
Josep Orga [Wed, 1 Sep 2021 17:21:59 +0000 (19:21 +0200)]
imx8mm-somdevices: arm: dts: Add imx8mm-somdevices.dts copying imx8mm-evk.dtsi file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: configs: Add imx8mm_somdevices_defconfig copying imx8mm_evk_defcon...
Josep Orga [Wed, 1 Sep 2021 17:20:27 +0000 (19:20 +0200)]
imx8mm-somdevices: configs: Add imx8mm_somdevices_defconfig copying imx8mm_evk_defconfig file.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoimx8mm-somdevices: Add somdevices board files based on freescale/imx8mm_evk files.
Josep Orga [Wed, 1 Sep 2021 13:01:35 +0000 (15:01 +0200)]
imx8mm-somdevices: Add somdevices board files based on freescale/imx8mm_evk files.

Signed-off-by: Josep Orga <jorga@somdevices.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Tue, 8 Jun 2021 01:39:44 +0000 (03:39 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-164 arm: dts: imx8qm: Remove alias of pcieb node

3 years agoLFU-164 arm: dts: imx8qm: Remove alias of pcieb node
Ye Li [Mon, 7 Jun 2021 14:26:27 +0000 (07:26 -0700)]
LFU-164 arm: dts: imx8qm: Remove alias of pcieb node

When pcieb alias is added, 2021.04 PCI uclass driver will occupy
its seq as a bus address even the controller is disabled.

This causes the device enumerated on pciea bridge assigned with a
bus address 2 which is conflict with address translate scheme
in the driver.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Mon, 7 Jun 2021 14:22:37 +0000 (16:22 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LF-3946 crypto: caam: Fix kick_trng for i.MX

3 years agoLF-3946 crypto: caam: Fix kick_trng for i.MX
Ye Li [Mon, 7 Jun 2021 13:31:07 +0000 (06:31 -0700)]
LF-3946 crypto: caam: Fix kick_trng for i.MX

Porting the RNG init relevant configurations for i.MX from fsl_caam.c
to jr.c to fix hwrng performance issue in kernel.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Gaurav Jain <gaurav.jain@nxp.com>
3 years agoMerge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04
BJ DevOps Team [Mon, 7 Jun 2021 12:12:05 +0000 (14:12 +0200)]
Merge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04

* origin/ls_v2021.04:
  net: fm: Fix a memory leak issue
  net: e1000: Fix Unchecked return value coverity

3 years agonet: fm: Fix a memory leak issue
Hou Zhiqiang [Wed, 2 Jun 2021 05:28:52 +0000 (13:28 +0800)]
net: fm: Fix a memory leak issue

Fix a memory leak issue in the RX port initialization.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
3 years agonet: e1000: Fix Unchecked return value coverity
Hou Zhiqiang [Mon, 31 May 2021 08:25:41 +0000 (16:25 +0800)]
net: e1000: Fix Unchecked return value coverity

Added check for return value of e1000_read_phy_reg().

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Mon, 7 Jun 2021 05:58:50 +0000 (07:58 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-145 imx8qm_val: Fix uninitialized gpio variable
  LF-3943 arm: dts: imx8mm-evk: Change board's model name

3 years agoLFU-145 imx8qm_val: Fix uninitialized gpio variable
Ye Li [Mon, 7 Jun 2021 04:42:06 +0000 (21:42 -0700)]
LFU-145 imx8qm_val: Fix uninitialized gpio variable

Fix coverity Issue: 13562326 Uninitialized scalar variable
The flags field of struct gpio_desc is not initialized. When calling
dm_gpio_set_dir_flags, the flags field will be used.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoLF-3943 arm: dts: imx8mm-evk: Change board's model name
Ye Li [Mon, 7 Jun 2021 04:30:58 +0000 (21:30 -0700)]
LF-3943 arm: dts: imx8mm-evk: Change board's model name

Update Model to "NXP i.MX8MM EVK board"

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Fri, 4 Jun 2021 07:33:56 +0000 (09:33 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-161 imx8m: Fix pad DSE issue for imx8mm/mn/mp
  LFU-160 mx6sabre: Enable IMX_THERMAL for iMX6Q/DL/QP SDB and ARD

3 years agoLFU-161 imx8m: Fix pad DSE issue for imx8mm/mn/mp
Ye Li [Fri, 4 Jun 2021 06:49:48 +0000 (23:49 -0700)]
LFU-161 imx8m: Fix pad DSE issue for imx8mm/mn/mp

According to RM, 8MM/MN/MP pad only have 4 valid DSE values.
And DSE2 and DSE4 are different with current definitions in iomux-v3.h.
Fix the issue to align with RM.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
3 years agoLFU-160 mx6sabre: Enable IMX_THERMAL for iMX6Q/DL/QP SDB and ARD
Ye Li [Fri, 4 Jun 2021 04:25:58 +0000 (21:25 -0700)]
LFU-160 mx6sabre: Enable IMX_THERMAL for iMX6Q/DL/QP SDB and ARD

The CONFIG_IMX_THERMAL has been deleted from header file, so we
have to enable it in Kconfig. Add it to common Kconfig for
iMX6Q/DL/QP SDB and ARD boards

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04
BJ DevOps Team [Wed, 2 Jun 2021 09:12:26 +0000 (11:12 +0200)]
Merge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04

* origin/ls_v2021.04:
  mmc: fsl_esdhc: convert to CONFIG_FSL_ESDHC_VS33_NOT_SUPPORT

3 years agommc: fsl_esdhc: convert to CONFIG_FSL_ESDHC_VS33_NOT_SUPPORT
Yangbo Lu [Wed, 2 Jun 2021 03:05:19 +0000 (11:05 +0800)]
mmc: fsl_esdhc: convert to CONFIG_FSL_ESDHC_VS33_NOT_SUPPORT

For eSDHC, power supply is through peripheral circuit. So, 3.3V
power supply capability from register bit does not reflect the
truth. 3.3V is common for SD/MMC, and is supported for all boards
with eSDHC in current u-boot. So, let's use a Kconfig
CONFIG_FSL_ESDHC_VS33_NOT_SUPPORT making 3.3V is supported in
default.

This is also a fix-up for one previous patch, which converted to
use IS_ENABLED() for CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 that is
not a Kconfig option.

Fixes: 52faec31827e ("mmc: fsl_esdhc: replace most #ifdefs by IS_ENABLED()")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Mon, 31 May 2021 06:17:34 +0000 (08:17 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-156 video: mxsfb: Fix pixel clock issue in non-DM driver

3 years agoLFU-156 video: mxsfb: Fix pixel clock issue in non-DM driver
Ye Li [Mon, 31 May 2021 04:43:51 +0000 (21:43 -0700)]
LFU-156 video: mxsfb: Fix pixel clock issue in non-DM driver

When changing video mode to display timing structure, the pclk from
env or board codes is represented by the time of one clock (picosecond).
So we can't directly assign it to pixel clock (hz), but use PS2KHZ
to convert.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Thu, 27 May 2021 12:17:07 +0000 (14:17 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-143 tcpc: Add i2c read/write return check
  LFU-18 spi: fsl_lpspi: Fix dereference before null check
  LFU-145 imx8qxp_val: Fix uninitialized gpio variable

3 years agoLFU-143 tcpc: Add i2c read/write return check
Ye Li [Thu, 27 May 2021 10:13:14 +0000 (03:13 -0700)]
LFU-143 tcpc: Add i2c read/write return check

Fix coverity Issue: 2970631/5409463 Unchecked return value.
Add relevant return check for i2c read and write

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoLFU-18 spi: fsl_lpspi: Fix dereference before null check
Ye Li [Thu, 27 May 2021 08:05:44 +0000 (01:05 -0700)]
LFU-18 spi: fsl_lpspi: Fix dereference before null check

Fix coverity Issue: 11026161 Dereference before null check
The lpspi should not be dereferenced before null checking, moving
getting its udevice after the checking

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoLFU-145 imx8qxp_val: Fix uninitialized gpio variable
Ye Li [Thu, 27 May 2021 07:59:06 +0000 (00:59 -0700)]
LFU-145 imx8qxp_val: Fix uninitialized gpio variable

Fix coverity Issue: 13562326 Uninitialized scalar variable
The flags field of struct gpio_desc is not initialized. When calling
dm_gpio_set_dir_flags, the flags field will be used.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
3 years agoLFU-154 imx6ul: bee: fix build break
Peng Fan [Thu, 27 May 2021 10:42:24 +0000 (18:42 +0800)]
LFU-154 imx6ul: bee: fix build break

Fix below build break by including the global_data.h header file.
"
  CC      arch/arm/mach-imx/mx6/bee.o
arch/arm/mach-imx/mx6/bee.c:18:1: warning: data definition has no type or storage class
   18 | DECLARE_GLOBAL_DATA_PTR;
      | ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-imx/mx6/bee.c:18:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_GLOBAL_DATA_PTR’ [-Wimplicit-int]
arch/arm/mach-imx/mx6/bee.c: In function ‘region_valid’:
arch/arm/mach-imx/mx6/bee.c:261:29: error: ‘gd’ undeclared (first use in this function)
  261 |  if ((start + size - 1) >= (gd->start_addr_sp - SZ_128K)) {
      |                             ^~
arch/arm/mach-imx/mx6/bee.c:261:29: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:265: recipe for target 'arch/arm/mach-imx/mx6/bee.o' failed
make[2]: *** [arch/arm/mach-imx/mx6/bee.o] Error 1

"

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Thu, 27 May 2021 10:17:42 +0000 (12:17 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LFU-154 imx6ul: bee: fix build break

3 years agoMerge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04
BJ DevOps Team [Thu, 27 May 2021 06:46:28 +0000 (08:46 +0200)]
Merge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04

* origin/ls_v2021.04:
  net: phy: inphi in112525 gen1/gen2 retimers support

3 years agonet: phy: inphi in112525 gen1/gen2 retimers support
Florin Chiculita [Mon, 27 Apr 2020 13:59:04 +0000 (16:59 +0300)]
net: phy: inphi in112525 gen1/gen2 retimers support

Add support for Inphi retimers used on LX2160A-RDB/QDS boards
Add support for M13,M8 mezzanine cards using Inphi retimers
Gen1 configurations: 10/25
Gen2 configurations: 10/25 + 40/50/100G (using 2 retimers)
Speeds are configurable via menuconfig options

Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> # rebased
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> # rebased over v2021.04
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Wed, 26 May 2021 13:31:27 +0000 (15:31 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  MA-19082-2 imx8m: Use Trusty OS handle SNVS operation

3 years agoMA-19082-2 imx8m: Use Trusty OS handle SNVS operation
Ji Luo [Thu, 18 Jul 2019 06:18:14 +0000 (14:18 +0800)]
MA-19082-2 imx8m: Use Trusty OS handle SNVS operation

This patch added Trusty OS in u-boot to handle
some snvs related operation.

Change-Id: Iba2b9e12381ce537b40959f14e831accbdecba8f
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Signed-off-by: Ji Luo <ji.luo@nxp.com>
3 years agoLF-3898-4 dts: imx8mm/n-evk: disable over current for usb1
Peng Fan [Wed, 26 May 2021 09:47:24 +0000 (17:47 +0800)]
LF-3898-4 dts: imx8mm/n-evk: disable over current for usb1

Sync with Ticket LF-3861.

Since imx8mm and imx8mn evk base board does not support over current
detection for usb1, so disable it.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
3 years agoLF-3898-3 imx: imx8m: soc: runtime drop extcon property from usbotg node
Peng Fan [Wed, 26 May 2021 09:44:41 +0000 (17:44 +0800)]
LF-3898-3 imx: imx8m: soc: runtime drop extcon property from usbotg node

The extcon is an decrepted property and not used by upstream Linux and
NXP 5.10 kernel, so we remove it before kicking linux in case it is in
dts. Otherwise distro kernel will not able to have usb function.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
3 years agoLF-3898-2 arm: dts: imx8mm: remove power domain property
Peng Fan [Wed, 26 May 2021 09:39:43 +0000 (17:39 +0800)]
LF-3898-2 arm: dts: imx8mm: remove power domain property

The current power domain node in imx8mm.dtsi is not used in U-Boot,
and it not match with upstream Linux Kernel. U-Boot use arm smccc
to enable usb power domain, so we could remove this property.
It could be added back when we finally switch to upstream pgc node.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
3 years agoLF-3898-1 configs: imx8mm_evk: enable CONFIG_CMD_POWEROFF
Peng Fan [Wed, 26 May 2021 09:38:04 +0000 (17:38 +0800)]
LF-3898-1 configs: imx8mm_evk: enable CONFIG_CMD_POWEROFF

Enable CONFIG_CMD_POWEROFF to support ARM SystemReady power off test.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Wed, 26 May 2021 09:45:42 +0000 (11:45 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LF-3898-4 dts: imx8mm/n-evk: disable over current for usb1
  LF-3898-3 imx: imx8m: soc: runtime drop extcon property from usbotg node
  LF-3898-2 arm: dts: imx8mm: remove power domain property
  LF-3898-1 configs: imx8mm_evk: enable CONFIG_CMD_POWEROFF

3 years agoMerge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04
BJ DevOps Team [Tue, 25 May 2021 03:59:41 +0000 (05:59 +0200)]
Merge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04

* origin/ls_v2021.04:
  configs: ls2088aqds: fix synchronous exception

3 years agoconfigs: ls2088aqds: fix synchronous exception
Biwen Li [Fri, 21 May 2021 03:17:25 +0000 (11:17 +0800)]
configs: ls2088aqds: fix synchronous exception

IFC NOR flash base address of ls2088a is 0x580000000,
and env crc offset size is 0x500000, so fix the macro
CONFIG_ENV_ADDR to fix synchronous exception(access illegal address)

Fixes: 59071804c1 ("configs: ls2080a: Correct ENV_ADDR value")
Signed-off-by: Biwen Li <biwen.li@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Mon, 24 May 2021 07:37:20 +0000 (09:37 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  LF-3843: dts: imx8mq evk: correct 1280x720p60 video timing

3 years agoLF-3843: dts: imx8mq evk: correct 1280x720p60 video timing
Sandor Yu [Fri, 21 May 2021 06:00:50 +0000 (14:00 +0800)]
LF-3843: dts: imx8mq evk: correct 1280x720p60 video timing

For 720p60 CEA mode:
hfront_porch = hsync_start - hdisplay = 1390-1280=110
hback_porch = htotal - hsync_end = 1650-1430=220
vfront_porch = vsync_start - vdisplay = 725-720=5
vback_porch = vtotal - vsync_end = 750-730=20

Add hsync-active and vsync-active;

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Fri, 21 May 2021 07:11:24 +0000 (09:11 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  MA-19065-1 Support widevine keybox provision

3 years agoMerge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04
BJ DevOps Team [Fri, 21 May 2021 06:30:13 +0000 (08:30 +0200)]
Merge remote-tracking branch 'origin/ls_v2021.04' into lf_v2021.04

* origin/ls_v2021.04:
  configs: ls1088a: Enable CONFIG_SYS_RELOC_ENV_ADDR

3 years agoconfigs: ls1088a: Enable CONFIG_SYS_RELOC_ENV_ADDR
Kuldeep Singh [Tue, 18 May 2021 06:34:28 +0000 (12:04 +0530)]
configs: ls1088a: Enable CONFIG_SYS_RELOC_ENV_ADDR

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
3 years agoMA-19065-1 Support widevine keybox provision
Ji Luo [Wed, 19 May 2021 05:48:05 +0000 (13:48 +0800)]
MA-19065-1 Support widevine keybox provision

support widevine keybox provisioning via hwcrypto,
the keybox would be wrote into secure storage.

This commit supports two kinds of widevine keybox
provisioning: plain text keybox and encrypted keybox.

Command to provision the plain text keybox:
  $ fastboot stage <path-to-plain-text-keybox>
  $ fastboot oem provision-wv-keybox

Command to provision the encrypted text keybox:
  $ fastboot stage <path-to-encrypted-keybox>
  $ fastboot oem provision-wv-keybox-enc

Test: plain text/encrypted keybox provisioning on imx8mp.

Change-Id: I241afade415fc3e2b0a80d286b3cc4e8d702e620
Signed-off-by: Ji Luo <ji.luo@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Thu, 20 May 2021 14:30:01 +0000 (16:30 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04:
  MA-19068 android auto: get right kernel size

3 years agoMA-19068 android auto: get right kernel size
Ji Luo [Thu, 20 May 2021 01:47:40 +0000 (09:47 +0800)]
MA-19068 android auto: get right kernel size

Pass the correct kernel address for android auto
so uboot can get correct kernel size.

Change-Id: I20b6501bbc401c5a1d5752179e00b3b9875a10a2
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
3 years agoMerge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04
BJ DevOps Team [Thu, 20 May 2021 01:45:26 +0000 (03:45 +0200)]
Merge remote-tracking branch 'origin/imx_v2021.04' into lf_v2021.04

* origin/imx_v2021.04: (7 commits)
  LFU-15 Fix using uninitialized value
  LF-1897 trusty: Fix extra argument to printf format specifier
  LF-1896 trusty: fix invalid type in argument to printf format specifier
  LF-1894 trusty: fix invalid printf format string
  LF-1892 7ulp: Fix missing break in switch
  ...

3 years agoLFU-15 Fix using uninitialized value
Ji Luo [Thu, 17 Dec 2020 06:03:06 +0000 (14:03 +0800)]
LFU-15 Fix using uninitialized value

This commit fixes Coverity Issue: 11468195, avoid
uninitialized value using.

Test: AVB check.

Change-Id: I04eb8faafd6c9a9fec1aeae0b29edc6940251094
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 742cc182bf9d0d0a7c8cecdac2a328e5c0bd64cb)

3 years agoLF-1897 trusty: Fix extra argument to printf format specifier
Ji Luo [Mon, 3 Aug 2020 14:44:11 +0000 (22:44 +0800)]
LF-1897 trusty: Fix extra argument to printf format specifier

Fix Coverity Issue 10473659 and 10473672. Pass correct parameter
to fix the extra argument issue.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: I72e30250827ad0c48e079a7048bdb40773c17a96
(cherry picked from commit ed061b4a21a24d8deb36561e0bfe2343e2ce45c8)

3 years agoLF-1896 trusty: fix invalid type in argument to printf format specifier
Ji Luo [Mon, 3 Aug 2020 11:53:15 +0000 (19:53 +0800)]
LF-1896 trusty: fix invalid type in argument to printf format specifier

Fix Coverity Issue 104736581047366310473664 and 10473668. Use "%lu"
for "uint64_t" and "unsigned long" parameter in printf to fix the type
mismatch issue.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: Ic1642ab4d5aecee9676b65582b04eaca4c16d3c2