summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2018-06-13MLK-18577-7 imx8qm: mek: support uboot in vmPeng Fan
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. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit a4e932cae433b9d2e1cff6a94b12e4abcac45543)
2018-06-13MLK-18577-3 armv8: xen: add console write hypercallPeng Fan
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)
2018-06-13MLK-18505 imx8qxp: Fix sec_boot environment issueYe Li
The sec_boot environment is used for AHAB secure boot. When run command "env default -f -a", this environment is not set due to its default value is not added to CONFIG_EXTRA_ENV_SETTINGS. Then the boot flow will go to AHAB branch to load OS container. Fix the issue by adding default sec_boot value to CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 20fd426d8d1a8aa42343115f853e4d91087b7a5e)
2018-06-13MLK-18376-3 usb: gadget: OS Feature Descriptors supportLi Jun
This is a proting patch from linux kernel: 37a3a533429e ("usb: gadget: OS Feature Descriptors support"), the original commit log see below: There is a custom (non-USB IF) extension to the USB standard: http://msdn.microsoft.com/library/windows/hardware/gg463182 They grant permission to use the specification - there is "Microsoft OS Descriptor Specification License Agreement" under the link mentioned above, and its Section 2 "Grant of License", letter (b) reads: "Patent license. Microsoft hereby grants to You a nonexclusive, royalty-free, nontransferable, worldwide license under Microsoft’s patents embodied solely within the Specification and that are owned or licensable by Microsoft to make, use, import, offer to sell, sell and distribute directly or indirectly to Your Licensees Your Implementation. You may sublicense this patent license to Your Licensees under the same terms and conditions." The said extension is maintained by Microsoft for Microsoft. Yet it is fairly common for various devices to use it, and a popular proprietary operating system expects devices to provide "OS descriptors", so Linux-based USB gadgets whishing to be able to talk to a variety of operating systems should be able to provide the "OS descriptors". This patch adds optional support for gadgets whishing to expose the so called "OS Feature Descriptors", that is "Extended Compatibility ID" and "Extended Properties". Hosts which do request "OS descriptors" from gadgets do so during the enumeration phase and before the configuration is set with SET_CONFIGURATION. What is more, those hosts never ask for configurations at indices other than 0. Therefore, gadgets whishing to provide "OS descriptors" must designate one configuration to be used with this kind of hosts - this is what os_desc_config is added for in struct usb_composite_dev. There is an additional advantage to it: if a gadget provides "OS descriptors" and designates one configuration to be used with such non-USB-compliant hosts it can invoke "usb_add_config" in any order because the designated configuration will be reported to be at index 0 anyway. This patch also adds handling vendor-specific requests addressed at device or interface and related to handling "OS descriptors"." Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit 859be2fc12dbd1b99e140641f2d7fa14df29c9dd)
2018-06-13MLK-18376-2 usb: gadget: move utf8_to_utf16le to header fileLi Jun
As other users may use utf8_to_utf16le() to convert the utf8 to utf16 for usb, so move it to head file. Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit 94870cb6b587243e0a68ee9a3ec43540d76152cc)
2018-06-13MLK-18376-1 usb: gadget: OS String supportLi Jun
This is a porting patch from linux kernel: 19824d5eeece ("usb: gadget: OS String support"), original commit log see below: "There is a custom (non-USB IF) extension to the USB standard: http://msdn.microsoft.com/library/windows/hardware/gg463182 They grant permission to use the specification - there is "Microsoft OS Descriptor Specification License Agreement" under the link mentioned above, and its Section 2 "Grant of License", letter (b) reads: "Patent license. Microsoft hereby grants to You a nonexclusive, royalty-free, nontransferable, worldwide license under Microsoft’s patents embodied solely within the Specification and that are owned or licensable by Microsoft to make, use, import, offer to sell, sell and distribute directly or indirectly to Your Licensees Your Implementation. You may sublicense this patent license to Your Licensees under the same terms and conditions." The said extension is maintained by Microsoft for Microsoft. Yet it is fairly common for various devices to use it, and a popular proprietary operating system expects devices to provide "OS descriptors", so Linux-based USB gadgets whishing to be able to talk to a variety of operating systems should be able to provide the "OS descriptors". This patch adds optional support for gadgets whishing to expose the so called "OS String" under index 0xEE of language 0. The contents of the string is generated based on the qw_sign array and b_vendor_code. Interested gadgets need to set the cdev->use_os_string flag, fill cdev->qw_sign with appropriate values and fill cdev->b_vendor_code with a value of their choice. This patch does not however implement responding to any vendor-specific USB requests." Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit b6ea0aaee307be0defaf8dc2c1eae9110bdae9a7)
2018-06-13MLK-18377 imx8mm_evk: Enable WDOG_B for SPL and u-boot resetYe Li
Current u-boot reset is internal wdog reset. Change it to enable WDOG_B to reset PMIC. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Robin Gong <yibin.gong@nxp.com> (cherry picked from commit 6f60ce5c65f71653494b5a1376c5e2a871e55ebf)
2018-06-13MLK-18340 initrd_addr define at multi placeFrank Li
Remove redundant one Signed-off-by: Frank Li <Frank.Li@nxp.com> (cherry picked from commit 9f522a0af06bc0f56a548ff034d8675db4d4f44c)
2018-06-13MLK-18257-3 run fastboot if initramfs is in validateFrank Li
auto run fastboot accept command from uuu. it compatible old mfgtools method. old mfgtool will download initramfs before boot. Signed-off-by: Frank Li <Frank.Li@nxp.com> (cherry picked from commit 219c989e7d172b3dcc0ae04582419fdd23f87de1)
2018-06-13MLK-18257-1 Enable fastboot support in qxp mek boardFrank Li
Signed-off-by: Frank Li <Frank.Li@nxp.com> (cherry picked from commit 719651a4424d962933377bf12733561a188f3ae9)
2018-06-13MLK-18591-14 android: iot: Add imx8m-phanbell supportYe Li
Porting the imx8m-phanbell android things board support from v2017.03 Signed-off-by: Haoran.Wang <elven.wang@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-13 android: iot: Add board support imx6ul spriot boardYe Li
Porting the board support for imx6ul spriot board from v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-12 android: iot: Add board support imx6ul nxpu boardYe Li
Porting the board support for imx6ul nxpu iopb board from v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-11 android: iot: Add board support imx7d multaYe Li
Add imx7d multa board support for android things Signed-off-by: fang hui <hui.fang@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-10 android: iot: Update imx7d pico board supportYe Li
Update imx7d pico board support for android things and trusty OS, porting from v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-9 android: iot: Add board support for imx6ul pico-somYe Li
Add board support for imx6ul pico-som, porting from v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-8 android: iot: Add board support for imx6dl pico piYe Li
Add board support for imx6dl pico pi, porting from v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-8 android: Add imx8/imx8m reference boards supportYe Li
Add board level support for android and android auto. Each board has android/andriod_auto specified header file for defining relevant configuraitons. And add build targets for their android uboot images building. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-7 android: Add mx6/7 reference board support to enable android ↵Ye Li
fastboot Add board level support for android fastboot feature. Each board has a android specified header file for defining android related configuraitons. And add build targets for their android uboot images building. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-6 android: iot: Add boot Trusty OS codes for imx6 and imx7Ye Li
Use trusty_os_init to load Trusty OS from CONFIG_TRUSTY_OS_ENTRY before u-boot ready. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-06-13MLK-18591-5 android: iot: Export eMMC RPMB interface for Secure Storage proxyHaoran.Wang
Secure Storage service in Trusty OS will compute the encrypted mmc frame and the rpmb proxy inject the frame to driver directly. So that need to export RPMB related interface for Secure Storage proxy use. Change-Id: I7f69831a20a440f597d323b610fa615fd4344d05 Signed-off-by: Haoran.Wang <elven.wang@nxp.com> (cherry picked from commit 4d2c1873ce8221e35874265e41dc42a6df169659)
2018-06-13MLK-18591-4 android: iot: Import ql-tipc lib for Trusty OSHaoran.Wang
The lib provided ql-tipc communication channel with Trusty OS. Also the AVB, Keymaster and SecureStorage service tipc client implement in this lib. Change-Id: I0ab1ec9ee1b6f272b960c2e944008283c2c9249a Signed-off-by: Haoran.Wang <elven.wang@nxp.com> (cherry picked from commit 8fb370dd80fbb293b58115d2e7fc4970813773c7)
2018-06-13MLK-18591-3 android: Add FSL android fastboot supportYe Li
Porting the FSL android fastboot features from imx u-boot v2017.03 to support all SoCs: imx6/imx7/imx7ulp/imx8/imx8m Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-2 crypto: caam: Add fsl caam driverYe Li
Add the fsl CAAM driver and new commands to implement DEK blob operations, like "caam genblob" to generate encrypted blob and "caam decap" to output orignal plain data. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MLK-18591-1 android: Add the AVB libraryYe Li
Porting the android AVB lib from imx u-boot v2017.03 Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13MA-10052 [iot] Extensions of AXP152 to support stream812fang hui
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> (cherry picked from commit 6f51148d75869415bb4e9920572e8fffb1eb0099)
2018-06-01MLK-18476-2 mx6qdl_arm2: Add MX6Q and DL ARM2 supportYe Li
Porting the iMX6Q DDR3/LPDDR2 ARM2, iMX6DL DDR3/LPDDR2 ARM2 and iMX6Q POP LPDDR2 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18461-2 mx7ulp_arm2: Add 10x10 and 14x14 ARM2 supportYe Li
Porting the iMX7ULP 10x10 ARM2 and 14x14 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18460-5 mx7d_19x19_arm2: Add LPDDR3, LPDDR2 and DDR3 ARM2 supportYe Li
Porting the iMX7D 19x19 LPDDR2, LPDDR3 and DDR3 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18460-2 mx7d_12x12_arm2: Add LPDDR3 and DDR3 ARM2 supportYe Li
Porting the iMX7D 12x12 LPDDR3 and DDR3 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18459-2 mx6sll_arm2: Add LPDDR2/LPDDR3 ARM2 supportYe Li
Porting the iMX6SLL LPDDR2/LPPDR3 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18458-2 mx6ull_arm2: Add 14x14 DDR3 ARM2 supportYe Li
Porting the iMX6ULL 14x14 DDR3 ARM2 board codes from v2017.03. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18457-2 mx6ul_arm2: Add 14x14 DDR3/LPDDR2 ARM2 supportYe Li
Porting the iMX6UL 14x14 ARM2 board codes from v2017.03, support DDR3 board and LPDDR2 board. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18456-7 mx6sx_arm2: Add 19x19 ARM2 supportYe Li
Porting the 19x19 ARM2 board codes from v2017.03, support DDR3 board and LPDDR2 board. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-31MLK-18456-3 mx6sx_arm2: Add 17x17 ARM2 and 14x14 ARM2 supportYe Li
Porting the 17x17 ARM2 and 14x14 ARM2 board codes from v2017.03. The 14x14 ARM2 shares similar board design with 17x17 ARM2, but uses LPDDR2 memory. So share the codes for them. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-23MLK-18344: add OP-TEE support for i.Mx 8MMSilvano di Ninno
like for i.MX 8mq ATF passes as argument to u-boot the start and the length of the BL32 firmware. u-boot uses this information to adjust the size of the DDR for linux. Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit e9ec5ea8dbe3d12b40ba22fe36400cfe98e1bd44)
2018-05-23MLK-18333-3 imx8mm: add qspi boot supportPeng Fan
Introduce spl_qspi.cfg for booting from qspi. Add new defconfig files. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit f6ccfcc1eefc45b75f07d8285e9af3d153eb3510)
2018-05-23MLK-18325 imx8mm_evk: add pmic BD71837/BD71840 support in splRobin Gong
Since default values of some registers of pmic not match well our board design, add BD71837/BD71840 pmic support in spl, for example, RESET key (PWRON_B) pushing time, VDD_DRAM too low for 3Ghz DDR. Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-05-23MLK-18322 imx8mm: Add hab suportYe Li
The imx8mm has changed the address of rvt_hab, use new address for imx8mm. Also enable fuse driver in SPL and update registers maps. The authentication procedure is same as imx8mq. In u-boot, the authentication uses SIP call to trap ATF to run HAB authenticate. Need to work with ATF commit: (commit 7a4d6f90e999ed413d520310cc199901b52b7a04) Users need to add CONFIG_SECURE_BOOT=y to imx8mm_evk_defconfig to enable the feature. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 1118c9960c22c80a452181c6857fd1df86fe05ae)
2018-05-23MLK-17997: video: imx: hdp: Add HDMI RX firmware loadingSandor Yu
Add iMX8QM HDMI RX firmware loading. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> (cherry picked from commit 969d93660e1b34765627ff9f6f8dcab08dcd1250)
2018-05-23MLK-18310: change the i.MX8QXPB0 dtb load address for mfgtoolHan Xu
i.MX8QXPB0 mfgtool ramfs may exceed the memory layout boundary with new layout, change the dtb load address from 0x83800000 to 0x83100000 to only reserve 1MB for dtb, which should be enough and leave 15MB for ramfs. Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit 1a7cd5fb2f0f3b853d60fbd52e03cec0f061d329)
2018-05-23MLK-18290-5 imx8mm_evk: Add board codes for USBYe Li
Enable the USB host and device support, add relvent board level codes and settings. For device mode, the gadget is fixed on USB device 0. Can't support gadget on USB device 1. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 62dab68436bb0a7cc53b506dad9168b9f10d0b3d)
2018-05-23MLK-18290-4 usb: ci_udc: Add function to remove usb deviceYe Li
When unregister gadget driver in ci_udc, the usb device is not removed or stop. This causes next "usb start" fails to work. Add a new interface "usb_remove_ehci_gadget" in usb-uclass to remove the usb device for DM driver. Using "usb_lowlevel_stop" for non-DM driver. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit c73d137e0a4a613a49f6f63ec63332508afb88c0)
2018-05-23MLK-18243-18: arm: imx: add i.MX8MM EVK board supportYe Li
Add i.MX8MM EVK board support LPDDR4 code is still keep in old coding style to ease updating if there is no code released. dts is synced from kernel with sd2 regulator start up delay and off on delay added. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 01b3f229b188e28b0887c0b32f66e939a50d3a69) Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-23MLK-18243-16 arm: dts: add imx8mm dtsiPeng Fan
Sync dts from Linux kernel commit 3091745d6acfdad21("MLK-18210 ARM64: dts: imx8qm: correct the pds of pcie"). Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 0e7a5484878338d0dff871b6d21092a0479f07b4)
2018-05-23MLK-18387 pmic: Add pmic driver for BD71837Ye Li
The iMX8MM EVK board uses BD71837MWV pmic. Add its driver to u-boot. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-05-23MLK-18227 imx8qm/qxp: Enlarge the size for environment variablesYe Li
Current size of used environments variables is closed to 4KB size. We need to enlarge the size, otherwise the saveenv may fail like "Env export buffer too small" Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 850d6d05a7c496e56a372e72b5f2bc69f72e0c23)
2018-05-23MLK-18044-5: crypto: caam: Add secure memory vid 3 supportAymen Sghaier
In i.MX8M platforms the secure memory block has a newer version than those used in i.MX6/7 platforms, this patch update the driver to use the correct registers offsets. Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> (cherry picked from commit 0daa9c142a1809b473d101f6db9700574ce3d522)
2018-05-23MLK-18044-2: crypto: caam: Fix build warnings pointer castingAymen Sghaier
Enabling CAAM driver for i.MX8M platforms, a 64 bits architecture, lead to casting warnings: from/to pointer to/from integer with different size. This patch fix these warnings Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> (cherry picked from commit d02fbc7d2957f4788ced017ccf17fd35ab968121)
2018-05-23MLK-18044-1: crypto: caam: Add CAAM support to i.MX8M platformsAymen Sghaier
This patch enable CAAM support for i.MX8M platforms. Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> (cherry picked from commit 1fc92e6e34b06bdee81240ce06326aca1d9c02d8)