diff options
author | wdenk <wdenk> | 2003-09-17 15:10:32 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-09-17 15:10:32 +0000 |
commit | f54ebdfa28a3c384cb4904f75f8228f3c6d748c5 (patch) | |
tree | 10a301981147099e9f930ac8ec042328e8c062fa /board/trab/cmd_trab.c | |
parent | 34b3049a60a37e180d73332ccddf706c049a0515 (diff) | |
download | u-boot-midas-f54ebdfa28a3c384cb4904f75f8228f3c6d748c5.tar.gz u-boot-midas-f54ebdfa28a3c384cb4904f75f8228f3c6d748c5.tar.bz2 u-boot-midas-f54ebdfa28a3c384cb4904f75f8228f3c6d748c5.zip |
Add auto-update code for TRAB board using USB memory sticks
Diffstat (limited to 'board/trab/cmd_trab.c')
-rw-r--r-- | board/trab/cmd_trab.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/board/trab/cmd_trab.c b/board/trab/cmd_trab.c index 0a9768ad48..78e14bdadf 100644 --- a/board/trab/cmd_trab.c +++ b/board/trab/cmd_trab.c @@ -111,6 +111,10 @@ int do_vcc5v (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); 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_rotary_switch (void); 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 test_contact_temp (void) } -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_write_multiple (uchar chip, uint addr, int alen, } -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; |