blob: 1190f2c22cab7829cc60cce8fef47ceb97e8a4a1 [file] [log] [blame]
Caleb Connolly90ff5812024-07-15 12:08:02 +02001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
5 */
6
7#ifndef __QCOM_COMMAND_DB_H__
8#define __QCOM_COMMAND_DB_H__
9
10#include <linux/err.h>
11
12enum cmd_db_hw_type {
13 CMD_DB_HW_INVALID = 0,
14 CMD_DB_HW_MIN = 3,
15 CMD_DB_HW_ARC = CMD_DB_HW_MIN,
16 CMD_DB_HW_VRM = 4,
17 CMD_DB_HW_BCM = 5,
18 CMD_DB_HW_MAX = CMD_DB_HW_BCM,
19 CMD_DB_HW_ALL = 0xff,
20};
21
22#if IS_ENABLED(CONFIG_QCOM_COMMAND_DB)
23u32 cmd_db_read_addr(const char *resource_id);
24
Caleb Connolly90ff5812024-07-15 12:08:02 +020025#else
26static inline u32 cmd_db_read_addr(const char *resource_id)
27{ return 0; }
28
Caleb Connolly90ff5812024-07-15 12:08:02 +020029#endif /* CONFIG_QCOM_COMMAND_DB */
30#endif /* __QCOM_COMMAND_DB_H__ */