Browse Source

Merge changes from topic "xilinx-pm-misc-changes" into integration

* changes:
  fix(xilinx): update define for ZynqMP specific functions
  fix(xilinx): remove unnecessary header include
  fix(xilinx): include missing header
pull/1988/head
Joanna Farley 2 years ago
committed by TrustedFirmware Code Review
parent
commit
febefa4dbb
  1. 6
      plat/xilinx/common/include/pm_client.h
  2. 3
      plat/xilinx/common/include/pm_ipi.h
  3. 4
      plat/xilinx/common/ipi.c
  4. 3
      plat/xilinx/common/pm_service/pm_ipi.c

6
plat/xilinx/common/include/pm_client.h

@ -1,5 +1,7 @@
/*
* Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
* Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -23,9 +25,9 @@ void pm_client_wakeup(const struct pm_proc *proc);
/* Global variables to be set in pm_client.c */
extern const struct pm_proc *primary_proc;
#ifndef VERSAL_PLATFORM
#if defined(PLAT_zynqmp)
enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
#endif
#endif /* PLAT_zynqmp */
#endif /* PM_CLIENT_H */

3
plat/xilinx/common/include/pm_ipi.h

@ -1,5 +1,7 @@
/*
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
* Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -8,6 +10,7 @@
#define PM_IPI_H
#include <plat_ipi.h>
#include <stddef.h>
#include "pm_common.h"
#define IPI_BLOCKING 1

4
plat/xilinx/common/ipi.c

@ -1,5 +1,6 @@
/*
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -17,7 +18,6 @@
#include <lib/mmio.h>
#include <ipi.h>
#include <plat_ipi.h>
#include <plat_private.h>
/*********************************************************************

3
plat/xilinx/common/pm_service/pm_ipi.c

@ -1,5 +1,7 @@
/*
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2019-2022, Xilinx, Inc. All rights reserved.
* Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -13,6 +15,7 @@
#include <plat_private.h>
#include <plat/common/platform.h>
#include "pm_defs.h"
#include "pm_ipi.h"
#define ERROR_CODE_MASK 0xFFFFU

Loading…
Cancel
Save