diff options
author | Soby Mathew <soby.mathew@arm.com> | 2018-10-29 10:27:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 10:27:22 +0000 |
commit | c38941f0c9cce5fcd3996f98ef789ae7481d356b (patch) | |
tree | 7337cf00ccb68195c49006406ff2768613232670 /include | |
parent | 9aabd11a424770e11dd89251960678d3e3332df6 (diff) | |
parent | 37f647a4be70291928913186679d85fc49e1cbc8 (diff) | |
download | platform_external_arm-trusted-firmware-c38941f0c9cce5fcd3996f98ef789ae7481d356b.tar.gz platform_external_arm-trusted-firmware-c38941f0c9cce5fcd3996f98ef789ae7481d356b.tar.bz2 platform_external_arm-trusted-firmware-c38941f0c9cce5fcd3996f98ef789ae7481d356b.zip |
Merge pull request #1616 from antonio-nino-diaz-arm/an/gxbb
Initial port of Amlogic Meson S905 (GXBB)
Diffstat (limited to 'include')
-rw-r--r-- | include/drivers/meson/meson_console.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/drivers/meson/meson_console.h b/include/drivers/meson/meson_console.h new file mode 100644 index 000000000..759571dda --- /dev/null +++ b/include/drivers/meson/meson_console.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef MESON_CONSOLE_H +#define MESON_CONSOLE_H + +#include <console.h> + +#define CONSOLE_T_MESON_BASE CONSOLE_T_DRVDATA + +#ifndef __ASSEMBLY__ + +#include <stdint.h> + +typedef struct { + console_t console; + uintptr_t base; +} console_meson_t; + +/* + * Initialize a new meson console instance and register it with the console + * framework. The |console| pointer must point to storage that will be valid + * for the lifetime of the console, such as a global or static local variable. + * Its contents will be reinitialized from scratch. + * + * NOTE: The clock is actually fixed to 24 MHz. The argument is only there in + * order to make this function future-proof. + */ +int console_meson_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, + console_meson_t *console); + +#endif /*__ASSEMBLY__*/ + +#endif /* MESON_CONSOLE_H */ |