hiddenDangerAnalysis.h 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * arch/arm/plat-pxa/include/plat/mfp.h
  3. *
  4. * Common Multi-Function Pin Definitions
  5. *
  6. * Copyright (C) 2007 Marvell International Ltd.
  7. *
  8. * 2007-8-21: eric miao <eric.miao@marvell.com>
  9. * initial version
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #ifndef __ASM_PLAT_MFP_H
  16. #define __ASM_PLAT_MFP_H
  17. #define mfp_to_gpio(m) ((m) % 256)
  18. /* list of all the configurable MFP pins */
  19. enum {
  20. MFP_PIN_INVALID = -1,
  21. MFP_PIN_GPIO0 = 0,
  22. MFP_PIN_GPIO1,
  23. MFP_PIN_GPIO2,
  24. MFP_PIN_GPIO3,
  25. MFP_PIN_GPIO4,
  26. MFP_PIN_GPIO5,
  27. MFP_PIN_GPIO6,
  28. MFP_PIN_GPIO7,
  29. MFP_PIN_GPIO8,
  30. MFP_PIN_GPIO9,
  31. MFP_PIN_GPIO10,
  32. MFP_PIN_GPIO11,
  33. MFP_PIN_GPIO12,
  34. MFP_PIN_GPIO13,
  35. MFP_PIN_GPIO14,
  36. MFP_PIN_GPIO15,
  37. MFP_PIN_GPIO16,
  38. MFP_PIN_GPIO17,
  39. MFP_PIN_GPIO18,
  40. MFP_PIN_GPIO19,
  41. MFP_PIN_GPIO20,