diff options
author | Jens Scharsig <esw@bus-elektronik.de> | 2008-09-12 02:20:47 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-09-12 02:20:47 +0200 |
commit | 3ee9f03f588ad605e3fd10530237f9e3e2e7ab4c (patch) | |
tree | a03e74969bc903ed5f4e60fbfe71ac7762e35ae5 /cpu/arm920t/at91rm9200 | |
parent | b5b0344957d32e3d07a8dd72fce64fb48e680ba4 (diff) | |
download | u-boot-imx-3ee9f03f588ad605e3fd10530237f9e3e2e7ab4c.zip u-boot-imx-3ee9f03f588ad605e3fd10530237f9e3e2e7ab4c.tar.gz u-boot-imx-3ee9f03f588ad605e3fd10530237f9e3e2e7ab4c.tar.bz2 |
at91rm9200: fix errors with CONFIG_CMD_I2C_TREE
This patch prevents linker error on AT91RM9200 boards, if
CONFIG_CMD_I2_TREE is set.
It implements i2c_set_bus_speed and i2c_get_bus_speed as a dummy function.
Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
Diffstat (limited to 'cpu/arm920t/at91rm9200')
-rw-r--r-- | cpu/arm920t/at91rm9200/i2c.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c index 826cea8..90f95df 100644 --- a/cpu/arm920t/at91rm9200/i2c.c +++ b/cpu/arm920t/at91rm9200/i2c.c @@ -203,4 +203,14 @@ void i2c_reg_write(uchar i2c_addr, uchar reg, uchar val) i2c_write(i2c_addr, reg, 1, &val, 1); } +int i2c_set_bus_speed(unsigned int speed) +{ + return -1; +} + +unsigned int i2c_get_bus_speed(void) +{ + return CFG_I2C_SPEED; +} + #endif /* CONFIG_HARD_I2C */ |