4 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
7 unsigned long flash_init(void)
11 for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
13 flash_info[i].flash_id = FLASH_UNKNOWN;
14 flash_info[i].sector_count = 0;
15 flash_info[i].size = 0;
22 int flash_erase(flash_info_t *info, int s_first, int s_last)
27 void flash_print_info(flash_info_t *info)
29 printf("No flashrom installed\n");
32 int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)