From 3ebbca6ad64f2d02e6cb906c128f8e9e49aa69d9 Mon Sep 17 00:00:00 2001 From: Elizabeth Liner Date: Tue, 11 Oct 2016 11:16:33 -0500 Subject: Adding interface changes to provide UART information to HDAT Change-Id: I2e1a79509065177b4047ce7befe9cbbca5210255 RTC:161647 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30998 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: VENKATESH SAINATH Reviewed-by: William G. Hoffa Reviewed-by: Matthew A. Ploetz --- src/include/usr/console/uartif.H | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/include') diff --git a/src/include/usr/console/uartif.H b/src/include/usr/console/uartif.H index 8cbd0c0ff..768e0d45b 100644 --- a/src/include/usr/console/uartif.H +++ b/src/include/usr/console/uartif.H @@ -31,18 +31,26 @@ namespace CONSOLE { + const uint8_t SERIAL_IRQ = 4; + + // Host SerlIRQ interrupt type for SUART1 + const uint8_t RESERVED = 0x00; + const uint8_t LOW_LEVEL_TRIG = 0x01; + const uint8_t RISING_EDGE_TRIG = 0x02; + const uint8_t HIGH_LEVEL_TRIG = 0x03; + /** * Structure to return UART information in */ struct UartInfo_t { - //@TODO-RTC:161647-Add more details/comments - uint64_t lpcBaseAddr; - uint32_t lpcSize; - uint32_t clockFreqHz; - uint32_t freqHz; - uint8_t interruptNum; - uint8_t interruptTrigger; + uint64_t lpcBaseAddr; //< Base address of the UART device the LPC bus + uint32_t lpcSize; //< Size of the UART device address space on LPC bus + uint32_t clockFreqHz; //< Clock Frequency of the UART baud clock in Hz + uint32_t freqHz; //< Current baud rate of the UART device + uint8_t interruptNum; //< UART Interrupt Number + uint8_t interruptTrigger; //< UART trigger type + //< 0x01: low level, 0x02: rising edge, 0x03: high level }; /** -- cgit v1.2.3