aboutsummaryrefslogtreecommitdiff
path: root/product/corstone-700/module/pl011/include/mod_pl011.h
diff options
context:
space:
mode:
Diffstat (limited to 'product/corstone-700/module/pl011/include/mod_pl011.h')
-rw-r--r--product/corstone-700/module/pl011/include/mod_pl011.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/product/corstone-700/module/pl011/include/mod_pl011.h b/product/corstone-700/module/pl011/include/mod_pl011.h
new file mode 100644
index 0000000..4ae23f1
--- /dev/null
+++ b/product/corstone-700/module/pl011/include/mod_pl011.h
@@ -0,0 +1,55 @@
+/*
+ *
+ * Copyright (c) 2019, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef MOD_PL011_H
+#define MOD_PL011_H
+
+#include <stdint.h>
+#include <fwk_id.h>
+
+/*!
+ * \addtogroup GroupModules Modules
+ * @{
+ */
+
+/*!
+ * \defgroup GroupModulePl011 PL011 Driver
+ *
+ * \brief Arm PL011 device driver, fulfilling the Log module's driver API.
+ *
+ * \details This module implements a device driver for the Primecell® PL011
+ * UART.
+ * @{
+ */
+
+/*!
+ * \brief PL011 device configuration data.
+ */
+struct mod_pl011_device_config {
+ /*! Base address of the device registers */
+ uintptr_t reg_base;
+
+ /*! Baud rate (bits per second) */
+ unsigned int baud_rate_bps;
+
+ /*! Reference clock (Hertz) */
+ uint64_t clock_rate_hz;
+
+ /*! Identifier of the clock that this device depends on */
+ fwk_id_t clock_id;
+};
+
+/*!
+ * @}
+ */
+
+/*!
+ * @}
+ */
+
+#endif /* MOD_PL011_H */