Skip to content
Snippets Groups Projects
  1. Dec 27, 2018
    • Cristian Ciocaltea's avatar
      api: storage: Fix enumeration of storage devices · 8efae021
      Cristian Ciocaltea authored and Tom Rini's avatar Tom Rini committed
      
      dev_stor_get() is not able to find the next available device in the current
      storage group when the previous enumerated device belongs to a different
      group or class (e.g. network).
      
      The root cause is the device group iterator not being reset after an
      unsuccessful search for the last returned device so that the following
      search for the next available device will start from beginning.
      
      The issue has been identified by loading and booting GRUB in a QEMU
      vexpress-a9 environment.
      
      Signed-off-by: default avatarCristian Ciocaltea <cristian.ciocaltea@iquestgroup.com>
      8efae021
  2. 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
  3. Apr 27, 2018
  4. Apr 06, 2018
  5. Aug 16, 2017
  6. Aug 13, 2017
  7. Jul 11, 2017
  8. Jul 08, 2017
    • Christophe Leroy's avatar
      powerpc: Partialy restore core of mpc8xx · 907208c4
      Christophe Leroy authored and Tom Rini's avatar Tom Rini committed
      
      CS Systemes d'Information (CSSI) manufactures 8xx boards for
      critical communication systems. Those boards have been
      running U-Boot since 2010 and will have to be maintained
      until at least 2027.
      
      commit 5b8e76c3
      ("powerpc, 8xx: remove support for 8xx") orphaned those boards
      by removing support for the mpc8xx CPU.
      
      This commit partially restores support for the 8xx, with the
      following limitations:
      - Restores support for MPC866 and MPC885 only
      - Does not restore IDE, PCMCIA, I2C, USB
      - Does not restore examples
      - Does not restore POST
      - Does not restore Ethernet on SCC
      - Does not restore console on SCC
      - Does not restore bedbug and kgdb support
      
      As the 866 and 885 do not support the following features,
      they are not restored either:
      - VIDEO / LCD
      - RTC clock
      
      The CPM uCODE patch is not restored either, because:
      - 866 and 885 already have support for I2C and SPI relocation
      without a uCODE patch
      - relocation of SMC, I2C or SPI is only needed for using SCCs
      for Ethernet or QMC
      
      The dynamic setup/calculation of clocks is removed, we
      expect the target being use with the clock and PLPRCR register
      defined in the configuration.
      All the clock settings for 8xx prior to 866 is removed as
      well as we now only support 866 and 885.
      
      This code is mature and addresses mature boards. Therefore
      all code enclosed in '#if 0/#endif' and '#if XX_DEBUG/#endif'
      is unneeded.
      
      The following files are not restored by this patch:
      
      - arch/powerpc/cpu/mpc8xx/bedbug_860.c
      - arch/powerpc/cpu/mpc8xx/fec.h
      - arch/powerpc/cpu/mpc8xx/kgdb.S
      - arch/powerpc/cpu/mpc8xx/plprcr_write.S
      - arch/powerpc/cpu/mpc8xx/scc.c
      - arch/powerpc/cpu/mpc8xx/upatch.c
      - arch/powerpc/cpu/mpc8xx/video.c
      - arch/powerpc/include/asm/status_led.h
      - arch/powerpc/lib/ide.c
      - arch/powerpc/lib/ide.h
      - doc/README.MPC866
      - drivers/pcmcia/mpc8xx_pcmcia.c
      - drivers/rtc/mpc8xx.c
      - drivers/usb/gadget/mpc8xx_udc.c
      - drivers/video/mpc8xx_lcd.c
      - examples/standalone/test_burst.c
      - examples/standalone/test_burst.h
      - examples/standalone/test_burst_lib.S
      - examples/standalone/timer.c
      - include/mpc823_lcd.h
      - include/usb/mpc8xx_udc.h
      - post/cpu/mpc8xx/Makefile
      - post/cpu/mpc8xx/cache.c
      - post/cpu/mpc8xx/cache_8xx.S
      - post/cpu/mpc8xx/ether.c
      - post/cpu/mpc8xx/spr.c
      - post/cpu/mpc8xx/uart.c
      - post/cpu/mpc8xx/usb.c
      - post/cpu/mpc8xx/watchdog.c
      
      Some of the restored files are not located in a proper location.
      In order to keep traceability of the changes, they will be
      moved to their correct location and moved to Kconfig in a
      followup patch.
      
      This patch also declares CSSI as point of contact for the update
      of the 8xx platform, as those boards are the only ones still
      being maintained on the 8xx area. A later patch will add
      those boards to the tree.
      
      Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
      907208c4
  9. Jun 23, 2017
  10. Jun 16, 2017
  11. Jun 12, 2017
  12. May 22, 2017
    • Simon Glass's avatar
      Kconfig: Add a CONFIG_IDE option · fc843a02
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      At present IDE support is controlled by CONFIG_CMD_IDE. Add a separate
      CONFIG_IDE option so that IDE support can be enabled without requiring
      the 'ide' command.
      
      Update existing users and move the ide driver into drivers/block since
      it should not be in common/.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      fc843a02
  13. Apr 08, 2017
    • fuz@fuz.su's avatar
      Apparent conflict between CONFIG_BLK and CONFIG_API · f2288c5a
      fuz@fuz.su authored and Tom Rini's avatar Tom Rini committed
      Good evening,
      
      I am trying to port FreeBSD to the ASUS Tinker Board, a computer based
      on the Rockchip 3288 SoC. FreeBSD's boot loader (named loader(8)) needs
      CONFIG_API to be enabled, but trying to build an U-Boot from trunk with
      both CONFIG_API and CONFIG_BLK (as required for Rockchip SoC's?) leads
      to the following build failure:
      
      $ CROSS_COMPILE=arm-none-eabi- gmake tinker-rk3288_defconfig all
      ...
        CC      api/api_storage.o
      api/api_storage.c: In function 'dev_read_stor':
      api/api_storage.c:334:9: error: 'struct blk_desc' has no member named 'block_read'
        if ((dd->block_read) == NULL) {
               ^~
      api/api_storage.c:339:11: error: 'struct blk_desc' has no member named 'block_read'
        return dd->block_read(dd, start, len, buf);
                 ^~
      api/api_storage.c:340:1: warning: control reaches end of non-void function [-Wreturn-type]
       }
       ^
      gmake[2]: *** [scripts/Makefile.build:281: api/api_storage.o] Fehler 1
      gmake[1]: *** [Makefile:1229: api] Fehler 2
      gmake: *** [Makefile:460: __build_one_by_one] Error 2
      
      I applied the following fix, but the product doesn't boot. Perhaps
      that's not a property of the fix though:
      
      Yours,
      Robert Clausecker
      f2288c5a
  14. Feb 08, 2017
  15. Jan 20, 2017
  16. Dec 04, 2016
  17. Oct 24, 2016
  18. Jul 22, 2016
    • Michal Simek's avatar
      api: Disable api_net when DM is used · 21181578
      Michal Simek authored
      
      When CONFIG_API is selected with DM_ETH this
      error is present:
      api/api_net.c: In function 'dev_enum_net':
      api/api_net.c:61:35: warning: initialization from incompatible pointer
      type
        struct eth_device *eth_current = eth_get_dev();
                                         ^
      api/api_net.c:68:39: error: dereferencing pointer to incomplete type
        memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                             ^
      Disable api_net functions when ETH_DM is selected.
      
      Signed-off-by: default avatarChris Johns <chrisj@rtems.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      21181578
  19. May 20, 2016
  20. May 17, 2016
  21. Mar 14, 2016
  22. Mar 08, 2016
  23. Feb 08, 2016
  24. Jan 14, 2016
  25. Sep 15, 2015
    • Andreas Färber's avatar
      api_storage: Fix non-first storage device enumeration · ce2a07b7
      Andreas Färber authored and Tom Rini's avatar Tom Rini committed
      
      When enabling CONFIG_API and chain-loading GRUB2 on jetson-tk1, only the
      eMMC would show up as (hd0), but not the SD card, leading to GRUB not
      finding its configuration and modules, falling back to a rescue shell.
      
      This is because enum_ended would get set for !more after returning a
      cookie for the first MMC device in group 3.
      
      Fix this by properly setting the "more" argument also in the case of the
      first storage device of a group.
      
      Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
      ce2a07b7
  26. Apr 18, 2015
  27. Aug 21, 2014
  28. Mar 07, 2014
    • Masahiro Yamada's avatar
      powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 · 58dac327
      Masahiro Yamada authored and Tom Rini's avatar Tom Rini committed
      
      Before this commit, CONFIG_MPC8260 and CONFIG_8260
      were used mixed-up.
      
      All boards with mpc8260 cpu defined both of them:
        - CONFIG_MPC8260 was defined in board config headers
            and include/common.h
        - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk
      
      We do not need to have both of them.
      This commit keeps only CONFIG_MPC8260.
      
      This commit does:
       - Delete CONFIG_8260 and CONFIG_MPC8260 definition
         in config headers and include/common.h
       - Rename CONFIG_8260 to CONFIG_MPC8260
          in arch/powerpc/cpu/mpc8260/config.mk.
       - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Wolfgang Denk <wd@denx.de>
      58dac327
  29. Nov 25, 2013
Loading