]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: meson-sm: enable build as module
authorKevin Hilman <khilman@baylibre.com>
Mon, 21 Sep 2020 22:11:19 +0000 (15:11 -0700)
committerKevin Hilman <khilman@baylibre.com>
Mon, 26 Oct 2020 20:36:05 +0000 (13:36 -0700)
Enable secure module driver as module.
Default remains built-in.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/firmware/meson/Kconfig
drivers/firmware/meson/meson_sm.c

index 2671dcd0ad92de4abbfed0a55588a4ccfa924a60..f2fdd37566482266da0699a41d2eca706fc62711 100644 (file)
@@ -3,8 +3,9 @@
 # Amlogic Secure Monitor driver
 #
 config MESON_SM
-       bool
-       default ARCH_MESON
+       tristate "Amlogic Secure Monitor driver"
+       depends on ARCH_MESON || COMPILE_TEST
+       default y
        depends on ARM64_4K_PAGES
        help
          Say y here to enable the Amlogic secure monitor driver
index 2854b56f6e0bd1721d3882b345f539bf1cac4791..77aa5c6398aa66c0cb3558da77b006f6e1c939a2 100644 (file)
@@ -331,3 +331,4 @@ static struct platform_driver meson_sm_driver = {
        },
 };
 module_platform_driver_probe(meson_sm_driver, meson_sm_probe);
+MODULE_LICENSE("GPL v2");