xref: /linux/drivers/soundwire/amd_init.h (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /*
3  * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
4  */
5 
6 #ifndef __AMD_INIT_H
7 #define __AMD_INIT_H
8 
9 #include <linux/soundwire/sdw_amd.h>
10 
11 int amd_sdw_manager_start(struct amd_sdw_manager *amd_manager);
12 
13 static inline void amd_updatel(void __iomem *mmio, int offset, u32 mask, u32 val)
14 {
15 	u32 tmp;
16 
17 	tmp = readl(mmio + offset);
18 	tmp = (tmp & ~mask) | val;
19 	writel(tmp, mmio + offset);
20 }
21 #endif
22