You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * linux/<file location within the kernel tree>
  3. *
  4. * Copyright (C) 2010 Texas Instruments Incorporated
  5. * Author: Ganeshan N
  6. *
  7. * Based on <Give reference of old kernel file from which this file is derived from>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation version 2.
  12. *
  13. * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
  14. * whether express or implied; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. */
  18. #ifndef _OMAPL_SUART_BOARD_H_
  19. #define _OMAPL_SUART_BOARD_H_
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #define PRU_SUART1_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  24. #define PRU_SUART1_CONFIG_RX_SER (PRU_SUART_SERIALIZER_7)
  25. #define PRU_SUART1_CONFIG_TX_SER (PRU_SUART_SERIALIZER_8)
  26. #define PRU_SUART2_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  27. #define PRU_SUART2_CONFIG_RX_SER (PRU_SUART_SERIALIZER_9)
  28. #define PRU_SUART2_CONFIG_TX_SER (PRU_SUART_SERIALIZER_10)
  29. #define PRU_SUART3_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  30. #define PRU_SUART3_CONFIG_RX_SER (PRU_SUART_SERIALIZER_13)
  31. #define PRU_SUART3_CONFIG_TX_SER (PRU_SUART_SERIALIZER_14)
  32. #define PRU_SUART4_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  33. #define PRU_SUART4_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
  34. #define PRU_SUART4_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
  35. #define PRU_SUART5_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  36. #define PRU_SUART5_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
  37. #define PRU_SUART5_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
  38. #define PRU_SUART6_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  39. #define PRU_SUART6_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
  40. #define PRU_SUART6_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
  41. #define PRU_SUART7_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  42. #define PRU_SUART7_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
  43. #define PRU_SUART7_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
  44. #define PRU_SUART8_CONFIG_DUPLEX (ePRU_SUART_HALF_TX | ePRU_SUART_HALF_RX)
  45. #define PRU_SUART8_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
  46. #define PRU_SUART8_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
  47. #ifdef __cplusplus
  48. } /* End of extern C */
  49. #endif /* #ifdef __cplusplus */
  50. #endif /* End of _<MOD>_FILENAME_API_H_ */