[U-Boot] [PATCH v2 4/5] fdtdec: switch GENERIC_SPI_FLASH to jedec, spi-nor

Neil Armstrong narmstrong at baylibre.com
Thu Dec 6 10:08:06 UTC 2018


On 06/12/2018 11:06, Simon Goldschmidt wrote:
> On Thu, Dec 6, 2018 at 10:51 AM Neil Armstrong <narmstrong at baylibre.com> wrote:
>>
>> The x86 code uses "spi-flash" to detect a flash node, switch to
>> "jedec,spi-nor" since the DTS files has been switched already.
>>
>> Signed-off-by: Neil Armstrong <narmstrong at baylibre.com>
>> ---
>>  lib/fdtdec.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
>> index cbdc077825..043b96b17b 100644
>> --- a/lib/fdtdec.c
>> +++ b/lib/fdtdec.c
>> @@ -49,7 +49,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
>>         COMPAT(SAMSUNG_EXYNOS_MIPI_DSI, "samsung,exynos-mipi-dsi"),
>>         COMPAT(SAMSUNG_EXYNOS_DWMMC, "samsung,exynos-dwmmc"),
>>         COMPAT(SAMSUNG_EXYNOS_MMC, "samsung,exynos-mmc"),
>> -       COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
>> +       COMPAT(GENERIC_SPI_FLASH, "jedec,spi-nor"),
> 
> I'm not familiar with this code and where it is used, but to keep
> U-Boot buildable and runnable (e.g. for 'git bisect'), do we need to
> move this patch to before removing the "spi-flash" compatible or even
> into patch 2 where the device trees are changed?

Yep, it should even go in the same patch as the x86 dts changes.

Neil


> 
> Regards,
> Simon
> 
>>         COMPAT(MAXIM_98095_CODEC, "maxim,max98095-codec"),
>>         COMPAT(SAMSUNG_EXYNOS5_I2C, "samsung,exynos5-hsi2c"),
>>         COMPAT(SAMSUNG_EXYNOS_SYSMMU, "samsung,sysmmu-v3.3"),
>> --
>> 2.19.2
>>



More information about the U-Boot mailing list