[U-Boot] [PATCH] spi: kirkwood: add orion-spi compatible string

Jagan Teki jagannadh.teki at gmail.com
Tue May 8 05:17:19 UTC 2018


On Tue, May 8, 2018 at 4:24 AM, Chris Packham <judge.packham at gmail.com> wrote:
> This matches the compatible string used by the Linux kernel. This will
> allow u-boot to use the same device tree files.
>
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
> ---
> This applies on top of Jagan's series
> http://patchwork.ozlabs.org/project/uboot/list/?series=33927
>
>  drivers/spi/kirkwood_spi.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
> index 036fc36b8329..6a5ab8a1cba4 100644
> --- a/drivers/spi/kirkwood_spi.c
> +++ b/drivers/spi/kirkwood_spi.c
> @@ -226,6 +226,10 @@ static int mvebu_spi_ofdata_to_platdata(struct udevice *bus)
>         return 0;
>  }
>
> +static const struct mvebu_spi_dev orion_spi_dev_data = {
> +       .is_errata_50mhz_ac = false,
> +};
> +
>  static const struct mvebu_spi_dev armada_xp_spi_dev_data = {
>         .is_errata_50mhz_ac = false,
>  };
> @@ -239,6 +243,10 @@ static const struct mvebu_spi_dev armada_380_spi_dev_data = {
>  };
>
>  static const struct udevice_id mvebu_spi_ids[] = {
> +       {
> +               .compatible = "marvell,orion-spi",
> +               .data = (ulong)&orion_spi_dev_data

Reviewed-by: Jagan Teki <jagan at openedev.com>


More information about the U-Boot mailing list