diff mbox

[09/10] reset: zynq: add driver Kconfig option

Message ID 1472045342-7434-9-git-send-email-p.zabel@pengutronix.de
State New
Headers show

Commit Message

Philipp Zabel Aug. 24, 2016, 1:29 p.m. UTC
Visible only if COMPILE_TEST is enabled, this allows to include the
driver in build tests.

Cc: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/reset/Kconfig  | 6 ++++++
 drivers/reset/Makefile | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

Comments

Masahiro Yamada Aug. 24, 2016, 5:48 p.m. UTC | #1
2016-08-24 22:29 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> Visible only if COMPILE_TEST is enabled, this allows to include the
> driver in build tests.
>
> Cc: Moritz Fischer <moritz.fischer@ettus.com>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/reset/Kconfig  | 6 ++++++
>  drivers/reset/Makefile | 2 +-
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> index 17030e2..86b49a2 100644
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -67,6 +67,12 @@ config RESET_SUNXI
>         help
>           This enables the reset driver for Allwinner SoCs.
>
> +config RESET_ZYNQ
> +       bool "ZYNQ Reset Driver" if COMPILE_TEST
> +       default ARCH_ZYNQ
> +       help
> +         This enables the reset driver for Xilinx Zynq FPGAs.
> +

Please move this below RESET_UNIPHIER
as I assume you are sorting Kconfig entries alphabetically.


Otherwise,

Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada Aug. 25, 2016, 1:08 a.m. UTC | #2
2016-08-25 2:48 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> 2016-08-24 22:29 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
>> Visible only if COMPILE_TEST is enabled, this allows to include the
>> driver in build tests.
>>
>> Cc: Moritz Fischer <moritz.fischer@ettus.com>
>> Cc: Michal Simek <michal.simek@xilinx.com>
>> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
>> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
>> ---
>>  drivers/reset/Kconfig  | 6 ++++++
>>  drivers/reset/Makefile | 2 +-
>>  2 files changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
>> index 17030e2..86b49a2 100644
>> --- a/drivers/reset/Kconfig
>> +++ b/drivers/reset/Kconfig
>> @@ -67,6 +67,12 @@ config RESET_SUNXI
>>         help
>>           This enables the reset driver for Allwinner SoCs.
>>
>> +config RESET_ZYNQ
>> +       bool "ZYNQ Reset Driver" if COMPILE_TEST
>> +       default ARCH_ZYNQ
>> +       help
>> +         This enables the reset driver for Xilinx Zynq FPGAs.
>> +
>
> Please move this below RESET_UNIPHIER
> as I assume you are sorting Kconfig entries alphabetically.
>
>
> Otherwise,
>
> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>




>> +         This enables the reset driver for Xilinx Zynq FPGAs.


One more thing, I thought this statement is not precise
because Zynq is not only an FPGA,
but ARM SoC + FPGA.

Please consider to reword

"This enables the reset driver for Xilinx Zynq SoC"
Philipp Zabel Aug. 25, 2016, 7:23 a.m. UTC | #3
Am Donnerstag, den 25.08.2016, 10:08 +0900 schrieb Masahiro Yamada:
> 2016-08-25 2:48 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> > 2016-08-24 22:29 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> >> Visible only if COMPILE_TEST is enabled, this allows to include the
> >> driver in build tests.
> >>
> >> Cc: Moritz Fischer <moritz.fischer@ettus.com>
> >> Cc: Michal Simek <michal.simek@xilinx.com>
> >> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
> >> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> >> ---
> >>  drivers/reset/Kconfig  | 6 ++++++
> >>  drivers/reset/Makefile | 2 +-
> >>  2 files changed, 7 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> >> index 17030e2..86b49a2 100644
> >> --- a/drivers/reset/Kconfig
> >> +++ b/drivers/reset/Kconfig
> >> @@ -67,6 +67,12 @@ config RESET_SUNXI
> >>         help
> >>           This enables the reset driver for Allwinner SoCs.
> >>
> >> +config RESET_ZYNQ
> >> +       bool "ZYNQ Reset Driver" if COMPILE_TEST
> >> +       default ARCH_ZYNQ
> >> +       help
> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
> >> +
> >
> > Please move this below RESET_UNIPHIER
> > as I assume you are sorting Kconfig entries alphabetically.

Yes, that was my intention.

> > Otherwise,
> >
> > Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> >
> 
> 
> 
> 
> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
> 
> 
> One more thing, I thought this statement is not precise
> because Zynq is not only an FPGA,
> but ARM SoC + FPGA.
> 
> Please consider to reword
> 
> "This enables the reset driver for Xilinx Zynq SoC"

I'll change it to SoCs, thanks.

regards
Philipp
Masahiro Yamada Aug. 25, 2016, 7:31 a.m. UTC | #4
2016-08-25 16:23 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> Am Donnerstag, den 25.08.2016, 10:08 +0900 schrieb Masahiro Yamada:
>> 2016-08-25 2:48 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
>> > 2016-08-24 22:29 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
>> >> Visible only if COMPILE_TEST is enabled, this allows to include the
>> >> driver in build tests.
>> >>
>> >> Cc: Moritz Fischer <moritz.fischer@ettus.com>
>> >> Cc: Michal Simek <michal.simek@xilinx.com>
>> >> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
>> >> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
>> >> ---
>> >>  drivers/reset/Kconfig  | 6 ++++++
>> >>  drivers/reset/Makefile | 2 +-
>> >>  2 files changed, 7 insertions(+), 1 deletion(-)
>> >>
>> >> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
>> >> index 17030e2..86b49a2 100644
>> >> --- a/drivers/reset/Kconfig
>> >> +++ b/drivers/reset/Kconfig
>> >> @@ -67,6 +67,12 @@ config RESET_SUNXI
>> >>         help
>> >>           This enables the reset driver for Allwinner SoCs.
>> >>
>> >> +config RESET_ZYNQ
>> >> +       bool "ZYNQ Reset Driver" if COMPILE_TEST
>> >> +       default ARCH_ZYNQ
>> >> +       help
>> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
>> >> +
>> >
>> > Please move this below RESET_UNIPHIER
>> > as I assume you are sorting Kconfig entries alphabetically.
>
> Yes, that was my intention.
>
>> > Otherwise,
>> >
>> > Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> >
>>
>>
>>
>>
>> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
>>
>>
>> One more thing, I thought this statement is not precise
>> because Zynq is not only an FPGA,
>> but ARM SoC + FPGA.
>>
>> Please consider to reword
>>
>> "This enables the reset driver for Xilinx Zynq SoC"
>
> I'll change it to SoCs, thanks.

Maybe singular?   As far as I know, Zynq-7000 is the only SoC
of the Zynq family.
I am not sure if Xilinx has plan to add more lineups to 32bit SoCs.
Philipp Zabel Aug. 25, 2016, 7:51 a.m. UTC | #5
Am Donnerstag, den 25.08.2016, 16:31 +0900 schrieb Masahiro Yamada:
> 2016-08-25 16:23 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> > Am Donnerstag, den 25.08.2016, 10:08 +0900 schrieb Masahiro Yamada:
> >> 2016-08-25 2:48 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> >> > 2016-08-24 22:29 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> >> >> Visible only if COMPILE_TEST is enabled, this allows to include the
> >> >> driver in build tests.
> >> >>
> >> >> Cc: Moritz Fischer <moritz.fischer@ettus.com>
> >> >> Cc: Michal Simek <michal.simek@xilinx.com>
> >> >> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
> >> >> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> >> >> ---
> >> >>  drivers/reset/Kconfig  | 6 ++++++
> >> >>  drivers/reset/Makefile | 2 +-
> >> >>  2 files changed, 7 insertions(+), 1 deletion(-)
> >> >>
> >> >> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> >> >> index 17030e2..86b49a2 100644
> >> >> --- a/drivers/reset/Kconfig
> >> >> +++ b/drivers/reset/Kconfig
> >> >> @@ -67,6 +67,12 @@ config RESET_SUNXI
> >> >>         help
> >> >>           This enables the reset driver for Allwinner SoCs.
> >> >>
> >> >> +config RESET_ZYNQ
> >> >> +       bool "ZYNQ Reset Driver" if COMPILE_TEST
> >> >> +       default ARCH_ZYNQ
> >> >> +       help
> >> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
> >> >> +
> >> >
> >> > Please move this below RESET_UNIPHIER
> >> > as I assume you are sorting Kconfig entries alphabetically.
> >
> > Yes, that was my intention.
> >
> >> > Otherwise,
> >> >
> >> > Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> >> >
> >>
> >>
> >>
> >>
> >> >> +         This enables the reset driver for Xilinx Zynq FPGAs.
> >>
> >>
> >> One more thing, I thought this statement is not precise
> >> because Zynq is not only an FPGA,
> >> but ARM SoC + FPGA.
> >>
> >> Please consider to reword
> >>
> >> "This enables the reset driver for Xilinx Zynq SoC"
> >
> > I'll change it to SoCs, thanks.
> 
> Maybe singular?   As far as I know, Zynq-7000 is the only SoC
> of the Zynq family.
> I am not sure if Xilinx has plan to add more lineups to 32bit SoCs.

Zynq-7000 is a family, so plural should be okay.

regards
Philipp
diff mbox

Patch

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 17030e2..86b49a2 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -67,6 +67,12 @@  config RESET_SUNXI
 	help
 	  This enables the reset driver for Allwinner SoCs.
 
+config RESET_ZYNQ
+	bool "ZYNQ Reset Driver" if COMPILE_TEST
+	default ARCH_ZYNQ
+	help
+	  This enables the reset driver for Xilinx Zynq FPGAs.
+
 config TI_SYSCON_RESET
 	tristate "TI SYSCON Reset Driver"
 	depends on HAS_IOMEM
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index 4a163c7..56f90ea 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -1,7 +1,6 @@ 
 obj-y += core.o
 obj-$(CONFIG_ARCH_STI) += sti/
 obj-$(CONFIG_ARCH_HISI) += hisilicon/
-obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o
@@ -13,3 +12,4 @@  obj-$(CONFIG_RESET_STM32) += reset-stm32.o
 obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
 obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
+obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o