1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include "morello_mcp_mmap.h"
9 #include "morello_system_clock.h"
10 
11 #include <mod_pl011.h>
12 
13 #include <fwk_element.h>
14 #include <fwk_id.h>
15 #include <fwk_module.h>
16 
17 struct fwk_module_config config_pl011 = {
18     .elements = FWK_MODULE_STATIC_ELEMENTS({
19         [0] = {
20             .name = "MCP-UART",
21             .data =
22                 &(struct mod_pl011_element_cfg){
23                     .reg_base = MCP_UART0_BASE,
24                     .baud_rate_bps = 115200,
25                     .clock_rate_hz = CLOCK_RATE_REFCLK,
26                     .clock_id = FWK_ID_NONE_INIT,
27                 },
28         },
29 
30         [1] = { 0 },
31     }),
32 };
33