diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-05-21 16:25:46 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-26 13:38:25 -0400 |
commit | 897f3a18b0bbe466b7405d96bc99550578d5b145 (patch) | |
tree | 61f32b35d2039688556f56b09a7e23f4bcda0345 /drivers/mtd | |
parent | fe4fd75b827a3c037d71ecaed04503e3637ccb1c (diff) |
mtd: lpddr: fix Kconfig dependency, for I/O accessors
Not all architectures implement a writel_relaxed() accessor. Hopefully
this will change eventually, but for now, this means lpddr2_nvm.c can't
compile on some architectures.
Let's add an ARM dependency for now, and leave a comment so maybe we can
change this in the future.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Vincenzo Aliberti <vincenzo.aliberti@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/lpddr/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/lpddr/Kconfig b/drivers/mtd/lpddr/Kconfig index 468f06dea45d..3a19cbee24d7 100644 --- a/drivers/mtd/lpddr/Kconfig +++ b/drivers/mtd/lpddr/Kconfig | |||
@@ -19,7 +19,8 @@ config MTD_QINFO_PROBE | |||
19 | Flash products | 19 | Flash products |
20 | 20 | ||
21 | config MTD_LPDDR2_NVM | 21 | config MTD_LPDDR2_NVM |
22 | depends on MTD | 22 | # ARM dependency is only for writel_relaxed() |
23 | depends on MTD && ARM | ||
23 | tristate "Support for LPDDR2-NVM flash chips" | 24 | tristate "Support for LPDDR2-NVM flash chips" |
24 | help | 25 | help |
25 | This option enables support of PCM memories with a LPDDR2-NVM | 26 | This option enables support of PCM memories with a LPDDR2-NVM |