Age | Commit message (Collapse) | Author | Files | Lines |
|
A53 partition must not load the HDMI RX firmware, as it does
not own the required ISI resource.
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
|
|
update Copyright in imx8qm_mek.h
Signed-off-by: Danwei Luo <danwei.luo@nxp.com>
|
|
In avb_slot_verify.c it sets the image load addr start
from 96MB offset of CONFIG_FASTBOOT_BUF_ADDR.
Need to change from 0x98000000 to 0xD8000000 for A72.
Signed-off-by: Danwei Luo <danwei.luo@nxp.com>
|
|
removed USB Type C config.
|
|
In ecockpit, HSIO are not avaible to A72, so do not configure them to
avoid a crash.
|
|
HDMI resource is owned by A53 partition,
thus u-boot running on A72 should not load the HDMI firmwares,
so we remove the command from the environment variables.
|
|
|
|
A53 partition owns DPU0 which drives HDMI/DP TX output.
So HDMI TX firware needs to be loaded in A53 memory region.
|
|
Print a warning if resource not owned instead of hitting the error
message when trying to power it.
A gpio bank resource (for SCU FW) is powered on when probed,
if the resource is not owned by partition, it is important to return normally,
else all probes fail successively.
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
|
|
now LPCG clocks are all set ON.
Calculation of LPCG register address for USDHC should not assume that index in resource array is the SDHC number.
typically in ecockpit case: resource at index 0 is USDHC_1.
|
|
- device tree name
- A53/A72 compile flag
- A72 no video
- A72 no HDMI/DP firmware load
- A72 load addr 0xC0020000
- remove USB3 TypeC, re-enable CONFIG_CI_UDC to avoid build failure.
|
|
New defconfig files:
* imx8qm_mek_a53_defconfig
* imx8qm_mek_a72_defconfig
There are clones of defconfig imx8qm_mek_defconfig.
|
|
- device tree name
- A72 compile flag
- no video
- no HDMI/DP firmware load
- load addr 0xC0020000
- boot delay 3 sec
- remove USB3 TypeC, re-enable CONFIG_CI_UDC to avoid build failure.
- remove reserved memory for bootaux
|
|
copy the defconfig of MEK for Android P9 1.0.0 GA
|
|
SMMU is left to A72 for future use (by SATA, PCIE?).
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
ECOCKPIT-216: fixed inverted logic
|
|
At exit, uart2 needs to be left powered on for A72, just like uart0
is for A53.
This is required in beta3, as now all other resources are powered off
by u-boot at exit.
This hack means that device-tree flags 'debug_console' and 'early_power_on'
are not working in kernel.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
Cortex-A53: clocks for USDHC1.
Cortex-A72: clocks for USDHC0.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
As a new memreg has been reserved for boot image backup,
the SDRAM available in 32bit addresses for A53 is reduced for MEK.
The backup region contains 2 images of size 0x100000 bytes.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
create specific dtsi for a53 and a72 partitions.
a72 partition has exclusive access to:
dpu2
fec2 (ethernet2)
ldb2 (lvds2)
lpuart2
usdhc1 (emmc)
i2c0
i2c1
i2c1_lvds1
gpios 0,3,6,7 (gpio3 is used by ambient ligh sensor)
a53 partition has exclusive access to the remaining resources.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
clone files fsl-imx8qm.dtsi and fsl-imx8qm-mek.dts into:
* fsl-imx8qm-a53.dts
* fsl-imx8qm-a72.dts
* fsl-imx8qm-mek-a53.dts
* fsl-imx8qm-mek-a72.dts
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
|
|
In ecockpit, SCU boots from SD card, but eMMC is the boot device
for Android on A72, so we hardcode the boot device 'eMMC' for A72,
so that Android bootargs are correct, and we hardcode the boot device
to 'SD2' for A53.
Ideally, SCU should report different boot devices, one for each HW
partition.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
Implement a dummy weak function mmc_get_env_dev() like in env_mmc.c
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
|
|
Create board support for eCockpit A53 and A72 clusters on MEK:
* TARGET_IMX8QM_MEK_A53_ONLY
* TARGET_IMX8QM_MEK_A72_ONLY
integrates changes from:
ECOCKPIT-60 disable SATA and PCIE for A72
ECOCKPIT-42 Set ENV_IS_NOWHERE for both clusters
eCockpit: memory mapping changes
eCockpit: use eMMC for cluster A72
eCockpit: change DTB name and load address
eCockpit: kernel console: UART0 for A53, UART2 for A72
ECOCKPIT-233 change config variable name, append '_ONLY'
ECOCKPIT-323 align with rel_imx_4.14.98_2.3.2_patch
removed earlycon parameters.
CONFIG_SATA_IMX should not be enabled in ecockpit config.
Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
|
|
Add the QSPI defconfig to generate u-boot which can boot from QSPI
and load ENV from QSPI.
Signed-off-by: Ye Li <ye.li@nxp.com>
Tested-by: Jacky Bai <ping.bai@nxp.com>
|
|
Add the optee enabled config.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
|
|
Disable FEC driver otherwise by default net driver won't use the
usb ethernet device.
Also add the RTL8152 USB ethernet card support.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
The i.MX6ULZ Lite is fully compatible with i.MX6ULL/ULZ,
so add changes to reuse the code of i.MX6ULL/ULZ but identify
it as i.MX6ULZ Lite for boot info print.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
|
|
Commit 278c6e3 ("MA-16095 set evk_8mm/evk_8mn usb dr_mode to "otg"")
set the dr_mode to otg, this will bypass TCPC, so USB host can't
work normally. Revert this patch.
Android could modify board_ehci_usb_phy_mode for TCPC disabled case
to force to device mode
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
|
|
previous setting can NOT meet the USB stream mode performance settting.
So use the default QoS setting on the i.MX8MM DDR4. This patch did the
same thing as MLK-21214. But it is not easy to cherry-pick it.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 4e6a65eab5a35cf61a73e65479dba6c6809b84ca)
|
|
Below two requirements for VDD_ARM and VDD_SOC has been removed from
last datasheet (Rev.0.1, 03/2020). So for iMX8MN DDR4 EVK which runs
DDR4 at 2400 MTS can set VDD_SOC to 0.85v with VDD_ARM at 0.85v (1.2Ghz)
If VDD_ARM≥0.95 V, VDD_SOC/GPU/DDR must be 0.95 V.
If VDD_SOC/GPU/DDR = 0.95 V, then VDD_ARM must be ≥0.95 V.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
(cherry picked from commit 891be5c86915209202e75e9e82f0ae2b3477eb6d)
|
|
add below configuration item:
CONFIG_SYS_EXTRA_OPTIONS="ANDROID_SUPPORT"
fastboot related configuration items are removed since they are already
defined in imx8qxp_mek_android.h.
Change-Id: Iecee6817f620c001b622e7cf32fe59f73d9c4451
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
add below two defconfig files:
imx8dx_mek_android_defconfig
imx8dx_mek_android_uuu_defconfig
they are directly copied from below files:
imx8dx_mek_spl_defconfig
imx8dx_mek_defconfig
Change-Id: Ie814adf04fa42559b72c98b6b93340a42c7e2005
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
The 'selfref_en' should be bit'0', so correct the setting to
enable the auto self-refresh.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Jian Li <jian.li@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
|
|
Changes:
- warning about behavior of B0 and C0 SoCs
- support of interruption configuration
- porperly support code for 8QM
- Fix the clear acommand
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: Silvano Di Ninno <silvano.dininno@nxp.com>
(cherry picked from commit 12534e02bbca7b9746a3d3e60d2f6157b9131149)
|
|
- Remove code duplication betwee imx8 and imx8m support
- add reserved memory node to prevent Linux accessing optee reserved memory
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8beac7ef22c16b72ad337b44a0516436a4a0d00c)
|
|
iMX8DX MEK board has similar design with 8QXP MEK. The major changes are
1. DDR changed to 16bits 1GB DDR part
2. USB3.0 is removed and only support OTG on typec port. (No SW change needed)
This patch adds new defconfigs and DTS file for this new board.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 5efb4275f6cfefb5dd342f2e498834b40b989883)
|
|
Only limited heap memory is available on imx8q platforms due
to some memory is reserved for m4 image. Commit cd67414 will
free avb verify data and thus help decrease the heap memory
consumption.
But when the device is locked, avb will try to verify one slot
first, it will continue to verify another if the first slot
returns failure. Function load_full_partition() will alloc memory
to load boot/dtbo images from heap (which is a big and continuous
memory region), this memory will be freed if the first slot returns
verify failure. but because part of the continous memory region
will be used in following verify process, even total available memory
is enough, u-boot can't find a continous memory region to load the
boot/dtbo image for another slot and will return error "Failed to
allocate memory".
Instead, this commit use fixed memory region start from 96MB offset of
CONFIG_FASTBOOT_BUF_ADDR to load the boot/dtbo images.
Test: slot verify and A/B slot switch.
Change-Id: Ifc83bed5a6be37196c0fd109d942eaf9b07b6a74
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
The QoS setting is originally added in MLK-22001, but override when
update the DDR script for DLL-ON only support, so add it back again.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
|
|
Android does not use usb host function in uboot, and also TCPC function
failure may cause the fastboot does not work, remove all CONFIG_USB_TCPC
configuration items so TCPC is not used in uboot.
Change-Id: I8c54e144517160bd7234a8ae28c6bc83734be538
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
When trying to remove "CONFIG_USB_TCPC=y" to avoid ramdom issue of
synchronous abort when enter fastboot, evk_8mm and evk_8mn can't
enter fastboot mode, it's because init_type of the usb udevice private
data is host if tcpc configuration is removed, if this init_type is
host/peripheral, then the usb is forced to be this mode, can not be
initialized as another.
init_type of the usb udevice private data is firstly set based on the
"dr_mode" in dtb, if "dr_mode" is not set, it will be set by other ways.
here set the "dr_mode" property for the usb device to be "otg", then the
device can be configured as either host or peripheral.
Change-Id: Idadab7bb07e74bfc1f8768490c07127a35a02572
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
|
|
Target mmc dev is not properly switched when the device enters
fastboot mode via uuu "-i" parameter, which causes "erase"
operation doesn't work.
Get and switch the target mmc dev every time before erase operations
happen.
Test: "fastboot erase boot_a" in uuu fastboot mode.
Change-Id: I4822d2b4ecfd2d874dfbe7474d6824b8fc3a7903
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
When doing reset_cpu, in normal case the WDOG_B outputs immediately
after we clean WDA bit. But on mscale, the WDOG_B may be later than
internal reset, and cause PMIC not reset. As we enabled the SD3.0
support, the PMIC must be reset to reset SD card.
Change the reset_cpu to enable the WDOG_B for timeout as well, and set
WDOG timeout to 1s.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit e78f889637636d8b67fe6250623f3473514f1a23)
|
|
Address 0x8880_0000 is reserved for M4 image on imx8q, which
leaves limited memory region for the malloc pool. The avb
will consume much heap memory to verify the kernel and dtbo
image, memory conflicts may happen as the kernel/dtbo image
size is getting larger.
As the avb will load kernel/dtbo in every avb_slot_verify(), but
will only free the memory after both slots are checked(if needed).
And for trusty enabled platforms, extra heap memory will be used
to do the hash calculation.
This commit will free the slot memory once it's marked as unbootable
and will use fixed memory started from CONFIG_FASTBOOT_BUF_ADDR to
help store the data to do the hash calculation. With above change,
we get a chance to decrease the malloc pool size.
Test: boot on imx8qxp and imx8mn.
Change-Id: Id95b9becf6fa7fae4f120a4dc9e9a3ba90da578c
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
The latest patch "MLK-23081 imx8mn: Change SPL malloc and BSS address" changed
SPL runtime data to OCRAM_S. But this introduced a conflict with
CONFIG_SAVED_DRAM_TIMING_BASE which is also using OCRAM_S for DDR parameters.
To fix the issue, adjust the SPL runtime data addresses to reserve 16KB space for
DDR parameter and move SPL BSS to OCRAM.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 20fdadfa50227b518d1a185da4c59e756eb8e594)
|
|
By default we enable two env storage devices: SD/emmc or Flexspi. And
u-boot will select it according to boot device.
Some customer does not save env, so he removes these storage devices and
enable ENV_IS_NOWHERE. But current env_get_location does not process
the ENV_IS_NOWHERE, returns ENVL_UNKNOWN and causes u-boot hang.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 8ca25fba643e4cdbd71f8c7a41d0991e57388fc8)
|
|
Android's build has large size of SPL which overlays with malloc pool,
and causes DDR FW image destroyed by the malloc.
Adjust some SPL addresses to align with iMX8MQ and allow SPL + DDRFW using
the 312 KB OCRAM from 0x912000 to 0x960000. Since the max DDR FW size is
96KB, we set max SPL size to be 216KB.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit e3df1f1cf9972ce8ed84de09d183599bd52a5c47)
|
|
Update the ddr4 timing file for 2400mts & 1066mts for
dll-on mode only.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit f7ed1fd1416f15764cca13993a054963996f6c50)
|
|
The SPL codes for both EVK and validation board set the MMC bus width
to 1 bit for both emmc and SD ports. This causes slow image loading.
Change to 8 bits for emmc and 4 bits for SD.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 0859140a862ad1cc16f4e49247868595a6e62b38)
|