aboutsummaryrefslogtreecommitdiff
path: root/product/morello
diff options
context:
space:
mode:
authorAnurag Koul <anurag.koul@arm.com>2020-06-08 23:30:30 +0100
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-09-15 17:03:53 +0100
commit3b16a79cf68b1e8ab00bad17990df3f8c10b9ecc (patch)
treec53a8adbb6565d54e1a072f17d7a478cd7039e39 /product/morello
parentdaacd8a235046e0d3c16c792a61c5c0829872350 (diff)
morello/scp_ramfw_fvp: add log module related config
Add log & pl011 config data for log module. Change-Id: I059f937915989927641b63512b90b542de1a9f64 Signed-off-by: Anurag Koul <anurag.koul@arm.com> Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
Diffstat (limited to 'product/morello')
-rw-r--r--product/morello/include/fmw_io.h17
-rw-r--r--product/morello/scp_ramfw_fvp/config_pl011.c37
2 files changed, 54 insertions, 0 deletions
diff --git a/product/morello/include/fmw_io.h b/product/morello/include/fmw_io.h
new file mode 100644
index 00000000..2650c1c2
--- /dev/null
+++ b/product/morello/include/fmw_io.h
@@ -0,0 +1,17 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef FMW_IO_H
+#define FMW_IO_H
+
+#include <fwk_id.h>
+#include <fwk_module_idx.h>
+
+#define FMW_IO_STDIN_ID FWK_ID_ELEMENT(FWK_MODULE_IDX_PL011, 0)
+#define FMW_IO_STDOUT_ID FWK_ID_ELEMENT(FWK_MODULE_IDX_PL011, 0)
+
+#endif /* FMW_IO_H */
diff --git a/product/morello/scp_ramfw_fvp/config_pl011.c b/product/morello/scp_ramfw_fvp/config_pl011.c
new file mode 100644
index 00000000..cc86986b
--- /dev/null
+++ b/product/morello/scp_ramfw_fvp/config_pl011.c
@@ -0,0 +1,37 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "morello_scp_mmap.h"
+#include "morello_system_clock.h"
+
+#include <mod_pl011.h>
+
+#include <fwk_element.h>
+#include <fwk_id.h>
+#include <fwk_module.h>
+
+/*
+ * PL011 module
+ */
+
+struct fwk_module_config config_pl011 = {
+ .elements = FWK_MODULE_STATIC_ELEMENTS({
+ [0] = {
+ .name = "SCP-UART",
+ .data =
+ &(struct mod_pl011_element_cfg){
+ .reg_base = SCP_UART_BASE,
+ .baud_rate_bps = 115200,
+ .clock_rate_hz = CLOCK_RATE_REFCLK,
+ .clock_id = FWK_ID_NONE_INIT,
+ .pd_id = FWK_ID_NONE_INIT,
+ },
+ },
+
+ [1] = { 0 },
+ }),
+};