summaryrefslogtreecommitdiff
path: root/sound/soc/sof/amd/acp7x.h
blob: 5151d8757c12d1ed387558da4174a6113aa1eba7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
 * This file is provided under a dual BSD/GPLv2 license. When using or
 * redistributing this file, you may do so under either license.
 *
 * Copyright(c) 2026 Advanced Micro Devices, Inc. All rights reserved.
 *
 * Author: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
 */

#ifndef __SOF_AMD_ACP7X_H
#define __SOF_AMD_ACP7X_H

/* Return values for sof_amd_check_and_handle_acp7x_sdw_wake_irq() */
#define WAKE_IRQ_HANDLED			1
#define WAKE_IRQ_NONE				0

/* ACP7X SoundWire IO structures */

struct sof_amd_acp7x_sdw_err_regs {
	u32 err_stat_mask;
	u32 fifo_err_reason;
	u32 err_reason1;
	u32 err_reason2;
};

struct acp7x_sdw_wake_src {
	u32 host_stat_mask;
	u32 pme_sts_reg;
	u32 wake_en_mask;
	u8  instance;
};

extern const struct sof_amd_acp7x_sdw_err_regs acp7x_sdw_err_regs[ACP7X_SDW_MAX_MANAGER_COUNT];
extern const struct acp7x_sdw_wake_src acp7x_sdw_wake_sources[];

#endif /* __SOF_AMD_ACP7X_H */