21 Sep, 2018
1 commit
-
camera sometime can't been open once run M4 image.
ISI-CH0 probe funtion is not called when meet issue.The root cause is:
M4 image set assign resource SC_R_ISI_CH0 into m4 partition
when open camera in m4 side.
Uboot will call update_fdt_with_owned_resources to check the pd
in current dts node. it will call sc_rm_is_resource_owned to
check the pd whether in other partition, If yes, it will delete
the dts node. uboot delete isi_0 node whose pd is SC_R_ISI_CH0.Change-Id: I4e2afbed2c55caad0a9f804fa8d85511c3bfea38
Signed-off-by: zhang sanshan
18 Sep, 2018
1 commit
-
This transforms almost all related functions from mmc specific to device
independent. This allows the container size to be computed from QSPI and other
future devices that will be supported for boot.Signed-off-by: Abel Vesa
Reviewed-by: Ye Li
12 Sep, 2018
2 commits
-
Fixes 9486251ced24("MLK-19494 configs: imx8qm mek android audo: correct xen physical memory")
correct text base, IPC address, memmap.
Signed-off-by: Peng Fan
-
When Trusty OS allocates the mem region from 0xfe0000000-0xffffffff, the get_effective_memsize
does not return correct memory size. There is a check in get_effective_memsize to find the memreg
where the u-boot is running, and return the size of that memreg as the result of get_effective_memsize.
When using aligned start, the value is 0x80200000 since it is 2MB aligned. Thus the finding of memreg
will fail and return the PHYS_SDRAM_1_SIZE because u-boot text base is 0x80020000.
This cause u-boot relocating to the high memory where has been occupied by Trusty OS.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
28 Aug, 2018
1 commit
-
Add "clocks" command to list clocks values for core and some peripherals
on QM/QXP.Signed-off-by: Ye Li
(cherry picked from commit c2c9b6487440946a52564ee20c2b1943a4085152)
15 Aug, 2018
2 commits
-
Update AHAB codes to use container image related structures in image.h
Signed-off-by: Ye Li
Reviewed-by: Peng Fan -
Add relevant functions and files to parse the container image set from mmc/sd
and get the total size of it. So we can get the offset of u-boot-atf.bin image
when it is padded to container image set at 1KB alignment position.Signed-off-by: Ye Li
11 Aug, 2018
1 commit
-
enable fastboot for i.MX8QX MEK FlexSPI u-boot
Signed-off-by: Han Xu
10 Aug, 2018
4 commits
-
Add new dts, config and defconfig file for DX DDR3 ARM2 board. Since
it does not have USB3.0 and SD, disable them in DTS and header file. Also move
gpio expander to i2c1 according with its schematic.In defconfig, fastboot is default enabled due to we need uuu to program
eMMC.Signed-off-by: Ye Li
(cherry picked from commit e5b822615a5aa2fadb481002c286f35d996999f8) -
Enable SPL support for iMX8QM ARM2 boards
Signed-off-by: Teo Hall
-
There is not needed for this in SPL.
Signed-off-by: Abel Vesa
-
This will allow iMX8QX to have SPL support and later on the iMX8QM too.
Signed-off-by: Abel Vesa
06 Aug, 2018
1 commit
-
Still meet DPLL unstable issue on iMX8QXP B0 when doing various stress tests.
So switch back to use AVPLL for usdhc on B0Signed-off-by: Ye Li
(cherry picked from commit 099ddce37cf3100d0aeb0964db7b24e5a59ee1d0)
16 Jul, 2018
1 commit
-
Get such warning below in fuse driver, due to a u32 pointer is converted to ulong then
passed as ulong pointer.
This is dangerous when assigning value to the memory where ulong pointer points to.
So use a intermediate variable to hand over value. Also fix the indenting issue in this patch.arch/arm/cpu/armv8/imx8/fuse.c: In function ‘fuse_sense’:
arch/arm/cpu/armv8/imx8/fuse.c:33:25: warning: passing argument 3 of ‘call_imx_sip_ret2’
makes pointer from integer without a cast [-Wint-conversion]
(unsigned long)val, 0, 0);
^
In file included from ./arch/arm/include/asm/arch/sys_proto.h:7:0,
from arch/arm/cpu/armv8/imx8/fuse.c:13:
./arch/arm/include/asm/imx-common/sys_proto.h:94:15: note: expected ‘long unsigned int *’
but argument is of type ‘long unsigned int’
unsigned long call_imx_sip_ret2(unsigned long id, unsigned long reg0, unsigned long *reg1,
unsigned long reg2, unsigned long reg3);Signed-off-by: Ye Li
(cherry picked from commit 8c9f2dbf90c7908c5df1ac3727e8c177c8809240)
15 Jul, 2018
1 commit
-
The API to get the value of environment variable is not
correct, use correct API. This fix the build errors like
below:
arch/arm/mach-imx/built-in.o: In function `mmc_get_env_dev':
uboot-imx/arch/arm/mach-imx/imx8/cpu.c:840:
undefined reference to `get_env_ulongTest: Build pass for imx8qm/imx8qxp.
Change-Id: I4fa65d1cd808ec6a737c419b278fce9cce2b1e7b
Signed-off-by: Luo Ji
14 Jul, 2018
1 commit
-
uuu can write to any position of mmc
sdps: boot -f ../mkimage_imx8dv/imx-mkimage/iMX8QX/flash.binFB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all xx.sdcardSigned-off-by: Frank Li
(cherry picked from commit ca96e0bd1aea1996904b0a71fb1d74c3f5176929)Conflicts:
arch/arm/cpu/armv8/imx8/cpu.c
drivers/usb/gadget/f_fastboot.c
include/configs/imx8qxp_mek.h
04 Jul, 2018
1 commit
-
Modify the fuse subsystem to add a SMC call
for writing/reading to the OTP memory.Signed-off-by: Teo Hall
15 Jun, 2018
2 commits
-
If resources and pads are both empty, there is no need
to create a partition for it.Signed-off-by: Peng Fan
(cherry picked from commit 6ece9bfe884f37218e8c7d224b6ceb02e8cf7f6d) -
Set the partition id into reg property, then hypervisor could
parse the reg property to get the partition id.Signed-off-by: Peng Fan
(cherry picked from commit 97ea4d121262108604bf271cb5c0805acc0abff1)
14 Jun, 2018
3 commits
-
Update SOC code to support U-Boot in a XEN VM. Currently
we only support to boot android using uboot in a VM,
so there is hardcode that using MMC1_BOOT boot.There are a few small fixes included.
For the mmu configuration, the mem map is used from xen
guest VM and our iomem space in vm cfg file.The VM use a different MU, so use a wrap for SC_IPC_CH.
Signed-off-by: Peng Fan
(cherry picked from commit 533087bc1bce0c35fead0956b0613971862c280f) -
Set grant to true to grant parent able to access resources assigned
to child partition.Signed-off-by: Peng Fan
(cherry picked from commit 415e9cd60c849b55935f415e86da071c1c4aeade) -
Since M4 will arrange some eDMA channels to its partition, the A core
can't use them. We have to remove these eDMA channels from DTB dynamically.Different like other resources, disabling the eDMA channels require to modify
the edma nodes by removing relevant registers, interrupts configurations, and
adjust dma channels number.This patch searches the edma nodes from kernel DTB, checks the channels by
binding their registers base address with their resource IDs. Then update
the reg, interrupts, interrupt-names and dma-channels properties.Signed-off-by: Ye Li
Acked-by : Robin Gong
13 Jun, 2018
1 commit
-
Porting the FSL android fastboot features from imx u-boot v2017.03 to
support all SoCs: imx6/imx7/imx7ulp/imx8/imx8mSigned-off-by: Ye Li
23 May, 2018
5 commits
-
We clean USBOTG register USBCMD if it is used in serial download mode.
When XRDC blocking is enabled, we can't write this register directly,
must enable the OTG power, otherwise the kernel will get SError
exception in mfgtool.Signed-off-by: Ye Li
(cherry picked from commit cf2143dc97b2a8f21b828c7386c59ee965d981f2) -
Power up MU, otherwise virtual machines will crash when accessing MU.
Signed-off-by: Peng Fan
(cherry picked from commit 6ca671d3e1597f27b4c2100cabeabd9fb87e9adf) -
The DDR memory is not assigned to SECO partition. When XRDC is enabled,
SECO can't access the memory where the kernel image is loaded.
So we have to explicitly set the memory access permission for SECO.Signed-off-by: Ye Li
Acked-by: Peng Fan -
8QXP B0 chip already fix the DPLL unstable issue, so we set back the
usdhc clock parent to PLL0 (DPLL) for B0 chip. A0 chip will remain use the
PLL1 (AVPLL).Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit 6e60ea8430370334eea53c7c434c3b69d08c6ceb) -
When CONFIG_ARCH_MISC_INIT is disabled, the static function
acquire_buildinfo is defined but not used. Fix this build warning.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit cc9e00c090b9e99fe5793381b5798f75e745eefd)
27 Apr, 2018
12 commits
-
Add function and new command "auth_cntr" for secure boot support.
When booting with life cycle set to OEM closed, we need to use
this function to authenticate the OS container and load kernel & FDT
from OS container to their destination.Users can set CONFIG_AHAB_BOOT=y to enable the feature. It is not
set at default.Signed-off-by: Ye Li
(cherry picked from commit 3b0496c267a4c09ff5b790ccf8e4f658af460c6c) -
Add parse dtb support, see
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-dom0.dts for example.Signed-off-by: Peng Fan
(cherry picked from commit 96729b089aec634a3819c3941ddb6b3e9e5b26fa) -
Add partition API cmd support.
Signed-off-by: Peng Fan
(cherry picked from commit f61119240922ad13fd573f16c02361d7228fbd67) -
SCFW has provided the sc_misc_seco_build_info to get seco FW commit,
so use it in u-boot to print out the commit.
For A0 chip and unsupported SCFW build, the SECO commit is always 0.BuildInfo:
- SCFW 433c7fb7, SECO-FW 041c9f92, IMX-MKIMAGE 8b15026b, ATF 5e238f9
- U-Boot 2017.03-00899-gdbd3637-dirtySigned-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit a67dab1d01e81b226e14a65b595ba00e12c1f176) -
Implemented the clock enable and disable interfaces for CDNS3 USB
driver.Signed-off-by: Ye Li
Acked-by: Peter Chen
(cherry picked from commit 2f0dc4c503d8ac831fb809ec124e79712defae77) -
Make sure that all devices that are powered up by uboot
are powered down before bringing up kernel.
Else the subsystem/device will never be powered down by SCFW even though
from the kernel's point of view it should be powered down.Benefiting from power domain driver, We have implemented the function "power_off_pd_devices"
to power off all active devices. No need to explicitly power off them in board_quiesce_devices.Signed-off-by: Ranjani Vaidyanathan
Signed-off-by: Ye Li -
Add board level codes and configs for i.MX8QXP MEK board.
- Enabled DM driver:
FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, PCA953X, pinctrl, USB host(EHCI/XHCI)
Power-domain, SC thermal- Enabled Non-DM driver:
PCIE, fuse, iomux, video(IMXDPUV1), USB device(CI-UDC), TCPC- Disabled driver:
mailbox- Board defconfigs:
imx8qxp_mek_defconfig
imx8qxp_mek_fspi_defconfigSigned-off-by: Ye Li
-
Add board level codes and configs for i.MX8QM MEK board.
- Enabled DM driver:
FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, pinctrl, USB host(EHCI/XHCI)
Power-domain, SC thermal- Enabled Non-DM driver:
SATA, PCIE, fuse, iomux, video(IMXDPUV1), USB device(CI-UDC)- Disabled driver:
mailbox- Board defconfigs:
imx8qm_mek_defconfig
imx8qm_mek_fspi_defconfigSigned-off-by: Ye Li
-
Add board level codes and configs for i.MX8QXP LPDDR4 ARM2 board
and i.MX8QXP DDR3 ARM2 board.- Enabled DM driver:
FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, PCA953X, pinctrl, USB host(EHCI/XHCI)
Power-domain, SC thermal- Enabled Non-DM driver:
PCIE, fuse, iomux, video(IMXDPUV1), USB device(CI-UDC)- Disabled driver:
mailbox- Board defconfigs:
imx8qxp_ddr3_arm2_defconfig
imx8qxp_lpddr4_arm2_fspi_defconfig
imx8qxp_ddr4_arm2_defconfigSigned-off-by: Ye Li
-
Add board level codes and configs for i.MX8QM LPDDR4 ARM2 board
and DDR4 ARM2 board.- Enabled DM driver:
FEC, LPUART, LPI2C, GPIO, SD/MMC, FSPI, PCA953X, pinctrl, USB host(EHCI/XHCI)
Power-domain, SC thermal- Enabled Non-DM driver:
SATA, PCIE, fuse, iomux, video(IMXDPUV1), USB device(CI-UDC)- Disabled driver:
mailbox- Board defconfigs:
imx8qm_lpddr4_arm2_defconfig
imx8qm_lpddr4_arm2_fspi_defconfig
imx8qm_ddr4_arm2_defconfigSigned-off-by: Ye Li
-
Using SC thermal sensor to get temperature and print the CPU
temperature at booting.Signed-off-by: Ye Li
-
Add common functions for LVDS/DC setup, video framebuffer init/disable,
LVDS to HDMI card settings, etc. Refactor it from video_imxdpuv1.c.
1. Add power, clocks, PLL relevant setup for LVDS and DC.
2. Configure the LVDS and its PHY settings for the display format and pixel link.
3. Setup the LVDS to HDMI card.
4. Implement the video_hw_init by calling DC driver API to output data to
specified display panel.Signed-off-by: Oliver Brown
Signed-off-by: Ye Li
(cherry picked from commit 9317f7ea4d976335a633f7056bbac1f77b01247a)