drivers/spi/gigadevice.c: Add the rest of >=1MB Gigadevice GD25 chips

Required for ACPI S3 suspend support at some motherboards.
Synchronizing with flashchips.c/h flashrom source code.

Signed-off-by: Mike Banon <mikebdp2@gmail.com>
Change-Id: I333c8589ddc2bece488608ff66015ca8307eae0f
Reviewed-on: https://review.coreboot.org/c/30882
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Mike Banon 2019-01-12 19:01:10 +03:00 committed by Kyösti Mälkki
parent 4902a802c8
commit 2db6e6806b
1 changed files with 59 additions and 11 deletions

View File

@ -50,13 +50,21 @@ struct gigadevice_spi_flash_params {
}; };
static const struct gigadevice_spi_flash_params gigadevice_spi_flash_table[] = { static const struct gigadevice_spi_flash_params gigadevice_spi_flash_table[] = {
{
.id = 0x3114,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 16,
.name = "GD25T80",
},
{ {
.id = 0x4014, .id = 0x4014,
.l2_page_size = 8, .l2_page_size = 8,
.pages_per_sector = 16, .pages_per_sector = 16,
.sectors_per_block = 16, .sectors_per_block = 16,
.nr_blocks = 16, .nr_blocks = 16,
.name = "GD25Q80", .name = "GD25Q80(B)",
}, },
{ {
.id = 0x4015, .id = 0x4015,
@ -74,6 +82,54 @@ static const struct gigadevice_spi_flash_params gigadevice_spi_flash_table[] = {
.nr_blocks = 64, .nr_blocks = 64,
.name = "GD25Q32(B)", .name = "GD25Q32(B)",
}, },
{
.id = 0x4017,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 128,
.name = "GD25Q64(B)/GD25B64C",
},
{
.id = 0x4018,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 256,
.name = "GD25Q128(B)",
},
{
.id = 0x4214,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 16,
.name = "GD25VQ80C",
},
{
.id = 0x4215,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 32,
.name = "GD25VQ16C",
},
{
.id = 0x6014,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 16,
.name = "GD25LQ80",
},
{
.id = 0x6015,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 32,
.name = "GD25LQ16",
},
{ {
.id = 0x6016, .id = 0x6016,
.l2_page_size = 8, .l2_page_size = 8,
@ -82,14 +138,6 @@ static const struct gigadevice_spi_flash_params gigadevice_spi_flash_table[] = {
.nr_blocks = 64, .nr_blocks = 64,
.name = "GD25LQ32", .name = "GD25LQ32",
}, },
{
.id = 0x4017,
.l2_page_size = 8,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 128,
.name = "GD25Q64B/GD25B64C",
},
{ {
.id = 0x6017, .id = 0x6017,
.l2_page_size = 8, .l2_page_size = 8,
@ -99,12 +147,12 @@ static const struct gigadevice_spi_flash_params gigadevice_spi_flash_table[] = {
.name = "GD25LQ64C/GD25LB64C", .name = "GD25LQ64C/GD25LB64C",
}, },
{ {
.id = 0x4018, .id = 0x6018,
.l2_page_size = 8, .l2_page_size = 8,
.pages_per_sector = 16, .pages_per_sector = 16,
.sectors_per_block = 16, .sectors_per_block = 16,
.nr_blocks = 256, .nr_blocks = 256,
.name = "GD25Q128(B)", .name = "GD25LQ128",
}, },
}; };