summaryrefslogtreecommitdiff
path: root/board
AgeCommit message (Collapse)Author
2019-07-15colibri-imx8qxp: make sure config block fdt fix-ups are calledMing Liu
Make sure the config block information are passed to the kernel using the device tree properties toradex,product-id, board-rev and serial-number. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2019-07-09toradex: configblock: re-sync with mainlineMarcel Ziswiler
Re-sync with mainline which fixes missing Apalis iMX8 and Colibri iMX8X SKU and their interactive handling. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-07-01apalis-imx8/colibri-imx8qxp: improve poc sku handlingMarcel Ziswiler
Improve QP vs. QM resp. DX vs. QXP detection based on core disable fuses. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-06-28apalis-imx8/colibri-imx8qxp: implement poc sku handlingMarcel Ziswiler
Implement proof of concept 1 GB resp. 2 GB vs. 2 GB resp. 4 GB DDR SKU handling based on fuses indicating SoC being i.MX 8QP resp. 8DX vs. 8QM resp. 8QXP. This overrides the newly introduced weak board_mem_get_layout() function. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-05-09apalis-imx8: make sure config block fdt fix-ups are calledStefan Agner
Make sure the config block information are passed to the kernel using the device tree properties toradex,product-id, board-rev and serial-number. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-04-15apalis-imx8: remove board code for usdhcMax Krummenacher
These are now configured out of the device tree. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-15apalis-imx8: clean-up ethernet functionalityMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: clean-up board fileMax Krummenacher
Clean-up board file. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: adjust copyright/licensing headersMax Krummenacher
Adjust copyright/licensing headers e.g. universally using SPDX license identifier. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-10colibri-imx8qxp: adjust copyright/licensing headers some moreMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-20colibri-imx8qxp: fix ethernet functionalityMarcel Ziswiler
Fix Ethernet functionality. The FEC clock on i.MX 8X really has an additional by 2 divider plus our design requires the ENET0_RCLK50M_OUT on the ENET0_RGMII_TXC pin to be turned on for the Micrel PHY. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: fix usb device/host functionalityMarcel Ziswiler
Fix USB device aka UMS as well as USB host functionality. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: print pmic information upon bootMarcel Ziswiler
In wake of future PMIC silicon version changes, make sure complete PMIC information is printed upon boot. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: clean-up board fileMarcel Ziswiler
Clean-up board file synching with i.MX 8QuadXPlus MEK board one as well. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: adjust copyright/licensing headersMarcel Ziswiler
Adjust copyright/licensing headers e.g. universally using SPDX license identifier. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-02-14colibri-imx8qxp: add unused pins as gpioMax Krummenacher
This also enables pullups on the uart forceoff pins. The UART transceivers on an Iris carrier board can be disabled by controlling SODIMM pins 102 and/or 104. Make sure that the pins by default have pullups to have the debug UART working. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-01-30apalis-imx8: forward port to 2018.03Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit eb0ed0e4283385700db1e5080d78f9a2684f98a5)
2019-01-30colibri-imx8qxp: forward port to 2018.03Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 3a5cc1cf85b8e22da78d794a2d71c03490f500b6)
2019-01-30apalis-imx8.c: fix typoMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit cba518b4bbe4b9dfccb21ffe3cd0929c1a420719) (cherry picked from commit 5721e405c34985f5faa1e6ff4e0d3ca32dffa6e5)
2019-01-30pf8100: 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) (cherry picked from commit 906059a7abf413bc165101812fb916743dd8eee7)
2019-01-30colibri-imx8qxp: synchronize with imx8qxp-mek from beta2Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81) (cherry picked from commit 6efbcb8cd6740e60fc53f9033d60cc27f62b3c74)
2019-01-30colibri-imx8qxp: move debug uart to lpuart3Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9) (cherry picked from commit 2963361493e0f3df76f3a25202a56a76e69fd63f)
2019-01-30colibri-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) (cherry picked from commit be14c3ea1850e2614883c86b62fd1c3a1828eac2)
2019-01-30tdx-cfg-block.c: correct colibri imx8 stringMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 200ed432e13e93c4c094031fe4d4481998227139) (cherry picked from commit ba4474ab3cf4ff30ebcfa58b15b5f95746346d07)
2019-01-30tdx-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) (cherry picked from commit 5ada977a2dd9240d2dd071468d310af79379abfd)
2019-01-30toradex: 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) (cherry picked from commit 674ffe96fb6d9264f2e9019c8d26fce5fb3588e3)
2019-01-30toradex: 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 (cherry picked from commit cdcc3a8660fa4254d6d3ca6932a7cd599c0f1662)
2019-01-30tdx-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) (cherry picked from commit 0798437c661ef3ca11f84fb45b4cce5b7ac145d9)
2019-01-30tdx-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) (cherry picked from commit f06fc58f6e30607475dab127cdaa525417022c36)
2019-01-30tdx-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) (cherry picked from commit e351d2f491361f678d71f34c3857fb09775a12dd)
2019-01-30apalis-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) (cherry picked from commit 75abf4f9e22ba2e1b1673e2d0e72c926ab6578f2)
2019-01-30apalis-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) (cherry picked from commit d58fa8f3247edc18bdbf716fa9a45bcf5fce9cb8)
2019-01-30apalis-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) (cherry picked from commit 1b3c97e1eb50a56066820596a6b1b83da465af7f)
2019-01-30apalis-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) (cherry picked from commit 0f5887d5b80f8535a7f422b73d7a0bf4a4e445af)
2019-01-30apalis-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) (cherry picked from commit 81591346d11ffdf9a2442ad976390ffe0e61abda)
2019-01-30apalis-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 (cherry picked from commit 393dd8dd4061833fcc3cfd85886d49160b515ce0)
2018-12-19MLK-20583-2 imx: mx6sabreauto: Enable OCOTP CTRL clock in DCD and pluginBreno Lima
The HAB code can not set Field Return and SRK Revoke sticky bits in case OCOTP CTRL clock is gated out. In case we disable OCOTP CTRL clock in DCD and plugin those features may not operate as expected. Keep OCOTP CTRL clock enabled in DCD and plugin so HAB can propely lock those features, users should use the CSF Unlock command to prevent those features from being locked. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 2ee4bd12140fa9a29ad1a7cb5016b78e4a4077f1)
2018-12-19MLK-20583-1 imx: mx6sabresd: Enable OCOTP CTRL clock in DCD and pluginBreno Lima
The HAB code can not set Field Return and SRK Revoke sticky bits in case OCOTP CTRL clock is gated out. In case we disable OCOTP CTRL clock in DCD and plugin those features may not operate as expected. Keep OCOTP CTRL clock enabled in DCD and plugin so HAB can propely lock those features, users should use the CSF Unlock command to prevent those features from being locked. Signed-off-by: Breno Lima <breno.lima@nxp.com> (cherry picked from commit fe78359704fa5c5199daf0274019ae58980bc710)
2018-12-12MLK-20542 imx8qm: xen: mek: add magic numberPeng Fan
Write magic number in board early init, and clear magic when booting Linux. This is to let XEN know the current EL1 code is U-Boot or Linux when reset/reboot. This is just a workaround because CM41 could not communicate with XEN now, even XEN knows that EL1 is reseting/rebooting. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit 8132f6b5848d45cab795bb472d6484130985415d)
2018-12-11MLK-20528-2 imx8: Enable clocks LPCGYe Li
To support partition reboot, the u-boot has to enable clocks by LPCG. The LPCG will reset to default value only when the subsystem is totally power off and reset. However, the resources in one subsystem may belong to different partitions, so the partition reboot may not reboot the entire subsystem. Powers, clocks/lpcg, GPR, IP may not reset depends on various cases and HW design. Thus, AP software has to ensure everything is reset by SW itself to support such above cases. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 484104758d3c2f98d3c9ae493f778b1427e2630c)
2018-11-20MLK-20394 imx8mq: Update the ddrc QoS setting for B1 chipBai Ping
Update the ddrc Qos setting for B1 to align with B0'ssetting. Correct the initial clock for dram_pll. This setting will be overwrite before ddr phy training. Although there is no impact on the dram init, we still need to correct it to eliminate confusion. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Tested-by: Robby Cai <robby.cai@nxp.com> (cherry picked from commit 566b798213ab9690966f163de2765acdbfe647a7)
2018-11-12Revert "[iot] Decrease panbell DDR frequency to 1600 MTS"Keun-young Park
- temp fix for boot hangup with camera This reverts commit a8109598e7dca72d415ad5d26ac5868b88da9dfc. Bug: 115532706 Test: test boot up Change-Id: I7bb1bc14eb81ae0965fc03abdf5cb65444720d13
2018-11-12[iot] Support authenticated unlockJi Luo
Add fastboot commands "fastboot oem at-get-vboot-unlock-challenge" and "fastboot oem at-unlock-vboot" to support the authenticated unlock feature for Android Things devices. Use software random numbers generator to generate the 16 bytes random challenge, it should be replaced with hardware encrypted random generator when the TEE part is ready. Test: Generate unlock challenge by: ./avbtool make_atx_unlock_credential --output=atx_unlock_credential.bin --intermediate_key_certificate=atx_pik_certificate.bin --unlock_key_certificate=atx_puk_certificate.bin --challenge=my_generated_challenge.bin --unlock_key=testkey_atx_puk.pem validated the unlock credential successfully on imx7d_pico and AIY. Change-Id: I4b8cee87c9e96924169479b65020a081136681f6 Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-12[iot] Load Trusty to different address for AIY 1G/3G ddr boardJi Luo
Trusty image should be loaded to different address for AIY 1G/3G ddr board which have different ddr size. Use board id to distinguish different baseboard, load trusty image to 0x7e00_0000 for AIY 1G ddr board and 0xfe00_0000 for AIY 3G ddr board. Test: build and boot Trusty ok for AIY 1G/3G ddr board. Change-Id: I62d8a19b13fe19f38075512a6faa4bbb36f74791 Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-12Use stdint for uboot.Yu Shan
Because sysdeps.h in trusty include stdint.h, so we need to define USE_STDINT. Test: Local build test and flash on imx7d. Verify provision som key and product key succeed. Bug: None Change-Id: I08db7c10dd4453a87f15ff4432335fe4c41f9c5f
2018-11-12Set different bootargs for imx8m_phanbell based on ram capacityfaqiang.zhu
for 1GB ram: cma=296M galcore.contiguousSize=8388608 for 3GB ram: cma=384M Test: Boot successfully on AIY-1G & AIY-3G Change-Id: If082d5b751b5a5e06efe301c0b8e49ec4ac3dfb7 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5262 Reviewed-by: Wang Haoran <elven.wang@nxp.com> Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-11-12Set VDD_ARM to 0.85v and turn off VDD_GPU and VDD_VPUfaqiang.zhu
Set BUCK2 output for VDD_ARM to 0.85v Set BUCK3 output for VDD_GPU off Set BUCK4 output for VDD_VPU off Change-Id: I26b47b72ae6b8e714d12345b20324490f0947f56 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5177 Reviewed-by: zhang bo <bo.zhang@nxp.com>
2018-11-06MLK-20257 imx8qxp_arm2: Fix NAND boot reset issueYe Li
The power domain driver is not ready when running board_early_init_f, but we call it imx8qxp_gpmi_nand_initialize. so this cause u-boot reset in early stage. Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Han Xu <han.xu@nxp.com>
2018-11-02MLK-20163-03 board: imx8mq_evk: Refact the imx8mq dram init codeBai Ping
Refact the i.MX8MQ dram init flow to reuse the common dram driver used by i.MX8MM. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-11-02MLK-10163-01 imx8mq: Re-desine the dram_pll_init functionBai Ping
Change the dram_pll_init function API to make it same as i.MX8MM, so the dram init flow can use call the same API for these two different SOC. Signed-off-by: Bai Ping <ping.bai@nxp.com>