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 "mcp_platform_mmap.h" 9 10 #include <mod_pl011.h> 11 12 #include <fwk_element.h> 13 #include <fwk_id.h> 14 #include <fwk_macros.h> 15 #include <fwk_module.h> 16 17 static const struct fwk_element config_pl011_elements[] = { 18 [0] = { 19 .name = "uart", 20 .data = 21 &(struct mod_pl011_element_cfg){ 22 .reg_base = MCP_UART0_BASE, 23 .baud_rate_bps = 115200, 24 .clock_rate_hz = 24 * FWK_MHZ, 25 .clock_id = FWK_ID_NONE_INIT, 26 27 #ifdef BUILD_HAS_MOD_POWER_DOMAIN 28 .pd_id = FWK_ID_NONE_INIT, 29 #endif 30 }, 31 }, 32 33 [1] = { 0 }, 34 }; 35 36 const struct fwk_module_config config_pl011 = { 37 .elements = FWK_MODULE_STATIC_ELEMENTS_PTR(config_pl011_elements), 38 }; 39