Merge branch 'master' of git://git.denx.de/u-boot-spi
- Various MTD fixes from Boris - Zap various unused / legacy paths. - pxa3xx NAND update from Miquel Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
14
cmd/eeprom.c
14
cmd/eeprom.c
@@ -66,11 +66,6 @@ __weak int eeprom_write_enable(unsigned dev_addr, int state)
|
||||
|
||||
void eeprom_init(int bus)
|
||||
{
|
||||
/* SPI EEPROM */
|
||||
#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
|
||||
spi_init_f();
|
||||
#endif
|
||||
|
||||
/* I2C EEPROM */
|
||||
#if defined(CONFIG_SYS_I2C)
|
||||
if (bus >= 0)
|
||||
@@ -129,14 +124,6 @@ static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen,
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
/* SPI */
|
||||
#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
|
||||
if (read)
|
||||
spi_read(addr, alen, buffer, len);
|
||||
else
|
||||
spi_write(addr, alen, buffer, len);
|
||||
#else /* I2C */
|
||||
|
||||
#if defined(CONFIG_DM_I2C) && defined(CONFIG_SYS_I2C_EEPROM_BUS)
|
||||
struct udevice *dev;
|
||||
|
||||
@@ -162,7 +149,6 @@ static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen,
|
||||
ret = i2c_read(addr[0], offset, alen - 1, buffer, len);
|
||||
else
|
||||
ret = i2c_write(addr[0], offset, alen - 1, buffer, len);
|
||||
#endif
|
||||
#endif /* CONFIG_DM_I2C && CONFIG_SYS_I2C_EEPROM_BUS */
|
||||
if (ret)
|
||||
ret = CMD_RET_FAILURE;
|
||||
|
||||
@@ -101,7 +101,6 @@ static int ubi_check(char *name)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int verify_mkvol_req(const struct ubi_device *ubi,
|
||||
const struct ubi_mkvol_req *req)
|
||||
{
|
||||
@@ -415,7 +414,7 @@ static int ubi_dev_scan(struct mtd_info *info, const char *vid_header_offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ubi_detach(void)
|
||||
static int ubi_detach(void)
|
||||
{
|
||||
#ifdef CONFIG_CMD_UBIFS
|
||||
/*
|
||||
@@ -473,7 +472,6 @@ static int do_ubi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
|
||||
if (strcmp(argv[1], "detach") == 0) {
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
@@ -481,7 +479,6 @@ static int do_ubi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
return ubi_detach();
|
||||
}
|
||||
|
||||
|
||||
if (strcmp(argv[1], "part") == 0) {
|
||||
const char *vid_header_offset = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user