blob: 9c93d51dafc38ac3b3f131b0eca8c0a5814e5c72 [file] [log] [blame]
Saurabh Gorecha70389ca2020-04-22 21:31:24 +05301/*
2 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <stdbool.h>
8#include <stdint.h>
9
10#include <common/debug.h>
11
12#include <qtiseclib_defs.h>
13#include <qtiseclib_interface.h>
14
15/*
16 * This file contains dummy implementation of QTISECLIB Published API's.
17 * which will be used to compile PLATFORM successfully when
18 * qtiseclib is not available
19 */
20
21/*
22 * CPUSS common reset handler for all CPU wake up (both cold & warm boot).
23 * Executes on all core. This API assume serialization across CPU
24 * already taken care before invoking.
25 *
26 * Clobbers: x0 - x17, x30
27 */
28void qtiseclib_cpuss_reset_asm(uint32_t bl31_cold_boot_state)
29{
30}
31
32/*
33 * Execute CPU (Kryo4 gold) specific reset handler / system initialization.
34 * This takes care of executing required CPU errata's.
35 *
36 * Clobbers: x0 - x16
37 */
38void qtiseclib_kryo4_gold_reset_asm(void)
39{
40}
41
42/*
43 * Execute CPU (Kryo4 silver) specific reset handler / system initialization.
44 * This takes care of executing required CPU errata's.
45 *
46 * Clobbers: x0 - x16
47 */
48void qtiseclib_kryo4_silver_reset_asm(void)
49{
50}
51
52/*
53 * C Api's
54 */
55void qtiseclib_bl31_platform_setup(void)
56{
57 ERROR("Please use QTISECLIB_PATH while building TF-A\n");
58 ERROR("Please refer docs/plat/qti.rst for more details.\n");
59 panic();
60}
61
62void qtiseclib_invoke_isr(uint32_t irq, void *handle)
63{
64}
65
66void qtiseclib_panic(void)
67{
68}
69
Saurabh Gorecha70389ca2020-04-22 21:31:24 +053070int
71qtiseclib_mem_assign(const memprot_info_t *mem_info,
72 uint32_t mem_info_list_cnt,
73 const uint32_t *source_vm_list,
74 uint32_t src_vm_list_cnt,
75 const memprot_dst_vm_perm_info_t *dest_vm_list,
76 uint32_t dst_vm_list_cnt)
77{
78 return 0;
79}
80
81int qtiseclib_psci_init(uintptr_t warmboot_entry)
82{
83 return 0;
84}
85
86int qtiseclib_psci_node_power_on(u_register_t mpidr)
87{
88 return 0;
89}
90
91void qtiseclib_psci_node_on_finish(const uint8_t *states)
92{
93}
94
95void qtiseclib_psci_cpu_standby(uint8_t pwr_state)
96{
97}
98
99void qtiseclib_psci_node_power_off(const uint8_t *states)
100{
101}
102
103void qtiseclib_psci_node_suspend(const uint8_t *states)
104{
105}
106
107void qtiseclib_psci_node_suspend_finish(const uint8_t *states)
108{
109}
110
Saurabh Gorecha70389ca2020-04-22 21:31:24 +0530111void qtiseclib_disable_cluster_coherency(uint8_t state)
112{
113}
114