Skip to content
Snippets Groups Projects
  1. Dec 27, 2021
    • Tom Rini's avatar
      Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig · 2f8a6db5
      Tom Rini authored
      
      In order to finish moving this symbol to Kconfig for all platforms, we
      need to do a few more things.  First, for all platforms that define this
      to a function, introduce CONFIG_DYNAMIC_SYS_CLK_FREQ, similar to
      CONFIG_DYNAMIC_DDR_CLK_FREQ and populate clock_legacy.h.  This entails
      also switching all users from CONFIG_SYS_CLK_FREQ to get_board_sys_clk()
      and updating a few preprocessor tests.
      
      With that done, all platforms that define a value here can be converted
      to Kconfig, and a fall-back of zero is sufficiently safe to use (and
      what is used today in cases where code may or may not have this
      available).  Make sure that code which calls this function includes
      <clock_legacy.h> to get the prototype.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      2f8a6db5
  2. Oct 08, 2021
  3. Sep 30, 2021
  4. Sep 23, 2021
    • Marek Vasut's avatar
      lmb: Switch to generic arch_lmb_reserve_generic() · 1f391c34
      Marek Vasut authored and Tom Rini's avatar Tom Rini committed
      
      Switch arc/arm/m68k/microblaze/mips/ppc arch_lmb_reserve() to
      arch_lmb_reserve_generic().
      
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Angelo Dureghello <angelo@sysam.it>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Hai Pham <hai.pham.ud@renesas.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Wolfgang Denk <wd@denx.de>
      1f391c34
    • Marek Vasut's avatar
      lmb: Always compile arch_lmb_reserve() into U-Boot on arc · cfa19719
      Marek Vasut authored and Tom Rini's avatar Tom Rini committed
      
      The arch_lmb_reserve() is called by lib/lmb.c lmb_reserve_common() even
      if CMD_BOOTM is not enabled. However, the arc variant of arch_lmb_reserve()
      is only compiled in if CMD_BOOTM is enabled.
      
      This currently does not trigger build error, because there is an empty
      weak implementation of arch_lmb_reserve(), however that is not the
      function that should be used on arc.
      
      Fix this by moving the arch_lmb_reserve() implementation into common
      code and always compile it in.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Cc: Tom Rini <trini@konsulko.com>
      cfa19719
  5. Aug 31, 2021
  6. Jun 23, 2021
    • Tom Rini's avatar
      global_data: Ensure we have <config.h> when symbols are not in Kconfig yet · 076c7bfb
      Tom Rini authored
      
      All symbols that are defined in Kconfig will always be defined (or not)
      prior to preprocessing due to the -include directive while building.
      However, symbols which are not yet migrated will only be defined (or
      not) once the board config.h is included, via <config.h>.  While the end
      goal must be to migrate all symbols, today we have cases where the size
      of gd will get mismatched within the build, based on include order.
      Mitigate this by making sure that any <asm/global_data.h> that uses
      symbols not in Kconfig does start with <config.h>.  Remove this when not
      needed.
      
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Huan Wang <alison.wang@nxp.com>
      Cc: Angelo Dureghello <angelo@sysam.it>
      Cc: Rick Chen <rick@andestech.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      076c7bfb
  7. Apr 22, 2021
  8. Apr 18, 2021
    • Marek Vasut's avatar
      arc: emsdp/iotdk: Use standard compatible string for USB no-op PHY · b31e16b3
      Marek Vasut authored
      
      The standard compatible string is "usb-nop-xceiv", use it.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
      Cc: Murali Karicheri <m-karicheri2@ti.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      b31e16b3
  9. Mar 02, 2021
    • Harald Seiler's avatar
      reset: Remove addr parameter from reset_cpu() · 35b65dd8
      Harald Seiler authored and Tom Rini's avatar Tom Rini committed
      
      Historically, the reset_cpu() function had an `addr` parameter which was
      meant to pass in an address of the reset vector location, where the CPU
      should reset to.  This feature is no longer used anywhere in U-Boot as
      all reset_cpu() implementations now ignore the passed value.  Generic
      code has been added which always calls reset_cpu() with `0` which means
      this feature can no longer be used easily anyway.
      
      Over time, many implementations seem to have "misunderstood" the
      existence of this parameter as a way to customize/parameterize the reset
      (e.g.  COLD vs WARM resets).  As this is not properly supported, the
      code will almost always not do what it is intended to (because all
      call-sites just call reset_cpu() with 0).
      
      To avoid confusion and to clean up the codebase from unused left-overs
      of the past, remove the `addr` parameter entirely.  Code which intends
      to support different kinds of resets should be rewritten as a sysreset
      driver instead.
      
      This transformation was done with the following coccinelle patch:
      
          @@
          expression argvalue;
          @@
          - reset_cpu(argvalue)
          + reset_cpu()
      
          @@
          identifier argname;
          type argtype;
          @@
          - reset_cpu(argtype argname)
          + reset_cpu(void)
          { ... }
      
      Signed-off-by: Harald Seiler's avatarHarald Seiler <hws@denx.de>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      35b65dd8
  10. Feb 02, 2021
    • Simon Glass's avatar
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      401d1c4f
  11. Jan 05, 2021
  12. Dec 18, 2020
    • Sean Anderson's avatar
      spi: dw: Add SoC-specific compatible strings · 237e5880
      Sean Anderson authored and Jagan Teki's avatar Jagan Teki committed
      
      This adds SoC-specific compatible strings to all users of the designware
      spi device. This will allow for the correct driver to be selected for each
      device. Where it is publicly documented, a compatible string for the
      specific device version has also been added. Devices without
      publicly-documented device versions include MSCC SoCs, and Arc Socs. All
      compatible strings except those for SoCFPGAs and some of the versioned
      strings have been taken from Linux.
      
      Since SSI_MAX_XFER_SIZE is determined at runtime, this is not strictly
      necessary. However, it is a good cleanup and brings things closer to Linux.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Tested-by Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      237e5880
    • Sean Anderson's avatar
      spi: dw: Rename "cs-gpio" to "cs-gpios" · 13fc44e2
      Sean Anderson authored and Jagan Teki's avatar Jagan Teki committed
      
      This property is named differently than other SPI drivers with the same
      property, as well as the property as used in Linux.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Tested-by Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      13fc44e2
  13. Aug 06, 2020
  14. May 19, 2020
  15. May 18, 2020
  16. May 13, 2020
  17. Apr 27, 2020
  18. Apr 16, 2020
  19. Apr 10, 2020
    • Tom Rini's avatar
      kconfig / kbuild: Re-sync with Linux 4.19 · 587e4a42
      Tom Rini authored
      
      Align Kconfig and Kbuild logic to Linux 4.19 release with minimal impact
      on files outside of this scope.
      
      Our previous Kconfig sync was done by commit 5972ff07 ("kconfig /
      kbuild: re-sync with Linux 4.18").
      
      In this particular re-sync in order to keep clang support working a
      number of related changes needed to be pulled in that had been missed
      previously.  Not all of these changes we easily traceable and so have
      been omitted from the list below.
      
      The imported Linux commits are:
      [From prior to v4.18]
      9f3f1fd29976 kbuild: Add __cc-option macro
      d7f14c66c273 kbuild: Enable Large File Support for hostprogs
      6d79a7b424a5 kbuild: suppress warnings from 'getconf LFS_*'
      24403874316a Shared library support
      86a9df597cdd kbuild: fix linker feature test macros when cross compiling with Clang
      0294e6f4a000 kbuild: simplify ld-option implementation
      
      [From v4.18 to v4.19]
      96f14fe738b6 kbuild: Rename HOSTCFLAGS to KBUILD_HOSTCFLAGS
      10844aebf448 kbuild: Rename HOSTCXXFLAGS to KBUILD_HOSTCXXFLAGS
      b90a368000ab kbuild: Rename HOSTLDFLAGS to KBUILD_HOSTLDFLAGS
      8377bd2b9ee1 kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS
      f92d19e0ef9b kbuild: Use HOST*FLAGS options from the command line
      4ab3b80159d4 kconfig: check for pkg-config on make {menu,n,g,x}config
      693359f7ac90 kconfig: rename SYMBOL_AUTO to SYMBOL_NO_WRITE
      f60b992e30ff kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
      2fb9279f2c3e kbuild: change ld_flags to contain LDFLAGS_$(@F)
      c931d34ea085 arm64: build with baremetal linker target instead of Linux when available
      5accd7f3360e kconfig: handle format string before calling conf_message_callback()
      a2ff4040151a kconfig: rename file_write_dep and move it to confdata.c
      0608182ad542 kconfig: split out useful helpers in confdata.c
      adc18acf42a1 kconfig: remove unneeded directory generation from local*config
      79123b1389cc kconfig: create directories needed for syncconfig by itself
      16952b77d8b5 kconfig: make syncconfig update .config regardless of sym_change_count
      d6c6ab93e17f kbuild: remove deprecated host-progs variable
      56869d45e364 kconfig: fix the rule of mainmenu_stmt symbol
      c151272d1687 kconfig: remove unused sym_get_env_prop() function
      1880861226c1 kconfig: remove P_ENV property type
      e3fd9b5384f3 scripts/dtc: consolidate include path options in Makefile
      4bf6a9af0e91 kconfig: add build-only configurator targets
      f1575595d156 kconfig: error out when seeing recursive dependency
      5e8c5299d315 kconfig: report recursive dependency involving 'imply'
      f498926c47aa kconfig: improve the recursive dependency report
      98a4afbfafd2 kconfig: fix "Can't open ..." in parallel build
      9a9ddcf47831 kconfig: suppress "configuration written to .config" for syncconfig
      87a32e624037 kbuild: pass LDFLAGS to recordmcount.pl
      d503ac531a52 kbuild: rename LDFLAGS to KBUILD_LDFLAGS
      217c3e019675 disable stringop truncation warnings for now
      bc8d2e20a3eb kconfig: remove a spurious self-assignment
      fd65465b7016 kconfig: do not require pkg-config on make {menu,n}config
      5a4630aadb9a ftrace: Build with CPPFLAGS to get -Qunused-arguments
      
      Note that this adds new cleanup work to do in that we should adapt the
      shared library support we have to what is now upstream.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      587e4a42
  20. Mar 31, 2020
  21. Feb 20, 2020
  22. Feb 12, 2020
    • Alexey Brodkin's avatar
      ARC: Switch to generic accessors · 07906b3d
      Alexey Brodkin authored
      
      First of all U-Boot is not that performance oriented as real run-time
      software like OS or user bare-metal app so we may afford being not super
      fast as we only being executed once. That in return allows us to be more
      universal and support wider variety of devices.
      
      And looking forward that will significantly reduce maintenance and simplify
      support of newer architectures.
      
      And while at it we add quad-word accessors like readq(), writeq() etc.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      07906b3d
    • Eugeniy Paltsev's avatar
      ARC: rework setting of ARC CPU specific compiler options · c77bbc22
      Eugeniy Paltsev authored
      
      It's a very rare if at all existing occasion when ARC CPU template
      is used as is w/o any changes - in the end it's a beauty and competitive
      advantage of ARC cores to be tailored for a particular use-case - and
      so it doesn't make a lot of sense to offer template-based "-mcpu" selection.
      Given for each and every platform we end-up adding quite a few more flags
      it's logical to move "-mcpu" selection to platform's definition as well
      which we exactly do here.
      
      Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      c77bbc22
Loading