[U-Boot] [PATCH] mtd: spi: Add DM support to SH QSPI driver

Jagan Teki jagan at amarulasolutions.com
Sun Aug 26 06:45:35 UTC 2018


On Sat, Aug 25, 2018 at 11:04 PM, Marek Vasut <marek.vasut at gmail.com> wrote:
> Add DM support to the SH QSPI driver while retaining non-DM support.
> The later is required as this driver is used in SPL which has a size
> limitation of 16 kiB.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> ---
>  drivers/spi/sh_qspi.c | 215 +++++++++++++++++++++++++++++++++++---------------
>  1 file changed, 150 insertions(+), 65 deletions(-)
>
> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
> index e9123e2c39..64dfd748d6 100644
> --- a/drivers/spi/sh_qspi.c
> +++ b/drivers/spi/sh_qspi.c
> @@ -67,15 +67,12 @@ struct sh_qspi_regs {
>  };
>
>  struct sh_qspi_slave {
> +#ifndef CONFIG_DM_SPI

We are trying to drop non-dm code as much as possible (with
MIGRATION.txt policy), how about adding PLTADATA or spi read glue code
or any other?

Jagan.



-- 
Jagan Teki
Senior Linux Kernel Engineer | Amarula Solutions
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list