mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-01-16 22:21:49 +01:00
Partially reverted commit "soc: qcom: cmd-db: drop unused functions" by restoring only the cmd_db_read_slave_id() and cmd_db_read_aux_data() functions, which were removed in that commit. These functions are required for the RPMH Power Domain Driver. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Casey Connolly <casey.connolly@linaro.org> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com> Reviewed-by: Casey Connolly <casey.connolly@linaro.org>> --- Link: https://patch.msgid.link/20251113113427.2218045-2-aswin.murugan@oss.qualcomm.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
33 lines
879 B
C
33 lines
879 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __QCOM_COMMAND_DB_H__
|
|
#define __QCOM_COMMAND_DB_H__
|
|
|
|
#include <linux/err.h>
|
|
|
|
enum cmd_db_hw_type {
|
|
CMD_DB_HW_INVALID = 0,
|
|
CMD_DB_HW_MIN = 3,
|
|
CMD_DB_HW_ARC = CMD_DB_HW_MIN,
|
|
CMD_DB_HW_VRM = 4,
|
|
CMD_DB_HW_BCM = 5,
|
|
CMD_DB_HW_MAX = CMD_DB_HW_BCM,
|
|
CMD_DB_HW_ALL = 0xff,
|
|
};
|
|
|
|
#if IS_ENABLED(CONFIG_QCOM_COMMAND_DB)
|
|
u32 cmd_db_read_addr(const char *resource_id);
|
|
enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id);
|
|
const void *cmd_db_read_aux_data(const char *resource_id, size_t *len);
|
|
|
|
#else
|
|
static inline u32 cmd_db_read_addr(const char *resource_id)
|
|
{ return 0; }
|
|
|
|
#endif /* CONFIG_QCOM_COMMAND_DB */
|
|
#endif /* __QCOM_COMMAND_DB_H__ */
|