Commit Graph

3493 Commits

Author SHA1 Message Date
Alexandre Bard 5cdce0ed93 config: Move CONFIG_OF_BOARD_SETUP to defconfig
Instead of include file

BugzID: 71440
2021-04-30 11:24:12 +02:00
Alexandre Bard ec54da360d HW23: Use new I2C DM interface
With yocto update to dunfell release, this config is not allowed anymore
and the code must use the new I2C DM interface.

BugzID: 69636
2021-01-15 13:43:48 +01:00
Alexandre Bard 14a5c2a688 hw23_defconfig: Fix format
Using savedefconfig instead of manually edited file.
Required for further changes.
Part of upgrade to yocto dunfell.

BugzID: 69636
2021-01-15 13:39:27 +01:00
Andrejs Cainikovs 4f2f5f805e nmhw23: add led support
BugzID: 59207
2020-02-05 12:35:56 +01:00
Andrejs Cainikovs 207a9981df nmhw23: align autoboot stop char with other products
BugzID: 61158
2020-01-24 16:24:37 +01:00
Andrejs Cainikovs c603e3265f nmhw23: adjust/cleanup i2c/eeprom config
BugzID: 58739
2019-08-30 14:26:19 +02:00
Andrejs Cainikovs 58d0c72309 nmhw23: add EEPROM support
BugzID: 58739
2019-08-29 12:25:28 +02:00
Andrejs Cainikovs 5f9c58a99a nmhw23: add pxe command
BugzID: 58731
2019-08-28 12:07:56 +02:00
Ramon Moesching 74585ec488 imx8_nmhw23: enable support for loading fitimage from ext4
Enable ext4 supoort and allow importing existing environment
file from filesystem

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-07-02 17:37:40 +02:00
Andrejs Cainikovs 8ca326d9a4 nmhw23: port changes to NXP branch 2019-06-05 12:26:32 +02:00
Andrejs Cainikovs 7a57d88098 nmhw23: include mtest command
Plus tab fixes in board header file
2019-06-04 14:28:41 +02:00
Andrejs Cainikovs 614105eaa1 nmhw23: add ethernet config 2019-06-04 14:27:26 +02:00
Andrejs Cainikovs 0962de82c7 nmhw23: add sja1105 driver 2019-06-04 14:26:25 +02:00
Andrejs Cainikovs 1583ea5c0c nmhw23: Add spi3 software SPI 2019-06-04 14:24:03 +02:00
Andrejs Cainikovs c7fb43d5ae Add iMX8 NMHW23 target 2019-06-04 14:22:06 +02:00
Ye Li 5cc3fbe211 MLK-21400 mx6solosabre: Enable fastboot for UUU support
Enable fastboot configurations in mx6solo sabresd and sabreauto
defconfigs to support UUU. Since the DDR size on mx6solo sabre
boards is smaller, also change the fastboot buffer to 256MB.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit c482755fb22fa1a459927ed9aadf2477c42b1a59)
2019-04-09 02:46:48 -07:00
Zhang Bo 57fa56f3ce MA-14501[Android] change BOOTAUX_RESERVED_MEM macro to defconfig
As the M4 use different DDR memory size in normal android/car2 and car
image, use different defconfig for car2 to decrease DDR memory
reservation. So memory reserved for each M4 core is 8MB in car2 and
normal android image. it's 32MB for car image.

Change-Id: Idf608f539cd614a154c78e3a1af28eff1da5c1f2
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2019-04-02 18:48:27 +08:00
Ji Luo d3ddc1970d MA-14318-4 Support dual bootloader for xen
Add defconfig file to support dual bootloader for xen.

Test: build and boot on imx8qm_mek.

Change-Id: I21e372b71a9b25e4cbf71cf7f41cfd87296b9afe
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-03-12 19:12:27 +08:00
Zhang Bo ff76415a1b MA-14296-2[Android]Enable virtual I2C for imx8qxp to support fastboot function
The enable pin of USB is controlled by i2c IO expender which is
controlled by M4 image. Add macro to enable virtual i2c function. It
will send i2c message to M4 side to enable USB phy chip.

Change-Id: Ib7ed710d293b002526be3bd233921797eb9c6d41
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2019-03-12 13:41:19 +08:00
Ji Luo 3d2b5c0dae MA-14289-1 Revert "imx8q: Move spl to dram to fix reboot issue"
Move spl to 0x8000_0000 will cause cpu1 ~ cpu3 jump to spl when
boot/reboot, revert this patch.

This reverts commit 7d111f4c8bac25c234b0fc24af885421ce8bb188.

Change-Id: I9adcd980b42a7539d6309cafaabff9d079ca993d
2019-03-08 16:41:05 +08:00
Ji Luo 84c7771c4b MA-14273-1 imx8q: Move spl to dram to fix reboot issue
The spl is located at ocram which will be lost when suspend/resume,
partition reboot will make A core reboot from the start address of
ATF, which blocks dual bootloader feature on Android Auto.

Move the spl to dram and make the partition reboot from spl to fix this
issue. The memory map will be changed to:
  SPL:    0x0000_0000 --------> 0x8000_0000
  ATF:    0x8000_0000 --------> 0x8004_0000
  U-boot: 0x8002_0000 --------> 0x8006_0000

Test: reboot ok on imx8qm/imx8qxp.

Change-Id: I49e8be51bf427dd00eb7507de22a787c6f6e1582
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-03-07 14:07:42 +08:00
Ji Luo 2c68a8f618 MA-14173-1 Enable trusty for imx8mq_aiy
Create new config file based on "imx8mq_aiy_android_defconfig"
and enable the CONFIG_IMX_TRUSTY_OS to supprt Trusty OS for AIY.
Also enlarge the malloc poll to 96 MB because calculate hash
with CAAM will consume more heap memory.

Test: Trusty OS boots up and CAAM functions work.

Change-Id: Ia4bdf4c32617cb4d2951b63f34f3a4a83f4af1b5
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-03-05 16:27:32 +08:00
Ji Luo 63dbfc00b9 MA-14129 Update ddr training code for imx8mq_aiy
Update the ddr training code to work with the atf 2.0.

Test: Build and boot on imx8mq aiy 3G board.

Change-Id: I8546c34cfa4aeeed819f7797f8362676e420b41f
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-02-26 10:00:37 +08:00
Ye Li 589b813043 MLK-20982 imx8qxp_mek: Fix missed SPL NOR SUPPORT
Need to enable SPL NOR support for working with M4 XIP image. Missed
it in previous patch.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 51f7d1e0c46e67355f8361c1bac8322e8c6788a8)
2019-02-25 01:52:56 -08:00
Peng Fan 8246300186 MLK-20974 imx8qm: remove trusty support in domu
Remove trusty support in domu, since trusty EL3 not ready to handle
tipc being interrupt by xen. But we still leave the memory for trusty,
then it could be easy to add trusty back.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit 1623426811bdf59c3d5dcab2be20293910a9bc5d)
2019-02-25 17:04:34 +08:00
Ji Luo 24e33164cb MA-14120 Add config to guard append bootargs support
Grant user the permission to change the bootargs can be very
dangerous, so add config 'CONFIG_APPEND_BOOTARGS' to guard the
bootargs appending feature.

Test: bootargs can't be appended if "CONFIG_APPEND_BOOTARGS" is
      not set.

Change-Id: I6d6879415ca251c806b56490290e5032aef24277
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-02-22 10:14:10 +08:00
Ye Li 88a27bb2d4 MLK-20945-7 imx8qm/qxp: Update MEK SPL configurations
Update MEK SPL configs to enable SPL NOR support and change ENV to
SD as default.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit f21f2571befdad09b9c9df4fe1fc8e27cf315019)
2019-02-19 00:46:37 -08:00
Ye Li aad2dd8b58 MLK-20886-12: imx8qxp_mek: Enable i2c and i2c mux virtual drivers
Update the defconfig files for imx8qxp MEK to enable i2c and
i2c mux virtual drivers.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit f2d75f7925108d4cc89c8cd4f1d9f735803c8ad1)
2019-02-12 06:56:32 -08:00
Ji Luo fd421f74db MA-14051 Enable trusty for imx8q xen
Open configs to add trusty os support for imx8q xen
build. The rpmb keyslot package must be checked and
copied to secure memory before trusty os boot.

Change-Id: I66201783fa8439f2685377c10f257f064057dcfa
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-01-31 12:41:00 +08:00
Ye Li 2f8269b3d8 MLK-20794-3 imx8qxp_arm2: Using CONFIG_DEFAULT_FDT_FILE for kernel FDT
Since different ARM2/Validation boards use different kernel FDT, configure
them to CONFIG_DEFAULT_FDT_FILE in defconfig

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2019-01-24 18:38:07 -08:00
Ye Li 9eea203022 MLK-20794-2 imx8qxp_arm2: Add support for 17x17 validation boards
There are two new validation boards: LPDDR4 board (30123) and DDR3L board (30010)
for imx8x family 17x17 chips. These two boards have same design except the DDR.
Since SCFW is resposible for DDR initialization, U-boot could use one build to
cover two boards.
The 8DX 17x17 DDR3L ARM2 has been added into u-boot before, so we rename the config
CONFIG_TARGET_IMX8DX_DDR3_ARM2 to CONFIG_TARGET_IMX8X_17X17_VAL to cover DDR3L and
LPDDR4.

Considering 8DX and 8QXP 17x17 may solder to the boards, we create two defconfig:
one for DX and another for 8qxp to share with the CONFIG_TARGET_IMX8X_17X17_VAL
but with different FDTs.

Signed-off-by: Ye Li <ye.li@nxp.com>
2019-01-24 18:38:07 -08:00
Ji Luo 1594150dba MA-13940 [Auto] imx8q: Enable dual bootloader
Open configs to enable dual bootloader feature for
imx8q Android Auto.

Test: Build and boot on imx8q.

Change-Id: I99da2ee6b87efd201e16df1046188ae86cab1466
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-01-18 12:07:21 +08:00
Ye Li 3f4b5b9cf4 MLK-20559-9 Android: imx8qm/qxp: Update android configurations
Due to some USB configurations are moved to header file to bypass
SPL build. Changes android and androidatuo defconfigs and header
files to avoid build break.

Signed-off-by: Ye Li <ye.li@nxp.com>
2019-01-08 21:46:31 -08:00
Ye Li 188aea7489 MLK-20559-8 imx8qm/qxp: Update MEK board codes to support UUU
Enable the SPL SDP driver and USB driver in MEK board codes and defconfigs.
Because the USB driver needs larger malloc pool, increase the malloc size
and disable simple malloc

Signed-off-by: Ye Li <ye.li@nxp.com>
2019-01-08 21:46:31 -08:00
faqiang.zhu 45e94c08e6 MA-13850-1 change the device tree and DDR related configuration
After two defconfig files are directly copied from 8mm_evk_android
for 8mm_evk_ddr4_android, this patch adapt the defconfig files.

Device tree used in defconfig files are modifed, a configuration
item of "CONFIG_TARGET_IMX8MM_EVK" is modified to be
"CONFIG_TARGET_IMX8MM_DDR4_EVK"

Change-Id: Ib48449d0c7abab45aff3a58a9c78c481290e7e6a
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-12-26 10:31:10 +08:00
faqiang.zhu 4e36b29d2c MA-13850 add two defconfig files for evk_imx8mm ddr4 version
Add two defconfig files for imx8mm ddr4 version.
These two defconfig files are:
imx8mm_ddr4_evk_android_defconfig
imx8mm_ddr4_evk_android_uuu_defconfig

They are respectively copy from the files below:
imx8mm_evk_android_defconfig
imx8mm_evk_android_uuu_defconfig

Change-Id: Ic2ab2b51328b23446e8f264eb27308d226b57295
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-12-26 10:29:48 +08:00
faqiang.zhu 9da9e76a44 MA-13785 remove the fastboot command of ucmd and acmd
To avoid end user executing uboot command through fastboot, the fastboot
command of "ucmd" and "acmd" in the uboot to be flashed into
non-volatile storage device is removed in this partch.

Change-Id: I999b8688a53c2201d02979be68266afc110dfb15
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-12-20 12:30:29 +08:00
faqiang.zhu d152aa00a6 MA-13788 add defconfig for aiy_imx8mq uboot used by uuu
To align aiy_imx8mq uboot used by uuu with other platforms, a defconfig
used to configure and build uboot used by uuu is added.

This "imx8mq_aiy_android_uuu_defconfig" for now is a copy of below file:
imx8mq_aiy_android_defconfig

Change-Id: I7c96297fa13fa7bb02117ceee8675e95f86e7b60
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-12-19 09:12:08 +08:00
Ji Luo fc734f07d7 MA-13759-1 imx8mm: Enable trusty support
Open configs to enable trusty for imx8mm_evk and also
add new config imx8mm_evk_android_trusty_defconfig based
on imx8mm_evk_android_defconfig.

Test: Trusty starts ok.

Change-Id: Iaea90de21f886ed23082a5e8e8d2fa7fb139a9cb
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-12-12 21:02:10 +08:00
Ji Luo 532ff012e4 MA-13637 [Auto] Enable memory operation commands
Enable the memory operation commands because we need them
sometimes, this won't increase much boot time.

Test: build and boot on imx8qm_mek.

Change-Id: Idad8de845203c3d958dd58c58b17b7d8a5d65b4f
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-12-04 09:53:12 +08:00
faqiang.zhu 6dffe1931e MA-13537-3 disable SPL feature for uuu uboot
uuu doesn't parse SPL+FIT format for mek_8q platforms. this patch
delete SPL and FIT related configurations in defconfig file for uuu
uboot.

Change-Id: If7c352a60a1534b1a5af9f0b661953c9c60191dc
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-11-27 21:12:33 +08:00
faqiang.zhu ff5c0434de MA-13537-2 add defconfig files for uuu uboot image
defconfig files for uuu uboot and uboot flashed to board need to be
different.
because ab slot feature need to be used, defconfig of BSP team won't
be used.

this patch add for defconfig files for uuu uboot used on imx8. these
two files are directly copied from the files below:
1. imx8qm_mek_android_defconfig
2. imx8qxp_mek_android_defconfig
3. imx8mm_evk_android_defconfig
4. imx8mq_evk_android_defconfig

they are respectively be pasted as:
1. imx8qm_mek_android_uuu_defconfig
2. imx8qxp_mek_android_uuu_defconfig
3. imx8mm_evk_android_uuu_defconfig
4. imx8mq_evk_android_uuu_defconfig

Change-Id: I483593beb99477f1821c529254856d372d274661
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-11-27 21:12:33 +08:00
Ji Luo 1143268cc5 MA-13459 Enable uuu for imx8mq_aiy board
Open configs to enable uuu for imx8mq_aiy.

Test: uuu flash ok on imx8mq_aiy.

Change-Id: I2c4a1010bf9b32f7cf706e9fa2f75133cf173b35
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-26 14:02:33 +08:00
Ji Luo 686470235b MA-13453-1 Add new board target imx8mq_aiy
Add support for new target imx8mq_aiy.

Test: build and boot ok on imx8mq_aiy.

Change-Id: I7bb8b66e5235a7122073dcfb4cdc7f165036b9a6
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-26 14:02:33 +08:00
faqiang.zhu 21d4e35d94 MA-13488-3 remove FIT related configurations for imx8q
for 8qxp_mek and 8qm_mek platforms, container is used instead of FIT,
SPL now will load container, not FIT.
This modification can minish the size of u-boot image.

Change-Id: Id7e3e62bf95db5941264c3370a3e092e9b77a42f
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-11-23 09:41:32 +08:00
Luo Ji f042c8f7ca MA-13487 Refine fsl avb functions
Too many macros are used in fsl_avbkey.c and
make it difficult to maintain.
This patch made some refine by:
  1. Move all avb/atx operations to fsl_avb.c.
  2. Refine the functions logic.
  3. Drop some unsupported conditions/functions.

Test: build and boot on
      imx8qm_mek/imx8mq_evk/imx6qp_sabresd/imx7d_pico/imx8m_aiy.

Change-Id: I5c99732acfc47d53cdf188d69223983777e577f4
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-11-21 20:56:03 +08:00
Ye Li eabb33f2a4 MLK-20436 mx6sabreauto_eimnor: Fix typo in defconfig files
Fix typo "ONFIG_CMD_FLASH=y" in defconfig, correct it to
CONFIG_CMD_FLASH=y

Signed-off-by: Ye Li <ye.li@nxp.com>
2018-11-21 02:04:49 -08:00
Peng Fan 88a1718aa7 MLK-20383 imx8qm: xen: enable dm usb
Enable dm usb using the base board otg usb port for fastboot usage

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
2018-11-16 13:33:30 +08:00
Peng Fan 132cb6f74b MLK-20373-6 imx8qm: xen: enable dm serial
Enable dm serial for xen uboot.

Log as below:
 #xl console 1
MMC:   FSL_SDHC: 0
Loading Environment from <NULL>... *** Warning - bad CRC, using default environment

Failed (-5)
In:    serial@5a060000
Out:   serial@5a060000
Err:   serial@5a060000
flash target is MMC:0
Fastboot: Normal
Normal Boot
=>

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-15 16:37:04 +08:00
Ji Luo 17a0dd7344 [iot] Enable HAB for imx8m
Enable HAB for imx8m Android Things platform, this will enable
HAB verify for bootloader.img(atf+tee+u-boot) at spl stage.
Disable the HAB verify for bootimg because we will use AVB to
verify it.

Test: Build and boot ok on AIY.

Change-Id: Ia6ee456c7c5fa71afc3740689adf898f411c6c4e
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-12 09:18:38 +08:00