| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | /* * arch/arm/plat-pxa/include/plat/mfp.h * *   Common Multi-Function Pin Definitions * * Copyright (C) 2007 Marvell International Ltd. * * 2007-8-21: eric miao <eric.miao@marvell.com> *            initial version * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License version 2 as *  published by the Free Software Foundation. */#ifndef __ASM_PLAT_MFP_H#define __ASM_PLAT_MFP_H#define mfp_to_gpio(m)	((m) % 256)/* list of all the configurable MFP pins */enum {	MFP_PIN_INVALID = -1,	MFP_PIN_GPIO0 = 0,	MFP_PIN_GPIO1,	MFP_PIN_GPIO2,	MFP_PIN_GPIO3,	MFP_PIN_GPIO4,	MFP_PIN_GPIO5,	MFP_PIN_GPIO6,	MFP_PIN_GPIO7,	MFP_PIN_GPIO8,	MFP_PIN_GPIO9,	MFP_PIN_GPIO10,	MFP_PIN_GPIO11,	MFP_PIN_GPIO12,	MFP_PIN_GPIO13,	MFP_PIN_GPIO14,	MFP_PIN_GPIO15,	MFP_PIN_GPIO16,	MFP_PIN_GPIO17,	MFP_PIN_GPIO18,	MFP_PIN_GPIO19,	MFP_PIN_GPIO20,
 |