diff options
author | Guochun Mao <guochun.mao@mediatek.com> | 2019-01-16 05:12:04 +0300 |
---|---|---|
committer | Boris Brezillon <bbrezillon@kernel.org> | 2019-01-16 18:00:21 +0300 |
commit | 9cca9b3e55989f8b227d05897877648d67910a6d (patch) | |
tree | fffdbbf23ab90e4c8c7429e521e322e47e30c6f7 /drivers/mtd/spi-nor/mtk-quadspi.c | |
parent | 4a09a91e5efd3759d28ae4708a7bcef11bee4416 (diff) | |
download | linux-9cca9b3e55989f8b227d05897877648d67910a6d.tar.xz |
mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to spi_nor_hwcaps mask
SNOR_HWCAPS_READ should be supported by this controller, so add this
flag to spi_nor_hwcaps mask.
Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Diffstat (limited to 'drivers/mtd/spi-nor/mtk-quadspi.c')
-rw-r--r-- | drivers/mtd/spi-nor/mtk-quadspi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c index 5442993b71ff..d9eed6844ba1 100644 --- a/drivers/mtd/spi-nor/mtk-quadspi.c +++ b/drivers/mtd/spi-nor/mtk-quadspi.c @@ -431,7 +431,8 @@ static int mtk_nor_init(struct mtk_nor *mtk_nor, struct device_node *flash_node) { const struct spi_nor_hwcaps hwcaps = { - .mask = SNOR_HWCAPS_READ_FAST | + .mask = SNOR_HWCAPS_READ | + SNOR_HWCAPS_READ_FAST | SNOR_HWCAPS_READ_1_1_2 | SNOR_HWCAPS_PP, }; |