Re: [PATCH] bootsource: export bootsource_to_string()

2022-12-08 Thread Sascha Hauer
On Fri, Dec 09, 2022 at 08:29:00AM +0100, Ahmad Fatoum wrote: > bootsource_str which translates enum bootsource to a string is not > exported to other parts of barebox. Define a new bootsource_to_string() > that provides access. This can be useful for board code debugging > prints, especially in PB

[PATCH] bootsource: export bootsource_to_string()

2022-12-08 Thread Ahmad Fatoum
bootsource_str which translates enum bootsource to a string is not exported to other parts of barebox. Define a new bootsource_to_string() that provides access. This can be useful for board code debugging prints, especially in PBL, where the $bootsource environment variable is not available. Signe

Re: [RFC PATCH] bootsource: add helper to set instance by name

2022-01-14 Thread Sascha Hauer
On Wed, Nov 17, 2021 at 03:24:48PM +0100, Michael Riesch wrote: > Instance numbers should be related to device tree aliases, which may be > board-specific. When instance numbers were introduced they were meant to be SoC specific, i.e. they should correspond to the numbers in the manual. When start

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

2018-08-27 Thread Sascha Hauer
On Fri, Aug 24, 2018 at 06:08:42PM +0200, Lucas Stach wrote: > 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 > --- > common/bootsource.c | 1 +

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

2018-08-24 Thread Lucas Stach
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 --- common/bootsource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/bootsource.c b/common

[PATCH] bootsource

2013-04-02 Thread Sascha Hauer
This is a series based on earlier work by Marc. It creates an arch independent framework for storing/retrieving the bootsource. Changes to Marcs version are: - rename (currently i.MX specific) barebox_loc environment variable to 'bootsource' - initialize the bootsource instance to unknown (-1) i