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>
Showing
- common/cmd_i2c.c 18 additions, 0 deletionscommon/cmd_i2c.c
- cpu/arm920t/at91rm9200/i2c.c 0 additions, 10 deletionscpu/arm920t/at91rm9200/i2c.c
- cpu/mpc512x/i2c.c 0 additions, 14 deletionscpu/mpc512x/i2c.c
- cpu/mpc8260/i2c.c 0 additions, 13 deletionscpu/mpc8260/i2c.c
- cpu/ppc4xx/i2c.c 0 additions, 14 deletionscpu/ppc4xx/i2c.c
- drivers/i2c/soft_i2c.c 0 additions, 14 deletionsdrivers/i2c/soft_i2c.c
Loading
Please register or sign in to comment