aboutsummaryrefslogtreecommitdiff
path: root/product/tc0/scp_ramfw/config_pl011.c
blob: e82f79767a04dec199244e116d5e29fb994083d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Arm SCP/MCP Software
 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include "config_power_domain.h"
#include "scp_css_mmap.h"

#include <mod_pl011.h>

#include <fwk_element.h>
#include <fwk_id.h>
#include <fwk_macros.h>
#include <fwk_module.h>

const struct fwk_module_config config_pl011 = {
    .elements = FWK_MODULE_STATIC_ELEMENTS({
        [0] = {
            .name = "uart",
            .data =
                &(struct mod_pl011_element_cfg){
                    .reg_base = SCP_UART_BOARD_BASE,
                    .baud_rate_bps = 115200,
                    .clock_rate_hz = 24 * FWK_MHZ,
                    .clock_id = FWK_ID_NONE_INIT,
                    .pd_id = FWK_ID_NONE_INIT,
                },
        },

        [1] = { 0 },
    }),
};