]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: amlogic: socinfo: build for specific arch
authorKevin Hilman <khilman@baylibre.com>
Mon, 19 Oct 2020 22:46:48 +0000 (15:46 -0700)
committerKevin Hilman <khilman@baylibre.com>
Mon, 26 Oct 2020 18:33:27 +0000 (11:33 -0700)
The MX driver only supports 32-bit ARM SoCs and the GX driver only
supports 64-bit SoCs.  Only build for the right architecture.

Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/soc/amlogic/Kconfig

index 321c5e26a26802fab76da9363151f0ed3868ca61..08a27d9cbc7fdace73ae220914373f25baac05ad 100644 (file)
@@ -19,7 +19,7 @@ config MESON_CLK_MEASURE
 
 config MESON_GX_SOCINFO
        bool "Amlogic Meson GX SoC Information driver"
-       depends on ARCH_MESON || COMPILE_TEST
+       depends on (ARM64 && ARCH_MESON) || COMPILE_TEST
        default ARCH_MESON
        select SOC_BUS
        help
@@ -63,7 +63,7 @@ config MESON_SECURE_PM_DOMAINS
 
 config MESON_MX_SOCINFO
        bool "Amlogic Meson MX SoC Information driver"
-       depends on ARCH_MESON || COMPILE_TEST
+       depends on (ARM && ARCH_MESON) || COMPILE_TEST
        default ARCH_MESON
        select SOC_BUS
        help