Haoran.Wang [Mon, 22 Jul 2019 09:45:49 +0000 (17:45 +0800)]
MA-15208 Remap mmc device id in spl
This patch adds mmc device id remap function in spl to get the
correct device id.
Test: boot on imx8mm with trusty enabled.
Change-Id: I41c46494326d9eb2658d2cda692968fb895d0292
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit
c079188d06b3669df7836e1b8c6126558b1fa39e)
faqiang.zhu [Tue, 9 Jul 2019 10:52:12 +0000 (18:52 +0800)]
MA-14916-10 fix fastboot reboot bootloader issue
In Android, the reboot bootloader flag is written to misc partition, in
the boot flow, u-boot will check that message to decide whether enter
fastboot mode or not. To be compatible with the common implemention,
keep the fastboot_set_reboot_flag there and redefine it to avoid the
error return value which block the reboot process.
Change-Id: Ifb55236d5a5daf3edd124d3ed01851ff6e916e1a
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
(cherry picked from commit
aa78cbe3d3148ab99ea039ede767e6d1152092b4)
Jindong [Mon, 13 May 2019 10:10:25 +0000 (18:10 +0800)]
MA-14712 change androidboot.storage_type to androidboot.boot_device_root
storage_type is emmc or sd, which is not friendly
for user space, for example android health HAL need access
/sys/block/mmcblkX/stat.
Replace it with mmcblkX named as boot_device_root.
Change-Id: I7486d522696e9fe3dde8bdc8834ac11d25df7d79
Signed-off-by: Jindong <jindong.yue@nxp.com>
(cherry picked from commit
db441a89a090c46149457ee29492bc315c2bdfa9)
Ji Luo [Sun, 30 Sep 2018 07:24:09 +0000 (15:24 +0800)]
MA-12973 [AUTO] Skip serial init in board_init_f
Serial init in board_init_f will cost much time, skip it here
because the serial will be initialized again in board_init_r
and it's more faster (after cache is enabled). We will miss
some logs before the serial is ready but it's ok for Android Auto.
This commit will save about 190ms on imx8qm.
Test: boot ok for both imx8qm and imx8qxp.
Change-Id: If6efdc19794aecda862f22b6fec7f7aba2005766
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
690a14ed2fc64328b417a9de448f4a18cc653698)
Ji Luo [Fri, 21 Jun 2019 07:53:50 +0000 (15:53 +0800)]
MA-14916-4 support dual bootloader for imx8m/imx8q
This commit enables dual bootloader feature for imx8m/imx8q, but
as commit '
a2018ab' already brings in some dual bootloader codes
when enabling fastboot support, so this commit won't be a complete
and standalone patch to introduce the dual bootloader feature.
This commit will do the following:
1. clean up dual bootloader flow and add missing implementation.
2. Merge the dual bootloader entry for fit and container to one
function 'mmc_load_image_raw_sector_dual_uboot'.
Change-Id: Ic9410a48092cc05de599dd897fc912177e2a1fe1
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Luo Ji [Wed, 3 Jul 2019 06:38:16 +0000 (14:38 +0800)]
MA-14916-8 [iot] Set power-on write protection for boot1 partition
The RPMB keyslot is stored in last block of boot1 partition which
is easily erased or tampered, set power-on write protection for this
partition to prevent corruption.
Test: Power-on write protection works as expected on imx8m.
Change-Id: Ib7e1094b979f7d94c0a2817391c5b3b5f3205d76
Signed-off-by: Luo Ji <ji.luo@nxp.com>
(cherry picked from commit
c7e207fbbcd8618d29b1192829c630777fea5220)
(cherry picked from commit
1bbf98ec8a550e4027f399f18781245c9faefc8e)
faqiang.zhu [Wed, 3 Jul 2019 06:23:06 +0000 (14:23 +0800)]
MA-14916-7 comply with mmc struct definition in avb library
Driver Module may be used in SPL, with CONFIG_BLK enabled for U-Boot,
CONFIG_SPL_BLK will be enabled, struct mmc definition will be different.
comply with that mmc struct definition in fsl_avbkey.c file to handle
conditions when DM is used in SPL.
Change-Id: I632600556e764b25228ba467a5e5141cf3fc3dfe
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
(cherry picked from commit
de905a8a3c6dfdf9241a188b2e22c76dbef851c1)
faqiang.zhu [Tue, 11 Jun 2019 03:02:32 +0000 (11:02 +0800)]
MA-14916-1 adapt to the directory change of libavb
libavb is now under the directory of lib/, not lib/avb/ as before, to
adapt to this change, some modifications are made:
1. header file inclusion change, including parameter of -I option in
Makefile
2. remove fsl_avb_sysdeps_uboot.c as the functions have been defined in
avb_sysdeps_posix.c.
Change-Id: I4216e3ddb4e3e810783e4f46b953eda510c2627b
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry pick from
58010b99560eea2027dd39909eb5b35404e6030e)
Ye Li [Wed, 12 May 2021 10:31:23 +0000 (03:31 -0700)]
MLK-25486 mmc: fsl_esdhc_imx: Fix clock disable issue
The SD clock disable is wrapped by MMC_SUPPORTS_TUNING. So it
only works when UHS is enabled. However, in SD initialization the
power cycle does not depends on UHS. But the power cycle needs
disable the SD clock before power down.
So this causes a problem when UHS is not enabled. Some cards can't
become ready (ACMD14 timeout) due to the clock is enabled during
power cycle.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Ye Li [Wed, 12 May 2021 06:03:22 +0000 (23:03 -0700)]
MLK-25486 imx8mp: Set MEDIA_AXI_CLK_ROOT to 400Mhz
MEDIA_AXI_CLK_ROOT is 400Mhz for nominal voltage while 500Mhz is
for overdrive voltage.
Since we use OD VDD_SOC voltage for LPDDR4 EVK board, but ND for
DDR4 EVK board. Using 500Mhz will break for DDR4 EVK. So set it to
400Mhz that can work both ND and OD.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Ye Li [Wed, 12 May 2021 02:42:27 +0000 (19:42 -0700)]
MLK-25484 imx8mn: Set VDD_SOC suspend voltage to 0.75v
According to latest i.MX8MN datasheet, it introduces low-v suspend mode
which can set VDD_SOC to 0.75v to save power in suspend.
To align with this mode, adjust the PMIC suspend VDD_SOC to 0.75v in SPL.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Ye Li [Tue, 11 May 2021 05:32:46 +0000 (22:32 -0700)]
MLK-25483 usb: ehci-mx6: Enable USB PHY clock for iMX8DXL
On iMX8DXL, two USB controllers share clock (enabled by SCFW) for
controller but have dedicated LPCG clock for PHY.
The PHY LPCG will be cleared once the PHY is power down. So without
explictly enabling PHY LPCG clock, USB PHY access will cause
u-boot crash.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Ye Li [Mon, 10 May 2021 09:17:33 +0000 (02:17 -0700)]
MLK-25481 imx8mm/mn/mp: Keep watchdog disabled by default
WDOG HW can't be disabled once it is enabled. So after u-boot enables
the watchdog, kernel has to service the watchdog all the time.
However when suspend into s2idle mode, the WDOG counter is not stop,
then cause WDOG timeout and reset the system.
Change to not enable WDOG by default in u-boot to align previous release.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Gaurav Jain [Mon, 10 May 2021 06:21:37 +0000 (11:51 +0530)]
LF-3769 LS1021ATWR: Enable SPL_OF_CONTROL in SECURE Boot defconfig
if enable SPL_DM without SPL_OF_CONTROL,
build errors "undefined reference to fdt_get_resource",
is coming in function `caam_jr_probe'.
Added SPL_OF_CONTROL to remove the error.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Peng Fan [Wed, 28 Apr 2021 13:54:01 +0000 (21:54 +0800)]
MLK-25478-5 efi_loader: loosen buffer parameter check in efi_file_read_int
This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=
1733817,
but that fix was wrongly partial reverted.
When reading a directory, EFI_BUFFER_TOO_SMALL should be returned when
the supplied buffer is too small, so a use-case is to call
EFI_FILE_PROTOCOL.Read() with *buffer_size=0 and buffer=NULL to
obtain the needed size before doing the actual read.
So remove the check only for directory reading, file reading already
do the check by itself.
Fixes:
db12f518edb0("efi_loader: implement non-blocking file services")
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Stefan Sørensen <stefan.sorensen@spectralink.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Ye Li [Thu, 6 May 2021 13:38:55 +0000 (06:38 -0700)]
MLK-25478-4 imx8mm_evk: Update defconfig for ARM SR-IR cert
Enable some EFI and DFU configs and DFU for ARM system ready IR
certification.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ying-Chun Liu (PaulLiu) [Tue, 5 Jan 2021 15:42:36 +0000 (23:42 +0800)]
MLK-25478-3 workaround: disable verify time of signer and signee.
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
(cherry picked from commit
696b7db183e6c20b7d0d65550ba644b1fb2568f0)
Signed-off-by: Ye Li <ye.li@nxp.com>
Ying-Chun Liu (PaulLiu) [Sun, 3 Jan 2021 16:05:13 +0000 (00:05 +0800)]
MLK-25478-2 efi: clean memory and reset MemoryOverwriteRequestControl
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
(cherry picked from commit
2c20c3191a968e1c826aeb4e3d1249caae5fb844)
Ying-Chun Liu (PaulLiu) [Tue, 29 Dec 2020 15:10:28 +0000 (23:10 +0800)]
MLK-25478-1 efi: add Platform-Reset-Attack variables
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
(cherry picked from commit
9853e34839a96be1a3cd5d05b288f8b94b2a6a56)
Ye Li [Fri, 7 May 2021 09:08:04 +0000 (11:08 +0200)]
Pull request #14: Job Ring Driver model
Merge in LFAC/uboot-nxp from ~NXF60555/uboot-nxp-gaurav:imx_v2021.04 to imx_v2021.04
* commit '
ecbf49601e34dfb550e8017d0e7bc9acc6a0cecf':
LFU-126-11 LS(1012/1046/2080): Remove Sec initialization from board files.
LFU-126-10 LS1021: Enable Job ring driver model in U-Boot.
Ye Li [Fri, 7 May 2021 03:02:54 +0000 (20:02 -0700)]
LF-3483-21 DTS: imx6sx: Set ENET interface to rgmii-id
The RX clock delay setting for atheros PHY is still needed on
6SX SDB and ARD. So remove the rgmii-txid to use rgmii-id
Signed-off-by: Ye Li <ye.li@nxp.com>
Gaurav Jain [Thu, 6 May 2021 06:40:42 +0000 (12:10 +0530)]
LFU-126-11 LS(1012/1046/2080): Remove Sec initialization from board files.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Thu, 6 May 2021 06:17:08 +0000 (11:47 +0530)]
LFU-126-10 LS1021: Enable Job ring driver model in U-Boot.
LS1021A(iot/qds/tsn/twr) - added support for JR driver.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Ye Li [Fri, 30 Apr 2021 13:25:56 +0000 (06:25 -0700)]
LF-3483-20 imx8m: Add back fdt_addr variable for UUU download
Since uuu script and boot env will use fdt_addr variable for
kernel fdt loading, need add back the fdt_addr
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 30 Apr 2021 10:12:55 +0000 (03:12 -0700)]
LF-3483-19 imx8mn/imx8mp: Change SPL stack and BSS address
To fit for large SPL image size, adjust the BSS address and SPL stack
address. Set the BSS address at higher space than stack, so when
SPL image grows, we don't need to re-adjust stack and BSS
Signed-off-by: Ye Li <ye.li@nxp.com>
Gaurav Jain [Fri, 30 Apr 2021 08:11:05 +0000 (13:41 +0530)]
LFU-126-9 i.MX8: added IMX8 config for HAB boot.
i.MX8(QM/QXP/DX/DXL/DXL_phantom) - Added code for HAB checking.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Peng Fan [Fri, 30 Apr 2021 06:42:13 +0000 (14:42 +0800)]
LF-3767 imx8m: set mem=xMB to bootargs
Below two commit in Kernel cause no-map reserved memory are still kept
in kernel as memblock.
54d3a5761951 of/fdt: Make sure no-map does not remove already reserved regions
0674fa99a7d8 fdt: Properly handle "no-map" field in the memory region
So when jailhouse enabling, there will be resource conflict because
jailhouse pci will request the reserved memory for itself handling
virtual PCI trap.
So let's cut off the reserved memory using mem=xMB to avoid such issue.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Fri, 16 Oct 2020 15:32:29 +0000 (15:32 +0000)]
LF-2518 video: hdp: Adjust Layerscape HDP video driver folder
Since the HDP will be shared with i.MX. Move the common HDP library
codes to "driver/video/nxp/hdp" directory.
And use platform specified directory "driver/video/nxp/layerscape"
for LS driver codes and configurations.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Alison Wang <alison.wang@nxp.com>
(cherry picked from commit
f13b64fbea53ceff72ab5bb015aec77201b77439)
Gaurav Jain [Wed, 28 Apr 2021 12:39:21 +0000 (18:09 +0530)]
LFU-126-8 i.MX8: Enable Job ring driver model in SPL and U-Boot.
i.MX8(QM/QXP/DX/DXL/DXL_phantom) - added support for JR driver model.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Wed, 28 Apr 2021 08:31:15 +0000 (14:01 +0530)]
LFU-126-7 Layerscape: Enable Job ring driver model in U-Boot.
LS(1012/1028/1043/1046/1088/2088) - added support for JR driver.
LX2160, LX2162 - added support for JR driver.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Wed, 28 Apr 2021 06:45:06 +0000 (12:15 +0530)]
LFU-126-6 i.MX7ULP: Enable Job ring driver model in U-Boot.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Wed, 28 Apr 2021 06:31:04 +0000 (12:01 +0530)]
LFU-126-5 i.MX7: Enable Job ring driver model in U-Boot.
i.MX7D - added support for JR driver model.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Wed, 28 Apr 2021 06:08:07 +0000 (11:38 +0530)]
LFU-126-4 i.MX6: Enable Job ring driver model in U-Boot.
i.MX6(Q/DL/QP/SOLO/SX/UL) - added support for JR driver model.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Tue, 27 Apr 2021 11:29:31 +0000 (16:59 +0530)]
LFU-126-3 i.MX8M: Enable Job ring driver model in SPL and U-Boot.
i.MX8MM/MN/MP/MQ - added support for JR driver model.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Tue, 27 Apr 2021 09:55:03 +0000 (15:25 +0530)]
LFU-126-2 crypto/fsl: Support BKEK generation
Add support for generating BKEK.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Gaurav Jain [Tue, 27 Apr 2021 09:42:45 +0000 (15:12 +0530)]
LFU-126-1 crypto/fsl: Added support for Job ring driver model
added device tree support for job ring driver.
sec is initialized based on job ring information processed
from device tree.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Peng Fan [Wed, 28 Apr 2021 01:21:08 +0000 (09:21 +0800)]
LF-3483-19 imx8qm: xen: drop defconfig
Drop defconfig, it will be added back when android auto feature ready.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Peng Fan [Thu, 28 May 2020 07:41:57 +0000 (15:41 +0800)]
MLK-24189-2 arm: imx: optee: ignore node create for xen
Ignore node create for xen, currently we not have valid
registers when booting in xen, it might have garbage value and cause
kernel hang.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
8a20d8bf7a3016863a659862c53473fbda18afc2)
Peng Fan [Thu, 28 May 2020 07:41:09 +0000 (15:41 +0800)]
MLK-24189-1 arm: dts: xen: drop power domain for gpio4/1
gpio4/1 is handled by dom0, but shared with domu. without dropping
the power domain, probe will fail.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
0e700d7e4a798000818a296235d03dc5e6a01c88)
Peng Fan [Wed, 27 May 2020 06:08:27 +0000 (14:08 +0800)]
MLK-24172-2 configs: imx8qm: disable SPL DM serial for domu
Disable SPL DM SERIAL for domu, there is no mmu setup,
paravirtual console not work.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
019e2c88f0d97ee83ab0c28493467503bd1f73b1)
Peng Fan [Tue, 26 May 2020 06:18:13 +0000 (14:18 +0800)]
MLK-24172-1 imx8qm: update xen defconfig/dts for 2020.04
Update xen defconfig
Update dts to let xen serial could be used in early stage,
but seems without mmu enabled, it output nothing. It only
output data after mmu enabled.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
460d28429e14803fce7d8eabc8152e9e55320c87)
Ji Luo [Tue, 12 Mar 2019 08:15:54 +0000 (16:15 +0800)]
MA-14318-1 Support dual bootloader for xen
Trusty is not supported for xen so we don't need to check
the keyslot package or rollback index in spl. Reassign the
dram address for spl and u-boot to avoid conflicts.
Support serial init functions to enable debug console
in spl when xen is running.
Test: Boot and A/B slot switch on imx8qm_mek.
Change-Id: If6829252f1ec2e32255f951715c8747181951fd0
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
30beee3fe6d4b35166c6e17203909231d33bc2db)
(cherry picked from commit
a4ffa905d90d14ccdd146e4b38a69d40a568b747)
(cherry picked from commit
ca5e676b7a7c5ea7b435cb05eba180f3a25e5335)
Peng Fan [Thu, 21 Feb 2019 02:31:05 +0000 (10:31 +0800)]
MLK-20955 imx8qm: delete power-domains for lpuart0 on xen
To U-Boot on DomU, the lpuart0 is replaced with a xen paravirtual
consol driver, but reused the previous lpuart node. However
there is an power-domains entry in lpuart0 which will call
power_domain_on and failed to probe xen paravirtual driver,
because of recent change:
commit
8524ca764d8f("MLK-20945-2 dm: device: Check the power up result in probe ")
So remove the power-domains entry in lpuart0 to let DomU U-Boot could
output again.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
38155100481a07e961f375052241d9d03e20a899)
(cherry picked from commit
92104edf74363ab1a322e186887bf4515d47aa9c)
(cherry picked from commit
75074ecb28d47cb1064d10e3d0b85defd7fb3c87)
(cherry picked from commit
10d04fd3f248e1a2f084811768c4690d2bcb2f89)
Peng Fan [Thu, 15 Nov 2018 09:46:06 +0000 (17:46 +0800)]
MLK-20383 imx8qm: xen: enable dm usb
Enable dm usb using the base board otg usb port for fastboot usage
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
88a1718aa7096782e9cf538e391762aaef631bb2)
(cherry picked from commit
279e82b731e7671536b729934e1dc88b760ea05a)
(cherry picked from commit
707c2aed80f747e3d50e2dcc48dce5be892634f2)
Peng Fan [Thu, 15 Nov 2018 05:20:02 +0000 (13:20 +0800)]
MLK-20373-6 imx8qm: xen: enable dm serial
Enable dm serial for xen uboot.
Log as below:
#xl console 1
MMC: FSL_SDHC: 0
Loading Environment from <NULL>... *** Warning - bad CRC, using default environment
Failed (-5)
In: serial@
5a060000
Out: serial@
5a060000
Err: serial@
5a060000
flash target is MMC:0
Fastboot: Normal
Normal Boot
=>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
132cb6f74bcd963b180de83279f00aef31bbbdca)
(cherry picked from commit
38313a6f8e437568dbc15075251d344fa67fd14b)
(cherry picked from commit
8cb20204281faf34731cbff05af14322d69358b3)
Peng Fan [Thu, 15 Nov 2018 05:17:37 +0000 (13:17 +0800)]
MLK-20373-4 imx8: update mem map table
Update mem map table for xen uboot.
xen console and some magic pages needs to be mappe as normal memory.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
c96a9844cd3342f6e31627ccc4f3e63544ffd78e)
(cherry picked from commit
30b2d9f4a7c0cfc9b3f999f1c3a1a8c466d66a68)
(cherry picked from commit
03db7649c0f8c7a292160e2d5d8981e6c3b84ee3)
Peng Fan [Wed, 31 Oct 2018 01:14:43 +0000 (09:14 +0800)]
MLK-20134 imx8qm: xen: correct DRAM SIZE and loadaddr
The first DRAM BANK size should be 2GB and the load addr
are 0x80080000.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
56c9ac9734a59c68cb85125b7047087d00d141e8)
(cherry picked from commit
fd9689b3a2bcd0de26594afa161c4e4acb4c7f58)
(cherry picked from commit
ac0d7c6d0adb8e92ad8905d6d1037f20d624b1f4)
Peng Fan [Wed, 12 Sep 2018 06:32:27 +0000 (14:32 +0800)]
MLK-19552 imx8qm: xen: fix memory map
Fixes
9486251ced24("MLK-19494 configs: imx8qm mek android audo: correct xen physical memory")
correct text base, IPC address, memmap.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
884cada50b9a9fcda09d259cf145d87a29122cac)
(cherry picked from commit
55822e16786817f843d32c1347d705c2a2a435dd)
(cherry picked from commit
042c104da526f522175122f1d626c2d13cc57492)
Peng Fan [Fri, 7 Sep 2018 08:49:45 +0000 (16:49 +0800)]
MLK-19494 configs: imx8qm mek android audo: correct xen physical memory
XEN tool has changed GUEST_RAM0_BASE to 2GB, since we assigned
3584M RAM to DomU, so reflect the change in configuration file.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
9486251ced24e3bf3ecbff68a8f9476e694e5bf7)
(cherry picked from commit
0278b14507731b465652aa41c4a95dafa66da5d1)
(cherry picked from commit
d9372c4502c7d958d608911b50a418871ccc4540)
Ye Li [Fri, 15 Jun 2018 02:04:36 +0000 (19:04 -0700)]
MLK-18614-3 Xen: imx8qm_mek: Fix the CONFIG_FASTBOOT_USB_DEV and DTB issue
Because the Xen u-boot is using OTG port not typec port, the CONFIG_FASTBOOT_USB_DEV
should set to 0 not 1. Otherwise the fastboot will fail.
Remove duplicated "/dts-v1/;" from Xen DTB.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
ceaa529b34752045dcd294572c30c7c56a48abe7)
(cherry picked from commit
2942cb192c0fff45307042bf60da08a30ccddaf2)
(cherry picked from commit
9e8b963dc74f54a781cdb495f24b9b6a669cd17e)
(cherry picked from commit
be348f08fca7620698ec7fea3d94f7b95485aa2c)
Peng Fan [Tue, 12 Jun 2018 08:18:00 +0000 (16:18 +0800)]
MLK-18577-7 imx8qm: mek: support uboot in vm
We are targeting let uboot loading images from emmc to boot android.
Currently only emmc1 is enabled, so other devices are disabled.
Also change memory layout according to VM layout. The memory layout
needs to be samesize as what you configured in as "memory = "3584"".
Add a new dts dedicated for this kind uboot, add a new defconfig
to select CONFIG_XEN/CONFIG_XEN_DEBUG_SERIAL, deselect CONFIG_DM_SERIAL,
select CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK, and disable some devices
compared with imx8qm_mek_androidauto_defconfig.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
a4e932cae433b9d2e1cff6a94b12e4abcac45543)
(cherry picked from commit
a26de6e05563d3e3e6734e0d99e464437aa89db5)
(cherry picked from commit
74ac579ee195c4a2f6651ccc0f86efb0eebd889e)
(cherry picked from commit
7258e558b51a7f56d2b895c9c554423e12037ed3)
Peng Fan [Tue, 12 Jun 2018 08:07:24 +0000 (16:07 +0800)]
MLK-18577-5 imx8: update soc code to support uboot in XEN VM
Update SOC code to support U-Boot in a XEN VM. Currently
we only support to boot android using uboot in a VM,
so there is hardcode that using MMC1_BOOT boot.
There are a few small fixes included.
For the mmu configuration, the mem map is used from xen
guest VM and our iomem space in vm cfg file.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
533087bc1bce0c35fead0956b0613971862c280f)
(cherry picked from commit
c2ba2460d8985aa0b084f7beef2d0bc8773d90e3)
(cherry picked from commit
2b0a537f59646f3f222d60ebe46611160ba6bdc9)
Peng Fan [Wed, 13 Jun 2018 03:02:33 +0000 (11:02 +0800)]
MLK-18577-4 serial: add simple xen debug output
Add simple debug output when uboot runs in a VM.
Needs DM_SERIAL disabled, and XEN_DEBUG_SERIAL enabled.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b41475b83c8d7c83bd6069f4fea05d3405e81e50)
(cherry picked from commit
695ae513cdf6c671cda5c32e4a2974e3119450d0)
(cherry picked from commit
d4189c87bbd3a5fd0abc74f7e9ce12a2f86c0de0)
(cherry picked from commit
bb686e0c1ac24fcb72eaab51c249020b40807ec7)
Peng Fan [Tue, 12 Jun 2018 08:00:23 +0000 (16:00 +0800)]
MLK-18577-3 armv8: xen: add console write hypercall
Introduce console write hypercall to let Uboot could directly
output with xen console, this needs CONFIG_VERBOSE_DEBUG
enabled in xen.
Because input is not a must requirement in android VM,
and develop pvconsole needs more efforts, so let's use
this hypercall first.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
8836c3104a1edfe542e0c1cef6690bc9d3d842a0)
(cherry picked from commit
aea71150857d4617009730683c95d858acb43392)
(cherry picked from commit
3173d3ac39bed27a3197829ea13ffce5a89b07ac)
Ye Li [Wed, 28 Apr 2021 17:09:52 +0000 (10:09 -0700)]
LF-3483-18 net: eqos: add function to get phy node and address
Since new atheros PHY driver needs to access its PHY node through
phy device, we have to assign the phy node in ethernet controller
driver. Otherwise the PHY driver will fail to get some nodes
and properties.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 27 Apr 2021 21:55:44 +0000 (14:55 -0700)]
LF-3483-17 imx: optee: Copy the fdt overlay before using it
Since fdt overlay only can use once, but distro boot will call
"bootefi bootmgr" to apply the overlay to fdt. So when distro boot
is failed, following BSP default boot can't apply the overlay any
longer.
Using the patch to copy the fdt overlay before using it to avoid
above problem.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 28 Apr 2021 01:19:19 +0000 (18:19 -0700)]
LF-3483-16 mmc: fix device_remove when HS400_ES is enabled
HS400_ES is missed when down grade to HS mode when
device_remove the mmc device
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 28 Apr 2021 01:16:30 +0000 (18:16 -0700)]
LF-3483-15 mmc: fix switch issue with send_status disabled
According to the comment, when send_status is false or wait_dat0
is not supported, the switch should not send CMD13 but directly
return.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Sat, 24 Apr 2021 00:17:31 +0000 (17:17 -0700)]
LF-3483-14 pmic: pca9450: Add compatible string for pca9450c
Add driver compatible string for pca9450c PMIC device. Otherwise
we will fail to bind the pmic
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 9 Mar 2021 03:26:57 +0000 (19:26 -0800)]
usb: ehci-hcd: Add IAA handshake for removing async QH
According to EHCI spec, software needs to do handshake with HC for
safely removing QH from async list. This handshake is implemented by
setting IAAD (Interrupt on Async Advance Doorbell) bit in USB_USBCMD
register and poll the IAA (Interrupt on Async Advance bit) in the
USB_USBSTS to ensure the HC has released all on-chip state that may
potentially reference one of the data structures just removed.
Current codes only check active status of the last QTD, but this can't
ensure the QH is released from HC. We can meet unrecoverable
"EHCI timed out on TD" errors when running UEFI SCT tests on USB disk.
The USB_ASYNCLISTADDR register is changed to a invalid address when the
issue happens. It is fixed after adding the IAA handshake.
Steps to reproduce the issue:
1. Build the UEFI SCT from https://github.com/tianocore/edk2-test
2. Build the EDK2 UEFI Shell from https://github.com/tianocore/edk2
3. Copy SCT files and Shell.efi to USB disk FAT partition
4. Load the Shell.efi from USB FAT, and run bootefi to execute it
5. After booting into Shell, enter the SCT directory and run "sct -a"
to execute all tests.
6. Tests run about 1 hour and stop with many EHCI timeout errors like
EHCI timed out on TD - token=0x801f8c80
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e1769da17ed339bc937d30c49176bc3664b261af)
Ye Li [Fri, 26 Feb 2021 14:55:22 +0000 (06:55 -0800)]
MLK-25295 imx8mq_evk: Add new LPDDR4 timing files from RPA tool
Update LPDDR4 timing generated from RPA tool
Signed-off-by: Ye Li <ye.li@nxp.com>
Haibo Chen [Mon, 22 Mar 2021 10:55:38 +0000 (18:55 +0800)]
mmc: fsl_esdhc_imx: add extra delay for IO voltage switch if necessary
Some board like imx8mm-evkb, IO voltage switch from 3.3v to 1.8v need
around 18ms, common code only delay 10ms, so need to delay extra 8ms.
Otherwise voltage switch will timeout when wait for data0 line.
This IO voltage switch time depends on board design, depend on the
PMIC and capacitance. imx8mm-evkb board use PCA9450(PMIC) and 10uF
capacitance.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit
8974ff1a60365dedf1192632f5e0c21680d49dbc)
Haibo Chen [Mon, 22 Mar 2021 10:55:37 +0000 (18:55 +0800)]
mmc: fsl_esdhc_imx: remove redundant cmd11 related code.
Common code already handle the voltage switch sequence based on spec,
so remove the redundant voltage switch code.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit
1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8)
Haibo Chen [Wed, 3 Mar 2021 09:05:46 +0000 (17:05 +0800)]
mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON to control card clock output
For FSL_USDHC, it do not implement VENDORSPEC_CKEN/PEREN/HCKEN/IPGEN, these
are reserved bits. Instead, use VENDORSPEC_FRC_SDCLK_ON to gate on/off the
card clock output.
After commit
b5874b552ffa ("mmc: fsl_esdhc_imx: add wait_dat0() support"),
we meet SD3.0 card can't work at UHS mode, mmc_switch_voltage() fail because
the second mmc_wait_dat0 return -ETIMEDOUT. According to SD spec, during
voltage switch, need to gate off/on the card clock. If not set the FRC_SDCLK_ON,
after CMD11, hardware will gate off the card clock automatically, so card do
not detect the clock off/on behavior, so will draw the data0 line low until
next command.
Fixes:
b5874b552ffa ("mmc: fsl_esdhc_imx: add wait_dat0() support")
Tested-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit
63756575b42b8b4fb3f59cbbf0cedf03331bc2d2)
Nitin Garg [Fri, 9 Apr 2021 01:19:23 +0000 (20:19 -0500)]
LF-3635: imx8qm: Use malloc for container processing
If the container has image which conflicts with
spl_get_load_buffer address, there are processing failures.
Use malloc instead of spl_get_load_buffer.
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0dc262fb3698f5cfb5dbe95dd07c521c355c93b3)
(cherry picked from commit
1610ff18c73d110e9ca5ac8f0bfcbd9c30c434b3)
Signed-off-by: Ye Li <ye.li@nxp.com>
Nitin Garg [Fri, 9 Apr 2021 01:17:19 +0000 (20:17 -0500)]
LF-3635: imx8qm: Add u-boot-spl support for A72 cockpit
iMX8QM A72 cockpit requires SPL for OPTEE support.
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
25140ad27467829e3c75f97c56bbc7aeb4dbf8a3)
(cherry picked from commit
b4ca0880174e09fd74490412972f4b5930629b71)
Nitin Garg [Mon, 15 Mar 2021 03:16:24 +0000 (22:16 -0500)]
MLK-25346: Add cockpit device tree and config files
Add defconfigs and dts files for each cluster.
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
(cherry picked from commit
367e012ebd0a664ab36dc50436422efdb91ab9f4)
(cherry picked from commit
25572ccf8dc94554ab0ff46afe17354db497d198)
Nitin Garg [Mon, 15 Mar 2021 03:17:35 +0000 (22:17 -0500)]
MLK-25346: Add support for cockpit on i.MX8QM MEK board
This allows the u-boot to be built separately for different
clusters (A53 or A72) on i.MX8QM.
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
(cherry picked from commit
edb54f88b014bdd0379370678d54de60e3962b38)
(cherry picked from commit
e8ec7faa4cb53461da3c397ee3d95fc4a82a5d21)
Han Xu [Fri, 22 Jan 2021 03:18:53 +0000 (21:18 -0600)]
MLK-25271: new qspihdr subsystem for u-boot q(f)spi boot
qspihdr is a new subsystem in u-boot to check/updat q(f)spi boot config
headers. It's already integrated with uuu and can be used to burn
q(f)spi boot images for i.MX6/7/8 families.
Basic usage:
check [addr]: check if exists valid q(f)spi boot config header at
spcified memory addr, or check the nor chip without addr
dump [addr] : dump q(f)spi boot config header content from spcified
memory addr, or from nor chip without addr
init addr len safe: burn boot image from memory addr with size of len to
q(f)spi, with safe boot config header
update safe : only update header in q(f)spi to a safe boot config
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit
dc0ba70f5ba04425e9562c1dd4f6dcb7db322f4b)
(cherry picked from commit
3a09583fdfc5af012a2979d2b31e3ff3900c80aa)
Ye Li [Fri, 26 Feb 2021 18:24:48 +0000 (10:24 -0800)]
MLK-25320 video: imx_lcdifv3: Add memory priority threshold setting
Add the panic control from kernel for lcdifv3 to increase the memory
request priority to resolve QoS issue.
User can adjust the thresholds by using 'thres-low' and 'thres-high'
properties in DTS.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jian Li <jian.li@nxp.com>
(cherry picked from commit
f81e7caa100940206550ee4e2f64b5b799a5d92e)
(cherry picked from commit
613092e2fd58ac50f4416f73a37ed47de6275a51)
Ye Li [Sat, 20 Feb 2021 18:45:37 +0000 (10:45 -0800)]
MLK-25310 imx8m: ddr: Disable CA VREF Training for LPDDR4
Users reported LPDDR4 MR12 value is set to 0 during PHY training,
not the value from FSP timing structure, which cause compliance test failed.
The root cause is the CATrainOpt[0] is set to 1 in 2D FSP timing
but not set in 1D. According to PHY training application node,
to enable the feature both 1D and 2D need set this field to 1,
otherwise the training result will be incorrect.
The PHY training doc also recommends to set CATrainOpt[0] to 0 to use
MR12 value from message block (FSP structure). So update the LPDDR4
scripts of all mscale to clear CATrainOpt[0].
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit
2c98fb859258478e0f8bb8df980a96edff19d359)
(cherry picked from commit
c48c0a4d721107f555acd97189a5b0cbee3d9b0b)
Ye Li [Wed, 3 Feb 2021 18:25:44 +0000 (10:25 -0800)]
MLK-25291-3 imx8mq_evk: Applying default LPDDR4 script for B2
Both i.MX8MQ B1 and B2 should use default LPDDR4 script, while B0
has another dedicated script.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
2beb72ddfd5416be7d8fa6e9fb36b1e29a0f0cb7)
(cherry picked from commit
4d0da8e30cf0b3b86ef1b48315e2cd8d14e5ea10)
Ye Li [Wed, 3 Feb 2021 18:23:36 +0000 (10:23 -0800)]
MLK-25291-2 misc: ocotp: Update OCOTP driver for iMX8MQ B2
i.MX8MQ B2 also has fixed value in OCOTP_READ_FUSE_DATA register,
so it does not support "fuse sense" command like B1.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
357cf646bc3b9fc8d3b4f760e030545e83df2cdf)
(cherry picked from commit
6ec7af8eedb5ce34979eaaeb2cf2634fe759e697)
Ye Li [Wed, 3 Feb 2021 18:17:36 +0000 (10:17 -0800)]
MLK-25291-1 iMX8MQ: Recognize the B2 revision
i.MX8MQ B2 is using same value in OCOTP_READ_FUSE_DATA like B1, so
we have to check the ROM verision to distinguish the revision.
As we have checked the B1 rev for sticky bits work around in
secure boot. So it won't apply on B2.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
1ac96bde4920fa3e2a3bb4a79b342ca4f5adb4a5)
(cherry picked from commit
ec1f64b420c7a5c6dc6435fa98735b694720e26c)
Ye Li [Wed, 13 Jan 2021 08:16:26 +0000 (00:16 -0800)]
LF-3161-2 mx6ul: bee: Remove XN bit for bee enabled region
We will test a program on BEE enabled region, so remove XN bit
to allow execution when current MMU domain is changed to client.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
e4bd1734bcba2012d4d7dea7598635256f155c96)
(cherry picked from commit
ebae18a52c57ffdc087902233d24b650bc886d82)
Ye Li [Wed, 13 Jan 2021 08:03:50 +0000 (00:03 -0800)]
LF-3161-1 arm: imx: Fix speculative instruction prefetch issue
Default ARM32 MMU setting in u-boot sets XN bit to entire 4GB space no
matter which DCACHE option is used, and set domain permission to manager.
This causes MMU ignores the access check and XN bit, so speculative
instruction can fetch from entire space.
This patch sets the DDR, ROM, OCRAM without XN bit, and set domain to client
to enable the XN and access check. So speculative instruction fetch can only
happens on these 3 regions to avoid prefetch from peripherals and invalid
regions.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
25d70768c460bad91aa65f367203af41122399cd)
(cherry picked from commit
647edf3ae8bb7d48d20155e73a65522ae9e3ad36)
Ye Li [Wed, 6 Jan 2021 13:25:55 +0000 (05:25 -0800)]
LF-3117 wdog: imx_watchdog: Change default reset_cpu to internal reset
Default reset_cpu in imx_watchdog driver is clearing the WDA bit
to assert WDOG_B output. However, this requires the iomuxc for the WDOG_B
is configured by board codes or DTS. Without it, next external reset
with WDOG_B iomuxc configured will not work.
On iMX6, we always use internal reset to support some features like bmode.
So the iomuxc for WDOG_B never be set. Change back the reset_cpu to use
internal reset.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
aa97f1de484a165212cec56bd8ed38227c8f828a)
(cherry picked from commit
44069d2ae9bf1b58bafaed6e279e431536923e5d)
Ye Li [Thu, 19 Nov 2020 03:11:20 +0000 (19:11 -0800)]
LF-2769-3 mx7ulp_evk: Reserve top 1MB DDR for RPMSG usage
To avoid u-boot MMU table overlap M4 RPMSG vring buffer, reserve
the top 1MB DDR.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
e00224b10c9ce10c76fa9ba452d88565bee7024a)
(cherry picked from commit
81031fe3000296d536670ba1ff0b658de4506be5)
Ye Li [Thu, 19 Nov 2020 03:09:20 +0000 (19:09 -0800)]
LF-2769-2 mx6sxsabresd: Reserve top 1MB DDR for RPMSG usage
To avoid u-boot MMU table overlap M4 RPMSG vring buffer. Reserve
the top 1MB DDR when bootaux is enabled.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
44cf26781117c484e5f7e46fe6008c0b31c297e4)
(cherry picked from commit
baa5b2f60163c381183a295361e821048701d494)
Ye Li [Thu, 19 Nov 2020 03:03:13 +0000 (19:03 -0800)]
LF-2769-1 mx7dsabresd: Reserve top 1MB DDR for RPMSG usage
When booting with M4 RPMSG demo in u-boot, the M4 will use top 1MB
DDR for RPMSG vring buffer. This overlaps with u-boot MMU table and
modifies some MMU entries.
On mx7dsabresd, this cause u-boot failed to access LCDIF registers
due to the wrong MMU entries.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
8a03d17c92cc04765c6b93f716ea081486fd15f0)
(cherry picked from commit
b44fab8da91e4f74a3ab7e537368644ea1a25873)
Ye Li [Mon, 16 Nov 2020 09:14:25 +0000 (01:14 -0800)]
MLK-25010 iMX8MN: Update low_drive_gpu_freq for new GPU node path
Low drive mode needs to update GPU freq in kernel DTB. But 5.4 and 5.10
kernel are using different GPU node pathes. Update low_drive_gpu_freq
to support both two paths.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
cb1c6e4279030b859133b9e4e4a0fb2c3e3cd45c)
(cherry picked from commit
968b42dd710f4c051eaf958b706fba12675531f2)
Ye Li [Mon, 16 Nov 2020 08:00:27 +0000 (00:00 -0800)]
MLK-25003-2 iMX8M: Update thermal and PMU kernel nodes for dual/single cores
For dual core and single core iMX8M parts, the thermal node and PMU node
in kernel DTB also needs update to remove the refers to deleted core nodes.
Otherwise both driver will fail to work.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
5434603dc85553f353a127594ca764c06e54de0a)
(cherry picked from commit
8f02b26d57512044e2615c2528415628883924f2)
Ye Li [Wed, 23 Sep 2020 03:51:41 +0000 (20:51 -0700)]
MLK-25003-1 iMX8MN: Add support for 11x11 UltraLite part number
There are 3 part numbers for 11x11 i.MX8MNano with different core number
configuration: UltraLite Quad/Dual/Solo
Comparing with i.MX8MN Lite parts, they have MIPI DSI disabled. So
checking the MIPI DSI disable fuse to recognize these parts.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
05af9ac08052c92d011908726534e227db3143c4)
(cherry picked from commit
dce6de018a0d34885972b5b4b634d47217445261)
Ye Li [Mon, 9 Nov 2020 08:52:53 +0000 (00:52 -0800)]
LFU-4 imx8qm_mek: Select schedutil cpufreq governor as default
Add "cpufreq.default_governor=SCHEDUTIL" to iMX8QM MEK bootargs, so that
v5.10 kernel can uses schedutil cpufreq governor as default.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit
0600a61b1c21bca06b4bbdae28448944bb0a09b3)
Ye Li [Fri, 6 Nov 2020 12:38:17 +0000 (04:38 -0800)]
MLK-24978 imx8dxl_evk: Fix pad settings for LCD color issue
Two LCD data pins (D16 and D17) are missed in DTS to cause color issue,
also update pad setting to align with kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
90cf964cb4daebd66d5b8b0af944e2a2282b13d5)
(cherry picked from commit
91d460532ac7fd394c17c1a89cc5b2de094cc050)
Ye Li [Fri, 6 Nov 2020 07:09:51 +0000 (23:09 -0800)]
MLK-24971-2 imx8mp_evk: Set GIC clock to 500Mhz on LPDDR4 EVK only
Since iMX8MP LPDDR4 EVK uses OD for VDD_SOC, so we can set GIC clock
to 500Mhz to align with kernel. For DDR4 EVK, uses default 400Mhz for
ND VDD_SOC.
Move the codes from SOC codes to board level to match with voltage
setting.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
ba50b01b74873cbddaeba61f69e7763a8ba63227)
(cherry picked from commit
db279e78f921a3062502aab2f531953f6969e62a)
Ye Li [Fri, 6 Nov 2020 06:05:21 +0000 (22:05 -0800)]
MLK-24971-1 imx8mp_evk: Change to nominal voltage on DDR4 EVK
Because DDR4 runs at 3200MTS, this speed does not require to use overdrive
voltage for VDD_SOC, so set VDD_SOC to nominal 0.85v on DDR4 EVK.
The VDD_ARM was set to 0.95v to avoid timing risk from SOC to ARM when
VDD_SOC is 0.95v, set it back to 0.85v as well.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
5d556b8e214739deb5c3c71efa2ea8fc28f2a643)
(cherry picked from commit
18c1850717678a6a701641cc3d6d740624b2560e)
Peng Fan [Fri, 6 Nov 2020 02:26:42 +0000 (10:26 +0800)]
MLK-24968 imx8m: soc: update fuse path
Update fuse path to disable modules correctly.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b414e6dfc20ec6430ab1069139d59e11dff0f5dd)
(cherry picked from commit
602b903541a6abcd02878dbefd606215d243826a)
Peng Fan [Fri, 6 Nov 2020 01:56:44 +0000 (09:56 +0800)]
LF-2637 mx6: fuse: update node path
Update node path for 5.10 Kernel.
- aips-bus renamed to bus
- gpmi-nand renamed to nand-controller
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
51ee59aa02cb0a88c64604faecd5b01022af5182)
(cherry picked from commit
f7fba141b386d3dfe4b1862c5ae088e65a17efa7)
Peng Fan [Wed, 21 Oct 2020 09:12:22 +0000 (17:12 +0800)]
MLK-24907 imx8mp: configure GIC clk to 500M
Following Linux, set GIC clk to 500M. If U-Boot has different settings
compared with kernel required, kernel will dump. However we could not
let kernel runtime change GIC clk parents, because it is CLK_IS_CRITICAL
and CLK_SET_PARENT_GATE, it will always fail. There is no otherway
to address the issue unless let U-Boot configure it ready.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b6ddbcb9dc61e8822899349fc516d06941e7efd6)
(cherry picked from commit
081c11af7ac49865f6bd0026dd8c7ca2c00394fb)
Ye Li [Tue, 3 Nov 2020 06:10:49 +0000 (22:10 -0800)]
MLK-24958-5 imx8dxl_evk: Enable LCDIF splash screen
Use a dedicated defconfig for LCDIF splash screen to resolve conflict.
Update board codes to add relevant configs and control mux for LCDIF pins.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b561b31da6aeafd189f0fa29d8d6b8c3fe28d1c9)
(cherry picked from commit
3d54643dfdfa6972c8405b7979910fc7ec058a46)
Ye Li [Tue, 3 Nov 2020 06:06:53 +0000 (22:06 -0800)]
MLK-24958-4 DTS: imx8dxl-evk: Add dedicated DTS for LCD enablemennt
Because LCDIF has lots of pinmux conflict with modules like eQOS, SPI,
ADC, LPUART1, etc. We can't support it by default.
Introduce a new DTS for LCDIF enablement and disable conflicted nodes.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
39840421d4e2d805df1420658629e78925f41490)
(cherry picked from commit
6a402cfcea13b6d34f9c9adb036ecc1bcf161139)
Ye Li [Tue, 3 Nov 2020 06:01:21 +0000 (22:01 -0800)]
MLK-24958-3 video: mxsfb: Add iMX8DXL support to LCDIF driver
Support iMX8DXL in mxsfb driver by below changes:
1. Enable iMX8 in lcdif registers file
2. Add u-boot clock driver support for iMX8
3. Change the FB buffer alignment to align it at allocation. So
it won't overlay with other memory at mmu_set_region_dcache_behaviour
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
6f02d6894509e0aa79df9d1bdf5029136e1493b5)
(cherry picked from commit
9df950e79963c328b1b04d6eb42f43f41217e752)
Ye Li [Tue, 3 Nov 2020 05:47:59 +0000 (21:47 -0800)]
MLK-24958-2 DTS: imx8qxp/dxl: Update LCDIF clock names
Update the LCDIF clocks to align with u-boot clock driver.
Since u-boot imx8 clock driver can gate and divide on slice clock,
so it does not create two clocks on slice clock.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
c5fddad29b23cd74732b6aa3720bd8d62f41462e)
(cherry picked from commit
dafd6bc77fc990d149bba38cacda06da57b4573f)
Ye Li [Tue, 3 Nov 2020 03:02:21 +0000 (19:02 -0800)]
MLK-24958-1 clk: imx8qxp/dxl: Add clock support for LCDIF
Add relevant clocks tree for LCDIF. According to design, LCDIF has
a slice and a dedicated eLCDIF PLL for pixel clock.
On iMX8QXP, there is pixel link mux which is muxed with LCDIF IOs.
It uses slice bypass reference clock for pix clock input.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
c189dad00743c7a3fcd80d716498289fa7cb2c40)
(cherry picked from commit
5159b4985a84be4f7a06dc8edc63e59658ca4809)
Clark Wang [Fri, 30 Oct 2020 04:34:50 +0000 (12:34 +0800)]
MLK-24941 arm: dts: set sensor regulator always on for imx6q/qp/dl
This is a workaround.
Always open the regulator of the sensor to ensure that the
pull-up of i2c3 is 3.3v. Otherwise, there will be a 1.8v high level
pull-up before enable sensor regulator in kernel boot stage.
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
(cherry picked from commit
6db6c8bf1a60baad7032f92822a0030b077d3602)
(cherry picked from commit
a950edcdb7a52362287783386dc5f6404d1a9dd8)
Ye Li [Tue, 20 Oct 2020 03:48:49 +0000 (20:48 -0700)]
MLK-24902 imx8mp_evk: Update LPDDR4 refresh time
Use more safer refresh time value for 6GB LPDDR4 on this EVK board.
Update the parameters for every frequency point.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit
f0f496abb5d7bef031603d1c3ab5387facead209)
(cherry picked from commit
5d2a3c142f345ab9531d048177714b0170024a8f)
Jian Li [Mon, 19 Oct 2020 02:13:01 +0000 (10:13 +0800)]
MLK-24900 imx8mp ddr4: Align ddr4 QoS to lpddr4
1. align ddr4 Q0S settings to lpddr4
2. adjust PERFHPR1, PERFLPR1, PERFWR1 to reduce HPR,LPR, W
starving time to avoid display underrun
Signed-off-by: Jian Li <jian.li@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
f0905916886bd45d1dc5d55b25839106457124f5)
(cherry picked from commit
318bc283cba3f71bcccc9839806a485abd07ba1b)
Ye Li [Fri, 16 Oct 2020 07:21:26 +0000 (00:21 -0700)]
LF-2519 video: imx: Update i.MX video drivers' folder
Use drivers/video/nxp as a root folder, move imx as its sub-folder.
Move out the hdp directory from imx into nxp folder, so that we can
share it with other NXP platforms like layerscape. Also update the
hdp codes to align with layerscape.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
1b4b9fde3c912282f7774fc21b56909c3f342c21)
Ye Li [Mon, 12 Oct 2020 09:00:15 +0000 (02:00 -0700)]
MLK-24887 iMX8MM: Add new LPDDR4 EVK support
Rename old LPDDR4 EVK to EVK-QCA board which uses QCA wifi and
BD71847
pmic, assign dedicated u-boot DTS and defconfig for this board, So we
can drop it easily in future.
Set default EVK configuration for new LPDDR4 EVK which uses NXP PCA9540A
PMIC and NXP AW-CM358SM WIFI module.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
c8f5dbeecd7d7fb620b7652166378246c7ce8470)
(cherry picked from commit
e2205496e223e1b74b48e5d99318966a1e7921e9)