Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / soundwire / amd_init.h
blob5e7b43836a374e41c2dc71f5eba3a209972e8309
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /*
3 * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
4 */
6 #ifndef __AMD_INIT_H
7 #define __AMD_INIT_H
9 #include <linux/soundwire/sdw_amd.h>
11 int amd_sdw_manager_start(struct amd_sdw_manager *amd_manager);
13 static inline void amd_updatel(void __iomem *mmio, int offset, u32 mask, u32 val)
15 u32 tmp;
17 tmp = readl(mmio + offset);
18 tmp = (tmp & ~mask) | val;
19 writel(tmp, mmio + offset);
21 #endif