3 more SST flash devices

This commit is contained in:
Jasmine Iwanek
2022-08-11 22:20:36 -04:00
parent 3ed2b10241
commit 1be9af3746
2 changed files with 49 additions and 0 deletions

View File

@@ -31,10 +31,13 @@ extern const device_t sst_flash_39sf020_device;
extern const device_t sst_flash_39sf040_device;
extern const device_t sst_flash_49lf002_device;
extern const device_t sst_flash_49lf020_device;
extern const device_t sst_flash_49lf003_device;
extern const device_t sst_flash_49lf030_device;
extern const device_t sst_flash_49lf004_device;
extern const device_t sst_flash_49lf040_device;
extern const device_t sst_flash_49lf008_device;
extern const device_t sst_flash_49lf080_device;
extern const device_t sst_flash_49lf016_device;
extern const device_t sst_flash_49lf160_device;

View File

@@ -81,9 +81,12 @@ static char flash_path[1024];
#define SST39SF040 0xb700
#define SST49LF002 0x5700
#define SST49LF020 0x5200
#define SST49LF003 0x1b00
#define SST49LF004 0x6000
#define SST49LF040 0x5100
#define SST49LF008 0x5a00
#define SST49LF080 0x5b00
#define SST49LF030 0x1c00
#define SST49LF160 0x4c00
#define SST49LF016 0x5c00
@@ -583,6 +586,7 @@ const device_t sst_flash_39sf040_device = {
* implementation. We just contain the ID's so the BIOS can do ESCD & DMI writes with no
* worries.
*/
const device_t sst_flash_49lf002_device = {
.name = "SST 49LF002 Firmware Hub",
.internal_name = "sst_flash_49lf002",
@@ -597,6 +601,20 @@ const device_t sst_flash_49lf002_device = {
.config = NULL
};
const device_t sst_flash_49lf020_device = {
.name = "SST 49LF020 Firmware Hub",
.internal_name = "sst_flash_49lf0020",
.flags = 0,
.local = SST | SST49LF020 | SIZE_2M,
.init = sst_init,
.close = sst_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
const device_t sst_flash_49lf003_device = {
.name = "SST 49LF003 Firmware Hub",
.internal_name = "sst_flash_49lf003",
@@ -639,6 +657,20 @@ const device_t sst_flash_49lf004_device = {
.config = NULL
};
const device_t sst_flash_49lf040_device = {
.name = "SST 49LF040 Firmware Hub",
.internal_name = "sst_flash_49lf040",
.flags = 0,
.local = SST | SST49LF040 | SIZE_4M,
.init = sst_init,
.close = sst_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
const device_t sst_flash_49lf008_device = {
.name = "SST 49LF008 Firmware Hub",
.internal_name = "sst_flash_49lf008",
@@ -653,6 +685,20 @@ const device_t sst_flash_49lf008_device = {
.config = NULL
};
const device_t sst_flash_49lf080_device = {
.name = "SST 49LF080 Firmware Hub",
.internal_name = "sst_flash_49lf080",
.flags = 0,
.local = SST | SST49LF080 | SIZE_8M,
.init = sst_init,
.close = sst_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
const device_t sst_flash_49lf016_device = {
.name = "SST 49LF016 Firmware Hub",
.internal_name = "sst_flash_49lf016",