]> git.sur5r.net Git - u-boot/commit
i2c: Create common default i2c_[set|get]_bus_speed() functions
authorPeter Tyser <ptyser@xes-inc.com>
Sun, 19 Apr 2009 03:34:01 +0000 (22:34 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:45 +0000 (20:39 +0200)
commit655b34a78adf60ef260981688837904208883ae9
treefcf5dc101741e5d250ffc90fc0ed90c524428eaa
parent8229e9c04f7019ddd76aea05d4dca044cbc9a34a
i2c: Create common default i2c_[set|get]_bus_speed() functions

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 <ptyser@xes-inc.com>
common/cmd_i2c.c
cpu/arm920t/at91rm9200/i2c.c
cpu/mpc512x/i2c.c
cpu/mpc8260/i2c.c
cpu/ppc4xx/i2c.c
drivers/i2c/soft_i2c.c