13 Jun, 2009

12 commits

  • When CONFIG_I2C_MUX was defined the output of 'help i2c' was not
    correct, eg:

    => help i2c
    i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes.
    speed [speed] - show or set I2C bus speed
    i2c dev [dev] - show or set current I2C bus
    ...

    It has been changed to:
    i2c speed [speed] - show or set I2C bus speed
    i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes
    i2c dev [dev] - show or set current I2C bus
    ...

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • Signed-off-by: Peter Tyser

    Peter Tyser
     
  • argc and argv should only be modified once instead of once for
    every i2c sub-command

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • The individual i2c commands imd, imm, inm, imw, icrc32, iprobe, iloop,
    and isdram are no longer available so all references to them have been
    updated to the new form of "i2c ".

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • The following individual I2C commands have been removed: imd, imm, inm,
    imw, icrc32, iprobe, iloop, isdram.

    The functionality of the individual commands is still available via
    the 'i2c' command.

    This change only has an impact on those boards which did not have
    CONFIG_I2C_CMD_TREE defined.

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • New default, weak i2c_get_bus_speed() and i2c_set_bus_speed() functions
    replace a number of architecture-specific implementations.

    Also, providing default functions will allow all boards to enable
    CONFIG_I2C_CMD_TREE. This was previously not possible since the
    tree-form of the i2c command provides the ability to display and modify
    the i2c bus speed which requires i2c_[set|get]_bus_speed() to be
    present.

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • Add "_test" to cm5200's function test command names to prevent
    overlap with common, global function names. Originally, the
    "do_i2c" function test command interfered with
    common/cmd_i2c.c's "do_i2c" when CONFIG_I2C_CMD_TREE was defined.

    The functions were also made static as they are not globally accessed.

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • Add the i2c_init() function so that the tsi108_i2c.c driver fits
    U-Boot's standard I2C API which is utilized by cmd_i2c.c

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • Add standard CONFIG_SYS_I2C_SPEED define for the mpc7448hpc2 so that
    it can use the common 'i2c speed' command. Note that the I2C controller
    utilized by the mpc7448hpc2 has a fixed speed and cannot be changed
    dynamically.

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • The following changes were made, primarily to bring the Marvell i2c
    driver in line with U-Boot's current I2C API:
    - Made i2c_init() globally accessible
    - Made i2c_read() and i2c_write() return an integer
    - Updated i2c_init() calls to pass in CONFIG_SYS_I2C_SLAVE in the
    offhand chance someone adds slave support in the future

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • The following changes were made, primarily to bring the cpci750 i2c
    driver in line with U-Boot's current I2C API:
    - Made i2c_init() globally accessible
    - Made i2c_read() and i2c_write() return an integer
    - Updated i2c_init() calls to pass in CONFIG_SYS_I2C_SLAVE in the
    offhand chance someone adds slave support in the future

    Signed-off-by: Peter Tyser

    Peter Tyser
     
  • Many boards/controllers/drivers don't support an I2C slave interface,
    however CONFIG_SYS_I2C_SLAVE is used in common code so provide a
    default

    Signed-off-by: Peter Tyser

    Peter Tyser
     

12 Jun, 2009

8 commits


10 Jun, 2009

14 commits


09 Jun, 2009

4 commits

  • This patch fixes MDIO clock setup in case when OPB frequency is 100MHz.
    Current code assumes that the value of sysinfo.freqOPB is 100000000
    when OPB frequency is 100MHz. In reality it is 100000001. As a result
    MDIO clock is set to incorrect value, larger than 2.5MHz, thus violating
    the standard. This in not a problem on boards equipped with Marvell PHYs
    (e.g. Canyonlands), since those PHYs support MDIO clocks up to 8.3MHz,
    but can be a problem for other PHYs (e.g. Realtek ones).

    Signed-off-by: Felix Radensky
    Signed-off-by: Ben Warren

    Felix Radensky
     
  • When PCI device use system memory, some PCI host controller should be
    set physical memory address.

    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Ben Warren

    Yoshihiro Shimoda
     
  • eth_halt() function in the smc911x drivers used to call the
    smc911x_reset() function. eth_halt() used to be called after
    tftp transfers. This used to put the ethernet chip in reset
    while the linux boots up resulting in the ethernet driver
    not coming up. NFS boot used to fail as a result.

    This patch calls smc911x_shutdown() instead of smc911x_reset().
    Some comments received has also been fixed.

    Signed-off-by: Manikandan Pillai
    Signed-off-by: Ben Warren

    Manikandan Pillai
     
  • Some boards do not have SROM support for the DM9000 network adapter.
    Instead of listing these board names in the driver code, make this
    option configurable from the board config file.

    It also removes a build warning for the at91sam9261ek board:
    'dm9000x.c:545: warning: 'read_srom_word' defined but not used'

    And it repaires the trizepsiv board build which was broken around the
    same routines

    Signed-off-by: Remy Bohmer
    Signed-off-by: Ben Warren

    Remy Bohmer
     

08 Jun, 2009

2 commits

  • In GMII mode (which operates at 3.3V) both SICRH TSEC1/2 output buffer
    impedance bits should be clear, i.e., SICRH[TSIOB1] = 0 and SICRH[TSIOB2] = 0.
    SICRH[TSIOB1] was erroneously being set high.

    U-Boot always operated this PHY interface in GMII mode. It is assumed this
    was missed in the clean up by the original board porters, and copied along
    to the TQM and sbc boards.

    Signed-off-by: Kim Phillips
    Acked-by: Ira Snyder
    Reviewed-by: David Hawkins
    Tested-by: Paul Gortmaker
    CC: Dave Liu

    Kim Phillips
     
  • If the MAX address is given by the environment, write it back to the
    hardware.

    Signed-off-by: Daniel Mack
    Cc: Sascha Hauer
    Signed-off-by: Ben Warren

    Daniel Mack