linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reset: uniphier: add reset control support for SPI
@ 2018-07-19  6:18 Keiji Hayashibara
  2018-07-19  8:13 ` Masahiro Yamada
  2018-07-19  9:22 ` Philipp Zabel
  0 siblings, 2 replies; 3+ messages in thread
From: Keiji Hayashibara @ 2018-07-19  6:18 UTC (permalink / raw)
  To: p.zabel, yamada.masahiro, linux-arm-kernel
  Cc: masami.hiramatsu, jaswinder.singh, linux-kernel,
	hayashibara.keiji, Kunihiko Hayashi

From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

Add reset control for SPI controller on UniPhier SoCs.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
 drivers/reset/reset-uniphier.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index e9030ff..5605745 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -202,6 +202,12 @@ static const struct uniphier_reset_data uniphier_pro5_sd_reset_data[] = {
 #define UNIPHIER_PERI_RESET_FI2C(id, ch)		\
 	UNIPHIER_RESETX((id), 0x114, 24 + (ch))
 
+#define UNIPHIER_PERI_RESET_SCSSI(id)			\
+	UNIPHIER_RESETX((id), 0x110, 17)
+
+#define UNIPHIER_PERI_RESET_MCSSI(id)			\
+	UNIPHIER_RESETX((id), 0x114, 14)
+
 static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = {
 	UNIPHIER_PERI_RESET_UART(0, 0),
 	UNIPHIER_PERI_RESET_UART(1, 1),
@@ -212,6 +218,7 @@ static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = {
 	UNIPHIER_PERI_RESET_I2C(6, 2),
 	UNIPHIER_PERI_RESET_I2C(7, 3),
 	UNIPHIER_PERI_RESET_I2C(8, 4),
+	UNIPHIER_PERI_RESET_SCSSI(11),
 	UNIPHIER_RESET_END,
 };
 
@@ -227,6 +234,8 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = {
 	UNIPHIER_PERI_RESET_FI2C(8, 4),
 	UNIPHIER_PERI_RESET_FI2C(9, 5),
 	UNIPHIER_PERI_RESET_FI2C(10, 6),
+	UNIPHIER_PERI_RESET_SCSSI(11),
+	UNIPHIER_PERI_RESET_MCSSI(12),
 	UNIPHIER_RESET_END,
 };
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] reset: uniphier: add reset control support for SPI
  2018-07-19  6:18 [PATCH] reset: uniphier: add reset control support for SPI Keiji Hayashibara
@ 2018-07-19  8:13 ` Masahiro Yamada
  2018-07-19  9:22 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2018-07-19  8:13 UTC (permalink / raw)
  To: Keiji Hayashibara
  Cc: Philipp Zabel, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
	Linux Kernel Mailing List, Kunihiko Hayashi

2018-07-19 15:18 GMT+09:00 Keiji Hayashibara <hayashibara.keiji@socionext.com>:
> From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
>
> Add reset control for SPI controller on UniPhier SoCs.
>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---


Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>


>  drivers/reset/reset-uniphier.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
> index e9030ff..5605745 100644
> --- a/drivers/reset/reset-uniphier.c
> +++ b/drivers/reset/reset-uniphier.c
> @@ -202,6 +202,12 @@ static const struct uniphier_reset_data uniphier_pro5_sd_reset_data[] = {
>  #define UNIPHIER_PERI_RESET_FI2C(id, ch)               \
>         UNIPHIER_RESETX((id), 0x114, 24 + (ch))
>
> +#define UNIPHIER_PERI_RESET_SCSSI(id)                  \
> +       UNIPHIER_RESETX((id), 0x110, 17)
> +
> +#define UNIPHIER_PERI_RESET_MCSSI(id)                  \
> +       UNIPHIER_RESETX((id), 0x114, 14)
> +
>  static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = {
>         UNIPHIER_PERI_RESET_UART(0, 0),
>         UNIPHIER_PERI_RESET_UART(1, 1),
> @@ -212,6 +218,7 @@ static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = {
>         UNIPHIER_PERI_RESET_I2C(6, 2),
>         UNIPHIER_PERI_RESET_I2C(7, 3),
>         UNIPHIER_PERI_RESET_I2C(8, 4),
> +       UNIPHIER_PERI_RESET_SCSSI(11),
>         UNIPHIER_RESET_END,
>  };
>
> @@ -227,6 +234,8 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = {
>         UNIPHIER_PERI_RESET_FI2C(8, 4),
>         UNIPHIER_PERI_RESET_FI2C(9, 5),
>         UNIPHIER_PERI_RESET_FI2C(10, 6),
> +       UNIPHIER_PERI_RESET_SCSSI(11),
> +       UNIPHIER_PERI_RESET_MCSSI(12),
>         UNIPHIER_RESET_END,
>  };
>
> --
> 2.7.4
>



-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] reset: uniphier: add reset control support for SPI
  2018-07-19  6:18 [PATCH] reset: uniphier: add reset control support for SPI Keiji Hayashibara
  2018-07-19  8:13 ` Masahiro Yamada
@ 2018-07-19  9:22 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Philipp Zabel @ 2018-07-19  9:22 UTC (permalink / raw)
  To: Keiji Hayashibara, yamada.masahiro, linux-arm-kernel
  Cc: masami.hiramatsu, jaswinder.singh, linux-kernel, Kunihiko Hayashi

On Thu, 2018-07-19 at 15:18 +0900, Keiji Hayashibara wrote:
> From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> 
> Add reset control for SPI controller on UniPhier SoCs.
> 
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

Thank you, applied to reset/next.

regards
Philipp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-19  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19  6:18 [PATCH] reset: uniphier: add reset control support for SPI Keiji Hayashibara
2018-07-19  8:13 ` Masahiro Yamada
2018-07-19  9:22 ` Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).