Get such build error below due to the changes in tcpc.h
(MLK-19181-2: i.MX850: SPL enable usb support).
Fix the issue by removing unused tcpc and usb header files from spl.c
spl/board/freescale/imx8qxp_mek/spl.o: In function `tcpc_setup_ufp_mode':
spl.c:(.text.tcpc_setup_ufp_mode+0x0): multiple definition of `tcpc_setup_ufp_mode'
spl/board/freescale/imx8qxp_mek/imx8qxp_mek.o:imx8qxp_mek.c:(.text.tcpc_setup_ufp_mode+0x0): first defined here
spl/board/freescale/imx8qxp_mek/spl.o: In function `tcpc_setup_dfp_mode':
spl.c:(.text.tcpc_setup_dfp_mode+0x0): multiple definition of `tcpc_setup_dfp_mode'
spl/board/freescale/imx8qxp_mek/imx8qxp_mek.o:/home/leyoen/Workspace/u-boot-upgrading/u-boot/board/freescale/imx8qxp_mek/imx8qxp_mek.c:547: first defined here
scripts/Makefile.build:359: recipe for target 'spl/board/freescale/imx8qxp_mek/built-in.o' failed
Signed-off-by: Ye Li <ye.li@nxp.com>
Pull down the DSI_EN gpio to disable mipi dsi panel before booting kernel.
This avoids display full yellow screen before kernel mipi driver probes
the device.
For MIPI2HDMI card, this DSI_EN gpio is not used. So nothing impact to it.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit e73adc9a139f2e8bb92bda1631fa2f2391a8a5e3)
The pinctrl supports to set any bit in input register on iMX6 if
the MSB of input value is 0xff. But the driver uses signed int for
input value, so when executing the codes below, it won't meet.
Because this is arithmetic right shift.
if (input_val >> 24 == 0xff)
Fix the issue by changing the input_val, config_val and mux_mode to u32.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit e464bbcd13d472ddf2df5b62b0002a127147e17b)
Move some configs from imx8mq_evk_android.h to imx8mq_evk_android_defconfig
to sync with BSP team.
Test: build and boot ok on evk_imx8mq.
Change-Id: I954f2c284b368ca26c6fb44a6db6a200cb1e6da7
Signed-off-by: Ji Luo <ji.luo@nxp.com>
This is debug patch, pushed by mistake. Since we already support
DDR3 ARM2 in previous commit, must revert it.
This reverts commit d0602d2ee6.
Signed-off-by: Ye Li <ye.li@nxp.com>
In file included from arch/arm/mach-imx/imx8m/soc.c:11:0:
arch/arm/mach-imx/imx8m/soc.c: In function ‘imx_gpc_set_m_core_pgc’:
./arch/arm/include/asm/io.h:44:28: warning: cast to pointer from integer of differen t size [-Wint-to-pointer-cast]
#define __arch_getl(a) (*(volatile unsigned int *)(a))
^
./arch/arm/include/asm/io.h:122:31: note: in expansion of macro ‘__arch_getl’
#define readl(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; })
^~~~~~~~~~~
arch/arm/mach-imx/imx8m/soc.c:427:8: note: in expansion of macro ‘readl’
val = readl(GPC_BASE_ADDR + offset);
^~~~~
./arch/arm/include/asm/io.h:49:29: warning: cast to pointer from integer of differen t size [-Wint-to-pointer-cast]
#define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v))
^
./arch/arm/include/asm/io.h:117:48: note: in expansion of macro ‘__arch_putl’
#define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; })
^~~~~~~~~~~
arch/arm/mach-imx/imx8m/soc.c:432:2: note: in expansion of macro ‘writel’
writel(val, GPC_BASE_ADDR + offset);
^~~~~~
arch/arm/mach-imx/imx8m/soc.c: In function ‘imx8m_usb_power’:
arch/arm/mach-imx/imx8m/soc.c:453:16: warning: unused variable ‘ret’ [-Wunused-varia ble]
unsigned long ret;
^~~
Signed-off-by: Li Jun <jun.li@nxp.com>
As the SDP protocol use the predefined ep num for communication, we can't
change its name hence reset its ep num while do ep autoconfig, this is
only apply for SPL.
Signed-off-by: Li Jun <jun.li@nxp.com>
uuu can download whole uboot and run it
fastboot also enabled.
malloc start at 0x182000, size is 0x6000 (24K)
So BSS and malloc use all OCRAM_S
stack move to endof OCRAM 0x91FFF0.
ATF start at 91000
AFT about 48K, 0x91000 - 0x91D000,
Stack size is about 16K.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
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 <ye.li@nxp.com>
(cherry picked from commit e5b822615a5aa2fadb481002c286f35d996999f8)
Disable the LTSSM when link is down in uboot.
Otherwise, the pcie ep/rc validation system in kernel
would be impacted by the enabled ltssm stat in the uboot.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
By default, imx8qm/qxp b0 silicon set the IO voltage to 2.5v, but mek/arm2
boards are designed as 1.8v voltage for enet IO, so force the IO voltage
to 1.8 by setting COMP_CTL_GPIO_1V8_3V3 pins like:
The pin setting:
1.8V/3.3V : bit4=0, bit[30]=1, bit[2:0]=000
2.5V : bit4=1, bit[30]=1, bit[2:0]=010
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Since the default way to boot ATF from SPL is by using a FIT blob, this hack
allows us to boot raw ATF image, without checking anything in the header of the
image since is non-existent.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Now that iMX8QX and iMXQM will have SPL support, the socs list that support it
has to be updated. Instead of building 8m only build for all imx8.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
In case CONFIG_DM is not enabled, the driver needs to be initialized through
serial_initfunc. All the ops are implemented again this time using the
lpuart_serial_data.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
The imx_sec_init is called at board_f phase, this phase forbids to
write any global variable in BSS section, because the BSS section is
overlay with u-boot dynamic relocation entries (or DTB) which are used during
u-boot relocation after board_f phase.
Now the g_jrdata is in BSS section and it is initialized during imx_sec_init.
Therefore, it destroys the relocation entries (or DTB) and causes various u-boot
issues.
Fix the problem by assiging default value to g_jrdata.status, so g_jrdata is
moved to data section.
Signed-off-by: Ye Li <ye.li@nxp.com>
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>
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-imx8mm.c
or use init-on-array under clk node.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 7732b3b87423069c1c31d25ec07201098062b717)
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>
(cherry picked from commit 240475ecb29aff22fb362ea39f3bf8e7045281db)
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>
(cherry picked from commit 72a06ef47c7c93de49730261adb8f251612d1883)
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>
(cherry picked from commit 220d0cc79a3f340e0da664242bb19ccda7a071d1)
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>
(cherry picked from commit 2b2cd1adc23525d2fb79dc281cd2a741ebe13f90)
All previous u-boot versions use eth0 as the prime ethernet port on iMX6SX
SDB board. But this default configuration is modified to eth1 when upgrading
to v2017.03. Change it back to align previous setting.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 1f128fdba8399878243444e71646f941a6ca9649)
Still meet DPLL unstable issue on iMX8QXP B0 when doing various stress tests.
So switch back to use AVPLL for usdhc on B0
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 099ddce37cf3100d0aeb0964db7b24e5a59ee1d0)
Add the secure boot relevant environment variables to ARM2 and MEK.
When CONFIG_AHAB_BOOT is enabled, we will switch to boot flow:
1. Load the signed OS container to address 0x88000000
2. Using auth_cntr to authenticate the OS container. It will load the
kernel and FDT to destination addresses.
3. Using booti to boot kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit eb47b72c1c89deddeaa3b3618d8c28aca05cd4ad)
Meet such warning during boot with EPDC splash screen enabled, because the
flushed waveform buffer size is not aligned to cacheline size
CACHE: Misaligned operation at range [ff027d00, ff270d99]
Since we have enough 4MB buffer allocated, round up the flushed size to
eliminate the warning.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 211af0d11f4472d7575b54ad5d14e79f77e71b6a)
Since the epdc_flash.bin size has increased over 2MB, the orignal buffer size
can't fit it and will cause overwrite to other useful data in heap. Thus,
increase the EPDC waveform buffer size to 4MB to align imx7d and imx6ul
platforms.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 6aaca204c1ccdb967065ebb03cf39ecd8f4d6766)
When TEE is enabled, the high 32MB memory is reserved to TEE. So the
mtest end address 0x9e000000 will overlay with u-boot runtime text and data.
Fix the issue by changing the mtest end to half of DDR size.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 9b56f22639703bd70bfdd1de0cbdcef2b80f0bff)
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)
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>
(cherry picked from commit 0d33db00e96e7addb6910a7097a62222ff75480f)
CONFIG_STACKSIZE is removed, so when enable CONFIG_CMD_BEE
there will be build failure.
The previous CONFIG_STACKSIZE value is 128KB, so replace
CONFIG_STACKSIZE with SZ_128KB in bee.c to avoid build error.
Signed-off-by: Peng Fan <peng.fan@nxp.com>