Silvano di Ninno [Mon, 19 Feb 2018 17:06:26 +0000 (18:06 +0100)]
MLK-17608: u-boot: config: update dtb filename when OP-TEE is used
When booting with OP-TEE support, a dedicated dtb file is used.
Allow u-boot to automatically update the fdt filename to use.
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Sun, 11 Feb 2018 10:47:55 +0000 (02:47 -0800)]
MLK-17573-3 imx8mq_evk: Enable USB host support on typec port
On i.MX8MQ EVK board, the u-boot only supports the USB host mode on
USB3 port. This patch adds the host support for typec port.
So the typec port now can support both host and device mode.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Sun, 11 Feb 2018 10:45:07 +0000 (02:45 -0800)]
MLK-17573-2 xhci-imx8m: add USB3 controller 1 address
i.MX8MQ has two USB3 controllers. Previously we only added the #2
controller support in driver. This patch adds the address for #1
controller.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Sun, 11 Feb 2018 10:42:31 +0000 (02:42 -0800)]
MLK-17573-1 tcpc: Add interface to set UFP mode
Add a interface to set UFP mode, so when running as device mode, the
board level codes can use it to configure the TCPC port to UFP mode.
Since we have supported PD charge for dead battery, so add check before
applying UFP or DFP mode.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Mon, 12 Feb 2018 07:28:10 +0000 (23:28 -0800)]
MLK-17578 imx8mq_ddr4_arm2: Enable UBIFS and UBI support
Since the NAND driver is enabled for i.MX8MQ DDR4 ARM2 board, enable
the UBIFS and UBI support to access rootfs.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Siva Durga Prasad Paladugu [Tue, 30 May 2017 12:29:06 +0000 (14:29 +0200)]
fs: usbifs: Fix warning in ubifs
This patch fixes the below warning by typecasting it properly
fs/ubifs/ubifs.c: In function 'ubifs_load':
fs/ubifs/ubifs.c:942:29: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
err = ubifs_read(filename, (void *)addr, 0, size, &actread);
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
(cherry picked from commit
34cc30af27165696a36274394f6ff019ed762ce6)
Bradley Bolen [Sat, 27 Jan 2018 03:11:04 +0000 (22:11 -0500)]
atomic-long: Fix warnings on arm64
Several inline functions in this file reference undefined functions in
U-Boot. For example:
atomic-long.h:73:9: warning: implicit declaration of function
'atomic64_sub_and_test'
atomic-long.h:80:9: warning: implicit declaration of function
'atomic64_dec_and_test'
atomic-long.h:87:9: warning: implicit declaration of function
'atomic64_inc_and_test'
Handle this the same as the 32 bit build by wrapping these functions in
a __UBOOT__ check.
Signed-off-by: Bradley Bolen <bradleybolen@gmail.com>
(cherry picked from commit
9c3264ce40130966897fb9c1b91c120f588531d0)
zhang sanshan [Thu, 22 Feb 2018 07:10:10 +0000 (15:10 +0800)]
MA-11365-4 [Android] enable dm-verity based on AVB
enlarge CONFIG_SYS_CBSIZE to 2048 for dm cmdline is large than 1024.
Change-Id: I3310841e411dd23daa94dde7a34b6716fe1e1f74
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
zhang sanshan [Mon, 12 Feb 2018 09:38:25 +0000 (17:38 +0800)]
MA-11365-3 [Android] enable dm-verity based on AVB
system will append dm kernel parameter into cmdline if it can
verity vbmeta successfully.
Add system partition fo 'root=' if avb verity fail.
Change-Id: I3ed84a54fc4f29efddb68b4eb97bef98dd6a19c0
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Luo Ji [Mon, 12 Feb 2018 08:33:49 +0000 (16:33 +0800)]
MA-11363 [Android] Don't free memory for boot image in AVB
We read the boot image to a fixed partition which is defined
in boot header, this part of memory should not be freed with
free() otherwise "Synchronous Abort" error may happen.
Change-Id: I0fd9a3e558fda90c4daeee3080e4f9b393e11d98
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Mon, 12 Feb 2018 06:41:37 +0000 (14:41 +0800)]
MA-10947 Enable DM-Verify feature for A/B Slot
Pass the dm-verity commandline in vbmeta to enable the dm-verity
feature.
Change-Id: I1533870708535e2efda5015743df1f807cf5e986
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Mon, 12 Feb 2018 06:11:47 +0000 (14:11 +0800)]
MA-11362 [Android] Update AVB lib in u-boot
This commit did:
1. Sync the AVB lib with external/avb with commit head:
commit
8a8103513dea5c47037200beabad2a307f09ecc8
Merge:
2ee8dbe 852858e
Author: David Zeuthen <zeuthen@google.com>
Date: Fri Jun 30 16:08:03 2017 +0000
Revert "avbtool: Avoid using $(ANDROID_VERITY_MODE) for now."
am:
1b2f7a64e2
am:
852858e2ed
2. Fix build error and implement ops function
fsl_get_size_of_partition().
Change-Id: I3d1a04c320b8ea89e9fe28124cf866bd62282e78
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Denis Pynkin [Fri, 21 Jul 2017 16:28:42 +0000 (19:28 +0300)]
net: Use packed structures for networking
PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled
by default for '-O2':
BOOTP broadcast 1
data abort
pc : [<
8ff8bb30>] lr : [<
00004f1f>]
reloc pc : [<
17832b30>] lr : [<
878abf1f>]
sp :
8f558bc0 ip :
00000000 fp :
8ffef5a4
r10:
8ffed248 r9 :
8f558ee0 r8 :
8ffef594
r7 :
0000000e r6 :
8ffed700 r5 :
00000000 r4 :
8ffed74e
r3 :
00060101 r2 :
8ffed230 r1 :
8ffed706 r0 :
00000ddd
Flags: nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
Core reason is usage of structures for network headers without packed
attribute.
Cherry-picked from upstream commit:
704f3acfcf553 ("net: Use packed structures
for networking")
Reviewed-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Bai Ping [Fri, 5 Jan 2018 13:46:03 +0000 (21:46 +0800)]
MLK-17346 board: imx8mq: Change the SW3A standby mode to off
On i.MX8MQ EVK board, the SW3A is used for VDD_DRAM supply,
when system enter DSM mode, the DDR is put into retention mode,
the VDD_DRAM supply can be power off to reduce the leakage
current to save power. Set the SW3A mode to APM_OFF mode to power
off the SW3A when PMIC enters standby mode.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Bai Ping [Sun, 11 Feb 2018 02:31:10 +0000 (10:31 +0800)]
MLK-17590 board: imx8mq: update the lpddr4 training flow
Update the lpddr4 training flow on imx8mq evk board.
1. the phy firmware version used is 201709.
2. the PIE image is updated to 201711 version.
3. remove the 400mts and 100mts frequency set point.
4. add the 667mts frequency set point.
5. the ddrc config is also updated accordingly.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:25:58 +0000 (14:25 -0600)]
MLK-17404-7 config: Adding support for i.MX8M HDMI splash
Adding support for i.MX8M HDMI splash screen
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:23:56 +0000 (14:23 -0600)]
MLK-17404-6 video: Adding i.MX8 HDMI support to configuration
Adding i.MX8 HDMI support to build configuration.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:22:23 +0000 (14:22 -0600)]
MLK-17404-5 board: freescale: Adding support for i.MX8MQ EVK display
Adding basic display support for splash screen.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:19:20 +0000 (14:19 -0600)]
MLK-17404-4 arch: arm: Adding support for i.MX8M display
Adding Display support for splash screen.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:11:06 +0000 (14:11 -0600)]
MLK-17404-3 arch: arm: Adding support for i.MX8 HDMI
Adding basic HDMI support for i.MX8 for splash screen.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:08:44 +0000 (14:08 -0600)]
MLK-17404-2 include: Adding header for i.MX8 HDMI support
Adding header file for i.MX8 HDMI support
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Mon, 29 Jan 2018 20:05:05 +0000 (14:05 -0600)]
MLK-17404-1 video: imx: hdp: Adding support for HDMI splash screen
Adding HDMI support for splash screen.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Ranjani Vaidyanathan [Tue, 6 Feb 2018 19:26:41 +0000 (13:26 -0600)]
MLK-17561 Update to the latest SCFW API based on commit:
"
commit
97b8a6eed4eee19ec8a60dedfffc2f5f3d8933c5
Author: Chuck Cannon <chuck.cannon@freescale.com>
Date: Tue Feb 6 08:54:16 2018 -0600
Add unique ID API call. Required to get info needed for SECO fuse
programming. Added info command to DM.
"
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Ye Li [Sun, 11 Feb 2018 07:40:40 +0000 (23:40 -0800)]
MLK-17585 imx8/imx8m: Disable TRUST_OF_CHAIN for secure boot
In the board common directory, the CONFIG_TRUST_OF_CHAIN is automatically
enabled once the CONFIG_SECURE_BOOT is set. Since we don't support this
trust chain on all i.MX8 platforms, modify the Kconfig to disable it.
Signed-off-by: Ye Li <ye.li@nxp.com>
Luo Ji [Wed, 7 Feb 2018 08:56:29 +0000 (16:56 +0800)]
MA-11327 [Android] Load Image in do_boota process once to reduce boot time
Load bootimage to the address defined in boot header so
we don't need to copy it again, this will save some boot time.
Change-Id: I87979decb5cae58648f8afec4a0ee3503aea841f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Haoran.Wang [Tue, 14 Nov 2017 04:36:45 +0000 (12:36 +0800)]
MA-11349 [Android] Use fast avb_ab_flow for AVB verify
The verify process will check the higher priority slot
and once this slot bootable then continue this one.
Change-Id: I4667ccf45892040da913b88c2bb264da9861146a
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
zhang sanshan [Mon, 5 Feb 2018 11:10:26 +0000 (19:10 +0800)]
MA-11339 [Android] skip ramdisk when booti for normal boot
Do not copy ramdisk to address ramdisk_addr on normal boot.
Skip passing ramdisk address to booti.
Change-Id: I4ef001734db6aaacbb4bde41f7f794775849ff8e
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Leonard Crestez [Thu, 1 Feb 2018 16:07:29 +0000 (18:07 +0200)]
MLK-17493: imx8qm: Fix mmcargs variable missing terminator
Missing the '\0' means the value of the mmcargs value includes the
declaration of loadbootscript below.
Fixes:
432e5b434784 ("MLK-17205-3 video: imx: hdp: Adding configs for HDP firmware loading")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Han Xu [Thu, 1 Feb 2018 17:58:01 +0000 (11:58 -0600)]
MLK-17494: imx8mq: config: fix the mscale u-boot env setting for NAND boot
Fix the NAND environment settings including save environment to NAND,
correct offset and console settings.
Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Han Xu [Tue, 30 Jan 2018 22:02:54 +0000 (16:02 -0600)]
MLK-17476: imx: optee: change misc partition to optee partition
Previous OPTEE change for NAND add a new tee partition which changed the
following NAND partition index. Changed the unused misc partition and
enlarge the default size to 16MB. This will keep the mtd index fixed and
all partitions should be start from the block boundary for most NAND
chips.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Han Xu <han.xu@nxp.com>
Peng Fan [Sat, 27 Jan 2018 01:44:44 +0000 (09:44 +0800)]
MLK-17465 imx8: use random ethaddr when ethaddr not set
Use random ethaddr when ethaddr not set. This could avoid user
to set ethaddr mannualy.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Luo Ji [Thu, 25 Jan 2018 11:08:15 +0000 (19:08 +0800)]
MA-11259 [Android] Fastboot oem unlock fail on imx8
Commit
5dc5928 (MA-11108 [Android] decrypt lock store fail on imx7d) fix
some micros can't be enabled in drivers/usb/gadget/fastboot_lock_unlock.c
even if they have been defined in header files, which enables micro
CONFIG_ANDROID_AB_SUPPORT too. No "prdata" partition exist in Android or
Android Things which causes errors when try to read lock ability flag
from "prdata".
Moreover, imx8 don't use CAAM to decrypt/encrypt lock status, so we
should always return "FASTBOOT_UL_ENABLE" like what we have done on Android
Things.
Change-Id: Iff36485742815d5758e523ee2e6e6e1b4b8f7ac5
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Thu, 25 Jan 2018 06:48:23 +0000 (14:48 +0800)]
MA-11241 [Android] Use strlen() to calculate the string length
Calculate the string length with strlen() instead of hard code.
Change-Id: I6028c249ca03f5d3d08225c528d3584e507c64b3
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Wed, 22 Nov 2017 05:26:54 +0000 (13:26 +0800)]
Use fastboot_tx_write_more() to send multiple packets
fastboot_tx_write_more() is designed to send multiple packets to
fastboot host in u-boot, make related changes.
Change-Id: Ic856eb87b89cab2d0c2222a0c48d0bc75567a559
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Wed, 22 Nov 2017 04:18:57 +0000 (12:18 +0800)]
MA-10703 [Android] use the usb_ep_queue for muti request
It need to send muti data through usb for fastboot commands(fastboot getcar all)
this patch use usb_ep_queue to queue usb data.
Change-Id: I5fd2568683c43163a21417a0634dd194e31f3eb7
Signed-off-by: Luo Ji <ji.luo@nxp.com>
ji.luo [Fri, 20 Oct 2017 07:57:02 +0000 (15:57 +0800)]
[iot] Support fastboot oem fuse at-bootloader-vboot-key command
Support "fastboot oem fuse at-bootloader-vboot-key" command.
Since we don't program the verified boot key in bootloader,
so this command will simply return "OKAY".
Change-Id: Ic750803e7780f2cb0e0eb776ddc2a46932f2be09
Signed-off-by: ji.luo <ji.luo@nxp.com>
Haoran Wang [Wed, 25 Oct 2017 10:08:42 +0000 (18:08 +0800)]
[iot] fastboot:Add 'get_staged' command support
When host end execute "fastboot get_staged [ <outfile> ]"
The staged data from the last command will be output to host end.
If the last command did not result in staged data or the target data
larger than end point buffer size, this command will be fail.
This patch also alloc new buffer that is larger than normal end point's
as the this command need to transfer data by one packet. So that
only the file that less than 128KB will be transfered.
Change-Id: I1dbefa130df9ca348a30d7bc52cb856c052776bf
Signed-off-by: Haoran Wang <elven.wang@nxp.com>
ji.luo [Mon, 30 Oct 2017 05:42:35 +0000 (13:42 +0800)]
[fastboot] Refine erase-block-size and logical-block-size command
This patch did:
1.Correct the 'erase-block-size' to actual value.
2.Refine the code to get 'logical-block-size'
Bug:
68394448
Change-Id: I3c13eab92d875c8faa2f468662d61d142cca3225
Signed-off-by: ji.luo <ji.luo@nxp.com>
Haoran Wang [Wed, 11 Oct 2017 07:44:24 +0000 (15:44 +0800)]
[iot] Refine Android related configs
Refined Android related configs to avoid
duplicated defined macros.
Test: Passed build for all i.MX SoMs.
Merged-In: I0e93bd8173e3a0b9b0601d359950233702729fb3
Change-Id: I0e93bd8173e3a0b9b0601d359950233702729fb3
Signed-off-by: Haoran Wang <elven.wang@nxp.com>
fang hui [Thu, 11 May 2017 04:18:38 +0000 (12:18 +0800)]
MA-10052 [iot] Extensions of AXP152 to support stream812
Necessary extensions of axp152 to support stream812.
merge patches from Martin Pietryka <martin.pietryka@streamunlimited.com>
Change-Id: I7708db4e59d6403a3576f17a221b448866f469a0
Signed-off-by: fang hui <hui.fang@nxp.com>
fang hui [Thu, 24 Aug 2017 07:17:35 +0000 (15:17 +0800)]
MA-10071 [iot] Add board support imx7d multa
Add board support imx7d multa
Change-Id: I5c50363681d7cb1d93bf8d8a14d93496bd152bcb
Signed-off-by: fang hui <hui.fang@nxp.com>
Zhang Bo [Thu, 23 Nov 2017 06:29:28 +0000 (14:29 +0800)]
MA-10732[Android] Change pmic sw3 mode to avoid DDR power off
Write 1 to bit5 of PMIC SW3MODE(0x3f) register to change sw3 mode to avoid DDR
power off. It will avoid DRAM lose data when reset or reboot.
This feature is essental for pstore/ramoops work normally.
Change-Id: I92a1e198d57d77ae117d0d49675fc8afffec9656
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
Han Xu [Wed, 24 Jan 2018 22:02:00 +0000 (16:02 -0600)]
MLK-17458: imx8mq: config: change the imx8mq ddr4 arm2 FIT offset
Change the FIT image offset from 128MB to 64MB according to the NAND
partition setting.
Signed-off-by: Han Xu <han.xu@nxp.com>
Luo Ji [Wed, 24 Jan 2018 11:01:24 +0000 (19:01 +0800)]
MA-11226 [Android] Set active slot fail after flashing bootloader
Flash bootloader will switch the mmc hwpart to boot0 partition which
will cause errors when read/write blocks from user partition. Fix
this bug by switching hwpart to user partition before read/write
user partition every time.
Change-Id: I5e3405de04e22db352efa59f0286e5c5c4697ac5
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Ye Li [Mon, 22 Jan 2018 03:22:40 +0000 (19:22 -0800)]
MLK-17439 mx7ulp: Change clock rate calculation for NIC1 BUS and EXT
On i.MX7ULP B0, there is change in NIC clock dividers architecture.
On A0, the NIC1 BUS and EXT dividers were in a chain with NIC1 DIV, but
on B0 they are parallel with NIC1 DIV. So now the dividers are independent.
This patch modifies the scg_nic_get_rate function according to this change.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 17 Jan 2018 07:46:54 +0000 (23:46 -0800)]
MLK-17402 imx8qm/qxp_arm2: Reset ENET1 PHY and MAX7322 at init
Since kernel enables both ENET0 and ENET1, so change to reset ENET1
PHY and MAX7322 as well even the configuration is set to use ENET0
in u-boot.
Signed-off-by: Ye Li <ye.li@nxp.com>
Oliver Brown [Mon, 15 Jan 2018 21:25:55 +0000 (15:25 -0600)]
MLK-17375 video: imx: hdp: fix "n" arg for strncmp call
Renaming hdpload to hdp_load for consistancy.
Correcting the strncmp to use only 4 characters to match "load" argument
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Haoran.Wang [Thu, 4 Jan 2018 13:02:38 +0000 (21:02 +0800)]
MA-10983-1 Load HDMI firmware from u-boot.bin
Load HDMI firmware from u-boot.bin instead of
/system partition.
Change-Id: I8945940cfe14db50c95a56b8bff2a94990a7fbaf
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Luo Ji [Tue, 16 Jan 2018 10:54:55 +0000 (18:54 +0800)]
MA-11121 [Android] Enlarge heap size to 96M Bytes for imx8
After align BSP uboot configuration (commit:
e363a68), some vedio
related operations was enabled and will take some heap space. AVB
will take about 62M Bytes heap size to load both boot_a and boot_b,
64M Bytes is not enough anymore.
Change-Id: I9f93cd8d32410d144a0c5a976046773fbd07a539
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Jun Li [Tue, 16 Jan 2018 10:06:52 +0000 (18:06 +0800)]
MLK-17376 typec: support power source with 2 stages of capability
Some power delivery source send the source capability by 2 stages:
1st stage send the source capability message with only basic 5V
PDO, after the 5V power session setup, 2nd stage it will send full
source capabilities with all PDOs it can support, in this case, we
should go on to process the following PD source cap to have a new
power session setup.
Signed-off-by: Li Jun <jun.li@nxp.com>
Oliver Brown [Fri, 12 Jan 2018 18:10:32 +0000 (12:10 -0600)]
MLK-17369 imx8qm/qxp: Add controls for display controller resets
"
commit
cfdb9821531da523fd1f01536eb67c8b8451477f
Author: Oliver Brown <oliver.brown@nxp.com>
Date: Tue Jan 2 07:46:06 2018 -0600
dc: Add controls for display controller resets.
"
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Luo Ji [Thu, 11 Jan 2018 08:49:03 +0000 (16:49 +0800)]
MA-11108 [Android] decrypt lock store fail on imx7d
Macro FASTBOOT_ENCRYPT_LOCK can't be enabled because
of the order of header files.
Change-Id: Id46b2f595e316b70b71ec957d196e36b9eecc297
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Ye Li [Wed, 10 Jan 2018 08:42:39 +0000 (02:42 -0600)]
MLK-17357-2 lpi2c: Add bus busy error handling
When doing "i2c dev 4; i2c probe" with ENET daughter card connected on iMX8QXP MEK
board, we met a i2c bus busy issue, that the BBF of lpi2c always show busy, but the
master is idle, and stop is detected (SDF set).
This patch addes a handling to re-init the lpi2c master for this case. Then the issue
can be worked around.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 10 Jan 2018 08:37:29 +0000 (02:37 -0600)]
MLK-17357-1 dts: imx8qxp_mek: set the i2c mux register offset to 0
The i2c mux PCA9646 does not have register offset. We should read/write
its control register immediately following the i2c device address.
Use u-boot,i2c-offset-len to set the register offset length to 0.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Mon, 8 Jan 2018 14:09:43 +0000 (08:09 -0600)]
MLK-17313-3 imx8mq_evk: Add USB PD power sink support
Enable the TCPC driver for i.MX8MQ EVK board. When booting with dead battery,
the TCPC driver will setup USB PD connection to negotiate the power with PD
power charger.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Mon, 8 Jan 2018 14:08:57 +0000 (08:08 -0600)]
MLK-17313-2 imx8qm/qxp mek: Update codes to use new TCPC interfaces
Since the TCPC driver is updated, change the QM/QXP MEK board level codes
accordingly to use new interfaces.
Because the typec circuit on iMX8QM/QXP MEK boards only support power role
as source, so set the CONFIG_USB_TCPC_PD_SINK_DISABLE.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Mon, 8 Jan 2018 14:05:51 +0000 (08:05 -0600)]
MLK-17313-1 tcpc: Add support for power sink in dead battery
To add support for power sink when booting in dead battery, we
have to setup PD connection with PD source and send/receive PD messages
to negotiate a proper voltage and current.
This patch refactors the TCPC driver with this new function and also
keep DFP mode support for USB host.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Jun Li <jun.li@nxp.com>
Ye Li [Thu, 4 Jan 2018 15:17:57 +0000 (09:17 -0600)]
MLK-17348 xhci: Reset endpoint when endpoint is halted
When testing a poor USB disk "Transcend JetFlash XPGMC7W5 ", sometime we
will get TRB TX error during getting string descriptors, then the usb process
aborts due to the context state changed to halted.
Actually when the endpoint context state is halted, we can send reset endpoint
command to put it to stopped state, then set TR dequeue pointer for following
doorbell ring to re-run it. This patch adds this error recovery mechanism.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 5 Jan 2018 02:55:03 +0000 (20:55 -0600)]
MLK-17345 mxc_ocotp: Update redundancy banks for mx7ulp B0
On mx7ulp B0, beside bank 0 and 1, the fuse bank 9, 10, 28 are changed to
Redundancy mode not ECC, so they can support to program different bits of
a word in multiple times.
Signed-off-by: Ye Li <ye.li@nxp.com>
Haoran.Wang [Fri, 29 Dec 2017 08:35:56 +0000 (16:35 +0800)]
MA-10983 Load HDMI firmware before boot
Load HDMI firmware to make HDMI module work.
The firmware stored in /system partition.
Now choose the target boot slot's system partition
to load the firmware.
Change-Id: Icfcd5f6c8237ee0c8875317395cf86c07d53c58e
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Luo Ji [Wed, 3 Jan 2018 05:50:58 +0000 (13:50 +0800)]
MA-10967 Add append bootargs env in uboot
Add 'append_bootargs' to hold some paramemters which need to be
appended to bootargs.
Change-Id: I80f18a421dea270cc8f555fe1b2799a5eb00aadc
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Peng Fan [Tue, 28 Nov 2017 02:08:08 +0000 (10:08 +0800)]
arm64 :show_regs: show the address before relocation
After relocation, when error happends, it is hard to track
ELR and LR with asm file objdumped from elf file.
So subtract the gd->reloc_off the reflect the compliation address.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit
082693f4f02ad7a9de192e73feae34e28856b8e3)
Peng Fan [Fri, 29 Dec 2017 06:20:15 +0000 (14:20 +0800)]
MLK-17303-2 imx: 8qm: Fix ENET1 build
Fix ENET1 build and enablement.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Peng Fan [Fri, 29 Dec 2017 07:06:14 +0000 (15:06 +0800)]
MLK-17303-1 imx: 8qxp: Fix ENET1 enablement
Fix build error.
Correct ENET1 enablement, Define CONFIG_FEC_ENET_DEV 1, to enable
ENET1 on Base board.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Fri, 29 Dec 2017 03:27:58 +0000 (21:27 -0600)]
MLK-17324 DTS: imx8qm_mek: Add USBOTG1 node
Since android needs the USB OTG port on base board to run fastboot,
add the USBOTG1 node to imx8qm mek DTS, so that the OTG can work on
reworked board.
Tested-by: Chen Guoyin <guoyin.chen@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 15 Dec 2017 07:28:06 +0000 (01:28 -0600)]
MLK-17292 mx7ulp: Set A7 core frequency to 500Mhz for B0 chip
The normal target frequency for ULP A7 core is 500Mhz, but now ROM
set the core frequency to 413Mhz. So change it to 500Mhz in u-boot.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 22 Dec 2017 06:30:29 +0000 (00:30 -0600)]
MLK-17278 imx8qxp_mek: Enable USB OTG port on base board
The USB OTG port on MEK base board is not enabled at default, due to the default
design connects it to M2 connector for BT/WIFI.
Since most boards have reworked it, we enable it to support both host and device
mode in u-boot.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Han Xu [Wed, 20 Dec 2017 18:29:38 +0000 (12:29 -0600)]
MLK-17254: imx8qxp: configs: change the NAND ENV offset to avoid overlap
There is the 8M block sized NAND chip on QXP board, the previous 64MB
u-boot environment offset overlapped with the boot image location.
Changed the offset from 64MB to 120MB to avoid the overlap.
Signed-off-by: Han Xu <han.xu@nxp.com>
Ye Li [Wed, 20 Dec 2017 10:28:32 +0000 (04:28 -0600)]
MLK-17272 imx8mq_evk: Fix build warnings with usb power
Fix build warnings below, because the imx8m_usb_power is not declared
board/freescale/imx8mq_evk/imx8m_evk.c: In function ‘board_usb_init’:
board/freescale/imx8mq_evk/imx8m_evk.c:205:2: warning: implicit
declaration of function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
imx8m_usb_power(index, true);
^~~~~~~~~~~~~~~
drivers/usb/host/xhci-imx8m.c: In function ‘xhci_hcd_init’:
drivers/usb/host/xhci-imx8m.c:123:3: warning: implicit declaration of
function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
imx8m_usb_power(ctr_data[index].usb_id, false);
^~~~~~~~~~~~~~~
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 20 Dec 2017 09:42:55 +0000 (03:42 -0600)]
MLK-17262 video: Fix build break when CONFIG_VIDEO_IMX_HDP_LOAD is not selected
Met build errors below when CONFIG_VIDEO_IMX_HDP_LOAD is not selected. Because the u-boot
make script checks the "$(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)" for built-in target.
aarch64-poky-linux-ld.bfd: cannot find drivers/video/imx/built-in.o: No such file or directory
scripts/Makefile.build:359: recipe for target 'drivers/video/built-in.o' failed
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
zhang sanshan [Wed, 20 Dec 2017 07:30:48 +0000 (15:30 +0800)]
MA-10933 [Android] android daily build failed
BSP add HDP firmware loading for video.
android daily build for the configure is not align with BSP.
align BSP uboot configure.
Change-Id: I56ce146a40eeed63e71795870d48387385903f8a
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Oliver Brown [Wed, 13 Dec 2017 23:14:58 +0000 (17:14 -0600)]
MLK-17205-3 video: imx: hdp: Adding configs for HDP firmware loading
Added default environment for hdp loading.
Added hdp loading as default for iMX8QM ARM2 and MEK boards.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Wed, 13 Dec 2017 23:12:45 +0000 (17:12 -0600)]
MLK-17205-2 video: imx: hdp: Adding HDP firmware loading to the build
Adding the HDP firmware loading to the build.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Oliver Brown [Wed, 13 Dec 2017 23:09:14 +0000 (17:09 -0600)]
MLK-17205-1 video: imx: hdp: Adding support for HDP firmware loading
This adds a command to load the HDP firmware and supporting libraries.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Haibo Chen [Tue, 19 Dec 2017 06:46:55 +0000 (14:46 +0800)]
MLK-17239 mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue
When sd/mmc work at DDR mode, like HS400/HS400ES/DDR52/DDR50 mode,
the actual clock rate is just half of the expected clock.
This patch set the DDR_EN bit first for DDR mode, hardware divide
the usdhc clock automatically, then follow the original sdr clock
setting method.
This patch also remove the unused variable 'is_ddr'.
Acked-by: Li Ye <ye.li@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Ye Li [Mon, 18 Dec 2017 09:05:41 +0000 (03:05 -0600)]
MLK-17236 imx8qm_mek: Enable base board power
Since SCFW switches off the base board at default, we need to turn on it
in u-boot, so that perpherals on base board can work.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Leonard Crestez [Wed, 29 Nov 2017 12:56:54 +0000 (14:56 +0200)]
imx8qm_arm2: Add xen boot commands
These commands try to be as generic as possible and avoid duplicating
argument values used for regular boot.
The fdt_file parameter still needs to be set to a .dtb for dom0. Booting
xen with stock dtb would require more hacks, for example lpuart
interrupt-parent = <&wu> needs to be removed.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Ye Li [Fri, 15 Dec 2017 01:56:40 +0000 (19:56 -0600)]
MLK-17210 usb: imx8m: Add PU power on/off to USB
ATF will power off all PUs at default, so for USB, we enable
its PU power for both host and device modes in board_usb_init and
disable the power when usb is stop in board_usb_cleanup.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Li Jun <jun.li@nxp.com>
Ye Li [Wed, 13 Dec 2017 06:22:09 +0000 (00:22 -0600)]
MLK-17200-3 mx7ulp: Select the SCG1 APLL PFD as a system clock source
Due to the APLL out glitch issue TKT332232, the APLLCFG PLLS bit must be set
to select SCG1 APLL PFD for generating system clock to align with the design.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 13 Dec 2017 06:20:15 +0000 (00:20 -0600)]
MLK-17200-2 mx7ulp: Remove SNVS LP settings for B0
Since i.MX7ULP B0 moves the SNVS LP into M4 domain, A core can't access
it. So check the CPU rev and not apply the settings for B0.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 13 Dec 2017 06:16:31 +0000 (00:16 -0600)]
MLK-17200-1 mx7ulp: Add CPU revision check for B0
Since there is no register for CPU revision, we use ROM version to
check the A0 or B0 chip.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Haibo Chen [Wed, 13 Dec 2017 02:56:10 +0000 (10:56 +0800)]
MLK-17189 imx8qxp: change the USDHC_CLK_ROOT source from AVPLL
Currently, the DPLL of conn ss is not stable, will cause usdhc
data CRC error. So here change USDHC_CLK_ROOT source from AVPLL
as a workaround. And config USDHC1_CLK_ROOT to 333MHz, USDHC2_CLK_ROOT
to 200MHz. This workaround do not impact SD performance, but decrease
the eMMC performance, HS400ES work clock change from 198MHz to 166MHz,
read performance drop about 10%, write performance drop about 6%.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Mon, 4 Dec 2017 09:35:13 +0000 (17:35 +0800)]
MLK-17076 mmc: fsl_esdhc: fix the wrong sd/mmc clock frequency setting
Change the pre_div to value 1, otherwise the actual sd/mmc clock
frequency is always half of the expect frequency.
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Ye Li [Tue, 12 Dec 2017 06:02:19 +0000 (00:02 -0600)]
MLK-17153-2 imx8mq_arm2: Resolve malloc memory problem for SPL NAND boot
When using SPL NAND boot, the required malloc memory is larger than SD/eMMC boot.
Since we have used out OCRAM (for ATF) and OCRAM_S, there is no enough memory could be
allocated.
The solution is moving the malloc memory pool to DDR. The malloc pool is initialized in
board_init_r, so we moved the VDD_DRAM adjustment and DDR init to board_init_f. Then the DDR
can setup before memory pool initialization. Because the i2c and PMIC driver needs to malloc
data, this change has to enable malloc_f pool by setting CONFIG_MALLOC_F_ADDR to previous
malloc address on OCRAM_S.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Tue, 12 Dec 2017 05:49:53 +0000 (23:49 -0600)]
MLK-17153-1 nand: Update SPL MXS NAND mini driver
Update the mini driver to add support for getting ecc info from ONFI and
support read image data from page unaligned NAND address.
Signed-off-by: Ye Li <ye.li@nxp.com>
Luo Ji [Thu, 7 Dec 2017 09:04:59 +0000 (17:04 +0800)]
MA-10872 Write vaild size of gpt image for i.MX8
The offset of u-boot for i.MX8 boards is 33k bytes, writing whole gpt
image (34k) will break u-boot when the board is booted with SD card.
This patch only write vaild part (first 17k bytes) of gpt into SD card
and will keep backup gpt at the last LBA.
Change-Id: Iac5d337fb11a3e3ad2a9686efbfbacf9523dae58
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Teo Hall [Mon, 11 Dec 2017 18:27:06 +0000 (12:27 -0600)]
MLK-17119 i.MX8QM DDR4 ARM2 Support
Add support for DDR4 board in u-boot.
Main changes are the SD card slot and ddr
type
Signed-off-by: Teo Hall <teo.hall@nxp.com>
Peng Fan [Mon, 11 Dec 2017 04:55:19 +0000 (12:55 +0800)]
MLK-17145 imx: mx6qpsabresd: use mx6qp.cfg for optee support
Use mx6qp.cfg for optee support.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Peng Fan [Sun, 10 Dec 2017 02:01:30 +0000 (10:01 +0800)]
MLK-17143 imx8qxp: mek: add xen env
Add xen env, "run xenboot" to boot xen.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Wed, 15 Nov 2017 06:58:18 +0000 (00:58 -0600)]
MLK-17109-4 imx8mq_arm2: Add i.MX8MQ DDR3L and DDR4 ARM2 boards support
Add board codes, configurations, DTS and DDR initialization codes for the
DDR3L and DDR4 ARM2 boards.
Supported modules
- DDR3L ARM2: Two RANK DDR3L, QSPI B, eMMC/SD, RMII ENET, UART.
- DDR4 ARM2: Two RANK DDR4, SD, NAND, RGMII ENET, UART.
NAND read/write/erase is ok in u-boot, NAND SPL boot will be tested later
when tool is ready.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Thu, 16 Nov 2017 04:58:05 +0000 (22:58 -0600)]
MLK-17109-3 mxs_nand: Add support for i.MX8M
Update the gpmi/apbh_dma/bch drivers and relevant registers for i.MX8M.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 15 Nov 2017 06:46:16 +0000 (00:46 -0600)]
MLK-17109-2 spi_flash: Add gd25q16c to flash ids table
The i.MX8MQ DDR3L ARM2 boards uses gd25q16c flash device, add its id
to spi flash ids table.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 15 Nov 2017 06:44:30 +0000 (00:44 -0600)]
MLK-17109-1 imx8m: clock: Add more frequencies support in dram pll init function
Add 400Mhz, 600Mhz and 800Mhz frequencies for dram pll init function to
support DDR3L/DDR4/LPDDR4.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 8 Dec 2017 07:53:58 +0000 (01:53 -0600)]
MLK-17131 serial: lpuart: Enable RX and TX FIFO
Enable the RX and TX FIFO in LPUART driver to avoid the input lost
during u-boot boot up.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Fri, 8 Dec 2017 06:30:37 +0000 (00:30 -0600)]
MLK-17127 DTS: imx8qm_mek: Update fec pad settings
Sync the FEC1 and FEC2 pad settings with latest kernel DTS
(commit
a67f777dfb805fa72ffe31911a18d8c0a9683f73)
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by Fugang Duan <fugang.duan@nxp.com>
Ye Li [Tue, 5 Dec 2017 07:16:08 +0000 (01:16 -0600)]
MLK-17086 bootm: Add authentication to optee image
When IMX_OPTEE is enabled for secure boot, update bootm to authenticate the optee
image and the kernel zImage before booting into optee.
Signed-off-by: Ye Li <ye.li@nxp.com>
Peng Fan [Fri, 8 Dec 2017 05:12:25 +0000 (13:12 +0800)]
MLK-17123 imx: fix mfgtool bootcmd
Fix mfgtool bootcmd error
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Fugang Duan [Thu, 7 Dec 2017 01:42:24 +0000 (09:42 +0800)]
MLK-17093 imx8qm/qxp: enable control bit for RGMII interface RX clock delay
Due to RGMII interface timing requirement for imx8qm/qxp mek and arm2
board, it needs to enable RX clock delay.
It should not depend on HW default status since kernel may clear the
bit only on imx8qm/qxp platforms, then reboot test will cause uboot
networking failed.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Bai Ping [Mon, 4 Dec 2017 04:49:13 +0000 (12:49 +0800)]
MLK-17082-02 imx: add optee support for imx6sl
Add defconfig for tee support;
Enable the TZASC support;
Add env config for tee support.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Bai Ping [Mon, 4 Dec 2017 02:50:33 +0000 (10:50 +0800)]
MLK-17082-01 imx: add optee support for imx6sll
Add different defconfig for optee;
Enable the TZASC support;
Add env config for tee support.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>