Age | Commit message (Collapse) | Author |
|
The flexspi defconfig uses CONFIG_ENV_IS_IN_SPI_FLASH not CONFIG_ENV_IS_IN_MMC.
So when fastboot is enabled for flexspi, the build break happens.
drivers/usb/gadget/built-in.o: In function `board_fastboot_setup':
/home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:1539: undefined reference to `mmc_get_env_dev'
drivers/usb/gadget/built-in.o: In function `_fastboot_setup_dev':
/home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:1260: undefined reference to `mmc_get_env_dev'
drivers/usb/gadget/built-in.o: In function `get_single_var':
/home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:2935: undefined reference to `mmc_get_env_dev'
drivers/usb/gadget/built-in.o: In function `bcb_rw_block':
/home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/bcb.c:120: undefined reference to `mmc_get_env_dev'
Fix the issue by decoupling mmc_get_env_dev function with CONFIG_ENV_IS_IN_MMC
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 2716f9a325681737593b3a6e79f94576a35067c2)
|
|
enable fastboot for i.MX8MM flexspi u-boot
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit ea221c08862666926e613f649359905400773d9c)
|
|
Always use the new added config for os_desc_config to fix cdev->
os_desc_config may miss set in case we restart usb gadget driver.
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit e8efb32e9b7a4fe45c7f21e86052c7f5bcdb6695)
|
|
Set the alert temperature = critical temperature - 20C, to avoid looping
the temperature at 85C
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
When enabling NAND boot, the ubi.mtd should be set to 6 because the
one mtdpart is added for tee.
Also the MFG_NAND_PARTITION is duplicated in mx6qsabreauto.h and
mx6sabre_common.h. We can remove it from mx6qsabreauto.h, since only
the sabreauto board have NAND.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
dispmix & mipi phy power domain must be enabled before doing any
config for lcfif and dsi.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
|
|
Add jailhouse boot env. run `jh_netboot` or `jh_mmcboot` to
boot Linux.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
Add jailhouse boot env. Use `run jh_netboot` or `jh_mmcboot`
to boot Linux.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
Adjust ARM SMC Calling Convention code for U-Boot:
- Replace the license block with SPDX
- Change path to asm-offsets.h
- Define UNWIND() as no-op
- Add Kconfig entry
- Add asm-offsets
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
(cherry picked from commit c54bcf6805cc6762cb998751b8e005f39ee1dad1)
|
|
Imports ARM SMC Calling Convention code from Linux 4.11-rc6.
The files have been copied as follows:
[Linux] [U-Boot]
arch/arm/kernel/smccc-call.S -> arch/arm/cpu/armv7/smccc-call.S
arch/arm64/kernel/smccc-call.S -> arch/arm/cpu/armv8/smccc-call.S
arch/arm/include/asm/opcodes* -> arch/arm/include/asm/opcodes*
include/linux/arm-smccc.h -> include/linux/arm-smccc.h
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
(cherry picked from commit c2da86f39ed6cbccccc2736bdc421fd606734232)
|
|
Android build use different tool chain(gcc 4.9) with yocto(gcc 6.2),
'for' loop initial declarations are not supported in C90, define the
variable first before use it.
Test: build pass for imx8mm_evk.
Change-Id: Idf9a9f21626a02e2e679d2e74410378cd143c3f1
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
We have add a kconfig for northwest mipi dsi driver in MLK-18945,
need to enable it in all mx7ulp evk defconfigs, otherwise they
will get build errors.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Refact the lpddr4 init flow on i.MX8MM EVK board. board level only need
to provide the necessary dram init related parameter.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
|
|
the dram init is board related. But there is still some common
part can be reused on different board. The basic flow is common
for all the board. only the DDRC and DDR PHY config register setting
is different on different board. So extract the LPDDR4 init common
flow to make it more generic. baord level only need to provide
the DDRC and PHY config register parameter to the common code to finish
the dram init.
the same method can be use for DDR4. will be added later.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
|
|
Move the SPL bss and malloc base to OCRAM 0x910000.
OCRAM_S will be reserved for dram low power purpose.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
|
|
Add mipi display config CONFIG_IMX_NORTHWEST_MIPI_DSI for
evk_7ulp to align with bsp team.
Test: build pass for evk_7ulp.
Change-Id: I82a15d8874585ad02668cc6afadc43199797e9e1
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
According to RM, usdhc 100MHz pad setting need to set SRE(slew rate
field) to 0x01(Medium Frequency Slew Rate 100MHz), usdhc 200MHz pad
setting need to set SRE to 0x11(Max Frequency Slew Rate 200MHz).
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
|
|
Add board level codes for enabling splash screen on imx8mm EVK. We
support two different display connecting to MIPI DSI miniSAS interfaces:
1. MIPI2HDMI daughter card (default)
2. RM67191 OLED panel
Users can set "panel" env vairable to "MIPI2HDMI" or "RM67191_OLED" to
switch them after reboot.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Enable the video PLL (594Mhz) and clocks in displaymix. Add the LCDIF clock
set interface to change its dot clock rate.
Update registers header file for LCDIF base address.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Update LCDIF driver for integrating with samsung mipi dsi controller on
iMX8MM platform.
The changes include:
1. Fix build warning for ARM64 platform.
2. Change max outstanding transactions req to 16 for better performance
on system bus.
3. Set ENABLE signal to active low for valid data transfer.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Add a mipi dsi panel driver for RM67191 panel which is attached to mipi dsi
controller.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Add new mipi dsi driver sec_mipi_dsim to support the samsung mipi dsi used
on iMX8MM and iMX7D platforms. This driver implements the interfaces required
by mipi dsi bridge. Users can use mipi dsi bridge common APIs to access it.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Setup the mipi_dsi_northwest driver and register a the HX8363 panel
device to mipi dsi bridge in board codes.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Remove the functions for northwest driver and HX8363 driver, change
to use mipi dsi bridge interfaces.
The mipi_dsi_northwest driver setup and hx8363 init will move to
board level codes.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Update the HX8363 mipi panel to use new mipi dsi bridge interfaces
to register a panel device and send command packets. So this panel
driver can decouple with mipi_dsi_northwest driver.
A new header file mipi_dsi_panel.h is added for all panel init
functions declare.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Update the mipi_dsi_northwest driver to implement mipi dsi bridge interfaces
and register it as a bridge controller. Users can call bridge common interfaces
to access the northwest driver, don't need to call its private driver functions.
We also add a kconfig entry for this driver, the name is changed to
CONFIG_IMX_NORTHWEST_MIPI_DSI
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Add a mipi dsi bridge driver to abstract mipi dsi interfaces for
mipi panel and display controller drivers.
So for panel and display conntroller drivers, they can use same functions
to access mipi dsi controller.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
We can get the bootimage SD/MMC offset at runtime according to the SOC type and
version. No need to use CONFIG_BOOTLOADER_OFFSET_33K and CONFIG_BOOTLOADER_OFFSET_32K
any longer, so remove them.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
with tzasc enabled, the GPU is generating AXI bus errors.
currently reverting the patch while debuging
This reverts commit 225f888b0960f817fc96842e35f48c7e2d4213d3.
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
|
|
CONFIG_CMD_RUN is set to n which do not suppert "run".
use getenv to pass boot cmd to bootcmd
Change-Id: I3866786758b8dd16b2685ec157e8322daa304374
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
|
|
Unlocked device maybe locked when gpt overlay changed, unlock the device
after valid gpt is flashed, erase the userdata to ensure safety.
Test: device unlocked after valid gpt flashed.
Change-Id: I7b0306606c632b7dc5668ea1ff8aad63428f278f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
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 <ye.li@nxp.com>
|
|
"fastboot reboot bootloader" fails to transmit "OKAY" back to host on
imx8qm because fastboot_tx_write_str() will dequeue the IN request
first before queue it, cdns3 usb driver will always invoke the complete
callback in dequeue, so if we are going to do_reset() in the complete
callback, the device will reboot before we can transmit "OKAY" back to
host in queue.
Check the request status in dequeue first before invoke the complete
callback, this is basically ported from kernel.
Test: No error messages when run "fastboot reboot bootloader" on
imx8qm_mek.
Change-Id: I085df3bd0f37480b8636585cc1068d5fcae331c1
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
uuu can write sd card image to emmc
Signed-off-by: Frank Li <Frank.Li@nxp.com>
|
|
In optee enabled defconfig, the trust zone is enabled in DCD. On iMX6UL/ULL, there
is IC limitation that LCDIF master access can only be non-secure, because PL301
hard code the m_3/4/5 to non-secure masters. It causes LCDIF fails to fetch data
from memory.
This patch adds a workaround to change trust zone Region 0 attribute to allow both secure
and non-secure read/write. So it permits the LCDIF master access to memory.
Since optee will configure Region 0 by itself, this should not introduce problem to optee.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
uuu can write to any position of mmc
sdps: boot -f ../mkimage_imx8dv/imx-mkimage/iMX8QX/flash.bin
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all xx.sdcard
Signed-off-by: Frank Li <Frank.Li@nxp.com>
|
|
The CONFIG_USB_GADGET is removed from header file and must add to defconfig,
but imx8mm_evk_fspi_defconfig is not udpated. Thus it causes build break.
Fix the issue and add other missed configs. Since the fastboot does not support
flexspi, we don't enable it.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
|
|
Add jailhouse env. Currently need to pass clk_ignore_unused to bootargs
to avoid linux root cell shutdown clocks used by inmates.
If only want a minimal clk being on in inmates, the clks could
be added in clk_inits_on in linux kernel drivers/clk/imx/clk-imx8mq.c
Signed-off-by: Peng Fan <peng.fan@nxp.com>
|
|
CONFIG_USB_GADGET was removed in imx8mm_evk.h, add it to
imx8mm_evk_android_defconfig. Also add CONFIG_SDP_LOADADDR
to support uuu.
Change-Id: Ie8b50b2acadb2779024c7ac7fd0ead65d7189476
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
uuu will use fastboot command to write emmc
Signed-off-by: Frank Li <Frank.Li@nxp.com>
|
|
if SDP_WRITE and SDP_JUMP addr is zero, use CONFIG_SDP_LOADADDR
as default address
Signed-off-by: Frank Li <Frank.Li@nxp.com>
|
|
Open configs to enable A/B dual bootloader
feature for imx8m.
Test: A/B dual bootloader feature works
on imx8m.
Change-Id: Ia0ef8ca6957ec6288ceee3fe9065532a96c1f772
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
A/B switch logic will be moved to SPL stage if dual bootloader
feature is enable, in such case, we just need to verify single
slot which is selected in SPL stage.
Test: verify and boot ok for imx8m.
Change-Id: Iafe0d2d4aea1c178551940808416eec4a3547259
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
Move the A/B slot check to SPL, the A/B slot switch
workflow is just like what we have in libavb_ab.
Test: A/B select works fine on imx8m.
Change-Id: Ie3d827a9be0298b491bf2bc8d48833597fd70e90
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
The userdata partition size for some platforms
(like imx8/imx8m) could be larger than 4GB, use
"unsigned long int" to store the partition size
instead of "unsigned int".
Test: Get correct userdata partition size for imx8m.
Change-Id: Ib626fa2c3c64dde4eba3a93ee0455f45d1286c9f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
Fix the null dereferenced issues from converity scan results.
issue id:
3618300:Dereference after null check
3618364:Dereference after null check
3618463:Dereference after null check
3618470:Explicit null dereferenced
3618520:Dereference after null check
Test: issue fixed by converity scan.
Change-Id: I577ed094a1f9b493de61b84827c0e1157a4fbd2f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|
|
According to ADD, the target frequency for NOC bus clock is 750Mhz,
the default setting from ROM is selecting the PLL1_800M_clk as source.
This patch sets the PLL3 to 750Mhz and select it as the source of NOC
clock root.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
|
|
Change to use clock API "clock_set_target_val" to set DRAM APB clock
root for DDR4 init.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Some debug codes in DDR init are used, which set NOC and NOC APB clocks to 25M
OSC and causes slow booting and poor performance in SPL and u-boot. Change to
original codes which only set DRAM APB clock to 200Mhz and use clock API to
implement it.
Some trailing spaces are also trimmed in this patch.
Signed-off-by: Ye Li <ye.li@nxp.com>
|
|
Fix build warnings in u-boot.
Change-Id: I1944657d2d89a03c0d2303a22a09538dfaa5fd2c
Signed-off-by: Luo Ji <ji.luo@nxp.com>
|