meson_console.h 827 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MESON_CONSOLE_H
  7. #define MESON_CONSOLE_H
  8. #include <drivers/console.h>
  9. #ifndef __ASSEMBLER__
  10. #include <stdint.h>
  11. /*
  12. * Initialize a new meson console instance and register it with the console
  13. * framework. The |console| pointer must point to storage that will be valid
  14. * for the lifetime of the console, such as a global or static local variable.
  15. * Its contents will be reinitialized from scratch.
  16. *
  17. * NOTE: The clock is actually fixed to 24 MHz. The argument is only there in
  18. * order to make this function future-proof.
  19. */
  20. int console_meson_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud,
  21. console_t *console);
  22. #endif /*__ASSEMBLER__*/
  23. #endif /* MESON_CONSOLE_H */