/**************************************************************************** * * Copyright 2020 Samsung Electronics All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. * ****************************************************************************/ #ifndef __S1SBP6A_UART_H #define __S1SBP6A_UART_H #define UART_ULCON_OFFSET 0x0000 #define UART_UCON_OFFSET 0x0004 #define UART_UFCON_OFFSET 0x0008 #define UART_UMCON_OFFSET 0x000C #define UART_UTRSTAT_OFFSET 0x0010 #define UART_UERSTAT_OFFSET 0x0014 #define UART_UFSTAT_OFFSET 0x0018 #define UART_UTXH_OFFSET 0x0020 #define UART_URXH_OFFSET 0x0024 #define UART_UBRDIV_OFFSET 0x0028 #define UART_UFRAC_OFFSET 0x002C #define UART_UINTP_OFFSET 0x0030 #define UART_UINTS_OFFSET 0x0034 #define UART_UINTM_OFFSET 0x0038 #define RCV_BUF_DATA_READY (0x01<<0) #define TX_BUF_EMPTY (0x01<<1) #define TX_EMPTY (0x01<<2) #define RX_TIMEOUT_CLR (0x01<<3) #define RX_DMA_FSM_STA (0x0F<<8) #define TX_DMA_FSM_STA (0x0F<<12) #define RX_FIFO_CNT (0xFF<<16) /* UART ULCON */ #define UART_ULCON_WORD_LEN_SHIFT (0) #define UART_ULCON_N_STOP_BIT_SHIFT (2) #define UART_ULCON_PARITY_MODE_SHIFT (3) #define UART_ULCON_WORD_LEN(c) ((c)<