All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers
@ 2020-08-13 12:35 Michal Simek
  2020-08-18  6:06 ` Heiko Schocher
  2020-08-20  7:48 ` Michal Simek
  0 siblings, 2 replies; 5+ messages in thread
From: Michal Simek @ 2020-08-13 12:35 UTC (permalink / raw)
  To: u-boot

Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in
PL and vice versa. That's why change dependencies and do not limit enabling
just for some platforms.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/gpio/Kconfig | 4 ++--
 drivers/i2c/Kconfig  | 2 +-
 drivers/mmc/Kconfig  | 1 -
 drivers/net/Kconfig  | 6 +++---
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 11e9a17f9729..202fcc6f4759 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -381,8 +381,8 @@ config MVEBU_GPIO
 
 config ZYNQ_GPIO
 	bool "Zynq GPIO driver"
-	depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
-	default y
+	depends on DM_GPIO
+	default y if ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
 	help
 	  Supports GPIO access on Zynq SoC.
 
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index dec6dc9dfa4d..8ae54e1e93b0 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -88,7 +88,7 @@ config SYS_I2C_FSL
 
 config SYS_I2C_CADENCE
 	tristate "Cadence I2C Controller"
-	depends on DM_I2C && (ARCH_ZYNQ || ARM64)
+	depends on DM_I2C
 	help
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  e.g. used by Xilinx Zynq.
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 556b3ac48978..c29d1ea680ef 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -653,7 +653,6 @@ config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
 
 config MMC_SDHCI_ZYNQ
 	bool "Arasan SDHCI controller support"
-	depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
 	depends on DM_MMC && OF_CONTROL && BLK
 	depends on MMC_SDHCI
 	help
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index ecd779d979e4..039f9fb05899 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -519,7 +519,7 @@ config TULIP
 	  This driver supports DEC DC2114x Fast ethernet chips.
 
 config XILINX_AXIEMAC
-	depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
+	depends on DM_ETH
 	select PHYLIB
 	select MII
 	bool "Xilinx AXI Ethernet"
@@ -527,7 +527,7 @@ config XILINX_AXIEMAC
 	  This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
 
 config XILINX_EMACLITE
-	depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || MIPS)
+	depends on DM_ETH
 	select PHYLIB
 	select MII
 	bool "Xilinx Ethernetlite"
@@ -535,7 +535,7 @@ config XILINX_EMACLITE
 	  This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
 
 config ZYNQ_GEM
-	depends on DM_ETH && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
+	depends on DM_ETH
 	select PHYLIB
 	bool "Xilinx Ethernet GEM"
 	help
-- 
2.28.0

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

* [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers
  2020-08-13 12:35 [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers Michal Simek
@ 2020-08-18  6:06 ` Heiko Schocher
  2020-08-20  7:48 ` Michal Simek
  1 sibling, 0 replies; 5+ messages in thread
From: Heiko Schocher @ 2020-08-18  6:06 UTC (permalink / raw)
  To: u-boot

Hello Michal,

Am 13.08.2020 um 14:35 schrieb Michal Simek:
> Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in
> PL and vice versa. That's why change dependencies and do not limit enabling
> just for some platforms.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
>   drivers/gpio/Kconfig | 4 ++--
>   drivers/i2c/Kconfig  | 2 +-
>   drivers/mmc/Kconfig  | 1 -
>   drivers/net/Kconfig  | 6 +++---
>   4 files changed, 6 insertions(+), 7 deletions(-)

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de

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

* [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers
  2020-08-13 12:35 [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers Michal Simek
  2020-08-18  6:06 ` Heiko Schocher
@ 2020-08-20  7:48 ` Michal Simek
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Simek @ 2020-08-20  7:48 UTC (permalink / raw)
  To: u-boot

?t 13. 8. 2020 v 14:35 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in
> PL and vice versa. That's why change dependencies and do not limit enabling
> just for some platforms.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  drivers/gpio/Kconfig | 4 ++--
>  drivers/i2c/Kconfig  | 2 +-
>  drivers/mmc/Kconfig  | 1 -
>  drivers/net/Kconfig  | 6 +++---
>  4 files changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index 11e9a17f9729..202fcc6f4759 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -381,8 +381,8 @@ config MVEBU_GPIO
>
>  config ZYNQ_GPIO
>         bool "Zynq GPIO driver"
> -       depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
> -       default y
> +       depends on DM_GPIO
> +       default y if ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
>         help
>           Supports GPIO access on Zynq SoC.
>
> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> index dec6dc9dfa4d..8ae54e1e93b0 100644
> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -88,7 +88,7 @@ config SYS_I2C_FSL
>
>  config SYS_I2C_CADENCE
>         tristate "Cadence I2C Controller"
> -       depends on DM_I2C && (ARCH_ZYNQ || ARM64)
> +       depends on DM_I2C
>         help
>           Say yes here to select Cadence I2C Host Controller. This controller is
>           e.g. used by Xilinx Zynq.
> diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
> index 556b3ac48978..c29d1ea680ef 100644
> --- a/drivers/mmc/Kconfig
> +++ b/drivers/mmc/Kconfig
> @@ -653,7 +653,6 @@ config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
>
>  config MMC_SDHCI_ZYNQ
>         bool "Arasan SDHCI controller support"
> -       depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
>         depends on DM_MMC && OF_CONTROL && BLK
>         depends on MMC_SDHCI
>         help
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index ecd779d979e4..039f9fb05899 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -519,7 +519,7 @@ config TULIP
>           This driver supports DEC DC2114x Fast ethernet chips.
>
>  config XILINX_AXIEMAC
> -       depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
> +       depends on DM_ETH
>         select PHYLIB
>         select MII
>         bool "Xilinx AXI Ethernet"
> @@ -527,7 +527,7 @@ config XILINX_AXIEMAC
>           This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
>
>  config XILINX_EMACLITE
> -       depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || MIPS)
> +       depends on DM_ETH
>         select PHYLIB
>         select MII
>         bool "Xilinx Ethernetlite"
> @@ -535,7 +535,7 @@ config XILINX_EMACLITE
>           This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
>
>  config ZYNQ_GEM
> -       depends on DM_ETH && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL)
> +       depends on DM_ETH
>         select PHYLIB
>         bool "Xilinx Ethernet GEM"
>         help
> --
> 2.28.0
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

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

* [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers
  2020-08-24 12:46 Michal Simek
@ 2020-09-23 12:03 ` Michal Simek
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2020-09-23 12:03 UTC (permalink / raw)
  To: u-boot

po 24. 8. 2020 v 14:46 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in
> PL and vice versa. That's why change dependencies and do not limit enabling
> just for some platforms.
>
> This is follow up patch based on commit 664e16ce99a0 ("xilinx: kconfig:
> Change Kconfig dependencies for Xilinx drivers").
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  drivers/serial/Kconfig   | 4 ++--
>  drivers/spi/Kconfig      | 3 ---
>  drivers/usb/host/Kconfig | 3 +--
>  3 files changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
> index e344677f91f6..b4805a2e4ea4 100644
> --- a/drivers/serial/Kconfig
> +++ b/drivers/serial/Kconfig
> @@ -734,7 +734,7 @@ config UNIPHIER_SERIAL
>
>  config XILINX_UARTLITE
>         bool "Xilinx Uarlite support"
> -       depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
> +       depends on DM_SERIAL
>         help
>           If you have a Xilinx based board and want to use the uartlite
>           serial ports, say Y to this option. If unsure, say N.
> @@ -802,7 +802,7 @@ config STM32_SERIAL
>
>  config ZYNQ_SERIAL
>         bool "Cadence (Xilinx Zynq) UART support"
> -       depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_ZYNQMP_R5)
> +       depends on DM_SERIAL
>         help
>           This driver supports the Cadence UART. It is found e.g. in Xilinx
>           Zynq/ZynqMP.
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index 3fc2d0674ae4..5df97c80fa51 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -407,7 +407,6 @@ config XILINX_SPI
>
>  config ZYNQ_SPI
>         bool "Zynq SPI driver"
> -       depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
>         help
>           Enable the Zynq SPI driver. This driver can be used to
>           access the SPI NOR flash on platforms embedding this Zynq
> @@ -415,7 +414,6 @@ config ZYNQ_SPI
>
>  config ZYNQ_QSPI
>         bool "Zynq QSPI driver"
> -       depends on ARCH_ZYNQ
>         imply SPI_FLASH_BAR
>         help
>           Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
> @@ -425,7 +423,6 @@ config ZYNQ_QSPI
>
>  config ZYNQMP_GQSPI
>         bool "Configure ZynqMP Generic QSPI"
> -       depends on ARCH_ZYNQMP || ARCH_VERSAL
>         help
>           This option is used to enable ZynqMP QSPI controller driver which
>           is used to communicate with qspi flash devices.
> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
> index 1c374a7bd809..4eb7b34e245f 100644
> --- a/drivers/usb/host/Kconfig
> +++ b/drivers/usb/host/Kconfig
> @@ -200,8 +200,7 @@ config USB_EHCI_TEGRA
>
>  config USB_EHCI_ZYNQ
>         bool "Support for Xilinx Zynq on-chip EHCI USB controller"
> -       depends on ARCH_ZYNQ
> -       default y
> +       default y if ARCH_ZYNQ
>         ---help---
>           Enable support for Zynq on-chip EHCI USB controller
>
> --
> 2.28.0
>

Applied.
M


-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

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

* [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers
@ 2020-08-24 12:46 Michal Simek
  2020-09-23 12:03 ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2020-08-24 12:46 UTC (permalink / raw)
  To: u-boot

Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in
PL and vice versa. That's why change dependencies and do not limit enabling
just for some platforms.

This is follow up patch based on commit 664e16ce99a0 ("xilinx: kconfig:
Change Kconfig dependencies for Xilinx drivers").

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/serial/Kconfig   | 4 ++--
 drivers/spi/Kconfig      | 3 ---
 drivers/usb/host/Kconfig | 3 +--
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index e344677f91f6..b4805a2e4ea4 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -734,7 +734,7 @@ config UNIPHIER_SERIAL
 
 config XILINX_UARTLITE
 	bool "Xilinx Uarlite support"
-	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
+	depends on DM_SERIAL
 	help
 	  If you have a Xilinx based board and want to use the uartlite
 	  serial ports, say Y to this option. If unsure, say N.
@@ -802,7 +802,7 @@ config STM32_SERIAL
 
 config ZYNQ_SERIAL
 	bool "Cadence (Xilinx Zynq) UART support"
-	depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_ZYNQMP_R5)
+	depends on DM_SERIAL
 	help
 	  This driver supports the Cadence UART. It is found e.g. in Xilinx
 	  Zynq/ZynqMP.
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 3fc2d0674ae4..5df97c80fa51 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -407,7 +407,6 @@ config XILINX_SPI
 
 config ZYNQ_SPI
 	bool "Zynq SPI driver"
-	depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL
 	help
 	  Enable the Zynq SPI driver. This driver can be used to
 	  access the SPI NOR flash on platforms embedding this Zynq
@@ -415,7 +414,6 @@ config ZYNQ_SPI
 
 config ZYNQ_QSPI
 	bool "Zynq QSPI driver"
-	depends on ARCH_ZYNQ
 	imply SPI_FLASH_BAR
 	help
 	  Enable the Zynq Quad-SPI (QSPI) driver. This driver can be
@@ -425,7 +423,6 @@ config ZYNQ_QSPI
 
 config ZYNQMP_GQSPI
 	bool "Configure ZynqMP Generic QSPI"
-	depends on ARCH_ZYNQMP || ARCH_VERSAL
 	help
 	  This option is used to enable ZynqMP QSPI controller driver which
 	  is used to communicate with qspi flash devices.
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 1c374a7bd809..4eb7b34e245f 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -200,8 +200,7 @@ config USB_EHCI_TEGRA
 
 config USB_EHCI_ZYNQ
 	bool "Support for Xilinx Zynq on-chip EHCI USB controller"
-	depends on ARCH_ZYNQ
-	default y
+	default y if ARCH_ZYNQ
 	---help---
 	  Enable support for Zynq on-chip EHCI USB controller
 
-- 
2.28.0

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

end of thread, other threads:[~2020-09-23 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 12:35 [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers Michal Simek
2020-08-18  6:06 ` Heiko Schocher
2020-08-20  7:48 ` Michal Simek
2020-08-24 12:46 Michal Simek
2020-09-23 12:03 ` Michal Simek

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.