Otherwise the custom-cape eeprom (at address 57) reports NACK which
results into "i2c_write: error waiting for data ACK (status=0x116)" and
terminates further scanning.
Signed-off-by: Marian Cingel <cingel.marian@gmail.com>
#include <i2c.h>
#include <extension_board.h>
#include <vsprintf.h>
+#include <linux/delay.h>
#include "cape_detect.h"
/* Move the read cursor to the beginning of the EEPROM */
dm_i2c_write(dev, 0, &cursor, 1);
+ /* Need 5ms (tWR) to complete internal write */
+ mdelay(6);
ret = dm_i2c_read(dev, 0, (uint8_t *)&eeprom_header,
sizeof(struct am335x_cape_eeprom_id));
if (ret) {