diff options
Diffstat (limited to 'product/morello/mcp_romfw/config_pl011.c')
-rw-r--r-- | product/morello/mcp_romfw/config_pl011.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/product/morello/mcp_romfw/config_pl011.c b/product/morello/mcp_romfw/config_pl011.c new file mode 100644 index 00000000..47187bc1 --- /dev/null +++ b/product/morello/mcp_romfw/config_pl011.c @@ -0,0 +1,32 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "morello_mcp_mmap.h" +#include "morello_system_clock.h" + +#include <mod_pl011.h> + +#include <fwk_element.h> +#include <fwk_id.h> +#include <fwk_module.h> + +struct fwk_module_config config_pl011 = { + .elements = FWK_MODULE_STATIC_ELEMENTS({ + [0] = { + .name = "MCP UART", + .data = + &(struct mod_pl011_element_cfg){ + .reg_base = MCP_UART0_BASE, + .baud_rate_bps = 115200, + .clock_rate_hz = CLOCK_RATE_REFCLK, + .clock_id = FWK_ID_NONE_INIT, + }, + }, + + [1] = { 0 }, + }), +}; |