[PATCH] bootsource: handle SPI-NOR in the same way as SPI-EEPROM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux