aboutsummaryrefslogtreecommitdiffstats
path: root/board/freescale
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'u-boot-imx-20231016' of ↵WIP/16Oct2023Tom Rini2023-10-161-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx u-boot-imx-20231016 ------------------- CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/18168 - Imrovement MX93 - Toradex: fixes - Convert to DM (serial, watchdog) for some boards - HAB improvements for Secure Boot - DTO overlay for DHCOM - USB fixes, Mass storage for MX28 - Cleanup some code - Phytec MX8M : EEProm detection, fixes - Gateworks Boards improvements
| * imx93_evk: defconfig: enable clock driverSébastien Szymanski2023-10-161-2/+0
| | | | | | | | | | | | | | Add clocks nodes in u-boot.dtsi file. Remove init_uart_clk() call. Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
* | cmd: Convert existing long help messages to the new macroTom Rini2023-10-162-11/+5
| | | | | | | | | | | | | | | | | | | | - Generally we just drop the #ifdef CONFIG_SYS_LONGHELP and endif lines and use U_BOOT_LONGHELP to declare the same variable name as before - In a few places, either rename the variable to follow convention or introduce the variable as it was being done inline before. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | freescale: fix long help handling in mac commandHeinrich Schuchardt2023-10-161-6/+12
| | | | | | | | | | | | | | | | | | | | CONFIG_SYS_LONGHELP=n we want to reduce the size of the U-Boot binary. The long text should be reduced to and empty string in this case. There is not need to call cmd_usage() directly. It is sufficient to return CMD_RET_USAGE. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* | cmd: move mac commandHeinrich Schuchardt2023-10-161-0/+22
|/ | | | | | | | | Board specific implementations of the 'mac' command differ concerning the supported sub-commands. Move the Freescale specific mac command definition to the board code. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* board: freescale: ls1088a: declare MC reserved regionsLaurentiu Tudor2023-10-101-0/+1
| | | | | | | Populate the device tree with the MC reserved memory regions. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* board: freescale: ls2080a: declare MC reserved regionsLaurentiu Tudor2023-10-102-0/+2
| | | | | | | Populate the device tree with the MC reserved memory regions. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* drivers: net: fsl-mc: add support for MC reserved memoryLaurentiu Tudor2023-10-101-0/+1
| | | | | | | | | | | | Add support for declaring in device tree the reserved memory ranges required for MC. Since the MC firmware acts as any DMA master present in the SoC, the reserved memory ranges need also be identity mapped in the SMMU, so create the required 'iommu-addresses' property in the reserved memory nodes. For now this support is used only on LX2160A SoCs. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* fsl-layerscape: drop obsolete PPA secure firmware supportLaurentiu Tudor2023-10-1022-223/+0
| | | | | | | | | PPA was a secure firmware developed in-house which is no longer supported and replaced by TF-A quite some years ago. Drop support for it. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* freescale: Drop call to init_func_vid() in the init sequenceSimon Glass2023-08-312-1/+4
| | | | | | | | Use the misc_init_f event instead, which is designed for this purpose. All boards with CONFIG_VID already enable CONFIG_EVENT. Signed-off-by: Simon Glass <sjg@chromium.org>
* treewide: rework linker symbol declarations in sections headerShiji Yang2023-08-0915-0/+15
| | | | | | | | | | | | | | | | | | | 1. Convert all linker symbols to char[] type so that we can get the corresponding address by calling array name 'var' or its address '&var'. In this way, we can avoid some potential issues[1]. 2. Remove unused symbol '_TEXT_BASE'. It has been abandoned and has not been referenced by any source code. 3. Move '__data_end' to the arch x86's own sections header as it's only used by x86 arch. 4. Remove some duplicate declared linker symbols. Now we use the standard header file to declare them. [1] This patch fixes the boot failure on MIPS target. Error log: SPL: Image overlaps SPL Fixes: 1b8a1be1a1f1 ("spl: spl_legacy: Fix spl_end address") Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* board/freescale: Drop two orphaned entriesTom Rini2023-08-032-10/+0
| | | | | | | | As the defconfig files here have been removed we can also remove the entries. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* freescale: Remove Rajesh Bhagat MAINTAINERSSean Anderson2023-08-0311-13/+1
| | | | | | | | | | Rajesh's email bounces. Remove his email from all boards he maintains. Fortunately, he has co-maintainers on most boards. I have taken the liberty of volunteering Pramod to maintain the LS1012AFRDM, since he also maintains the LS1012AFRWY. Let me know if the board should be orphaned instead. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
* board: m68k add missing maintainerAngelo Dureghello2023-07-255-5/+5
| | | | | | | Add myself as a maintainer for orphaned boards. All these boards are covered by buildman m68k test. Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
* MAINTAINERS: Add some missing directories or filesTom Rini2023-07-251-1/+0
| | | | | | | | | In a few cases we have MAINTAINERS entries that are missing obvious paths or files. Typically this means a board directory that did not list itself, but in a few cases we have a Kconfig file or similar. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* MAINTAINERS: Correct minor mistakes on some file listingsTom Rini2023-07-251-1/+1
| | | | | | | | There are a few entries where minor mistakes mean that we don't match up with obviously expected files, correct those. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Merge tag 'fsl-qoriq-2023-7-13' of ↵WIP/19Jul2023Tom Rini2023-07-194-2/+46
|\ | | | | | | | | | | https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq Enable DM_SERIAL for T2080RDB, T4240RDB, T1042D4RDB, T1024RDB
| * board: freescale: t102xrdb: implement get_serial_clockCamelia Groza2023-07-131-1/+9
| | | | | | | | | | | | | | | | | | The serial clock is provided by the get_serial_clock() callback on PPC under DM_SERIAL. Use the same method to compute the clock as for non-DM_SERIAL use cases. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t102xrdb: enumerate PCI devicesCamelia Groza2023-07-131-0/+2
| | | | | | | | | | | | | | Call pci_init() to force PCI enumeration at probe time. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t104xrdb: implement get_serial_clockCamelia Groza2023-07-131-0/+9
| | | | | | | | | | | | | | | | | | The serial clock is provided by the get_serial_clock() callback on PPC under DM_SERIAL. Use the same method to compute the clock as for non-DM_SERIAL use cases. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t104xrdb: enumerate PCI devicesCamelia Groza2023-07-131-0/+3
| | | | | | | | | | | | | | Call pci_init() to force PCI enumeration at probe time. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t4240rdb: implement get_serial_clockCamelia Groza2023-07-131-0/+9
| | | | | | | | | | | | | | | | | | The serial clock is provided by the get_serial_clock() callback on PPC under DM_SERIAL. Use the same method to compute the clock as for non-DM_SERIAL use cases. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t4240rdb: enumerate PCI devicesCamelia Groza2023-07-131-0/+2
| | | | | | | | | | | | | | Call pci_init() to force PCI enumeration at probe time. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t2080rdb: implement get_serial_clockCamelia Groza2023-07-131-0/+8
| | | | | | | | | | | | | | | | | | The serial clock is provided by the get_serial_clock() callback on PPC under DM_SERIAL. Use the same method to compute the clock as for non-DM_SERIAL use cases. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * board: freescale: t2080rdb: enumerate PCI devicesCamelia Groza2023-07-131-1/+4
| | | | | | | | | | | | | | Call pci_init() to force PCI enumeration at probe time. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* | mx7dsabresd: Retrieve the second MAC address from fusesFabio Estevam2023-07-131-0/+6
| | | | | | | | | | | | | | | | Currently, a random MAC address is assigned to eth1 in Linux. Fix this behavor by retrieving the second MAC address from the fuses. Signed-off-by: Fabio Estevam <festevam@denx.de>
* | imx: imx8ulp: start the ELE RNG at bootPeng Fan2023-07-131-0/+10
| | | | | | | | | | | | | | On the imx8ulp A1 SoC, the ELE RNG needs to be manually started. Signed-off-by: Clement Faure <clement.faure@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* | imx: use generic name ele(EdgeLockSecure Enclave)Peng Fan2023-07-132-6/+5
|/ | | | | | | Per NXP requirement, we rename all the NXP EdgeLock Secure Enclave code including comment, folder and API name to ELE to align. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* global: Use proper project name U-Boot (next)Michal Simek2023-06-194-9/+9
| | | | | | Use proper project name in DTs, messages and READMEs. Signed-off-by: Michal Simek <michal.simek@amd.com>
* board: freescale: ls1046afrwy: enumerate PCI devicesCamelia Groza2023-06-151-0/+3
| | | | | | | Call pci_init() from board_init() to force PCI enumeration at probe time. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* board: fsl: lx2160ardb: add dts fixup function for RevC and newerFlorin Chiculita2023-06-153-0/+120
| | | | | | | | | | | | | | | | | | Since the new RevC LX2160A-RDB board has its 10G Aquantia PHYs at different MDIO bus addresses, we must update both the kernel DTS and u-boot's DTS (in case of DM_ETH) in case the board is indeed RevC or newer. Use the newly introduced get_board_rev() function to trigger a fixup of the kernel DTS to properly match the actual PHY addresses. All this is encapsulated in the fdt_fixup_board_phy_revc() function which will be used in the next patch. Use the newly fdt_fixup_board_phy_revc() function introduced to update both kernel's DTS and u-boot's DTS. Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* board: fsl: lx2160ardb: add api for obtaining board revisionFlorin Chiculita2023-06-152-5/+19
| | | | | | | | | | Add new API for obtaining board revision and trigger the i2c node fixup with this new API. Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* Merge tag v2023.07-rc4 into nextTom Rini2023-06-128-1435/+3459
|\ | | | | | | Signed-off-by: Tom Rini <trini@konsulko.com>
| * imx9: imx93_evk: update ddr timing filePeng Fan2023-05-211-1426/+1935
| | | | | | | | | | | | | | | | | | Update DDR timing file generated by DDR Config Tool 1. Dynamic refresh rate is set by default 2. The 3rd freq will be 625MTS based on power and performance better than 100MTS. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * imx9: imx93_evk: add low drive mode support on 11x11 EVKPeng Fan2023-05-214-6/+1521
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a static u-boot config for i.MX93 low drive mode support. When low drive mode is enabled, VDD_SOC is set to 0.75V. Bus clocks, A55 core clock (900Mhz), DDR clock (1866MTS), and some peripherals clocks (USDHC/FLEXSPI/PDM/DISP_PIX/CAM_PIX) must decrease to meet max frequencies in low drive mode. Also set standby voltage for buck1 Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * imx: move imx8 sci header file to include/firmware/imxPeng Fan2023-05-213-3/+3
| | | | | | | | | | | | | | | | | | Move imx8 sci header file to include/firmware/imx, then we could use build macro to reuse some i.MX8 drivers for i.MX9, such as drivers/cpu/imx8_cpu.c. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Stefano Babic <sbabic@denx.de>
* | freescale: vsc3316_3308: fix header inclusion guardAndre Przywara2023-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | It seems like the header inclusion guard for some Freescale crosspoint switch header was misspelled. Make the preprocessor symbol for the #ifndef and #define lines the same, so that the double inclusion protection works as expected. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* | freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC)Troy Kisky2023-05-101-1/+1
|/ | | | | | | | | | | | pfuze_mode_init calls pmic_reg_read which is only available from obj-$(CONFIG_$(SPL_TPL_)DM_PMIC) += pmic-uclass.o Prepare for conversion of defined(CONFIG_DM_PMIC) to CONFIG_IS_ENABLED(DM_PMIC). Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* arch: m68k: Use existing CONFIG_MCFTMR instead of CFG_MCFTMRMarek Vasut2023-04-152-2/+2
| | | | | | | | | | There is an existing CONFIG_MCFTMR Kconfig symbol, use it and drop all other instances of CFG_MCFTMR. This duality is likely a result of bogus conversion to Kconfig. Fixes: 7ff7b46e6ce ("m68k: rename CONFIG_MCFTMR to CFG_MCFTMR") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
* board: freescale: lx2160a: remove the PL01X device instantiationIoana Ciornei2023-04-041-34/+0
| | | | | | | | | There is no need for the board file to instantiate a PL01X platform device anymore. This is all taken care of by the DM code which now will probe the device based on the DT node. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* arm64: imx8mp: Drop EQoS GPR[1] board workaroundMarek Vasut2023-03-301-17/+0
| | | | | | | | The EQoS interface mode is now configured in common board_interface_eth_init() and called by EQoS MAC driver when appropriate. Drop the board side duplicates if the same functionality. Signed-off-by: Marek Vasut <marex@denx.de>
* mx51evk: Remove unused mx51evk_video.c fileFabio Estevam2023-03-301-98/+0
| | | | | | | | | Since commit 1fa43cad8625 ("video: Drop references to CONFIG_VIDEO et al") the mx51evk_video.c is no longer used. Remove the unused file. Signed-off-by: Fabio Estevam <festevam@denx.de>
* mx53loco: Remove unused mx53loco_video.c fileFabio Estevam2023-03-301-114/+0
| | | | | | | | | Since commit 1fa43cad8625 ("video: Drop references to CONFIG_VIDEO et al") the mx53loco_video.c is no longer used. Remove the unused file. Signed-off-by: Fabio Estevam <festevam@denx.de>
* mx6sabresd: Convert to DM_PMICFabio Estevam2023-03-291-50/+13
| | | | | | | | | | The usage of DM_PMIC is preferred, so convert to it. This also brings the benefit of causing a significant amount of code removal. Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* mx6sabreauto: Convert to DM_PMICFabio Estevam2023-03-291-94/+13
| | | | | | | | | | The usage of DM_PMIC is preferred, so convert to it. This also brings the benefit of causing a significant amount of code removal. Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* mx6sxsabreauto: Remove myself from MAINTAINERSFabio Estevam2023-03-291-1/+1
| | | | | | | | I don't have access to the mx6sxsabreauto board, so remove myself from the MAINTAINERS entry and add Peng instead. Signed-off-by: Fabio Estevam <festevam@denx.de> Acked-by: Peng Fan <peng.fan@nxp.com>
* mx53loco: Add DM_I2C supportFabio Estevam2023-03-291-18/+18
| | | | | | | The conversion to DM_I2C is mandatory, so add support for it. Signed-off-by: Fabio Estevam <festevam@denx.de>
* imx8ulp_evk: Clear data at fdt_addr_r before booting kernelYe Li2023-03-291-0/+8
| | | | | | | | | | | | | When using dual boot mode, the DDR won't be reset when APD power off or reboot. It has possibility that obsolete fdt data existing on fdt_addr_r address. Then even nothing in EFI partitions, the distro boot still continue to parse fdt and get uboot crashed. Clear the data at fdt_addr_r, so the fdt header check in above case will not pass. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* imx8ulp_evk: disable overflow of port0 for LPAVPeng Fan2023-03-292-2/+2
| | | | | | | | | | | Bit0: Port 0 behavior when bandwidth maximized. Set to 1 to allow overflow With overflow set, we see some issue that A35 may not able to get enough bandwidth and A35 will report hrtimer takes too much time, workqueue lockup. With overflow cleared, the issues are gone. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx8ulp_evk: Update DDR ports arbitration for DCNANO underrunYe Li2023-03-292-4/+4
| | | | | | | | | | To resolve DCNANO underrun issue, change the DDR Port 0 arbitration from round robin fashion to fixed priority level 1, while other ports are not assigned any priority, so they will be serviced in round robin fashion if there is no active request from Port 0. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>