diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2018-08-24 18:08:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-04 08:33:51 +0200 |
commit | ea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b (patch) | |
tree | 07d0307c494c5a0e64f69f4597054b48ff0acc30 /common/bootsource.c | |
parent | d0ce7942a910cfead622ab1ef4025ac58251501c (diff) | |
download | barebox-ea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b.tar.gz barebox-ea9b51a69e8cb9fc0ac2ae02c4e815995f40fc7b.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |