[U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

Simon Glass sjg at chromium.org
Wed Apr 20 16:41:25 CEST 2016


On 13 April 2016 at 04:10, Vignesh R <vigneshr at ti.com> wrote:
> In case of DT boot, don't read default speed and mode for SPI from
> CONFIG_*, instead read from DT node. This will make sure that boards
> with multiple SPI/QSPI controllers can be probed at different
> bus frequencies and SPI modes.
>
> Signed-off-by: Vignesh R <vigneshr at ti.com>
> ---
>
> v3: Update commit message to mention SPI mode changes
>
> v2: Initialize speed, mode to 0 instead of -1
>
>  cmd/sf.c                 | 2 ++
>  drivers/spi/spi-uclass.c | 8 ++++++--
>  2 files changed, 8 insertions(+), 2 deletions(-)


Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list