Commit 60c4ae00be11f07a9b60f95e76538785062f873b
Committed by
Tom Rini
1 parent
2973b098ba
Exists in
v2017.01-smarct4x
and in
37 other branches
KM/IVM: remove ivm_read_eeprom(void)
This is not used anymore since the procedure was split into a simple read function and a later alaysis. The ivm_read_eeprom name is now used for the previous ivm_simple_read_eeprom function. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Showing 6 changed files with 6 additions and 26 deletions Side-by-side Diff
board/keymile/common/common.h
... | ... | @@ -126,8 +126,7 @@ |
126 | 126 | #endif |
127 | 127 | |
128 | 128 | int ethernet_present(void); |
129 | -int ivm_read_eeprom(void); | |
130 | -int ivm_simple_read_eeprom(unsigned char *buf, int len); | |
129 | +int ivm_read_eeprom(unsigned char *buf, int len); | |
131 | 130 | int ivm_analyze_eeprom(unsigned char *buf, int len); |
132 | 131 | |
133 | 132 | int trigger_fpga_config(void); |
board/keymile/common/ivm.c
... | ... | @@ -315,7 +315,7 @@ |
315 | 315 | return 0; |
316 | 316 | } |
317 | 317 | |
318 | -int ivm_simple_read_eeprom(unsigned char *buf, int len) | |
318 | +int ivm_read_eeprom(unsigned char *buf, int len) | |
319 | 319 | { |
320 | 320 | int ret; |
321 | 321 | |
... | ... | @@ -330,24 +330,5 @@ |
330 | 330 | } |
331 | 331 | |
332 | 332 | return ivm_populate_env(buf, len); |
333 | -} | |
334 | - | |
335 | -int ivm_read_eeprom(void) | |
336 | -{ | |
337 | - uchar i2c_buffer[CONFIG_SYS_IVM_EEPROM_MAX_LEN]; | |
338 | - int ret; | |
339 | - | |
340 | - i2c_set_bus_num(CONFIG_KM_IVM_BUS); | |
341 | - /* add deblocking here */ | |
342 | - i2c_make_abort(); | |
343 | - | |
344 | - ret = i2c_read(CONFIG_SYS_IVM_EEPROM_ADR, 0, 1, i2c_buffer, | |
345 | - CONFIG_SYS_IVM_EEPROM_MAX_LEN); | |
346 | - if (ret != 0) { | |
347 | - printf("Error reading EEprom\n"); | |
348 | - return -2; | |
349 | - } | |
350 | - | |
351 | - return ivm_analyze_eeprom(i2c_buffer, CONFIG_SYS_IVM_EEPROM_MAX_LEN); | |
352 | 333 | } |
board/keymile/km82xx/km82xx.c
board/keymile/km83xx/km83xx.c
board/keymile/km_arm/km_arm.c