⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mux.c

📁 linux-2.6.15.6
💻 C
字号:
/* * linux/arch/arm/mach-omap2/mux.c * * OMAP1 pin multiplexing configurations * * Copyright (C) 2003 - 2005 Nokia Corporation * * Written by Tony Lindgren <tony.lindgren@nokia.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */#include <linux/config.h>#include <linux/module.h>#include <linux/init.h>#include <asm/system.h>#include <asm/io.h>#include <linux/spinlock.h>#include <asm/arch/mux.h>#ifdef CONFIG_OMAP_MUX/* NOTE: See mux.h for the enumeration */struct pin_config __initdata_or_module omap24xx_pins[] = {/* *	description			mux	mux	pull	pull	debug *					offset	mode	ena	type *//* 24xx I2C */MUX_CFG_24XX("M19_24XX_I2C1_SCL",	0x111,	0,	0,	0,	1)MUX_CFG_24XX("L15_24XX_I2C1_SDA",	0x112,	0,	0,	0,	1)MUX_CFG_24XX("J15_24XX_I2C2_SCL",	0x113,	0,	0,	0,	1)MUX_CFG_24XX("H19_24XX_I2C2_SDA",	0x114,	0,	0,	0,	1)/* Menelaus interrupt */MUX_CFG_24XX("W19_24XX_SYS_NIRQ",	0x12c,	0,	1,	1,	1)/* 24xx GPIO */MUX_CFG_24XX("Y20_24XX_GPIO60",		0x12c,	3,	0,	0,	1)MUX_CFG_24XX("M15_24XX_GPIO92",		0x10a,	3,	0,	0,	1)};int __init omap2_mux_init(void){	omap_mux_register(omap24xx_pins, ARRAY_SIZE(omap24xx_pins));	return 0;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -