summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor/Makefile
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-04-29 12:20:18 +0200
committerPratyush Yadav <p.yadav@ti.com>2022-05-09 16:55:22 +0530
commit0257be79fc4a16a3252ce80aa13b3640f728c425 (patch)
treee2d47a77633bdc9fd64d26b1a6c4f5e7764f26d2 /drivers/mtd/spi-nor/Makefile
parentd92e0dbc6a2686e20b558220376d5d1c6b0d9108 (diff)
mtd: spi-nor: expose internal parameters via debugfs
There is no way to gather all information to verify support for a new flash chip. Also if you want to convert an existing flash chip to the new SFDP parsing, there is not enough information to determine if the flash will work like before. To ease this development, expose internal parameters via the debugfs. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Link: https://lore.kernel.org/r/20220429102018.2361038-2-michael@walle.cc
Diffstat (limited to 'drivers/mtd/spi-nor/Makefile')
-rw-r--r--drivers/mtd/spi-nor/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile
index 6b904e439372..e347b435a038 100644
--- a/drivers/mtd/spi-nor/Makefile
+++ b/drivers/mtd/spi-nor/Makefile
@@ -17,6 +17,7 @@ spi-nor-objs += sst.o
spi-nor-objs += winbond.o
spi-nor-objs += xilinx.o
spi-nor-objs += xmc.o
+spi-nor-$(CONFIG_DEBUG_FS) += debugfs.o
obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o
obj-$(CONFIG_MTD_SPI_NOR) += controllers/