summaryrefslogtreecommitdiffstats
path: root/common/bootsource.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-08-24 18:08:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-09-04 08:33:51 +0200
commitea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b (patch)
tree07d0307c494c5a0e64f69f4597054b48ff0acc30 /common/bootsource.c
parentd0ce7942a910cfead622ab1ef4025ac58251501c (diff)
downloadbarebox-ea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b.tar.gz
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 <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bootsource.c')
-rw-r--r--common/bootsource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/bootsource.c b/common/bootsource.c
index e68338f..4ef8d8a 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 */