serial_pl01x.h 453 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2014 Google, Inc
  3. * SPDX-License-Identifier: GPL-2.0+
  4. */
  5. #ifndef __serial_pl01x_h
  6. #define __serial_pl01x_h
  7. enum pl01x_type {
  8. TYPE_PL010,
  9. TYPE_PL011,
  10. };
  11. /*
  12. *Information about a serial port
  13. *
  14. * @base: Register base address
  15. * @type: Port type
  16. * @clock: Input clock rate, used for calculating the baud rate divisor
  17. */
  18. struct pl01x_serial_platdata {
  19. unsigned long base;
  20. enum pl01x_type type;
  21. unsigned int clock;
  22. };
  23. #endif