Add auto-update code for TRAB board using USB memory sticks
diff --git a/board/trab/cmd_trab.c b/board/trab/cmd_trab.c
index 0a9768a..78e14bd 100644
--- a/board/trab/cmd_trab.c
+++ b/board/trab/cmd_trab.c
@@ -111,6 +111,10 @@
int do_burn_in (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
int do_contact_temp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
int do_burn_in_status (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+int i2c_write_multiple (uchar chip, uint addr, int alen,
+ uchar *buffer, int len);
+int i2c_read_multiple (uchar chip, uint addr, int alen,
+ uchar *buffer, int len);
/* helper functions */
static void adc_init (void);
@@ -123,10 +127,6 @@
static int test_sram (void);
static int test_eeprom (void);
static int test_contact_temp (void);
-static int i2c_write_multiple (uchar chip, uint addr, int alen,
- uchar *buffer, int len);
-static int i2c_read_multiple (uchar chip, uint addr, int alen,
- uchar *buffer, int len);
static void led_set (unsigned int);
static void led_blink (void);
static void led_init (void);
@@ -579,8 +579,8 @@
}
-static int i2c_write_multiple (uchar chip, uint addr, int alen,
- uchar *buffer, int len)
+int i2c_write_multiple (uchar chip, uint addr, int alen,
+ uchar *buffer, int len)
{
int i;
@@ -608,8 +608,8 @@
}
-static int i2c_read_multiple (uchar chip, uint addr, int alen,
- uchar *buffer, int len)
+int i2c_read_multiple ( uchar chip, uint addr, int alen,
+ uchar *buffer, int len)
{
int i;