OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the flashrom project. | 2 * This file is part of the flashrom project. |
3 * | 3 * |
4 * Copyright (C) 2000 Silicon Integrated System Corporation | 4 * Copyright (C) 2000 Silicon Integrated System Corporation |
5 * Copyright (C) 2004 Tyan Corp | 5 * Copyright (C) 2004 Tyan Corp |
6 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> | 6 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger | 7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
8 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> | 8 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
9 * | 9 * |
10 * This program is free software; you can redistribute it and/or modify | 10 * This program is free software; you can redistribute it and/or modify |
(...skipping 8057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8068 .page_size = 256, | 8068 .page_size = 256, |
8069 .tested = TEST_BAD_PREW, | 8069 .tested = TEST_BAD_PREW, |
8070 .probe = probe_spi_rdid, | 8070 .probe = probe_spi_rdid, |
8071 .probe_timing = TIMING_ZERO, | 8071 .probe_timing = TIMING_ZERO, |
8072 .write = NULL, | 8072 .write = NULL, |
8073 .read = NULL, | 8073 .read = NULL, |
8074 }, | 8074 }, |
8075 | 8075 |
8076 { | 8076 { |
8077 .vendor = "Generic", | 8077 .vendor = "Generic", |
| 8078 .name = "Variable Size SPI chip", |
| 8079 .bustype = CHIP_BUSTYPE_SPI, |
| 8080 .manufacture_id = VARIABLE_SIZE_MANUF_ID, |
| 8081 .model_id = VARIABLE_SIZE_DEVICE_ID, |
| 8082 .total_size = 64, /* This size is set temporarily */ |
| 8083 .page_size = 256, |
| 8084 .tested = TEST_OK_PREW, |
| 8085 .probe = probe_variable_size, |
| 8086 .block_erasers = |
| 8087 { |
| 8088 { |
| 8089 .eraseblocks = { {4 * 1024, 16} }, |
| 8090 .block_erase = spi_block_erase_20, |
| 8091 }, { |
| 8092 .eraseblocks = { {64 * 1024, 1} }, |
| 8093 .block_erase = spi_block_erase_d8, |
| 8094 } |
| 8095 }, |
| 8096 .write = spi_chip_write_256, |
| 8097 .read = spi_chip_read, |
| 8098 }, |
| 8099 |
| 8100 { |
| 8101 .vendor = "Generic", |
8078 .name = "unknown SPI chip (RDID)", | 8102 .name = "unknown SPI chip (RDID)", |
8079 .bustype = CHIP_BUSTYPE_SPI, | 8103 .bustype = CHIP_BUSTYPE_SPI, |
8080 .manufacture_id = GENERIC_MANUF_ID, | 8104 .manufacture_id = GENERIC_MANUF_ID, |
8081 .model_id = GENERIC_DEVICE_ID, | 8105 .model_id = GENERIC_DEVICE_ID, |
8082 .total_size = 0, | 8106 .total_size = 0, |
8083 .page_size = 256, | 8107 .page_size = 256, |
8084 .tested = TEST_BAD_PREW, | 8108 .tested = TEST_BAD_PREW, |
8085 .probe = probe_spi_rdid, | 8109 .probe = probe_spi_rdid, |
8086 .write = NULL, | 8110 .write = NULL, |
8087 }, | 8111 }, |
8088 { | 8112 { |
8089 .vendor = "Generic", | 8113 .vendor = "Generic", |
8090 .name = "unknown SPI chip (REMS)", | 8114 .name = "unknown SPI chip (REMS)", |
8091 .bustype = CHIP_BUSTYPE_SPI, | 8115 .bustype = CHIP_BUSTYPE_SPI, |
8092 .manufacture_id = GENERIC_MANUF_ID, | 8116 .manufacture_id = GENERIC_MANUF_ID, |
8093 .model_id = GENERIC_DEVICE_ID, | 8117 .model_id = GENERIC_DEVICE_ID, |
8094 .total_size = 0, | 8118 .total_size = 0, |
8095 .page_size = 256, | 8119 .page_size = 256, |
8096 .tested = TEST_BAD_PREW, | 8120 .tested = TEST_BAD_PREW, |
8097 .probe = probe_spi_rems, | 8121 .probe = probe_spi_rems, |
8098 .write = NULL, | 8122 .write = NULL, |
8099 }, | 8123 }, |
8100 | 8124 |
8101 { NULL } | 8125 { NULL } |
8102 }; | 8126 }; |
OLD | NEW |