| * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include <asm/processor.h> |
| #if defined(CONFIG_TAISHAN) |
| const uchar bootstrap_buf[16] = { |
| static int update_boot_eeprom(void) |
| uchar chip = CONFIG_SYS_BOOTSTRAP_IIC_ADDR; |
| uchar *pbuf = (uchar *)bootstrap_buf; |
| for (ii = 0; ii < len; ii++) { |
| if (i2c_write(chip, ii, 1, &pbuf[ii], 1) != 0) { |
| printf("i2c_write failed\n"); |
| for (jj = 0; jj < 10; jj++) |
| int do_update_boot_eeprom(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) |
| return update_boot_eeprom(); |
| U_BOOT_CMD(update_boot_eeprom, 1, 1, do_update_boot_eeprom, |
| "update bootstrap eeprom content", ""); |