1. 26 5月, 2022 9 次提交
  2. 25 5月, 2022 2 次提交
    • T
      Merge tag 'xilinx-for-v2022.07-rc4' of https://source.denx.de/u-boot/custodians/u-boot-microblaze · 661f5400
      Tom Rini 提交于
      Xilinx changes for v2022.07-rc4
      
      zynqmp:
      - Fix DP PLL configuration for zcu102/zcu106 and SOM
      - Fix split mode for starting R5s
      - DT fixes
      - Remove firmware node for mini configurations
      - Wire TEE for multi DTB fit image
      
      xilinx:
      - Handle board_get_usable_ram_top(0) properly
      
      phy:
      - Extend psgtr timeout
      
      mmc:
      - Fix mini configuration which misses zynqmp_pm_is_function_supported()
      661f5400
    • T
      Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi · 7e0edcad
      Tom Rini 提交于
      The bulk of it is (finally!) some DT sync from the kernel. We refrained
      from syncing one incompatible change, as this would spoil booting Linux
      kernels before v5.13 with U-Boot's DT (via UEFI, for instance).
      I test booted Linux v5.18 and v5.4 with that new DT on some boards, and
      the headless peripherals (MMC, USB, Ethernet) seemed to work.
      The rest are fixes:
      - silencing missing clock warnings due to the new pinctrl driver
      - fixing "UART0 on PortF", allowing UART access through the SD card pins
      - add an F1C100s clock driver, to enable MMC support (SPI comes later)
      - some cleanups for CONS_INDEX_n in Kconfig
      
      Tested on BananaPi-M1, Pine64-LTS, Pine-H64, X96-Mate (H616) and
      OrangePi-Zero.
      7e0edcad
  3. 24 5月, 2022 16 次提交
  4. 23 5月, 2022 13 次提交
    • E
      tpm: add support for TPMv2.x I2C chips · 9f971dac
      Eddie James 提交于
      Add the tpm2_tis_i2c driver that should support any TPMv2 compliant
      I2C chips, such as the NPCT75X chip.
      
      [Ilias rename priv_auto_alloc_size to priv_auto]
      Signed-off-by: NEddie James <eajames@linux.ibm.com>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      Reviewed-by: NIlias Apalodimas <ilias.apalodimas@linaro.org>
      Signed-off-by: NIlias Apalodimas <ilias.apalodimas@linaro.org>
      9f971dac
    • P
      mmc: fsl_esdhc_spl: Fix checking for number of read sectors · c1abf765
      Pali Rohár 提交于
      Commit 0980cbba ("mmc: fsl_esdhc_spl: pre-PBL: implement redundancy
      support") changed number of sectors which are read but did not adjusted
      error check.
      
      Fix it and check for if correct number of sectors were read.
      
      Fixes: 0980cbba ("mmc: fsl_esdhc_spl: pre-PBL: implement redundancy support")
      Signed-off-by: NPali Rohár <pali@kernel.org>
      Reviewed-by: NJaehoon Chung <jh80.chung@samsung.com>
      c1abf765
    • S
      arm: gic_v2: Skip gic_init_secure when cpu is not in el3 · 2d25f63c
      Sai Pavan Boddu 提交于
      This would prevent configuring non-secure regs in case gic security
      extensions are not emulated in Qemu.
      Signed-off-by: NSai Pavan Boddu <sai.pavan.boddu@xilinx.com>
      Signed-off-by: NMichal Simek <michal.simek@amd.com>
      2d25f63c
    • P
      test: dm: spi: Replace _spi_get_bus_and_cs() by spi_get_bus_and_cs() in some case · 012afa83
      Patrice Chotard 提交于
      In case _spi_get_bus_and_cs()'s parameters drv_name and dev_name are
      respectively set to NULL and 0, use spi_get_bus_and_cs() instead.
      Signed-off-by: NPatrice Chotard <patrice.chotard@foss.st.com>
      
      Cc: Marek Behun <marek.behun@nic.cz>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Vignesh R <vigneshr@ti.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Ramon Fried <rfried.dev@gmail.com>
      Cc: Lukasz Majewski <lukma@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: "Pali Rohár" <pali@kernel.org>
      Cc: Konstantin Porotchkin <kostap@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Pratyush Yadav <p.yadav@ti.com>
      Cc: Sean Anderson <seanga2@gmail.com>
      Cc: Anji J <anji.jagarlmudi@nxp.com>
      Cc: Biwen Li <biwen.li@nxp.com>
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Cc: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
      012afa83
    • P
      spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode · 3feea0ba
      Patrice Chotard 提交于
      Now, spi_flash_probe_bus_cs() relies on DT for spi speed and mode
      and logically calls spi_get_bus_and_cs(). In case spi mode and speed are
      not read from DT, make usage of spi_flash_probe() instead.
      
      To sum-up:
       - Previous call tree was:
          spi_flash_probe() -> spi_flash_probe_bus_cs() -> spi_get_bus_and_cs()
      
       - Current call tree is:
          spi_flash_probe() -> _spi_get_bus_and_cs()
          spi_flash_probe_bus_cs() -> spi_get_bus_and_cs()
      
      This patch impacts the following :
        - cmd/sf.c: if spi mode and/or speed is passed in argument of
          do_spi_flash_probe(), call spi_flash_probe() otherwise call
          spi_flash_probe_bus_cs().
      
        - drivers/net/fm/fm.c: as by default spi speed and mode was set to
          0 and a comment indicates that speed and mode are read from DT,
          use spi_flash_probe_bus_cs().
      
        - drivers/net/pfe_eth/pfe_firmware.c: spi speed and mode are not read
          from DT by all platforms using this driver, so keep legacy and replace
          spi_flash_probe_bus_cs() by spi_flash_probe();
      
        - drivers/net/sni_netsec.c : spi speed and mode are not read from DT,
          so replace spi_flash_probe_bus_cs() by spi_flash_probe().
      
        - drivers/usb/gadget/max3420_udc.c: Can't find any platform which make
          usage of this driver, nevertheless, keep legacy and replace
          spi_get_bus_and_cs() by _spi_get_bus_and_cs().
      
        - env/sf.c: a comment indicates that speed and mode are read
          from DT. So use spi_flash_probe_bus_cs().
      Signed-off-by: NPatrice Chotard <patrice.chotard@foss.st.com>
      
      Cc: Marek Behun <marek.behun@nic.cz>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Vignesh R <vigneshr@ti.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Ramon Fried <rfried.dev@gmail.com>
      Cc: Lukasz Majewski <lukma@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: "Pali Rohár" <pali@kernel.org>
      Cc: Konstantin Porotchkin <kostap@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Pratyush Yadav <p.yadav@ti.com>
      Cc: Sean Anderson <seanga2@gmail.com>
      Cc: Anji J <anji.jagarlmudi@nxp.com>
      Cc: Biwen Li <biwen.li@nxp.com>
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Cc: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
      3feea0ba
    • P
      spi: spi-uclass: Add new spi_get_bus_and_cs() implementation · 61708bb0
      Patrice Chotard 提交于
      Move legacy spi_get_bus_and_cs() code to _spi_get_bus_and_cs().
      
      Add new spi_get_bus_and_cs() implementation which rely on DT
      for speed and mode and don't need any drv_name nor dev_name
      parameters. This will prepare the ground for next patch.
      
      Update all callers to use _spi_get_bus_and_cs() to keep the
      same behavior.
      Signed-off-by: NPatrice Chotard <patrice.chotard@foss.st.com>
      
      Cc: Marek Behun <marek.behun@nic.cz>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Vignesh R <vigneshr@ti.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Ramon Fried <rfried.dev@gmail.com>
      Cc: Lukasz Majewski <lukma@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: "Pali Rohár" <pali@kernel.org>
      Cc: Konstantin Porotchkin <kostap@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Pratyush Yadav <p.yadav@ti.com>
      Cc: Sean Anderson <seanga2@gmail.com>
      Cc: Anji J <anji.jagarlmudi@nxp.com>
      Cc: Biwen Li <biwen.li@nxp.com>
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Cc: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
      61708bb0
    • P
      powerpc: mpc85xx: Fix CONFIG_OF_EMBED support for NOR booting · 827a2326
      Pali Rohár 提交于
      mpc85xx NOR binary contains also reset vector and therefore option
      CONFIG_MPC85XX_HAVE_RESET_VECTOR must be defined.
      
      When build system uses binman, it takes care of constructing final image
      which consist of u-boot-without-reset-vector, DTB and reset-vector.
      
      CONFIG_OF_EMBED does not use binman, there is no external DTB and Makefile
      produce directly final u-boot.bin binary.
      
      So in this case mpc85xx reset vector must not be stripped from the final
      u-boot.bin binary. Fix it.
      Signed-off-by: NPali Rohár <pali@kernel.org>
      827a2326
    • P
      powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support for NOR booting · b898f6a6
      Pali Rohár 提交于
      Commit e8c0e006 ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support")
      fixed SD card booting on mpc85xx boards but broke NOR booting on these
      boards. Reason is that U-Boot build system for NOR images uses binman and
      this binman ignores alignment defined in linker script. Instead it has own
      config file where is alignment defined.
      
      Fix binman alignment for mpc85xx boards to match what is _now_ defined in
      linker script.
      
      This change fixes building of U-Boot for NOR booting on P2020 board.
      
      Fixes: e8c0e006 ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support")
      Signed-off-by: NPali Rohár <pali@kernel.org>
      b898f6a6
    • S
      fs/squashfs: use lldiv function for math · 92080c6e
      Sean Nyekjaer 提交于
      When compling for x86:
      ld.bfd: fs/squashfs/sqfs.o: in function `sqfs_read':
      u-boot/fs/squashfs/sqfs.c:1443: undefined reference to `__udivmoddi4'
      ld.bfd: u-boot/fs/squashfs/sqfs.c:1521: undefined reference to `__udivmoddi4'
      Signed-off-by: NSean Nyekjaer <sean.nyekjaer.ext@siemensgamesa.com>
      Reviewed-by: NMiquel Raynal <miquel.raynal@bootlin.com>
      Reviewed-by: NPali Rohár <pali@kernel.org>
      92080c6e
    • E
      tpm: core: Set timeouts before requesting locality · 8d7199da
      Eddie James 提交于
      Requesting the locality uses the timeout values, so they need
      to be set beforehand.
      Signed-off-by: NEddie James <eajames@linux.ibm.com>
      Reviewed-by: NIlias Apalodimas <ilias.apalodimas@linaro.org>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      Signed-off-by: NIlias Apalodimas <ilias.apalodimas@linaro.org>
      8d7199da
    • T
      Merge tag 'u-boot-imx-20220523' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx · 004d30c7
      Tom Rini 提交于
      u-boot-imx-20220523
      -------------------
      
      CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/12087
      
      Additionally to u-boot-imx20200520:
      
      - DH MX8MP
      - i.MX GPIO: reading GPIO when direction is output
      - Menlo i.MX53: switch to DM
      
      And from u-boot-imx20200520:
      
      - fix Verdin hang
      - add pca9450 regulator
      - conversion to DM_SERIAL
      - NAND block handling
      - fix crypto
      - enable cache on some boards
      - add ACC board (MX6)
      004d30c7
    • M
      ARM: dts: imx: Add support for DH electronics i.MX8M Plus DHCOM and PDK2 · 4d573d5c
      Marek Vasut 提交于
      Add support for DH electronics i.MX8M Plus DHCOM SoM on PDK2 carrier board.
      Currently supported are serial console, EQoS and FEC ethernets, eMMC, SD,
      SPI NOR and USB 3.0 host.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <festevam@denx.de>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      4d573d5c
    • C
      gpio: rgpio2p: Enhance reading of GPIO pin value · 0539d16d
      Christoph Fritz 提交于
      Add support for reading GPIO pin value when function is output.
      With this patch applied, gpio toggle command is working.
      Signed-off-by: NChristoph Fritz <chf.fritz@googlemail.com>
      Reviewed-by: NPeng Fan <peng.fan@nxp.com>
      Reviewed-by: NFabio Estevam <festevam@denx.de>
      0539d16d