board-m3ref-pinmux.h 626 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. Linux PIN_ITEMS.C
  3. */
  4. //these data can be shared.
  5. #include <mach/pinmux.h>
  6. //used by pinmux_item.c
  7. //one device may have more than one pinmux relative regs.this is the max number.
  8. #if 0
  9. #define MAX_PIN_ITEM_NUM 13
  10. enum device_pinitem_index{
  11. DEVICE_PIN_ITEM_UART,
  12. MAX_DEVICE_NUMBER,
  13. };
  14. #define uart_pins { \
  15. .reg=PINMUX_REG(AO),\
  16. .clrmask=3<<16,\
  17. .setmask=3<<11,\
  18. }
  19. static pinmux_item_t __initdata devices_pins[5][MAX_PIN_ITEM_NUM]=
  20. {
  21. [0]={uart_pins,PINMUX_END_ITEM},
  22. [1]={{},{}},
  23. [2]={{},{}},
  24. //add other devices here. according to the uart item.
  25. };
  26. #endif