wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 1 | #include <common.h> |
| 2 | #include <flash.h> |
| 3 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 4 | flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 5 | |
| 6 | |
| 7 | unsigned long flash_init(void) |
| 8 | { |
| 9 | int i; |
| 10 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 11 | for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 12 | { |
| 13 | flash_info[i].flash_id = FLASH_UNKNOWN; |
| 14 | flash_info[i].sector_count = 0; |
| 15 | flash_info[i].size = 0; |
| 16 | } |
| 17 | |
| 18 | |
| 19 | return 1; |
| 20 | } |
| 21 | |
| 22 | int flash_erase(flash_info_t *info, int s_first, int s_last) |
| 23 | { |
| 24 | return 1; |
| 25 | } |
| 26 | |
| 27 | void flash_print_info(flash_info_t *info) |
| 28 | { |
| 29 | printf("No flashrom installed\n"); |
| 30 | } |
| 31 | |
| 32 | int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt) |
| 33 | { |
| 34 | return 0; |
| 35 | } |