iio: adc: xilinx: support all platforms
PATCH 1/1 iio: adc: xilinx: support all platforms
Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.
---
This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.
drivers/iio/adc/Kconfig | 1 - 1 file changed, 1 deletion(-)
drivers/iio/adc/Kconfig +0 -1
@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC config XILINX_XADC tristate "Xilinx XADC driver" - depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST depends on HAS_IOMEM select IIO_BUFFER select IIO_TRIGGERED_BUFFER
Signature · 1 line
1.8.3.1
Quoted 24 lines · Robert Hancock
[External]
Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.
Signed-off-by Robert Hancock <[email protected]>---
This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.
drivers/iio/adc/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/iio/adc/Kconfig +0
-0
drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088
Quoted 4 lines
drivers/iio/adc/Kconfig +0
-1@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC config XILINX_XADC tristate "Xilinx XADC driver" - depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
Just curios here: is depends COMPILE_TEST needed so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.
Thanks
Alex
Quoted 6 lines
drivers/iio/adc/Kconfig +0
-1depends on HAS_IOMEM select IIO_BUFFER select IIO_TRIGGERED_BUFFER --1.8.3.1
Quoted 26 lines · Alexandru
Quoted 25 lines · Robert Hancock
[External]
Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.
Signed-off-by Robert Hancock <[email protected]>---
This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.
drivers/iio/adc/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/iio/adc/Kconfig +0
-0@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC
Quoted 6 lines
drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088
Quoted 3 lines
drivers/iio/adc/Kconfig +0
-1config XILINX_XADC tristate "Xilinx XADC driver" - depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TESTJust curios here: is
depends COMPILE_TESTneeded so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.
COMPILE_TEST enables the driver for compile testing if it is not already enabled otherwise. Now that the driver has no dependencies at all it will always be enabled, which includes compile testing.
Quoted 37 lines · Lars-Peter Clausen
[External]
Quoted 26 lines · Alexandru
Quoted 25 lines · Robert Hancock
[External]
Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.
Signed-off-by Robert Hancock <[email protected]>---
This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.
drivers/iio/adc/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/iio/adc/Kconfig +0
-0@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADCQuoted 6 lines
drivers/iio/adc/Kconfig config VIPERBOARD_ADC · line 1088
Quoted 3 lines
drivers/iio/adc/Kconfig +0
-1config XILINX_XADC tristate "Xilinx XADC driver" - depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TESTJust curios here: is
depends COMPILE_TESTneeded so that this gets included in a compile-test build ? I'm somewhat vague on Linux's makefile logic/structure.
Quoted 3 lines
COMPILE_TESTenables the driver for compile testing if it is not already enabled otherwise. Now that the driver has no dependencies at all it will always be enabled, which includes compile testing.
I see.
Thanks for the info
Jonathan Cameron
maintainerQuoted 7 lines · On Mon, 10 Jun 2019 10:23:44 -0600 Robert Hancock <[email protected]> wrote:
Since the XADC logic can be used with standalone Xilinx FPGAs, this driver can potentially be used with many different platforms, not just the Zynq and MicroBlaze platforms this driver was allowed to be built for. There should be no platform-specific code in this driver, so just delete the platform dependency.
Signed-off-by Robert Hancock <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing to see if any of us missed anything. Hopefully the many compiles 0-day will do on this will highlight if there is anything hiding we haven't thought of to make this a bad idea (more likely needing a little fix ;)
Jonathan
Quoted 21 lines
---
This is an updated version of an earlier patch "iio: adc: xilinx: support all ARM platforms", but this one just deletes the platform restriction entirely as it seems unnecessary.
drivers/iio/adc/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/iio/adc/Kconfig +0
-1@@ -1085,7 +1085,6 @@ config VIPERBOARD_ADC config XILINX_XADC tristate "Xilinx XADC driver" - depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST depends on HAS_IOMEM select IIO_BUFFER select IIO_TRIGGERED_BUFFER