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