mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 12:01:31 +00:00
Blackfin: do not init i2c in Blackfin board init
The common code takes care of calling i2c_init() when needed, so no point in us doing it as well. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
1118ea7369
commit
6882b5a79a
1 changed files with 0 additions and 15 deletions
|
@ -13,7 +13,6 @@
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <devices.h>
|
#include <devices.h>
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <i2c.h>
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
|
@ -331,16 +330,6 @@ void board_init_f(ulong bootflag)
|
||||||
board_init_r((gd_t *) gd, 0x20000010);
|
board_init_r((gd_t *) gd, 0x20000010);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_SOFT_I2C) || defined(CONFIG_HARD_I2C)
|
|
||||||
static int init_func_i2c(void)
|
|
||||||
{
|
|
||||||
puts("I2C: ");
|
|
||||||
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
|
|
||||||
puts("ready\n");
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void board_init_r(gd_t * id, ulong dest_addr)
|
void board_init_r(gd_t * id, ulong dest_addr)
|
||||||
{
|
{
|
||||||
extern void malloc_bin_reloc(void);
|
extern void malloc_bin_reloc(void);
|
||||||
|
@ -442,10 +431,6 @@ void board_init_r(gd_t * id, ulong dest_addr)
|
||||||
bd->bi_enetaddr[3], bd->bi_enetaddr[4], bd->bi_enetaddr[5]);
|
bd->bi_enetaddr[3], bd->bi_enetaddr[4], bd->bi_enetaddr[5]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SOFT_I2C) || defined(CONFIG_HARD_I2C)
|
|
||||||
init_func_i2c();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
display_global_data();
|
display_global_data();
|
||||||
|
|
||||||
#if defined(CONFIG_POST)
|
#if defined(CONFIG_POST)
|
||||||
|
|
Loading…
Add table
Reference in a new issue