• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2015-2020, Broadcom
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdint.h>
8 
9 #include <common/debug.h>
10 #include <lib/mmio.h>
11 
12 #include <cmn_sec.h>
13 
14 #pragma weak plat_tz_master_default_cfg
15 #pragma weak plat_tz_sdio_ns_master_set
16 #pragma weak plat_tz_usb_ns_master_set
17 
plat_tz_master_default_cfg(void)18 void plat_tz_master_default_cfg(void)
19 {
20 	/* This function should be implemented in the platform side. */
21 	ERROR("%s: TZ CONFIGURATION NOT SET!!!\n", __func__);
22 }
23 
plat_tz_sdio_ns_master_set(uint32_t ns)24 void plat_tz_sdio_ns_master_set(uint32_t ns)
25 {
26 	/* This function should be implemented in the platform side. */
27 	ERROR("%s: TZ CONFIGURATION NOT SET!!!\n", __func__);
28 }
29 
plat_tz_usb_ns_master_set(uint32_t ns)30 void plat_tz_usb_ns_master_set(uint32_t ns)
31 {
32 	/* This function should be implemented in the platform side. */
33 	ERROR("%s: TZ CONFIGURATION NOT SET!!!\n", __func__);
34 }
35 
tz_master_default_cfg(void)36 void tz_master_default_cfg(void)
37 {
38 	plat_tz_master_default_cfg();
39 }
40 
tz_sdio_ns_master_set(uint32_t ns)41 void tz_sdio_ns_master_set(uint32_t ns)
42 {
43 	plat_tz_sdio_ns_master_set(ns);
44 }
45 
tz_usb_ns_master_set(uint32_t ns)46 void tz_usb_ns_master_set(uint32_t ns)
47 {
48 	plat_tz_usb_ns_master_set(ns);
49 }
50