Josep Orga [Thu, 12 Dec 2019 16:18:06 +0000 (17:18 +0100)]
Added somdevices dtb and WiFi GPIOs(WiFi RESET pin 135 WiFi CHIP_EN pin 134).
TODO: Change to make it more clean.
Signed-off-by: Josep Orga <jorga@somdevices.com>
guoyin.chen [Sun, 22 Apr 2018 10:41:20 +0000 (18:41 +0800)]
MA-11789 Flash system.img failed due to erasing timeout
Flash system partition with fastboot will earse the partition firstly
The 1.2s timeout will fail on some SD Card.
Enlarge it to 5s to make it works for most of sdcard
Change-Id: I285df411c7a07025251fd19f4c8e8b549bee2421
Signed-off-by: guoyin.chen <guoyin.chen@nxp.com>
Clement Faure [Mon, 16 Apr 2018 09:22:05 +0000 (11:22 +0200)]
MLK-18036 Remove loading of *optee.dts files
Dedicated *optee.dts device trees no longer exist.
The dtb loaded is the same whether or not optee is enabled.
Signed-off-by: Clement Faure <clement.faure@nxp.com>
(cherry picked from commit
cfeba2d9d508bbfd776ab264bc00eb310f45846f)
Luo Ji [Wed, 11 Apr 2018 13:23:10 +0000 (21:23 +0800)]
MA-11715 [Android] Correct macro name in precompiled condition
Correct macro name from 'ANDROID_AB_SUPPORT' to 'CONFIG_ANDROID_AB_SUPPORT'
or some target(e.g. imx7d_pico) will build fail.
Change-Id: I08082b4757175dac0455cc62c31834dffc5c7401
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Tue, 10 Apr 2018 04:55:09 +0000 (12:55 +0800)]
MA-11705 [Android] Correct the parameters for 'sf' command
Pass the parameters of 'sf' command in bytes instead of in
block size.
Change-Id: I7fa5bad97a0b61b35c7ba46770d3b56df3f6a41e
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Wed, 4 Apr 2018 04:03:24 +0000 (12:03 +0800)]
MA-11693-2 [Android]Support m4 image flash for imx7ulp and im8mq
Open configs to enable support m4 image flash for imx7ulp and im8mq.
Change-Id: I953e11ba5fe392f23d5477bf941b9b3a8530e368
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Wed, 4 Apr 2018 03:04:06 +0000 (11:04 +0800)]
MA-11693-1 [Android]Support m4 image flash for imx7ulp and im8mq
Support m4 image flash by fastboot: 'fastboot flash m4_os <path-to-image>'.
For 7ulp, m4 image will be excuted on POR and it doesn't depand on A
core, so the m4 image will be flashed to nor flash using 'sf' command.
For imx8m, m4 image will be loaded and excuted by A core. The m4 image
will be flashed to physical 'm4_os' partition and can be excuted by
'bootmcu' command.
Change-Id: I43bf0c9a484c5633cfe32dde3d738e33afdc775b
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Thu, 29 Mar 2018 08:32:04 +0000 (16:32 +0800)]
MA-11641 [Android]Get bootmode from argv[] in do_boota
Don't set the recovery mode to is_recovery_mode in
fastboot_run_bootmode(). The boota command is like
"boota <partition>" if we enable AVB, so we can get
the boot mode from argv[].
Change-Id: I6ff46f9bdc9b7b766698b508f73005a956766767
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Fri, 30 Mar 2018 02:34:42 +0000 (10:34 +0800)]
MA-11626-4 [Android] Enable AVB only for legacy i.mx6/7
Open configs to enable AVB only for legacy i.mx6/7.
Change-Id: I54d6b96e8b10250d3370cc8323ee16e1c0edc051
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Luo Ji [Fri, 30 Mar 2018 02:28:32 +0000 (10:28 +0800)]
MA-11626-1 [Android] Enable AVB only for legacy i.mx6/7
Enable AVB verify of boot/recovery for legacy(imx6/7)
on normal Android. A/B slot is not enabled on legacy
due to the limitation of storage capacity.
Change-Id: I7f636df6c82172d8a8d8588d45b385f32332a9cc
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Utkarsh Gupta [Tue, 3 Apr 2018 00:41:16 +0000 (19:41 -0500)]
MLK-17935: imx: HAB: Validate IVT before authenticating image
Calling csf_is_valid() with an un-signed image may lead to data abort
as the CSF pointer could be pointing to a garbage address when accessed
in HAB_HDR_LEN(*(const struct hab_hdr *)(ulong)ivt_initial->csf).
Authenticate image from DDR location 0x80800000...
Check CSF for Write Data command before authenticating image
data abort
pc : [<
fff5494c>] lr : [<
fff54910>]
reloc pc : [<
8780294c>] lr : [<
87802910>]
sp :
fdf45dc8 ip :
00000214 fp :
00000000
r10:
fffb6170 r9 :
fdf4fec0 r8 :
00722020
r7 :
80f20000 r6 :
80800000 r5 :
80800000 r4 :
00720000
r3 :
17a5aca3 r2 :
00000000 r1 :
80f2201f r0 :
00000019
Flags: NzcV IRQs off FIQs off Mode SVC_32
Resetting CPU ...
resetting ...
To avoid such errors during authentication process, validate IVT structure
by calling validate_ivt function which checks the following values in an IVT:
IVT_HEADER = 0x4X2000D1
ENTRY != 0x0
RES1 = 0x0
DCD = 0x0 /* Recommended */
SELF != 0x0 /* Absoulute address of IVT */
CSF != 0x0
RES2 = 0x0
This commit also checks if Image's start address is 4 byte aligned.
commit "
0088d127 MLK-14945 HAB: Check if IVT valid before authenticating image"
removed as this patch addresses the issue.
Signed-off-by: Utkarsh Gupta <utkarsh.gupta@nxp.com>
(cherry picked from commit
dabffd1b04df3b0393ef6a9a35b5fd816edd8c63)
Breno Lima [Fri, 23 Mar 2018 20:25:15 +0000 (17:25 -0300)]
MLK-17919: imx-common: Avoid hardcoded Job Ring Max size
Prior instantiating RNG we have to ensure if the CAAM job rings are
available. Avoid hardcoded job ring max size and use the definition at
fsl_sec.h
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
b81379d3d2228760cc061a56c3c610b4e9fa9783)
Breno Lima [Fri, 23 Mar 2018 20:21:38 +0000 (17:21 -0300)]
MLK-17918: imx-common: Ensure CAAM clock is enabled prior getting out_jr_size
Prior calling sec_in32() we have to ensure CAAM clock is enabled, the
function sec_in32() is reading CAAM registers and if CAAM clock is disabled
the system will hang.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
c4da7540e7548f36c6ad90292db7057b828a7956)
Breno Lima [Fri, 23 Mar 2018 20:17:04 +0000 (17:17 -0300)]
MLK-17917: imx-common: Avoid hardcoded output ring size register offset (ORSR)
The CAAM output ring size register offset is currently defined in fsl_sec.h
as FSL_CAAM_ORSR_JRa_OFFSET, use this definition to avoid hardcoded value in
i.MX common code.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9d381708210270a1cf9bf25924c8932c436967e8)
Breno Lima [Fri, 23 Mar 2018 01:33:59 +0000 (22:33 -0300)]
MLK-17916: cmd: dek_blob: Convert CONFIG_CMD_DEKBLOB to Kconfig
Currently the dek_blob command is enabled by default if
CONFIG_SECURE_BOOT is defined. Move CONFIG_CMD_DEKBLOB
enablement to Kconfig so users can select if required
by their application.
This commit is based in a previous submission from Simon Glass
in U-Boot upstream:
https://lists.denx.de/pipermail/u-boot/2017-April/289052.html
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
93e089f9202b2f9600a87eae2472db21fe5d7459)
Breno Lima [Fri, 23 Mar 2018 20:05:47 +0000 (17:05 -0300)]
MLK-17915: cmd: blob: Instantiate RNG before running CMD_BLOB
U-Boot can instantiate CAAM RNG if needed by crypto operations.
Call sec_init() prior running a blob operation to ensure
RNG is correctly instantiated.
Make sure CAAM clock is enabled and check if a job ring is
available for that operation.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
b2b745515d06f05ea288524e26cf2389d6924ff2)
Clemens Gruber [Sun, 7 Jan 2018 19:26:29 +0000 (20:26 +0100)]
crypto/fsl: fix BLOB encapsulation and decapsulation
The blob_encap and blob_decap functions were not flushing the dcache
before passing data to CAAM/DMA and not invalidating the dcache when
getting data back.
Therefore, blob encapsulation and decapsulation failed with errors like
the following due to data cache incoherency:
"
40000006: DECO: desc idx 0: Invalid KEY command"
To ensure coherency, we require the key_mod, src and dst buffers to be
aligned to the cache line size and flush/invalidate the memory regions.
The same requirements apply to the job descriptor.
Tested on an i.MX6Q board.
Reviewed-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
[Breno: Backported to v2017.03]
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
f4e19b92bc40184eee7d33e53cd190dfb692b196)
Breno Lima [Fri, 23 Mar 2018 19:25:33 +0000 (16:25 -0300)]
MLK-17914: cmd: blob: Add SECURE_BOOT and CAAM supported SoCs as dependency
In order to build CMD_BLOB on i.MX CAAM supported devices it's
necessary to select SECURE_BOOT. Add SECURE_BOOT and CAAM supported
SoCs as dependency.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
4afb519038d190687cac6d410e9ad65d0655f1c0)
Simon Glass [Thu, 22 Mar 2018 13:26:14 +0000 (10:26 -0300)]
Convert CONFIG_CMD_BLOB to Kconfig
This converts the following to Kconfig:
CONFIG_CMD_BLOB
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Add imply CMD_BLOB under CHAIN_OF_TRUST]
Signed-off-by: Tom Rini <trini@konsulko.com>
[Breno: Backported to v2017.03]
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
921eb14d54c612680c3e73d9ddf9e1b9f526905f)
Clemens Gruber [Sun, 3 Sep 2017 17:17:10 +0000 (19:17 +0200)]
crypto/fsl: fix obj-yy in Makefile
When enabling CONFIG_CMD_BLOB and/or CONFIG_CMD_DEKBLOB, the build fails
with a linker error:
...
LD u-boot
arch/arm/mach-imx/built-in.o: In function `blob_encap_dek':
/home/clemens/dev/u-boot/arch/arm/mach-imx/cmd_dek.c:46: undefined
reference to `blob_dek'
This is due to an error in the Makefile, resulting in obj-yy/obj-yn/..
and fsl_blob.o is therefore not linked.
Fix it by splitting it up into two obj-y lines.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
[Breno: Backported to v2017.03]
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e62c55b64fa81236caf9adaa9737de2f2c4777e3)
Luo Ji [Thu, 22 Mar 2018 11:05:13 +0000 (19:05 +0800)]
MA-11617 [Android Auto]Refine USB configs for imx8qm/imx8qxp
Remove some non-required USB configs to reduce the size of u-boot.
Change-Id: Ia27ccc11a119f287c406a6e255decda8e4c77150
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Zhang Bo [Thu, 15 Mar 2018 08:43:51 +0000 (16:43 +0800)]
MA-11546[Android] Cancel the undef CONFIG_MXC_GPIO for mek-8qm board
This macro CONFIG_MXC_GPIO enable GPIO setting(board_gpio_init).
The GPIO init enable LVDS function by set GPIO pin. The Linux kernel does
not set such pin again. The display cannot be normal if we undef such macro.
Change-Id: I32cbbc5971eaf32a1ab9f2e300ffa61cb40f2485
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
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>