19 #ifndef _SUART_UTILS_H_
20 #define _SUART_UTILS_H_
34 #define PRU_SUART_SERIALIZER_0 (0u)
36 #define PRU_SUART_SERIALIZER_1 (1u)
38 #define PRU_SUART_SERIALIZER_2 (2u)
40 #define PRU_SUART_SERIALIZER_3 (3u)
42 #define PRU_SUART_SERIALIZER_4 (4u)
44 #define PRU_SUART_SERIALIZER_5 (5u)
46 #define PRU_SUART_SERIALIZER_6 (6u)
48 #define PRU_SUART_SERIALIZER_7 (7u)
50 #define PRU_SUART_SERIALIZER_8 (8u)
52 #define PRU_SUART_SERIALIZER_9 (9u)
54 #define PRU_SUART_SERIALIZER_10 (10u)
56 #define PRU_SUART_SERIALIZER_11 (11u)
58 #define PRU_SUART_SERIALIZER_12 (12u)
60 #define PRU_SUART_SERIALIZER_13 (13u)
62 #define PRU_SUART_SERIALIZER_14 (14u)
64 #define PRU_SUART_SERIALIZER_15 (15u)
66 #define PRU_SUART_SERIALIZER_NONE (16u)
69 #define SUART_NUM_OF_BAUDS_SUPPORTED 13
71 #define MCASP_PDIR_VAL ( \
72 CSL_MCASP_PDIR_AFSR_OUTPUT<<CSL_MCASP_PDIR_AFSR_SHIFT | \
73 CSL_MCASP_PDIR_AHCLKR_OUTPUT<<CSL_MCASP_PDIR_AHCLKR_SHIFT | \
74 CSL_MCASP_PDIR_ACLKR_OUTPUT<<CSL_MCASP_PDIR_ACLKR_SHIFT | \
75 CSL_MCASP_PDIR_AFSX_OUTPUT<<CSL_MCASP_PDIR_AFSX_SHIFT | \
76 CSL_MCASP_PDIR_AHCLKX_OUTPUT<<CSL_MCASP_PDIR_AHCLKX_SHIFT | \
77 CSL_MCASP_PDIR_ACLKX_OUTPUT<<CSL_MCASP_PDIR_ACLKX_SHIFT)
81 unsigned int txBaudValue,
82 unsigned int rxBaudValue,
83 unsigned int oversampling,
87 unsigned int rxBaudValue,
88 unsigned int oversampling,
short suart_asp_baud_set(unsigned int txBaudValue, unsigned int rxBaudValue, unsigned int oversampling, arm_pru_iomap *pru_arm_iomap)
void suart_mcasp_psc_disable(unsigned int psc1_addr)
void suart_mcasp_tx_serialzier_set(unsigned int serializerNum, arm_pru_iomap *pru_arm_iomap)
void suart_mcasp_config(unsigned int mcasp_addr, unsigned int txBaudValue, unsigned int rxBaudValue, unsigned int oversampling, arm_pru_iomap *pru_arm_iomap)
void suart_mcasp_psc_enable(unsigned int psc1_addr)
short suart_asp_serializer_deactivate(unsigned short u16srNum, arm_pru_iomap *pru_arm_iomap)
void suart_mcasp_reset(arm_pru_iomap *pru_arm_iomap)