MLK-21080-07 nvmem: imx-scu-ocotp: Depend on HAVE_IMX_SC
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 11 Mar 2019 18:00:21 +0000 (20:00 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Upstream rejected ARCH_MXC_ARM64 in favor of defining ARCH_MXC for
arm64 so the current condition is never enabled.

Make it depend on HAVE_IMX_SC instead because it depends on SCFW API.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
drivers/nvmem/Kconfig

index 1f0a83b..cca8531 100644 (file)
@@ -38,7 +38,7 @@ config NVMEM_IMX_OCOTP
 
 config NVMEM_IMX_SCU_OCOTP
        tristate "i.MX8QM On-Chip OTP Controller support"
-       depends on ARCH_MXC_ARM64|| COMPILE_TEST
+       depends on HAVE_IMX_SC || COMPILE_TEST
        depends on HAS_IOMEM
        help
          This is a driver for the On-Chip OTP Controller (OCOTP) available on