/* * linux/ * * Copyright (C) 2010 Texas Instruments Incorporated * Author: Ganeshan N * * Based on * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind, * whether express or implied; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */ #ifndef _SUART_UTILS_H_ #define _SUART_UTILS_H_ #ifdef __cplusplus extern "C" { #endif /* *==================== * Includes *==================== */ #include "tistdtypes.h" /* ************ Serializers ***************** */ #define PRU_SUART_SERIALIZER_0 (0u) /** Serializer */ #define PRU_SUART_SERIALIZER_1 (1u) /** Serializer */ #define PRU_SUART_SERIALIZER_2 (2u) /** Serializer */ #define PRU_SUART_SERIALIZER_3 (3u) /** Serializer */ #define PRU_SUART_SERIALIZER_4 (4u) /** Serializer */ #define PRU_SUART_SERIALIZER_5 (5u) /** Serializer */ #define PRU_SUART_SERIALIZER_6 (6u) /** Serializer */ #define PRU_SUART_SERIALIZER_7 (7u) /** Serializer */ #define PRU_SUART_SERIALIZER_8 (8u) /** Serializer */ #define PRU_SUART_SERIALIZER_9 (9u) /** Serializer */ #define PRU_SUART_SERIALIZER_10 (10u) /** Serializer */ #define PRU_SUART_SERIALIZER_11 (11u) /** Serializer */ #define PRU_SUART_SERIALIZER_12 (12u) /** Serializer */ #define PRU_SUART_SERIALIZER_13 (13u) /** Serializer */ #define PRU_SUART_SERIALIZER_14 (14u) /** Serializer */ #define PRU_SUART_SERIALIZER_15 (15u) /** Serializer */ #define PRU_SUART_SERIALIZER_NONE (16u) /* Total number of baud rates supported */ #define SUART_NUM_OF_BAUDS_SUPPORTED 13 #define MCASP_PDIR_VAL ( \ CSL_MCASP_PDIR_AFSR_OUTPUT<