All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: shmobile: r8a7790: add QSPI support
Date: Wed, 16 Oct 2013 00:46:54 +0000	[thread overview]
Message-ID: <CANqRtoTXspN-E0h2Q9nVcAkZ+5Z0OSNNppBxQyJiXDk_mWV1eg@mail.gmail.com> (raw)
In-Reply-To: <1368173119-27345-2-git-send-email-horms+renesas@verge.net.au>

Hi Hiep-san,

On Tue, Oct 15, 2013 at 6:08 PM, Cao Minh Hiep <cm-hiep@jinso.co.jp> wrote:
> From: Hiep Cao Minh <cm-hiep@jinso.co.jp>
>
> Add platform device and clock for the r8a7790 QSPI.
>
> Signed-off-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>

Thanks for the patch.

> ---
>  arch/arm/mach-shmobile/clock-r8a7790.c        |    4 ++++
>  arch/arm/mach-shmobile/include/mach/r8a7790.h |    2 ++
>  arch/arm/mach-shmobile/setup-r8a7790.c        |   16 ++++++++++++++++
>  3 files changed, 22 insertions(+)
>
> diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c
> index fc36d3d..baabceb 100644
> --- a/arch/arm/mach-shmobile/clock-r8a7790.c
> +++ b/arch/arm/mach-shmobile/clock-r8a7790.c
> @@ -52,6 +52,7 @@
>  #define SMSTPCR5 0xe6150144
>  #define SMSTPCR7 0xe615014c
>  #define SMSTPCR8 0xe6150990
> +#define SMSTPCR9 0xE6150994

Please follow same style as other MSTP registers - use "e6" instead of "E6".

>  #define SDCKCR         0xE6150074
>  #define SD2CKCR                0xE6150078
> @@ -181,6 +182,7 @@ static struct clk div6_clks[DIV6_NR] = {
>
>  /* MSTP */
>  enum {
> +       MSTP917,
>         MSTP813,
>         MSTP721, MSTP720,
>         MSTP717, MSTP716,
> @@ -192,6 +194,7 @@ enum {
>  };
>
>  static struct clk mstp_clks[MSTP_NR] = {
> +       [MSTP917] = SH_CLK_MSTP32(&qspi_clk, SMSTPCR9, 17, 0), /* QSPI */
>         [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */
>         [MSTP721] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 21, 0), /* SCIF0 */
>         [MSTP720] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 20, 0), /* SCIF1 */
> @@ -276,6 +279,7 @@ static struct clk_lookup lookups[] = {
>         CLKDEV_DEV_ID("ee220000.mmcif", &mstp_clks[MSTP305]),
>         CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]),
>         CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]),
> +       CLKDEV_DEV_ID("qspi.0", &mstp_clks[MSTP917]),

Is "qspi" the name of the driver? If so, where can I find it?

> --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h
> +++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h
> @@ -1,5 +1,6 @@
>  #ifndef __ASM_R8A7790_H__
>  #define __ASM_R8A7790_H__
> +#include <linux/spi/rspi.h>
>
>  void r8a7790_add_standard_devices(void);
>  void r8a7790_add_dt_devices(void);
> @@ -7,6 +8,7 @@ void r8a7790_clock_init(void);
>  void r8a7790_pinmux_init(void);
>  void r8a7790_init_delay(void);
>  void r8a7790_timer_init(void);
> +void r8a7790_add_qspi_device(struct rspi_plat_data *pdata);

Please don't add these kind of functions. Do it all inside
board-lager.c instead.

Simon may want you to split the board code and the SoC code as well.

Cheers,

/ magnus

  parent reply	other threads:[~2013-10-16  0:46 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10  8:05 [PATCH 0/2] ARM: shmobile: lager: enable Ether Simon Horman
2013-05-10  8:05 ` Simon Horman
2013-05-10  8:05 ` [PATCH 1/2] ARM: shmobile: r8a7790: add Ether support Simon Horman
2013-05-10  8:05   ` Simon Horman
2013-05-10 10:26   ` Sergei Shtylyov
2013-05-10 10:26     ` Sergei Shtylyov
2013-05-13  0:43     ` Simon Horman
2013-05-13  0:43       ` Simon Horman
2013-05-13 13:07       ` Sergei Shtylyov
2013-05-13 13:07         ` Sergei Shtylyov
2013-05-14  0:29         ` Simon Horman
2013-05-14  0:29           ` Simon Horman
2013-10-15  9:08   ` [PATCH 1/2] ARM: shmobile: r8a7790: add QSPI support Cao Minh Hiep
2013-10-16  0:39   ` Simon Horman
2013-10-16  0:46   ` Magnus Damm [this message]
2013-10-16  1:49   ` Simon Horman
2013-10-16 11:03   ` カオ ミン ヒェップ
2013-10-17  0:13   ` Kuninori Morimoto
2013-10-17  0:52   ` Simon Horman
2013-10-17  1:40   ` Simon Horman
2013-10-17  3:27   ` カオ ミン ヒェップ
2013-10-17  4:32   ` Kuninori Morimoto
2013-10-17  8:04   ` カオ ミン ヒェップ
2013-10-18  0:44   ` Kuninori Morimoto
2013-10-18  1:06   ` カオ ミン ヒェップ
2013-12-13 11:52   ` [PATCH 1/2] arm: shmobile: r8a7790: Add PCI USB host clock support Valentine Barshak
2013-12-19 17:57   ` [PATCH 1/2] arm: shmobile: r8a7790: Add SATA clock Valentine Barshak
2013-12-24 18:55   ` [PATCH 1/2] arm: shmobile: r8a7790: Add VIN clock support Valentine Barshak
2013-12-26 15:35   ` Valentine Barshak
2014-01-06  8:32   ` [PATCH 1/2] ARM: shmobile: r8a7790: add Audio DMAC clock Kuninori Morimoto
2014-01-08  4:17   ` Simon Horman
2014-01-08  4:23   ` Simon Horman
2014-01-08  6:08   ` Kuninori Morimoto
2014-01-09  8:07   ` Simon Horman
2014-04-08 16:35   ` [PATCH 1/2] ARM: shmobile: r8a7790: Add VSP1 devices to DT Laurent Pinchart
2014-05-29 10:59   ` [PATCH 1/2] arm: shmobile: r8a7790: add USB3.0 clocks to device tree Yoshihiro Shimoda
2014-05-29 10:59     ` Yoshihiro Shimoda
2014-05-29 10:59     ` Yoshihiro Shimoda
2014-06-26  0:52   ` [PATCH 1/2] ARM: shmobile: r8a7790: add DVC support for sound node on DTSI Kuninori Morimoto
2014-09-13 23:36   ` [PATCH 1/2] ARM: shmobile: r8a7790: Add VSP1 devices to DT Laurent Pinchart
2014-09-14 17:58   ` Sergei Shtylyov
2014-09-14 23:32   ` Laurent Pinchart
2014-09-30  4:23   ` Simon Horman
2014-09-30  8:51   ` Laurent Pinchart
2014-09-30 23:55   ` Simon Horman
2015-01-08  1:55   ` [PATCH 1/2] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI Kuninori Morimoto
2013-05-10  8:05 ` [PATCH 2/2] ARM: shmobile: lager: enable Ether Simon Horman
2013-05-10  8:05   ` Simon Horman
2013-05-10 10:35   ` Sergei Shtylyov
2013-05-10 10:35     ` Sergei Shtylyov
2013-05-13  0:40     ` Simon Horman
2013-05-13  0:40       ` Simon Horman
2013-05-13 13:04       ` Sergei Shtylyov
2013-05-13 13:04         ` Sergei Shtylyov
2013-05-13 22:30         ` Laurent Pinchart
2013-05-13 22:30           ` Laurent Pinchart
2013-05-13 22:31   ` Laurent Pinchart
2013-05-13 22:31     ` Laurent Pinchart

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=CANqRtoTXspN-E0h2Q9nVcAkZ+5Z0OSNNppBxQyJiXDk_mWV1eg@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=linux-sh@vger.kernel.org \
    /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.