serial_pl01x.h 565 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2014 Google, Inc
  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. * @skip_init: Don't attempt to change port configuration (also means @clock
  18. * is ignored)
  19. */
  20. struct pl01x_serial_platdata {
  21. unsigned long base;
  22. enum pl01x_type type;
  23. unsigned int clock;
  24. bool skip_init;
  25. };
  26. #endif