summaryrefslogtreecommitdiff
path: root/board
AgeCommit message (Collapse)Author
2018-11-29apalis-imx8: forward port to 2018.03toradex_imx_v2018.03_4.14.62_1.0.0_beta-bringupMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-11-29colibri-imx8qxp: forward port to 2018.03Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-11-29apalis-imx8.c: fix typoMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit cba518b4bbe4b9dfccb21ffe3cd0929c1a420719)
2018-11-29pf8100: add pmic fusing commandMax Krummenacher
Note that this requires the SCFW in a version which provides access to the PMIC I2C. Something which the regular SCFW should not do. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 582a98a218dab6ac5a13ebd1cbd7a16e4b8305f3)
2018-11-29colibri-imx8qxp: synchronize with imx8qxp-mek from beta2Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81)
2018-11-29colibri-imx8qxp: move debug uart to lpuart3Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9)
2018-11-29colibri-imx8qxp: initial addMax Krummenacher
Initial board support for Colibri iMX8QXP using a copy of Apalis iMX8. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 62f0f03e1acb4bb6b0fcca8d4e9bd4d2df04ad33)
2018-11-29tdx-cfg-block.c: correct colibri imx8 stringMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 200ed432e13e93c4c094031fe4d4481998227139)
2018-11-29tdx-cfg-block: add Apalis iMX8 QuadMax supportStefan Agner
Add support for interactive recovery of Apalis iMX8 QuadMax config block. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd) (cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487) (cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd)
2018-11-29toradex: configblock: add an -y parameter to 'cfgblock create’Dominik Sliwa
Add an optional -y parameter to 'cfgblock create’ to simplify automation. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit d909b68d7f9da189a16e3ead0a6454b715201e23) (cherry picked from commit ace5cf96413d3c736148dcecd1481e4249b7c5f1) (cherry picked from commit 31091506e79e4924f47bc20b1830d6beef9bd1d7)
2018-11-29toradex: configblock: initialize MMC before switching partitionStefan Agner
If the module is in serial downloader mode, we do no longer read the environment from eMMC. Therefor, the eMMC is unitialized when trying to read the config block. Use mmc_init to initialize the selected MMC device before using it. Note: In case the MMC has already been initialized, the mmc_init detects that and returns immediately. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> Conflicts: board/toradex/common/configblock.c (cherry picked from commit 0520b532d77d238be8015d3041a95188e47945cc) (cherry picked from commit 3cb5f6450c39678a6361620bd45c423a503895cd) (cherry picked from commit 79d3008acaebc0d33ba8fc21ffe46f058416d4a3) Conflicts: board/toradex/common/tdx-cfg-block.c
2018-11-29tdx-cfg-block: add config block supportStefan Agner
Add Toradex config block support for i.MX8QM. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 18426b50681e6cd64ab5977f0ba84efd3f7c4495) (cherry picked from commit c6d0e1042170d273a5b5434abe867213155d5582) (cherry picked from commit ae31e946da33510a352795de09aa1c0ea9fc8280)
2018-11-29tdx-cfg-block: add new SKUsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit c97ae21d2e87f673e7f249f30df154b2bf5472fa) (cherry picked from commit e82aab70ddcc0ea46e342980648fd23e69396b94) (cherry picked from commit efc8eb53cc3184c88d4b76459cd585fcd594e118)
2018-11-29tdx-cfg-block: add new sku'sMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 3f5807fa41c1744f6d4a9f0b702fb01a31fd73a7) (cherry picked from commit 77471afdd9b663b775a2d2a1acc383767268e343) (cherry picked from commit 2cb9fd05afebb14e594a27cb33c19919f39fd142)
2018-11-29apalis-imx8: remove unused GPIOsStefan Agner
Remove GPIOs used on the validation board but not required on Apalis iMX8. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 9a8a826591c490c0a11c4baeef31c73f482c0438) (cherry picked from commit adf5a30588c4352fc78c59b0d0c04fd43c6dad25) (cherry picked from commit b0cabfcfd6d5abd3f1a9d429acf3f44d5c76bb1d)
2018-11-29apalis-imx8: use UART1 as console UARTStefan Agner
NXP LPUART1 is used as Apalis UART1, which is the main console on our Linux BSP. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 360629c1fd6187de19d0f50feb85c725995e49cc) (cherry picked from commit 63030dac6afc51d17b04d23ce41af4788f03717e) (cherry picked from commit 7bbe1708e0cebf3432c234ea74f8d6fb632a023b)
2018-11-29apalis-imx8: fix EthernetStefan Agner
Make sure that all pins connected to the Micrel KSZ9031 PHY are muxed. Properly reset the PHY after all muxing has been applied. This makes sure that strapping is not overwritten by the SoC default mux (particularly it makes sure that CLK125_NDO is not driven low during reset). Make sure to not use CONFIG_DM_ETH as it seems to break ETH support as is. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit f0a1ceb6f5e2ab3b3618190541b1e7a9fd4c1e4a) (cherry picked from commit 8f6405070189a8744c2f6a9d9a6e041554fb9046) (cherry picked from commit 6f24c637fd7725a27249d6a950f587134f30b97c)
2018-11-29apalis-imx8: remove PCA9557 GPIO controllersStefan Agner
The Apalis iMX8 module does not have PCA9557 GPIO controllers on the module. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit c80b3bfbe693d5a8851129f4878d0cd3a7325d13) (cherry picked from commit 898ae105703cd0019a542bc0a17649339c934fa6) (cherry picked from commit 69d385444efa79d2909f772c4a4b404d1bd7274d)
2018-11-29apalis-imx8: fix eMMC/MMC/SD interface muxingStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit fa3d4f980a515b135778a74ce1b7476f61ef20d0) (cherry picked from commit 2ee92bc1dd56b44343079a5474d0fc4e79f28f4a) (cherry picked from commit 649afbe0aec4089112772a49a7e6f7d34c3741a7)
2018-11-29apalis-imx8: initial addStefan Agner
Initial board support for Apalis iMX8 using a copy of NXP iMX8QM ARM2 LPDDR4 board. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 68e401998ba0654292b7914b85433d8453202ec8) (cherry picked from commit 6b9234fa1f5889f0eeecc6147afffbc859933c99) (cherry picked from commit 0b7feded806717b4292615373ed6c018324b8ef5) Conflicts: arch/arm/cpu/armv8/imx8/Kconfig, file moved
2018-10-12MLK-19904 imx8mm_ddr4_evk: Update the mr value settingBai Ping
Update the DDR4 MR value on i.MX8MM DDR4 EVK board. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0db8f9bc6ee7e087515573f79bc406edf9b36f9f)
2018-10-11MLK-19881 imx8mq_arm2: Fix SPL issue to support uuuYe Li
The codes in imx8mq ARM2 SPL still return back to ROM when booting from usb serial download. This is old way to support mfgtool not uuu. Update the codes to support uuu when SPL SDP is enabled. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit ad4444fe64dcfe18da49b8bf4fa2e97100ffd936)
2018-10-10MLK-19777-03: imx8mm_evk: Optimize the ddr4 init flowBai Ping
Optimize the DDR4 init flow. Split the common flow with the DDR specific timing config. So the common flow can be reused. Signed-off-by: Bai Ping <ping.bai@nxp.com> (cherry picked from commit 65fed31a520edf2f19f7fd1c10ff317ce4496ce6)
2018-10-10MLK-19777-02 imx8mm: rename lpddr4_timing variable to dram_timing.Bai Ping
For LPDDR4 and DDR4, we use the same dram_timing struct to config parameters. rename the 'lpddr4_timing' to 'dram_timing' for common use. Signed-off-by: Bai Ping <ping.bai@nxp.com> (cherry picked from commit 4e9048d810eb92c395453a28dea2a44961e08948)
2018-09-29MLK-19762 imx8mm: Fix i2c pad issue in SPLYe Li
We enable the pull-up resistor for i2c pad by setting the PAD_CTL_PUE. But this requires to enable pull resistors first by setting PAD_CTL_PE on iMX8MM, otherwise the pull-up won't work. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e2985a6e6437bba1b07ea88527aa83e1eda6d691)
2018-09-29MLK-19769-1 iMX8QM SPL: Add QSPI support for imx8qm_mekAbel Vesa
Allow iMX8QM mek SPL to boot from QSPI. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e2c73faa7b2048551824773adf66b3912108d867)
2018-09-29MLK-19770-1 iMX8QM SPL: board: imx8qm_mek: Add spl implementationAbel Vesa
Add spl implementation for iMX8QM MEK board. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 3695f4c41c1643d4dadb67eb8a52f775ac8abeb2)
2018-09-29MLK-19183-14: iMX8QXP SPL: Add ARM2 board supportTeo Hall
Add implementation for ARM2 LPDDR4 board Signed-off-by: Teo Hall <teo.hall@nxp.com> (cherry picked from commit a6b6fd8aa69c2f8a9a4c8b5a15de6aa044b39fba)
2018-09-20MLK-19645 mx6ulz_evk: Fix fdt_file variable issueYe Li
Since we set the fdt_file value when running on iMX6ULZ. This cause the saved fdt_file change be overwritten. So users can't set to their own fdt_file. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-09-20MLK-19625 mx6ulz_evk: Disable the FEC driver and support USB2NET dongleYe Li
Since the mx6ulz don't have FEC, it needs to use USB2NET dongle to connect network. We decouple the CONFIG_FEC_MXC with CONFIG_CMD_NET. For 6ull, all defconfigs need to enable the CONFIG_FEC_MXC explicitly. Another change is adding ${usb_net_cmd} environment for usb start command in netboot scripts on 6ulz. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-09-18MLK-19183-12 iMX8QXP SPL: Add QSPI support for imx8qxp_mekAbel Vesa
Allow iMX8QXP SPL to boot from QSPI. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2018-09-17MLK-19599 imx8mm_ddr4_evk: Add NAND boot supportYe Li
Add SPL and u-boot support to load images from RAWNAND device when booting from RAWNAND. The NAND SPL loads the FIT image from nandfit mtdpart at 64MB offset of NAND. Users need uuu to burn the FIT image, kernel, DTB and rootfs to all fixed mtdparts. Since NAND SPL needs large BSS and MALLOC size, this patch also moves the MALLOC pool to DDR, and enable MALLOC_F pool on OCRAM for all malloc before DDR initialization. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-09-14MLK-19589 baord: imx6ulz: add imx6ulz supportBai Ping
Add i.MX6ULZ support. the i.MX6ULZ is SW compatible with i.MX6ULL. so most code of i.MX6ULL can be reused by i.MX6ULZ. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-09-12MA-12669 imx8qm/qxp_mek: Guard TCPC codes with proper configLuo Ji
Separate tcpc related operations with config CONFIG_USB_TCPC so we can enable/disable this feature separately. Test: Boot ok on both imx8qm/8qxp_mek. Change-Id: I46ef775e8deb4443944c0e969a4ced67c11ac48c Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-09-11MLK-19541 imx8mm_evk: Add imx8mm DDR4 EVK CPU board supportYe Li
Add DDR4 init codes, u-boot dtb and defconfig to support DDR4 EVK. The DDR4 EVK removed eMMC and Flexspi, but use NAND instead. Current codes support to boot from SD and enable NAND access in regular u-boot. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2018-09-07MLK-19483: i.MX6/7: pack qspi header with u-boot for i.MX6/7 qspi u-bootHan Xu
To support the uuu, pack the common qspi header with u-boot binary for i.MX6/7 qspi u-boot. Signed-off-by: Han Xu <han.xu@nxp.com>
2018-09-03MLK-19380 imx8mq_evk: update the ddr controller QoS settingTom.zheng
enhance memory controller performance and QoS setting Signed-off-by: Tom.zheng <haidong.zheng@nxp.com> Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Jian Li <jian.li@nxp.com> (cherry picked from commit ae7b37d3ed72bad542c8e77db4bbc0325180d6d2)
2018-08-30MA-12552 Adjust SPL malloc pool and stack addressLuo Ji
This commit is basically cherry-picked from: commit ced8dc6ce85f2227a29a52d55836b73223e71e73 Author: Ye Li <ye.li@nxp.com> Date: Mon Aug 20 23:35:20 2018 -0700 MLK-19263-2 imx8mq_evk: Adjust SPL malloc pool and stack address Currently the SRAM is allocated to malloc pool due to large malloc needed by USB SDP. The stack is moved to OCRAM. This causes a problem when enabling HAB. The HAB authentication needs large memory on stack, so after ATF image loaded, the stack overwrites the ATF image in OCRAM and causes authentication failed. This patch moves the malloc pool to DDR and set back stack to SRAM. So SDP still can run with enough memory on DDR. And the stack overwrite issue can be fixed by enough memory 24KB left on SRAM. This change also need to use a early malloc pool by defining the CONFIG_MALLOC_F_ADDR. And in SPL codes, we have to adjust DDR init before board_init_r. Signed-off-by: Ye Li <ye.li@nxp.com> Change-Id: I37e0d196296b6b25662dda3dbbbc265bdf6d983f Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-30MA-12551 [iot] Change configs to enable uuu on AIYLuo Ji
Sync configs with BSP team to enable uuu for imx8m AIY board, create new file imx8mq_phanbell_androidthings_uuu_defconfig for uuu image build. Test: uuu works on imx8m AIY board. Change-Id: Ied7cbb6d45d084837495cec5eeb5b4947a0630c4 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-21MLK-19263-2 imx8mq_evk: Adjust SPL malloc pool and stack addressYe Li
Currently the SRAM is allocated to malloc pool due to large malloc needed by USB SDP. The stack is moved to OCRAM. This causes a problem when enabling HAB. The HAB authentication needs large memory on stack, so after ATF image loaded, the stack overwrites the ATF image in OCRAM and causes authentication failed. This patch moves the malloc pool to DDR and set back stack to SRAM. So SDP still can run with enough memory on DDR. And the stack overwrite issue can be fixed by enough memory 24KB left on SRAM. This change also need to use a early malloc pool by defining the CONFIG_MALLOC_F_ADDR. And in SPL codes, we have to adjust DDR init before board_init_r. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-08-21MLK-19223 arm: imx8mm: add MXC_XXX_CLK clock map for imx common codeHaibo Chen
Now fsl_esdhc driver require the index of USDHCx_CLK_ROOT should be defined sequentially. otherwise driver may get the wrong usdhc root clock. e.g. for imx8mm, usdhc3, driver actually get the rate of I2C1_CLK_ROOT This patch add MXC_XXX_CLK, map to the real defined clock index. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 5cddab6e02e99a748f66e32880906aa427dc8e60) Conflicts: arch/arm/cpu/armv8/imx8m/clock_imx8mm.c
2018-08-21MA-12244-1 [Android] Load HDMI RX firmware for imx8qmLuo Ji
The hdmi rx firmware is appended to the end of u-boot binary, load it in u-boot, this will increase the size of u-boot binary by 128k. Test: hdmi rx firmware loaded successfully on imx8qm_mek. Change-Id: Ib8e8ecd70a35b56ba4498c21d8c4716f6ad6405a Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-21[iot] Change VDD_DRAM to 0.9V which is valid in datasheetZhang Bo
Change VDD_DRAM to 0.9V Change-Id: Ia2d0672b2f31f18add6626ac2e23e66b8c421a75 Signed-off-by: Zhang Bo <bo.zhang@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5139 Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-21[iot] Change VDD_3V3 to 3.1V and VDD_1V8 to 1.695VZhang Bo
Change the VDD_3V3 and VDD_1V8 to lower one to save power. Change-Id: I61f1f4ed8c6e036173d9adc5358db01bd9c835a2 Signed-off-by: Zhang Bo <bo.zhang@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5144 Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-20[iot] Decrease panbell DDR frequency to 1600 MTSLuo Ji
Decrease the phanbell DDR(1G + 3G) frequency to 1600 MTS, this may save some power. Test: Boot ok on both 1G and 3G DDR board, the dram_core_clk decrease from 800000000 to 400000000. Change-Id: I73b78865e7691001a868061826f0211cb9927cee Signed-off-by: Luo Ji <ji.luo@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5100 Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-20[iot] Support 1G DDR AIY boardLuo Ji
Add 1G DDR support, distinguish different boards by the Board ID, They are: SAI5_MCLK: Board_id[6] SAI5_RXFS: Board_id[5] SAI5_RXC: Board_id[4] SAI5_RXD3: Board_id[3] SAI5_RXD2: Board_id[2] SAI5_RXD1: Board_id[1] SAI5_RXD0: Board_id[0] Current Board ID for imx8m boards are: AIY Micron 1G: 0x5c AIY Hynix 1G: 0x56 AIY Mirconb 3G: 0x40 Wibo 3G: 0x00 imx8m_ref 3G: 0x00 Test: Boot ok on all imx8m boards. Change-Id: I3d65931483f369c545632b660f04fc9da120547d Signed-off-by: Luo Ji <ji.luo@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5093 Reviewed-by: guoyin.chen <guoyin.chen@nxp.com> Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-20MA-12124 [Android] Fix build warnings for u-bootLuo Ji
Fix build warnings in u-boot. Change-Id: I1944657d2d89a03c0d2303a22a09538dfaa5fd2c Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-20[iot] Move i2c_setup calls to board_initBraden Kell
i2c_setup calls force_idle_bus which calls get_timer if SDA and SCL are not high. On the Pico baseboard there are level shifters that pull SDA and SCL high, but the test harness does not have pull-ups on these lines. Because board_early_init_f is called before timer_init the call to get_timer was causing a divide-by-zero error due to CNTFRQ not being initialized. Moving the i2c_setup calls to board_init fixes this issue. power_init_board (which uses I2C to configure the PMIC) is called after board_init, so this should be safe. Bug: Test: PMIC registers are read correctly on both boards (DEV_ID=0x30 REV_ID=0x11) Test: iMX7D SOM boots on Pico baseboard Test: iMX7D SOM boots on test harness Change-Id: Iecdd28f3177fe915a3b614565d8dfa6e20e6a842
2018-08-16MLK-19249-1 imx8mq_evk/arm2: Force DWC3 gadget to high speedYe Li
Since the u-boot gadget class drivers don't support super speed, if we set DWC3 gadget driver to super speed, the device mode will meet problem when using USB3.0 cable. So force the DWC3 gadget driver to high speed for both SPL and regular u-boot. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-08-16MLK-18502: board:imx8mm_evk enable tzascSilvano di Ninno
Enable TZASC on i.MX 8mm. There is a need on 8MM to enable the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors. Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>