Skip to content
Snippets Groups Projects
  1. Oct 08, 2019
  2. Apr 26, 2019
    • Stefan Roese's avatar
      watchdog: Implement generic watchdog_reset() version · 06985289
      Stefan Roese authored
      
      This patch tries to implement a generic watchdog_reset() function that
      can be used by all boards that want to service the watchdog device in
      U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG.
      
      Without this approach, new boards or platforms needed to implement a
      board specific version of this functionality, mostly copy'ing the same
      code over and over again into their board or platforms code base.
      
      With this new generic function, the scattered other functions are now
      removed to be replaced by the generic one. The new version also enables
      the configuration of the watchdog timeout via the DT "timeout-sec"
      property (if enabled via CONFIG_OF_CONTROL).
      
      This patch also adds a new flag to the GD flags, to flag that the
      watchdog is ready to use and adds the pointer to the watchdog device
      to the GD. This enables us to remove the global "watchdog_dev"
      variable, which was prone to cause problems because of its potentially
      very early use in watchdog_reset(), even before the BSS is cleared.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: "Marek Behún" <marek.behun@nic.cz>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Maxim Sloyko <maxims@google.com>
      Cc: Erik van Luijk <evanluijk@interact.nl>
      Cc: Ryder Lee <ryder.lee@mediatek.com>
      Cc: Weijie Gao <weijie.gao@mediatek.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: "Álvaro Fernández Rojas" <noltari@gmail.com>
      Cc: Philippe Reynes <philippe.reynes@softathome.com>
      Cc: Christophe Leroy <christophe.leroy@c-s.fr>
      Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Tested-by: Michal Simek <michal.simek@xilinx.com> (on zcu100)
      06985289
  3. Apr 08, 2019
    • Stefan Roese's avatar
      watchdog: Move watchdog_dev to data section (BSS may not be cleared) · ccd063e9
      Stefan Roese authored
      
      This patch moves all instances of static "watchdog_dev" declarations to
      the "data" section. This may be needed, as the BSS may not be cleared
      in the early U-Boot phase, where watchdog_reset() is already beeing
      called. This may result in incorrect pointer access, as the check to
      "!watchdog_dev" in watchdog_reset() may not be true and the function
      may continue to run.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: "Marek Behún" <marek.behun@nic.cz>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Tested-by: Michal Simek <michal.simek@xilinx.com> (on zcu100)
      Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
      ccd063e9
  4. Nov 26, 2018
  5. Jul 19, 2018
  6. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  7. Apr 05, 2017
  8. Jan 27, 2016
  9. Dec 18, 2015
  10. Aug 18, 2015
  11. Apr 29, 2015
  12. Feb 09, 2015
  13. Oct 14, 2013
  14. Jul 24, 2013
  15. May 09, 2013
    • Michal Simek's avatar
      gpio: Add support for microblaze xilinx GPIO · 4e779ad2
      Michal Simek authored
      
      Microblaze uses gpio which is connected to the system reset.
      Currently gpio subsystem wasn't used for it.
      
      Add gpio driver and change Microblaze reset logic to be done
      via gpio subsystem.
      
      There are various configurations which Microblaze can have
      that's why gpio_alloc/gpio_alloc_dual(for dual channel)
      function has been introduced and gpio can be allocated
      dynamically.
      
      Adding several gpios IP is also possible and supported.
      
      For listing gpio configuration please use "gpio status" command
      
      This patch also remove one compilation warning:
      microblaze-generic.c: In function 'do_reset':
      microblaze-generic.c:38:47: warning: operation on '*1073741824u'
       may be undefined [-Wsequence-point]
      
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      4e779ad2
  16. Apr 30, 2013
  17. Feb 04, 2013
  18. Sep 11, 2012
  19. Apr 04, 2012
  20. Oct 24, 2011
  21. Oct 23, 2011
  22. Nov 28, 2010
  23. Oct 12, 2010
  24. Apr 16, 2010
  25. Jan 23, 2009
  26. Oct 18, 2008
  27. May 07, 2007
  28. Mar 30, 2007
  29. Mar 11, 2007
    • Michal Simek's avatar
      [Microblaze][PATCH] · 76316a31
      Michal Simek authored
      timer support
      interrupt controller support
      flash support
      ethernet support
      cache support
      board information support
      env support
      booting image support
      
      adding support for Xilinx ML401
      76316a31
  30. Jul 10, 2004
    • Wolfgang Denk's avatar
      Patches by Yasushi Shoji, 29 Jun 2004: · 857cad37
      Wolfgang Denk authored
      - add empty include/asm-microblaze/processor.h
      - add to CREDITS and MAINTAINERS
      - add gd initialization
      - add MicroBlaze and SUZAKU board to MAKEALL script
      - add reset support for SUZAKU
      - add flush_cache() for MicroBlaze
      - add CFG_FLASH_SIZE to include/configs/suzaku.h since we have fixed
        size flash memory on SUZAKU
      857cad37
Loading