All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: Zhengxun <zhengxunli.mxic@gmail.com>
Cc: U-Boot-Denx <u-boot@lists.denx.de>, Vignesh R <vigneshr@ti.com>,
	zhengxunli@mxic.com.tw
Subject: Re: [PATCH] spi: Add MXIC controller driver
Date: Fri, 25 Jun 2021 15:01:52 +0530	[thread overview]
Message-ID: <CAMty3ZBAt7bWd5YZvvda-PVd4O91jNLtP0nZ2A+NCPd33CS3Zg@mail.gmail.com> (raw)
In-Reply-To: <20210623171515.4005-1-zhengxunli.mxic@gmail.com>

On Wed, Jun 23, 2021 at 2:46 PM Zhengxun <zhengxunli.mxic@gmail.com> wrote:
>
> Add a driver for Macronix SPI controller IP.
>
> This patch referred from linux spi-mxic.c. The difference from the
> linux version is described here.
>
> 1. To adapt uboot spi framework, modify some functions naming.
>
> 2. Remove the incompatible functions of Uboot.
>
> 3. Add dummy byte recalculattion function to support dummy buswidth
>    not align data buswidth operation.(ex: 1-1-4, 1-1-8)
>
> 4. Add Octal mode support.
>
> Signed-off-by: Zhengxun <zhengxunli.mxic@gmail.com>
> ---
>  drivers/spi/Kconfig    |   5 +
>  drivers/spi/Makefile   |   1 +
>  drivers/spi/spi-mxic.c | 546 +++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 552 insertions(+)
>  create mode 100755 drivers/spi/spi-mxic.c
>
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 1494c91763..ad4b918626 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -255,6 +255,11 @@ config MXS_SPI
>           Enable the MXS SPI controller driver. This driver can be used
>           on the i.MX23 and i.MX28 SoCs.
>
> +config SPI_MXIC
> +       bool "Macronix MX25F0A SPI controller"
> +       help
> +         This selects the Macronix MX25F0A SPI controller driver.
> +
>  config NXP_FSPI
>         bool "NXP FlexSPI driver"
>         depends on SPI_MEM
> diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
> index cfe4fae1d4..3dc83089b8 100644
> --- a/drivers/spi/Makefile
> +++ b/drivers/spi/Makefile
> @@ -51,6 +51,7 @@ obj-$(CONFIG_OMAP3_SPI) += omap3_spi.o
>  obj-$(CONFIG_PIC32_SPI) += pic32_spi.o
>  obj-$(CONFIG_PL022_SPI) += pl022_spi.o
>  obj-$(CONFIG_SPI_QUP) += spi-qup.o
> +obj-$(CONFIG_SPI_MXIC) += spi-mxic.o
>  obj-$(CONFIG_RENESAS_RPC_SPI) += renesas_rpc_spi.o
>  obj-$(CONFIG_ROCKCHIP_SPI) += rk_spi.o
>  obj-$(CONFIG_SANDBOX_SPI) += sandbox_spi.o
> diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c
> new file mode 100755
> index 0000000000..7020e3ea87
> --- /dev/null
> +++ b/drivers/spi/spi-mxic.c
> @@ -0,0 +1,546 @@
> +// SPDX-License-Identifier: GPL-2.0
> +//
> +// Copyright (C) 2021 Macronix International Co., Ltd.
> +//
> +// Authors:
> +//     zhengxunli <zhengxunli@mxic.com.tw>
> +//

Replace with comment line instead of // except SPDX

/*
*
*/

rest look good to me,

Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>

  reply	other threads:[~2021-06-25  9:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-23 17:15 [PATCH] spi: Add MXIC controller driver Zhengxun
2021-06-25  9:31 ` Jagan Teki [this message]
2021-06-25 15:31   ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMty3ZBAt7bWd5YZvvda-PVd4O91jNLtP0nZ2A+NCPd33CS3Zg@mail.gmail.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    --cc=zhengxunli.mxic@gmail.com \
    --cc=zhengxunli@mxic.com.tw \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.