cmn_sec.c 1.0 KB

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