summaryrefslogtreecommitdiffstats
path: root/common/bootsource.c
Commit message (Collapse)AuthorAgeFilesLines
* bootsource: handle SPI-NOR in the same way as SPI-EEPROMLucas Stach2018-09-041-0/+1
| | | | | | | | | 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>
* bootsource: Add bootsource alias name APIAndrey Smirnov2018-05-181-0/+68
| | | | | | | | Add API allowing to query and override the name of the alias pointing at DTB node representing current bootsource. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: Add BOOTSOURCE_CANAndrey Smirnov2018-04-171-0/+1
| | | | | | | Add BOOTSOURCE_CAN for SoCs that can boot from CAN interface. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: Add NET bootsourceWadim Egorov2015-05-271-0/+1
| | | | | Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usbMarc Kleine-Budde2013-04-041-0/+4
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: add support for bootsource instance informationMarc Kleine-Budde2013-04-041-0/+24
| | | | | | | | | | | | Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable "bootsource_instance". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: use initcall to export bootsource location to environmentMarc Kleine-Budde2013-04-041-1/+10
| | | | | | | This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootsource: create arch independent bootsource frameworkMarc Kleine-Budde2013-04-041-0/+53
This patch seperates the imx independent from the arch independent code. The following functions and enums are renamed: - imx_bootsource() -> bootsource_get() - imx_set_bootsource() -> bootsource_set() - enum imx_bootsource -> enum bootsource Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>