1 // SPDX-License-Identifier: GPL-2.0-only
3 * Flash support for OMAP1
7 #include <linux/mtd/mtd.h>
8 #include <linux/mtd/map.h>
9 #include <linux/soc/ti/omap1-io.h>
16 void omap1_set_vpp(struct platform_device *pdev, int enable)
20 l = omap_readl(EMIFS_CONFIG);
22 l |= OMAP_EMIFS_CONFIG_WP;
24 l &= ~OMAP_EMIFS_CONFIG_WP;
25 omap_writel(l, EMIFS_CONFIG);