![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 /* 0003 * Flash support for OMAP1 0004 */ 0005 0006 #include <linux/io.h> 0007 #include <linux/mtd/mtd.h> 0008 #include <linux/mtd/map.h> 0009 #include <linux/soc/ti/omap1-io.h> 0010 0011 #include "tc.h" 0012 0013 #include "flash.h" 0014 0015 0016 void omap1_set_vpp(struct platform_device *pdev, int enable) 0017 { 0018 u32 l; 0019 0020 l = omap_readl(EMIFS_CONFIG); 0021 if (enable) 0022 l |= OMAP_EMIFS_CONFIG_WP; 0023 else 0024 l &= ~OMAP_EMIFS_CONFIG_WP; 0025 omap_writel(l, EMIFS_CONFIG); 0026 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |