Skip to content
Snippets Groups Projects
  1. Jun 07, 2013
    • Gabor Juhos's avatar
      pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option · 842033e6
      Gabor Juhos authored
      
      The pci_indirect.c file is always compiled when
      CONFIG_PCI is defined although the indirect PCI
      bridge support is not needed by every board.
      
      Introduce a new CONFIG_PCI_INDIRECT_BRIDGE
      config option and only compile indirect PCI
      bridge support if this options is enabled.
      
      Also add the new option into the configuration
      files of the boards which needs that.
      
      Compile tested for powerpc, x86, arm and nds32.
      MAKEALL results:
      
      powerpc:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 641
        Boards with warnings but no errors: 2 ( ELPPC MPC8323ERDB )
        ----------------------------------------------------------
        Note: the warnings for ELPPC and MPC8323ERDB are present even
        without the actual patch.
      
      x86:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 1
        ----------------------------------------------------------
      
      arm:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 311
        ----------------------------------------------------------
      
      nds32:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 3
        ----------------------------------------------------------
      
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      842033e6
    • Peter Korsgaard's avatar
      spl_mmc: add Falcon mode support for raw variant · 2b75b0ad
      Peter Korsgaard authored
      
      If Falcon mode support is enabled (and the system isn't directed into
      booting u-boot), it will instead try to load kernel from sector
      CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR and
      CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS of kernel argument parameters
      starting from sector CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR.
      
      Signed-off-by: default avatarPeter Korsgaard <peter.korsgaard@barco.com>
      2b75b0ad
    • Peter Korsgaard's avatar
      spl_mmc: add Falcon mode support for FAT variant · 7ad2cc79
      Peter Korsgaard authored
      
      If Falcon mode support is enabled (and the system isn't directed into
      booting u-boot), it will instead try to load kernel from
      CONFIG_SPL_FAT_LOAD_KERNEL_NAME file and kernel argument parameters from
      CONFIG_SPL_FAT_LOAD_ARGS_NAME, both from the same partition as u-boot.
      
      Signed-off-by: default avatarPeter Korsgaard <peter.korsgaard@barco.com>
      7ad2cc79
  2. Jun 03, 2013
  3. May 16, 2013
  4. May 15, 2013
  5. May 14, 2013
  6. May 13, 2013
  7. May 10, 2013
    • Lokesh Vutla's avatar
      ARM: OMAP5: Fix warm reset with USB cable connected · 0b1b60c7
      Lokesh Vutla authored
      
      Warm reset on OMAP5 freezes when USB cable is connected.
      Fix requires PRM_RSTTIME.RSTTIME1 to be programmed
      with the time for which reset should be held low for the
      voltages and the oscillator to reach stable state.
      
      There are 3 parameters to be considered for calculating
      the time, which are mostly board and PMIC dependent.
      -1- Time taken by the Oscillator to shut + restart
      -2- PMIC OTP times
      -3- Voltage rail ramp times, which inturn depends on the
      PMIC slew rate and value of the voltage ramp needed.
      
      In order to keep the code in u-boot simple, have a way
      for boards to specify a pre computed time directly using
      the 'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'
      option. If boards fail to specify the time, use a default
      as specified by 'CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC' instead.
      Using the default value translates into some ~22ms and should work in
      all cases.
      However in order to avoid this large delay hiding other bugs,
      its recommended that all boards look at their respective data
      sheets and specify a pre computed and optimal value using
      'CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC'
      
      In order to help future board additions to compute this
      config option value, add a README at doc/README.omap-reset-time
      which explains how to compute the value. Also update the toplevel
      README with the additional option and pointers to
      doc/README.omap-reset-time.
      
      Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
      [rnayak@ti.com: Updated changelog and added the README]
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      0b1b60c7
  8. May 01, 2013
    • Wolfgang Denk's avatar
      Add SLRE - Super Light Regular Expression library · a5ecbe62
      Wolfgang Denk authored
      Downloaded from http://slre.sourceforge.net/
      and adapted for U-Boot environment.
      
      Used to implement regex operations on environment variables.
      Code size is ~ 3.5 KiB on PPC.
      
      To enable this code, define the  CONFIG_REGEX  option in your board
      config file.
      
      Note:  There are more recent versions of the SLRE library available at
      http://slre.googlecode.com
      
       ; unfortunately, the new code has a heavily
      reorked API which makes it less usable for our purposes:
      - the return code is strings, which are more difficult to process
      - we don't get any information any more which sub-string of the data
        was matched by the given regex
      - it is much more cumbersome to work with arbitrary expressions, where
        for example the number of substrings for capturing are not known at
        compile time
      Also, there does not seem to be any real changes or improvements of
      the functionality.
      
      Because of this, we deliberately stick with the older code.
      
      Note 2: the test code (built when SLRE_TEST is defined) was modified
      to allow for more extensive testing; now we can test the regexp
      matching on all lines on a text file (instead of the whole data in the
      file as a single block).
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      a5ecbe62
  9. Apr 28, 2013
  10. Apr 22, 2013
    • Stefan Roese's avatar
      flash: Add optional verify-after-write feature · 352ef3f1
      Stefan Roese authored
      
      Sometimes it might make sense to verify the written data to NOR flash.
      This patch adds this feature. To enable this verify-after-write, you
      need to define CONFIG_FLASH_VERIFY in your board config header.
      
      Please note that this option is useless in nearly all cases,
      since such flash programming errors usually are detected earlier
      while unprotecting/erasing/programming. Please only enable
      this option if you really know what you are doing.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      352ef3f1
  11. Apr 14, 2013
  12. Apr 12, 2013
  13. Apr 11, 2013
  14. Apr 10, 2013
  15. Apr 08, 2013
  16. Apr 02, 2013
  17. Apr 01, 2013
    • York Sun's avatar
      Consolidate bool type · 472d5460
      York Sun authored
      
      'bool' is defined in random places. This patch consolidates them into a
      single header file include/linux/types.h, using stdbool.h introduced in C99.
      
      All other #define, typedef and enum are removed. They are all consistent with
      true = 1, false = 0.
      
      Replace FALSE, False with false. Replace TRUE, True with true.
      Skip *.py, *.php, lib/* files.
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      472d5460
  18. Mar 22, 2013
  19. Mar 15, 2013
    • Simon Glass's avatar
      Add CONFIG_SYS_SYM_OFFSETS to support offset symbols · 632efa74
      Simon Glass authored
      
      Link symbols as created by the link script can either be absolute or
      relative to the text start. This option switches between the two options
      so that we can support both.
      
      As we convert architectures over to generic board, we can see if this
      option is actually needed, or whether it is possible to unify this feature
      also.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      632efa74
    • Simon Glass's avatar
      __HAVE_ARCH_GENERIC_BOARD controls availabilty of generic board · 5c1a7ea6
      Simon Glass authored
      
      We are introducing a new unified board setup. Add a check to make sure that
      board config files do not define CONFIG_SYS_GENERIC_BOARD unless their
      architecture defines __HAVE_ARCH_GENERIC_BOARD
      
      __HAVE_ARCH_GENERIC_BOARD will currently not be the default setting, but
      we can switch this later when most architecture support generic board.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      5c1a7ea6
  20. Mar 13, 2013
    • Stephen Warren's avatar
      ARM: implement some Cortex-A9 errata workarounds · 0678587f
      Stephen Warren authored
      
      Various errata exist in the Cortex-A9 CPU, and may be worked around by
      setting some bits in a CP15 diagnostic register. Add code to implement
      the workarounds, enabled by new CONFIG_ options.
      
      This code was taken from the Linux kernel, v3.8, arch/arm/mm/proc-v7.S,
      and modified to remove the logic to conditionally apply the WAR (since we
      know exactly which CPU we're running on given the U-Boot configuration),
      and use r0 instead of r10 for consistency with the rest of U-Boot's
      cpu_init_cp15().
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      0678587f
  21. Mar 11, 2013
    • Wolfgang Denk's avatar
      Feature Removal: disable "mtest" command by default · a2681707
      Wolfgang Denk authored
      
      The "mtest" command is of little practical use (if any), and
      experience has shown that a large number of board configurations
      define useless or even dangerous start and end addresses.  If not even
      the board maintainers are able to figure out which memory range can be
      reliably tested, how can we expect such from the end users?  As this
      problem comes up repeatedly, we rather do not enable this command by
      default, so only people who know what they are doing will be
      confronted with it.
      
      As this changes the user interface, we allow for a grace period
      before this change takes effect. For now, we make "mtest"
      configurable through the CONFIG_CMD_MEMTEST variable, which is defined
      in include/config_cmd_default.h;  we also add an entry to
      doc/feature-removal-schedule.txt which announces the removal of this
      default setting in two releases from now, i. e. with v2013.07.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Tom Rini <trini@ti.com>
      a2681707
    • Nikita Kiryanov's avatar
      lcd: implement a callback for splashimage · c0880485
      Nikita Kiryanov authored
      
      On some architectures certain values of splashimage will lead to
      a data abort exception.
      
      Document the problem, and implement a callback for splashimage to
      reject such values.
      
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Acked-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      c0880485
  22. Mar 08, 2013
    • Nikita Kiryanov's avatar
      lcd: add option for board specific splash screen preparation · 581bb419
      Nikita Kiryanov authored
      
      Currently there is no logical place to put the code that prepares the
      splash image data. The splash image data should be ready in memory
      before bmp_display() is called, and after the environment is ready
      (since lcd.c looks for the splash image in an address specified by
      the environment variable "splashimage").
      
      Our window of opportunity in board_init_r() is therefore: between
      env_relocate() and bmp_display(), and from the available options
      only the lcd related functions in drv_lcd_init() seem appropriate
      for such lcd oriented code.
      
      Add the option to prepare the splash image data in lcd_logo() right
      before it is sent to be displayed.
      
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Signed-off-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      581bb419
  23. Mar 04, 2013
  24. Mar 01, 2013
    • Simon Glass's avatar
      sandbox: Add un/map_sysmen() to deal with sandbox's ram_buf · 4213fc29
      Simon Glass authored
      
      Sandbox doesn't actually provide U-Boot access to the machine's physical
      memory. Instead it provides a RAM buffer of configurable size, and all
      memory accesses are within that buffer. Sandbox memory starts at 0 and
      is CONFIG_DRAM_SIZE bytes in size. Allowing access outside this buffer
      might produce unpredictable results in the event of an error, and would
      expose the host machine's memory architecture to the sandbox U-Boot.
      
      Most U-Boot functions assume that they can just access memory at given
      address. For sandbox this is not true.
      
      Add a map_sysmem() call which converts a U-Boot address to a system
      address. In most cases this is a NOP, but for sandbox it returns a
      pointer to that memory inside the RAM buffer.
      
      To get a U-Boot feature to work correctly within sandbox, you should call
      map_sysmem() to get a pointer to the address, and then use that address for
      any U-Boot memory accesses.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4213fc29
  25. Feb 22, 2013
  26. Feb 15, 2013
Loading