mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] bootsource: handle SPI-NOR in the same way as SPI-EEPROM
@ 2018-08-24 16:08 Lucas Stach
  2018-08-27  7:23 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2018-08-24 16:08 UTC (permalink / raw)
  To: barebox

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>
---
 common/bootsource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/bootsource.c b/common/bootsource.c
index e68338faa5b7..4ef8d8ad9585 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 */
-- 
2.18.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-27  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 16:08 [PATCH] bootsource: handle SPI-NOR in the same way as SPI-EEPROM Lucas Stach
2018-08-27  7:23 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox