mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: stm32mp: depend on ARCH_STM32MP for SoC drivers
@ 2020-07-02 15:37 Ahmad Fatoum
  2020-07-05 14:10 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-07-02 15:37 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The i2c, MCI and reset controller peripherals are STM32-specific.
There is no reason to ask uses on oldconfig about it, thus make them
depend on ARCH_STM32MP || COMPILE_TEST.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/i2c/busses/Kconfig | 1 +
 drivers/mci/Kconfig        | 1 +
 drivers/reset/Kconfig      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 21d2cb21cf5a..3bc8d1b8d2bc 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -59,5 +59,6 @@ config I2C_STM32
 	bool "STM32 I2C master driver"
 	select RESET_CONTROLLER
 	depends on HAVE_CLK
+	depends on ARCH_STM32MP || COMPILE_TEST
 
 endmenu
diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
index 6ae1e812528c..d1695c678c30 100644
--- a/drivers/mci/Kconfig
+++ b/drivers/mci/Kconfig
@@ -177,6 +177,7 @@ config MCI_STM32_SDMMC2
 	bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
 	depends on ARM_AMBA
 	depends on RESET_CONTROLLER
+	depends on ARCH_STM32MP || COMPILE_TEST
 	help
 	  This selects support for the SD/MMC controller on STM32H7 SoCs.
 	  If you have a board based on such a SoC and with a SD/MMC slot,
diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 9befc5e55f32..316ece9e7176 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -23,6 +23,7 @@ config RESET_IMX7
 
 config RESET_STM32
 	bool "STM32 Reset Driver"
+	depends on ARCH_STM32MP || COMPILE_TEST
 	help
 	  This enables the reset controller driver for STM32MP and STM32 MCUs.
 
-- 
2.27.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] ARM: stm32mp: depend on ARCH_STM32MP for SoC drivers
  2020-07-02 15:37 [PATCH] ARM: stm32mp: depend on ARCH_STM32MP for SoC drivers Ahmad Fatoum
@ 2020-07-05 14:10 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-07-05 14:10 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Thu, Jul 02, 2020 at 05:37:30PM +0200, Ahmad Fatoum wrote:
> The i2c, MCI and reset controller peripherals are STM32-specific.
> There is no reason to ask uses on oldconfig about it, thus make them
> depend on ARCH_STM32MP || COMPILE_TEST.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  drivers/i2c/busses/Kconfig | 1 +
>  drivers/mci/Kconfig        | 1 +
>  drivers/reset/Kconfig      | 1 +
>  3 files changed, 3 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> index 21d2cb21cf5a..3bc8d1b8d2bc 100644
> --- a/drivers/i2c/busses/Kconfig
> +++ b/drivers/i2c/busses/Kconfig
> @@ -59,5 +59,6 @@ config I2C_STM32
>  	bool "STM32 I2C master driver"
>  	select RESET_CONTROLLER
>  	depends on HAVE_CLK
> +	depends on ARCH_STM32MP || COMPILE_TEST
>  
>  endmenu
> diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
> index 6ae1e812528c..d1695c678c30 100644
> --- a/drivers/mci/Kconfig
> +++ b/drivers/mci/Kconfig
> @@ -177,6 +177,7 @@ config MCI_STM32_SDMMC2
>  	bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
>  	depends on ARM_AMBA
>  	depends on RESET_CONTROLLER
> +	depends on ARCH_STM32MP || COMPILE_TEST
>  	help
>  	  This selects support for the SD/MMC controller on STM32H7 SoCs.
>  	  If you have a board based on such a SoC and with a SD/MMC slot,
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> index 9befc5e55f32..316ece9e7176 100644
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -23,6 +23,7 @@ config RESET_IMX7
>  
>  config RESET_STM32
>  	bool "STM32 Reset Driver"
> +	depends on ARCH_STM32MP || COMPILE_TEST
>  	help
>  	  This enables the reset controller driver for STM32MP and STM32 MCUs.
>  
> -- 
> 2.27.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-07-05 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 15:37 [PATCH] ARM: stm32mp: depend on ARCH_STM32MP for SoC drivers Ahmad Fatoum
2020-07-05 14:10 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox