uart.h 881 B

12345678910111213141516171819202122232425
  1. /* arch/arm/mach-zynq/include/mach/uart.h
  2. *
  3. * Copyright (C) 2011 Xilinx
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __MACH_UART_H__
  15. #define __MACH_UART_H__
  16. #define UART_CR_OFFSET 0x00 /* Control Register [8:0] */
  17. #define UART_SR_OFFSET 0x2C /* Channel Status [11:0] */
  18. #define UART_FIFO_OFFSET 0x30 /* FIFO [15:0] or [7:0] */
  19. #define UART_SR_TXFULL 0x00000010 /* TX FIFO full */
  20. #define UART_SR_TXEMPTY 0x00000008 /* TX FIFO empty */
  21. #endif