From ea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 24 Aug 2018 18:08:42 +0200 Subject: bootsource: handle SPI-NOR in the same way as SPI-EEPROM The NOR flash device itself does not have an alias in the kernel DT, so we want to have the bootsource pointing at the SPI controller the flash chip is attached to. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- common/bootsource.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/bootsource.c') diff --git a/common/bootsource.c b/common/bootsource.c index e68338faa5..4ef8d8ad95 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -82,6 +82,7 @@ char *bootsource_get_alias_name(void) stem = bootsource_str[BOOTSOURCE_I2C]; break; case BOOTSOURCE_SPI_EEPROM: + case BOOTSOURCE_SPI_NOR: stem = bootsource_str[BOOTSOURCE_SPI]; break; case BOOTSOURCE_SERIAL: /* FALLTHROUGH */ -- cgit v1.2.3