summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-12efi_loader: rework messages for capsule updatesHeinrich Schuchardt
* Use log category LOGC_EFI. This allows to remove 'EFI:' prefixes in messages. * Rephrase some of the messages. Signed-off-by: Heinrich Schuchardt <[email protected]>
2021-07-12efi_loader: provide file attributes in EFI_FILE_PROTOCOL.Read()Heinrich Schuchardt
When reading a directory using EFI_FILE_PROTOCOL.Read() provide file attributes and timestamps. Signed-off-by: Heinrich Schuchardt <[email protected]>
2021-07-12lib: remove superfluous #ifdefs from date.cHeinrich Schuchardt
We should avoid #ifdef in C modules. Unused functions are eliminated by the linker. Signed-off-by: Heinrich Schuchardt <[email protected]>
2021-07-12fs: fat: add file attributes to struct fs_direntHeinrich Schuchardt
When reading a directory in the UEFI file system we have to return file attributes and timestamps. Copy this data to the directory entry structure. Signed-off-by: Heinrich Schuchardt <[email protected]>
2021-07-12doc: fix typo in signature.txtThomas Perrot
Fix value fields in signature nodes. Signed-off-by: Thomas Perrot <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
2021-07-10spi: mxc_spi: fix warnings if CLK_ENABLED not setStefano Babic
Following warnings (unused variables) are raised: drivers/spi/mxc_spi.c: In function 'mxc_spi_probe': drivers/spi/mxc_spi.c:595:14: error: unused variable 'blob' [-Werror=unused-variable] 595 | const void *blob = gd->fdt_blob; | ^~~~ drivers/spi/mxc_spi.c:594:6: error: unused variable 'node' [-Werror=unused-variable] 594 | int node = dev_of_offset(bus); Move the variable declaration inside the code where they are used. Signed-off-by: Stefano Babic <[email protected]>
2021-07-10mx6sabresd: Make checkboard respect CONFIG_NXP_BOARD_REVISIONCody Gray
The default implementation of checkboard() calls the nxp_board_rev_string() function to retrieve a character representing the revision number of the board. However, this attempt to retrieve the revision number may fail in certain situations or be otherwise undesirable. There is already a configuration option to avoid retrieving the revision number of the board: CONFIG_NXP_BOARD_REVISION. In fact, if this option is enabled, the nxp_board_rev_string() function's definition will be omitted entirely, meaning that the previous implementation of checkboard() would result in a linker error. This changeset makes the default implementation of checkboard() respect the CONFIG_NXP_BOARD_REVISION configuration option, only attempting to retrieve the board revision number if that option is defined. Signed-off-by: Cody Gray <[email protected]>
2021-07-10ARM: imx: Pick correct eMMC boot partition from ROM logMarek Vasut
In case the iMX8M boot from eMMC boot partition and the primary image is corrupted, the BootROM is capable of starting a secondary image in the other eMMC boot partition as a fallback. However, the BootROM leaves the eMMC BOOT_PARTITION_ENABLE setting as it was, i.e. pointing to the boot partition containing the corrupted image, and the BootROM does not provide any indication that this sort of fallback occured. According to AN12853 i.MX ROMs Log Events, Rev. 0, May 2020, it is possible to determine whether fallback event occurred by parsing the ROM event log. In case ROM event ID 0x51 is present, fallback event did occur. This patch implements ROM event log parsing and search for event ID 0x51 for all iMX8M SoCs, and based on that corrects the eMMC boot partition selection. This way, the SPL loads the remaining boot components from the same eMMC boot partition from which it was started, even in case of the fallback. Signed-off-by: Marek Vasut <[email protected]> Cc: Faiz Abbas <[email protected]> Cc: Harald Seiler <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Simon Glass <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Peng Fan <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Ye Li <[email protected]>
2021-07-10spl: mmc: Factor out eMMC boot partition selection codeMarek Vasut
Factor out eMMC boot partition selection code into default_spl_mmc_emmc_boot_partition() function and implement weak spl_mmc_emmc_boot_partition(), so that architecture or board code can override the eMMC boot partition selection. Signed-off-by: Marek Vasut <[email protected]> Cc: Faiz Abbas <[email protected]> Cc: Harald Seiler <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Simon Glass <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Peng Fan <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Ye Li <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
2021-07-10board: gateworks: venice: remove forced enable of GSC thermal protectionTim Harvey
The Gateworks System Controller thermal protection feature will disable the board primary power supply if the on-board temperature sensor reaches 86C. In many cases this could occur before the temperature critical components such as CPU, DRAM, eMMC, and power supplies have reached their max temperature. Remove the forced re-enable of thermal protection so that users can knowingly disable it. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10board: gateworks: venice: add ftd_file env vars on bootTim Harvey
The ftd_file* vars can be used by bootscripts to look for appropriate dtb's Signed-off-by: Tim Harvey <[email protected]>
2021-07-10board: gateworks: venice: display DTB usedTim Harvey
Display the DTB file used for U-Boot. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10board: gateworks: venice: gsc: fix voltage offsetTim Harvey
The voltage offset property is in microvolts so must be scaled accordingly. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10board: gateworks: venice: gsc: fix typoTim Harvey
Fix typo in error message. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10configs: imx8mm_venice_defconfig: add support for gbe switchTim Harvey
The imx8mm-venice-gw7901 board has an I2C connected KSZ9897S GbE switch with an IMX8MM FEC MAC master connected via RGMII_ID. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10arm: dts: imx8mm-venice-gw7901.dts: fix dsa switch configurationTim Harvey
Fix the dsa switch config: - remove the unnecessary phy-mode from the switch itself - added the necessary fixed-link node to the non-cpu ports required for U-Boot DSA Signed-off-by: Tim Harvey <[email protected]>
2021-07-10net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switchTim Harvey
The Microchip KSZ9477/KSZ9897/KSZ9567 7-Port Gigabit Ethernet Switches support SGMII/RGMII/MII/RMII with register access via SPI, I2C, or MDIO. This driver currently supports I2C register access but SPI or MDIO register access can be easily added at a later time. Tagging is not implemented and instead the active port is tracked to avoid needing a tag to store port information. This was tested with the imx8mm-venice-gw7901 board which has a KSZ9897S switch with an IMX8MM FEC MAC master connected via RGMII_ID. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10net: dsa: enable master promisc mode if available and neededTim Harvey
If ports have their own unique MAC addrs and master has a set_promisc function, call it so that packets will be received for ports. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10net: fec: add set_promisc functionTim Harvey
Enabling promiscuous mode is necessary if FEC is the master of a DSA switch driver where each port has their own MAC address. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10net: add set_promisc function to enable/disable Promiscuous modeTim Harvey
Enabling promiscuous mode can be useful for DSA switches where each port has its own MAC address. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10net: fec: set phy_of_node properly for fixed-link phyTim Harvey
If the FEC is connected to a fixed-link (upstream switch port for example) the phy_of_node should be set to the fixed-link node so that speed and other properties can be found properly. In addition fix a typo in the debug string. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10net: fec: use device sequence vs index when fetching fecTim Harvey
When using uclass_get_device* to get the FEC device we need to use device sequence instead of index into UCLASS_ETH. In systems where for example a I2C based DSA switch exists it will probe before the FEC master and its ports will be registered first and have the first indexes yet the FEC's sequence comes from the device-tree alias. Take for example the imx8mm-venice-gw7901 board which has an i2c based DSA switch: u-boot=> net list eth1 : lan1 00:0d:8d:aa:00:2f eth2 : lan2 00:0d:8d:aa:00:30 eth3 : lan3 00:0d:8d:aa:00:31 eth4 : lan4 00:0d:8d:aa:00:32 eth0 : ethernet@30be0000 00:0d:8d:aa:00:2e active Thus in this case uclass_get_device(UCLASS_ETH, 0, &dev) returns lan1 which is wrong but uclass_get_device_seq(UCLASS_ETH, 0, &dev) returns ethernet@30be000 which is correct. Signed-off-by: Tim Harvey <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2021-07-10board: gateworks: venice: add imx8mm-gw7901 supportTim Harvey
The Gateworks GW7901 is an ARM based single board computer (SBC) featuring: - i.MX8M Mini SoC - LPDDR4 DRAM - eMMC FLASH - SPI FRAM - Gateworks System Controller (GSC) - Atmel ATECC Crypto Authentication - USB 2.0 - Microchip GbE Switch - Multiple multi-protocol RS232/RS485/RS422 Serial ports - onboard 802.11ac WiFi / BT - microSD socket - miniPCIe socket with PCIe, USB 2.0 and dual SIM sockets - Wide range DC power input - 802.3at PoE To add support for this board: - add dts from Linux (accepted for v5.14) - add SPL PMIC config Signed-off-by: Tim Harvey <[email protected]>
2021-07-10spi: fsl_qspi: Build driver only if DM_SPI is availableFrieder Schrempf
The driver depends on DM_SPI and if it's not available (e. g. in SPL), then we should not try to build it as this will fail. Signed-off-by: Frieder Schrempf <[email protected]>
2021-07-10arm/mach-imx: Fix macros in mmdc_size.cKacper Kubkowski
Make macros actually use passed parameter instead of local variables that happen to be named the same as symbols in macro expansion. Signed-off-by: Kacper Kubkowski <[email protected]>
2021-07-10board: phytec: imx8mp-phycore: Switch to binmanTeresa Remmet
Use now binman for image creation. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10arm: dts: imx8mp-phyboard-pollux-rdk-u-boot: Add wdog pinctrl entryTeresa Remmet
Add missing pinctrl entry in spl. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2021-07-10board: phytec: phycore-imx8mp: Enable DVS1 controlTeresa Remmet
Enable DVS1 control through PMIC_STBY_REQ. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2021-07-10board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95VTeresa Remmet
Increase VDD_ARM to prevent timing issues as VDD_SOC is used in OD mode. Also increase GIC clock. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2021-07-10board: phytec: phycore_imx8mp: Add fec supportTeresa Remmet
Enable support for the fec ethernet on phyCORE-i.MX8MP. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10board: phytec: phycore_imx8mp: Change debug UARTTeresa Remmet
With the first redesign the debug UART had changed from UART2 to UART1. As the first hardware revision is considered as alpha and will not be supported in future. The old setup will not be preserved. Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10arm: dts: imx8mp-phyboard-pollux: Sync dts files with kernelTeresa Remmet
This update includes eqos support and some minor changes. Synced with kernel commit 412627f6ffe3 ("arm64: dts: imx8mp-phyboard-pollux-rdk: Add missing pinctrl entry") Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10arm: dts: imx8mp: Add common u-boot dtsiTeresa Remmet
Factor out the common node settings for dm-spl and dm-pre-reloc and move them to imx8mp-u-boot.dtsi Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10arm: dts: imx8mp: Resync imx8mp device tree includeTeresa Remmet
Sync imx8mp include with kernel commit: d1689cd3c0f4 ("arm64: dts: imx8mp: Use the correct name for child node "snps, dwc3"") Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
2021-07-10pci: imx: use reset-gpios if defined by device-treeTim Harvey
If reset-gpio is defined by device-tree use that if CONFIG_PCIE_IMX_PERST_GPIO is not defined. Note that after this the following boards which define CONFIG_PCIE_IMX_PERST_GPIO in their board header file as well as their device-tree should be able to remove CONFIG_PCIE_IMX_PERST_GPIO without consequence: - mx6sabresd - mx6sxsabresd - novena - tbs2910 - vining_2000 Note that the ge_bx50v3 board uses CONFIG_PCIE_IMX_PERST_GPIO and does not have reset-gpios defined it it's pcie node in the dt thus removing CONFIG_PCIE_IMX_PERST_GPIO globally can't be done until that board adds reset-gpios. Cc: Ian Ray <[email protected]> (maintainer:GE BX50V3 BOARD) Cc: Sebastian Reichel <[email protected]> (maintainer:GE BX50V3 BOARD) Cc: Fabio Estevam <[email protected]> (maintainer:MX6SABRESD BOARD) Cc: Marek Vasut <[email protected]> (maintainer:NOVENA BOARD) Cc: Soeren Moch <[email protected]> (maintainer:TBS2910 BOARD) Cc: Silvio Fricke <[email protected]> (maintainer:VINING_2000 BOARD) Signed-off-by: Tim Harvey <[email protected]>
2021-07-10smegw01: Select the CMD_UNZIP optionFabio Estevam
Select the CMD_UNZIP option so that the 'gzwrite' command can be used to flash .gz image into the eMMC. Signed-off-by: Fabio Estevam <[email protected]>
2021-07-10smegw01: Allow booting the Yocto image by defaultFabio Estevam
On the Yocto image there is a single partition and the kernel and dtb are present in the 'boot' directory. Change it accordingly so that the board can boot the Yocto image by default. Use the generic 'load' command instead, which is able to read from an ext4 partition. Signed-off-by: Fabio Estevam <[email protected]>
2021-07-10imx: ventana: display 'none' for MMC if board does not have itTim Harvey
print 'None' instead of just a blank line if nothing is detected: MMC: None Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: add support for DLC0700XDP21LF LCD displayTim Harvey
Add LVDS support for DLC0700XDP21LF 7in 1024x600 display (equivalent to the DLC-700JMGT4 with new touch controller) Signed-off-by: Robert Jones <[email protected]> Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: display neteowrk PHYTim Harvey
Add displaying the detected network PHY on boot. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: add DP83867 PHY LED configurationTim Harvey
Add DP83867 PHY LED configuration. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: put LTC3676 regulators in continuous modeTim Harvey
In the default pulse-skipping mode regulators that are very lightly loaded can fail to regulate properly. Switching them to always use continuous mode causes only around 10mW of overall system power difference in a lightly loaded system that isn't already operating them in continuous mode. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: put PFUZ100 regulators in continuous modeTim Harvey
In the default 'auto' mode regulators that are very lightly loaded can be put in PFM mode and fail to regulator properly. Switching them to always use continuous PWM mode has a neglibable affect on system power and garuntees proper regulation under lightly loaded circumstances. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: add PMIC fix for GW54xx-GTim Harvey
Substitutions in EOL parts changes the VDD_2P5 voltage rail such that the previously unused VGEN6 LDO is needed in place of the lower power VGEN5 for the GW54xx-G. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: add legacy uboot image supportTim Harvey
Add Legacy U-Boot image support needed to boot a uImage. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: increase SYS_BOOTM_LENTim Harvey
Increase SYS_BOOM_LEN from the default 16M in imx6_common to 64M. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: remove unneeded includesTim Harvey
remove unnecessary includes Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx: ventana: remove USB_KEYBOARD supportTim Harvey
For some time now having USB_KEYBOARD support has caused usb to be initialized on boot. To allow for a quicker bootup we don't want this for Ventana and don't really need USB keyboard support so remove it. Signed-off-by: Tim Harvey <[email protected]>
2021-07-10imx8m: Restrict usable memory to space below 4G boundaryFrieder Schrempf
Some IPs have their accessible address space restricted by the interconnect. Let's make sure U-Boot only ever uses the space below the 4G address boundary (which is 3GiB big), even when the effective available memory is bigger. We implement board_get_usable_ram_top() for all i.MX8M SoCs, as the whole family is affected by this. Signed-off-by: Frieder Schrempf <[email protected]>
2021-07-10clk: imx8mm: Add SPI clocksFrieder Schrempf
Add the clocks for the ECSPI controllers. This is ported from Linux v5.13-rc4. Signed-off-by: Frieder Schrempf <[email protected]>