1. 27 May, 2016 3 commits
  2. 25 May, 2016 1 commit
  3. 23 May, 2016 8 commits
  4. 21 May, 2016 2 commits
    • Nikita Kiryanov's avatar
      eeprom: merge cmdline parsing of eeprom commands · 3dc9be82
      Nikita Kiryanov authored
      Merge the parsing of layout aware and layout unaware eeprom commands into
      one parsing function. With this change, layout aware commands now follow
      the eeprom read and eeprom write conventions of making i2c bus and i2c address
      parameters optional.
      
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: 's avatarNikita Kiryanov <nikita@compulab.co.il>
      3dc9be82
    • Nikita Kiryanov's avatar
      eeprom: use eeprom_execute_command for all eeprom functions · e7c2729b
      Nikita Kiryanov authored
      Update eeprom_execute_command() and related code to accommodate both layout
      aware and layout unaware functions.
      
      No functional changes.
      
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: 's avatarNikita Kiryanov <nikita@compulab.co.il>
      [trini: Make eeprom_execute_command have ulong for i2c_addr]
      Signed-off-by: 's avatarTom Rini <trini@konsulko.com>
      e7c2729b
  5. 20 May, 2016 4 commits
    • Tim Chick's avatar
      mips: Report reloc information in bdinfo · 8cf7a418
      Tim Chick authored
      Signed-off-by: 's avatarTim Chick <tim.chick@mediatek.com>
      8cf7a418
    • Nikita Kiryanov's avatar
      eeprom: refactor i2c bus and devaddr parsing · c40f0372
      Nikita Kiryanov authored
      Introduce parse_i2c_bus_addr() to generalize the parsing of i2c bus number and
      i2c device address. This is done in preparation for merging layout aware and
      layout unaware command parsing into one function.
      
      No functional changes.
      
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: 's avatarNikita Kiryanov <nikita@compulab.co.il>
      c40f0372
    • Nikita Kiryanov's avatar
      cmd: eeprom: add support for layout aware commands · aa9e6044
      Nikita Kiryanov authored
      Introduce the (optional) eeprom print and eeprom update commands.
      
      These commands are eeprom layout aware:
      * The eeprom print command prints the contents of the eeprom in a human
        readable way (eeprom layout fields, and data formatted to be fit for human
        consumption).
      * The eeprom update command allows user to update eeprom fields by specifying
        the field name, and providing the new data in a human readable format (same
        format as displayed by the eeprom print command).
      * Both commands can either auto detect the layout, or be told which layout to
        use.
      
      New CONFIG options:
      CONFIG_CMD_EEPROM_LAYOUT - enables commands.
      CONFIG_EEPROM_LAYOUT_HELP_STRING - tells user what layout names are supported
      
      Feature API:
      __weak int parse_layout_version(char *str)
      	- override to provide your own layout name parsing
      __weak void __eeprom_layout_assign(struct eeprom_layout *layout, int layout_version);
      	- override to setup the layout metadata based on the version
      __weak int eeprom_layout_detect(unsigned char *data)
      	- override to provide your own algorithm for detecting layout version
      eeprom_field.c
      	- contains various printing and updating functions for common types of
      	  eeprom fields. Can be used for defining custom layouts.
      
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: 's avatarNikita Kiryanov <nikita@compulab.co.il>
      aa9e6044
    • Nikita Kiryanov's avatar
      cmd: eeprom: add bus switching support for all i2c drivers · 2636ac65
      Nikita Kiryanov authored
      The i2c_init function is always provided when CONFIG_SYS_I2C is
      defined. No need to limit ourselves to just one supported I2C driver
      (soft_i2c). Update the #ifdef conditions to support bus switching for
      all I2C drivers.
      
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@konsulko.com>
      Signed-off-by: 's avatarNikita Kiryanov <nikita@compulab.co.il>
      2636ac65
  6. 17 May, 2016 13 commits
  7. 06 May, 2016 2 commits
    • Robert P. J. Day's avatar
      Fix various typos, scattered over the code. · 1cc0a9f4
      Robert P. J. Day authored
      Spelling corrections for (among other things):
      
      * environment
      * override
      * variable
      * ftd (should be "fdt", for flattened device tree)
      * embedded
      * FTDI
      * emulation
      * controller
      1cc0a9f4
    • Marek Vasut's avatar
      mmc: Fix error in RPMB code · b955e42b
      Marek Vasut authored
      Since we do not build any board with CONFIG_SUPPORT_EMMC_RPMB , this
      piece of code evaded conversion. Fix the following compiler error:
      
      cmd/mmc.c: In function 'do_mmcrpmb':
      cmd/mmc.c:316:32: error: 'struct blk_desc' has no member named 'part_num'
        original_part = mmc->block_dev.part_num;
                                      ^
      Signed-off-by: 's avatarMarek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Cc: Tom Rini <trini@konsulko.com>
      b955e42b
  8. 03 May, 2016 1 commit
    • Mario Six's avatar
      i2c/eeprom: Always define I2C_RXTX_LEN · a6e7b774
      Mario Six authored
      I2C_RXTX_LEN from include/i2c.h is not defined if CONFIG_DM_I2C is
      enabled. This leads to a compilation error on boards that enable both
      CONFIG_CMD_EEPROM and CONFIG_DM_I2C.
      
      To avoid this, we define I2C_RXTX_LEN in cmd/eeprom.c if it is not
      already defined.
      Signed-off-by: 's avatarMario Six <mario.six@gdsys.cc>
      a6e7b774
  9. 02 May, 2016 1 commit
  10. 25 Apr, 2016 2 commits
  11. 20 Apr, 2016 2 commits
  12. 18 Apr, 2016 1 commit