From 1cf407b4f8d56035816efaf936a40553441eca46 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 10 Nov 2017 20:18:23 +0100 Subject: spi_master: Introduce SPI_MASTER_4BA feature flag Add a feature flag SPI_MASTER_4BA to `struct spi_master` that advertises programmer-side support for 4-byte addresses in generic commands (and read/write commands if the master uses the default implementations). Set it for all masters that handle commands address-agnostic. Don't prefer native 4BA instructions if the master doesn't support them. Change-Id: Ife66e3fc49b9716f9c99cad957095b528135ec2c Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/22421 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- serprog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'serprog.c') diff --git a/serprog.c b/serprog.c index 25c9944e7..62f282084 100644 --- a/serprog.c +++ b/serprog.c @@ -305,6 +305,7 @@ static int serprog_spi_send_command(struct flashctx *flash, unsigned char *readarr); static struct spi_master spi_master_serprog = { .type = SPI_CONTROLLER_SERPROG, + .features = SPI_MASTER_4BA, .max_data_read = MAX_DATA_READ_UNLIMITED, .max_data_write = MAX_DATA_WRITE_UNLIMITED, .command = serprog_spi_send_command, -- cgit v1.2.3