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>
13 #include <mach/hardware.h>
15 void omap1_set_vpp(struct platform_device *pdev, int enable)
19 l = omap_readl(EMIFS_CONFIG);
21 l |= OMAP_EMIFS_CONFIG_WP;
23 l &= ~OMAP_EMIFS_CONFIG_WP;
24 omap_writel(l, EMIFS_CONFIG);