1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #include "clock_devices.h"
9 #include "system_mmap.h"
10 
11 #include <mod_pl011.h>
12 
13 #include <fwk_element.h>
14 #include <fwk_id.h>
15 #include <fwk_macros.h>
16 #include <fwk_module.h>
17 #include <fwk_module_idx.h>
18 
19 struct fwk_module_config config_pl011 = {
20     .elements = FWK_MODULE_STATIC_ELEMENTS({
21         [0] = {
22             .name = "board-uart1",
23             .data =
24                 &(struct mod_pl011_element_cfg){
25                     .reg_base = BOARD_UART1_BASE,
26                     .baud_rate_bps = 115200,
27                     .clock_rate_hz = 24 * FWK_MHZ,
28                     .clock_id = FWK_ID_ELEMENT_INIT(
29                         FWK_MODULE_IDX_CLOCK,
30                         CLOCK_DEV_IDX_FCMCLK),
31                     .pd_id = FWK_ID_NONE_INIT,
32                 },
33         },
34 
35         [1] = { 0 },
36     }),
37 };
38