- 19 Mar, 2018 4 commits
-
-
Ye Li authored
The u-boot does not support to use two different gadget drivers at same time. So for all iMX8QM/QXP MEK and ARM2 defconfigs, enable the CDNS3 usb gadget to support device mode on typec port and disable CI UDC driver for OTG port. Signed-off-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
Ye Li authored
All iMX8QM/iMX8QXP MEK ARM2 boards have typec port for CDNS3 USB. This patch addes board level codes to init and clean up CDNS3 USB gadget driver. Signed-off-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
Ye Li authored
Implemented the clock enable and disable interfaces for CDNS3 USB driver. Signed-off-by:
Ye Li <ye.li@nxp.com> Acked-by:
Peter Chen <peter.chen@nxp.com>
-
Ye Li authored
Porting the cadence USB3 (CDNS3) driver from kernel to u-boot. We only support the gadget (device mode), while the host mode is not supported. Users remains to use xhci-imx8 driver for host mode. Some changes in the CDNS3 driver porting: 1. Add match_ep call back to usb_gadget_ops. The CDNS3 gadget driver replies on this operation to bind the usb_ep/usb_ss_ep with the endpoint descriptor when function layer uses usb_ep_autoconfig to add endpoint descriptors to gadget. So that CDNS3 driver can know the EP information and configure the EP once the set configuration request is received. 2. U-boot does not have CMA, so it won't allocate uncached memory. Need to flush TRB and its DMA buffer before prime to usb controller and after complete transfer. 3. In core.c, we add functions to hook with u-boot. It needs uplayer like to pass the register base address of each part of the USB controller. 4. Force the CDNS3 gadget max speed to HS. The SuperSpeed is not supported by u-boot, so disable it in gadget driver. A configuration USB_CDNS3_GADGET_FORCE_HIGHSPEED is selected. 5. Added gadget_is_cdns3 checking to provide bcdUSB value in device descriptor. 6. Moved some new fields in usb_ep structure to usb_ss_ep, since u-boot does not have them. 7. Remove host part codes as it is not supported by this driver. Signed-off-by:
Ye Li <ye.li@nxp.com> Acked-by:
Peter Chen <peter.chen@nxp.com>
-
- 14 Mar, 2018 2 commits
-
-
Peng Fan authored
Add XEN boot script to ease booting. Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
To those who use power domains that take SC_R_LAST as resource id, need to check that in case those are error. Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
- 13 Mar, 2018 2 commits
-
-
yang.tian authored
bring up android for 7ulp in u-boot v2017 by adding android configs. Change-Id: I97bb54bc301ea6234ff1c627395a9c51fd08a68d Signed-off-by: Tian Yang<yang.tian@nxp.com>
-
Ye Li authored
On i.MX7ULP B0, the DDR clock target is increased from 320Mhz to 380Mhz. We update DDR clock relevant settings to approach the target. But since the limitation on LCDIF pix clock for HDMI output (refer commit dba94853), we set DDR clock to 352.8Mhz (25.2Mhz * 14) by using the clock path: APLL PFD0 -> DDR CLK -> NIC0 -> NIC1 -> LCDIF clock To reduce the impact to entire system, the NIC0_DIV and NIC1_DIV are kept, so the divider 14 is calculated as: 14 = (NIC0_DIV + 1) * (NIC1_DIV + 1) * (LCDIF_PCC_DIV + 1) NIC0_DIV: 1 NIC1_DIV: 0 LCDIF_PCC_DIV: 6 APLL and APLL PFD0 settings: PFD0 FRAC: 27 APLL MULT: 22 APLL NUM: 1 APLL DENOM: 20 This patch applies the new settings for both DCD and plugin. There is no DDR script change on this new frequency. Overnight memtester is passed. Signed-off-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
- 07 Mar, 2018 1 commit
-
-
Anson Huang authored
SCFW commit (0d43db9 SCF-22: Move SCU controls to SYSTEM. Allows AP to use SCU temp sensor) changes system resource name from SC_R_SC_PID0 to SC_R_SYSTEM, need to change it accordingly to avoid system incorrect system type got from SCFW and cause linux kernel booting fail as below: Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.51-04508-g9caddc6 (anson@anson-OptiPlex-790) (gcc version 4.9.1 20140529 (prerelease) (c8 [ 0.000000] Boot CPU: AArch64 Processor [410fd034] [ 0.000000] earlycon: lpuart32 at MMIO 0x000000005a060000 (options '115200,115200') [ 0.000000] bootconsole [lpuart32] enabled [ 0.000000] Bad mode in Error handler detected on CPU0, code 0xbf000002 -- SError [ 0.000000] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.51-04508-g9caddc6 #40 [ 0.000000] Hardware name: Freescale i.MX8QM MEK (DT) [ 0.000000] task: ffff000009270780 task.stack: ffff000009260000 [ 0.000000] PC is at setup_arch+0xf4/0x578 [ 0.000000] LR is at setup_arch+0xf0/0x578 [ 0.000000] pc : [<ffff00000915281c>] lr : [<ffff000009152818>] pstate: 000000c5 [ 0.000000] sp : ffff000009263f20 [ 0.000000] x29: ffff000009263f20 x28: 0000000081350018 [ 0.000000] x27: 00000000ffe93f58 x26: 0000000000000000 [ 0.000000] x25: 00000000ffefe110 x24: 0000000000000000 [ 0.000000] x23: 0000000000000000 x22: ffff000009267000 [ 0.000000] x21: ffff7dfffe800000 x20: ffff000009284000 [ 0.000000] x19: ffff000008080000 x18: 0000000000000077 [ 0.000000] x17: 0000000000002c00 x16: 0000000000001000 [ 0.000000] x15: ffffffffffffffff x14: 0000000000000000 [ 0.000000] x13: 0000000000000007 x12: 0000000000000018 [ 0.000000] x11: 0000000000000007 x10: 0101010101010101 [ 0.000000] x9 : ffffffffffffffff x8 : 0000000000000008 [ 0.000000] x7 : 0000000000000007 x6 : 0000008080808080 [ 0.000000] x5 : 000000000000005f x4 : 0000000000000072 [ 0.000000] x3 : 0000000000000000 x2 : 0000000000000072 [ 0.000000] x1 : 0000000000000000 x0 : 0000000000000001 Signed-off-by:
Anson Huang <Anson.Huang@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com>
-
- 02 Mar, 2018 6 commits
-
-
Han Xu authored
support to read the flag status in driver to avoid the spi-nor framework wait_for_ready hang issue. Signed-off-by:
Han Xu <han.xu@nxp.com>
-
Silvano di Ninno authored
Fixes: 7101be55 (MLK-17608: u-boot: config: update dtb filename when OP-TEE is used) fix regression with mx6sl, mx6sll, mx6sxsabreauto, mx6sxsabresd fix missing "fi;\0" strings in the u-boot environment variable that lead to findfdt command not being taken into account Signed-off-by:
Silvano di Ninno <silvano.dininno@nxp.com> Acked-by:
Peng Fan <peng.fan@nxp.com>
-
Silvano di Ninno authored
-
Luo Ji authored
Enable CONFIG_LZ4 for imx8 to support decompression of compressed lz4 kernel image. Change-Id: Ifb934313dd0e3c4023a2738b0bc4aba4abe77282 Signed-off-by:
Luo Ji <ji.luo@nxp.com>
-
Luo Ji authored
Use compressed kernel image instead of 'Image' for imx8 can reduce the size of boot image which will save time in AVB to load & verify. Lz4 compression algorithm has a very fast decompression speed so we use lz4 compressed Image.lz4 to reduce the decompression time. Change-Id: Id28d6c5bb1754849f15df65c40ea53551c52037f Signed-off-by:
Luo Ji <ji.luo@nxp.com>
-
Luo Ji authored
Loading boot image to fixed address in AVB has very limited effect on the boot time, we must recover default behavior in avb_slot_verify.c if we want to use compressed kernel image to save boot time. Change-Id: I35d8f09298a11197c9db4c47d41ab5f54ff2890c Signed-off-by:
Luo Ji <ji.luo@nxp.com>
-
- 28 Feb, 2018 1 commit
-
-
Ye Li authored
Checks whether the HDMI FW is running before initialize the HDMI display. So that for cases like mfgtool and imx-boot image without HDMI FW, the u-boot won't be blocked. Signed-off-by:
Ye Li <ye.li@nxp.com>
-
- 27 Feb, 2018 1 commit
-
-
Silvano di Ninno authored
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>
-
- 24 Feb, 2018 6 commits
-
-
Ye Li authored
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 authored
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 authored
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 authored
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 authored
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 34cc30af)
-
Bradley Bolen authored
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 9c3264ce)
-
- 23 Feb, 2018 5 commits
-
-
zhang sanshan authored
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 authored
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 authored
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 authored
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 authored
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>
-
- 15 Feb, 2018 1 commit
-
-
Denis Pynkin authored
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: 704f3acf ("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>
-
- 13 Feb, 2018 9 commits
-
-
Bai Ping authored
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 authored
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 authored
Adding support for i.MX8M HDMI splash screen Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding i.MX8 HDMI support to build configuration. Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding basic display support for splash screen. Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding Display support for splash screen. Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding basic HDMI support for i.MX8 for splash screen. Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding header file for i.MX8 HDMI support Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
Oliver Brown authored
Adding HDMI support for splash screen. Signed-off-by:
Oliver Brown <oliver.brown@nxp.com>
-
- 12 Feb, 2018 1 commit
-
-
Ranjani Vaidyanathan authored
" 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>
-
- 11 Feb, 2018 1 commit
-
-
Ye Li authored
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>
-