Luo Ji [Fri, 9 Mar 2018 10:52:05 +0000 (18:52 +0800)]
MA-11519 [Android Auto] Refine configs for Android Auto
Remove some non-required configs for Android Auto, this
will decrease the size of u-boot and thus save the boot
time.
Test: boot successfully for both imx8qm and imx8qxp.
Change-Id: I0735845e2e298b2519e601dfabccc045675583ff
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Fri, 9 Mar 2018 04:49:47 +0000 (12:49 +0800)]
MA-11446 [Android Auto] Init config files for Android Auto
Create Android Auto config files for imx8qxp/imx8qm, init
version is copied from normal Android configs for
imx8qxp/imx8qm.
Change-Id: Id187efad711a133e6de3c7bcda8d2bdb9e6a97a6
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Wed, 21 Mar 2018 07:46:26 +0000 (15:46 +0800)]
MA-11601 [Android] Use default usb controller in fastboot for imx8qm/imx8qxp
Set default usb controller index to 1 so "fastboot <any-string>" will
be equal to "fastboot 1", this is to sync the way we get used to to
enter the fastboot mode.
Change-Id: If8e402eed8dae98def57f032c44af55c6382ce56
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Ye Li [Mon, 19 Mar 2018 09:05:39 +0000 (02:05 -0700)]
MLK-17928 android: Enable fastboot on typec port of QM/QXP boards
Since we have added the gadget driver for cadence USB3 on typec port.
Enable this CDNS3 gadget driver for fastboot and disable ci-udc
User can run command below for fastboot:
fastboot 1
Signed-off-by: Ye Li <ye.li@nxp.com>
Peng Fan [Tue, 27 Mar 2018 05:02:51 +0000 (13:02 +0800)]
MLK-17922 imx8qm: hdp load only when the firmware is ready
There is no need to run hdp load when there is no hdmi firmware in
ddr.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Haibo Chen [Wed, 14 Mar 2018 09:15:23 +0000 (17:15 +0800)]
MLK-17586-3 i.MX7ULP: change USDHC clock rate
Change USDHC0 and USDHC1 per clock source from APLL_PFD1,
and set the APll_PFD1 clock rate to 352.8MHz.
Also gate off APll_PFD1/2/3 before boot OS, otherwise set
the clock rate of APll_PFD1/2/3 during OS boot up will triger
some warning message.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Breno Lima [Tue, 20 Mar 2018 13:34:20 +0000 (10:34 -0300)]
MLK-17898: mx6sl: Select MX6SL option via Kconfig
Currently it's not possible to build i.MX6SL EVK with CONFIG_SECURE_BOOT
enabled:
In file included from drivers/crypto/fsl/jobdesc.c:12:0:
drivers/crypto/fsl/jobdesc.c: In function ‘inline_cnstr_jobdesc_blob_dek’:
include/fsl_sec.h:268:25: error: ‘CAAM_ARB_BASE_ADDR’ undeclared (first
use in this function)
#define SEC_MEM_PAGE1 (CAAM_ARB_BASE_ADDR + 0x1000)
^
drivers/crypto/fsl/jobdesc.c:140:21: note: in expansion of macro
‘SEC_MEM_PAGE1’
memcpy((uint32_t *)SEC_MEM_PAGE1, (uint32_t *)plain_txt, in_sz);
^
include/fsl_sec.h:268:25: note: each undeclared identifier is reported only
once for each function it appears in
#define SEC_MEM_PAGE1 (CAAM_ARB_BASE_ADDR + 0x1000)
^
drivers/crypto/fsl/jobdesc.c:140:21: note: in expansion of macro
‘SEC_MEM_PAGE1’
memcpy((uint32_t *)SEC_MEM_PAGE1, (uint32_t *)plain_txt, in_sz);
^
scripts/Makefile.build:280: recipe for target 'drivers/crypto/fsl/jobdesc.o'
failed
Currently the MX6SL option is selected via CONFIG_SYS_EXTRA_OPTIONS, so
CONFIG_FSL_CAAM is being wrongly selected by the imx-common Kconfig.
Select CONFIG_MX6SL via Kconfig to address this issue.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Breno Lima [Tue, 20 Mar 2018 13:09:47 +0000 (10:09 -0300)]
MLK-17897: mx7ulp: Move CONFIG_SECURE_BOOT option to Kconfig
Since commit
6e1f4d2652e79 ("arm: imx-common: add SECURE_BOOT option
to Kconfig") it's preferable to select CONFIG_SECURE_BOOT via Kconfig.
Add ARCH_MX7ULP as a CONFIG_SECURE_BOOT dependency, do not select
CONFIG_FSL_CAAM since CAAM is not implemented for i.MX7ULP yet.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Peng Fan [Wed, 21 Mar 2018 17:54:40 +0000 (14:54 -0300)]
MLK-17896: imx: imx7ulp: Update i.MX7ULP SoC and CPU ID
Currently is not possible to call HAB API on i.MX7ULP:
=> hab_status
Secure boot disabled
System is hanging here.
The function is_mx8m() is returning true for i.MX7ULP, thus calling
HAB API with a wrong HAB RVT address.
Align SoC ID and CPU ID with U-Boot upstream to address this issue:
http://git.denx.de/?p=u-boot.git;a=commit;h=
4fdffb98568651f6581bccb53f5277cb0d2dcdc5
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Peng Fan [Tue, 20 Mar 2018 03:17:53 +0000 (11:17 +0800)]
MLK-17842 imx8: introduce partition cmd
Add partition API cmd support.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Ye Li [Mon, 19 Mar 2018 05:37:14 +0000 (22:37 -0700)]
MLK-17821-4 imx8qm/qxp: Enable CDNS3 USB gadget driver for MEK and ARM2
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 [Mon, 19 Mar 2018 05:34:31 +0000 (22:34 -0700)]
MLK-17821-3 imx8qxp/qm: Add board codes to adapt CDNS3 USB gadget driver
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 [Thu, 15 Mar 2018 07:00:49 +0000 (00:00 -0700)]
MLK-17821-2 imx8: clock: Add cdns3 clock enable and disable
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 [Fri, 16 Mar 2018 07:03:40 +0000 (00:03 -0700)]
MLK-17821-1 USB: gadget: Add the cadence USB3 gadget driver
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>
Peng Fan [Tue, 13 Mar 2018 01:46:39 +0000 (09:46 +0800)]
MLK-17786: imx8qm: add xen boot script
Add XEN boot script to ease booting.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Peng Fan [Tue, 13 Mar 2018 01:40:37 +0000 (09:40 +0800)]
MLK-17781 arm: imx8: check SC_R_LAST when power off domains
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>
yang.tian [Tue, 13 Mar 2018 18:51:10 +0000 (02:51 +0800)]
MA-11530 [Android] imx7ulp-evk: bring up android in u-boot v2017
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 [Tue, 6 Mar 2018 08:19:13 +0000 (00:19 -0800)]
MLK-17785 mx7ulp_evk: Update DDR freq to 352.8Mhz for ULP B0
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
dba948539edd4611610d9f1fc3711d1d922262ae), 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>
Anson Huang [Wed, 7 Mar 2018 03:37:51 +0000 (11:37 +0800)]
MLK-17696 imx8qm/qxp: change system resource name according to SCFW change
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>
Han Xu [Thu, 14 Dec 2017 22:33:51 +0000 (16:33 -0600)]
MLK-17656: mtd: qspi: support read the flag status in fspi driver
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 [Wed, 28 Feb 2018 15:08:03 +0000 (16:08 +0100)]
MLK-17608: u-boot: fix findfdt environment variable
Fixes:
7101be554d2 (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 [Wed, 28 Feb 2018 13:12:04 +0000 (14:12 +0100)]
work around for broken 6sx
Luo Ji [Thu, 1 Mar 2018 05:43:02 +0000 (13:43 +0800)]
MA-11393 [Android] Enable lz4 compression config for imx8
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 [Thu, 1 Mar 2018 05:40:56 +0000 (13:40 +0800)]
MA-11385 [Android] Use compressed kernel for imx8
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 [Wed, 28 Feb 2018 06:35:31 +0000 (14:35 +0800)]
MA-11391 [Android] Don't load boot image to fixed address in AVB
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>
Ye Li [Wed, 28 Feb 2018 13:23:49 +0000 (05:23 -0800)]
MLK-17638 video: imx8m_hdmi: Checks HDMI FW before enabling video output
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>
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>