2024-01-29 05:51:37 +00:00
|
|
|
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AMD_INIT_H
|
|
|
|
#define __AMD_INIT_H
|
|
|
|
|
|
|
|
#include <linux/soundwire/sdw_amd.h>
|
|
|
|
|
|
|
|
int amd_sdw_manager_start(struct amd_sdw_manager *amd_manager);
|
|
|
|
|
2024-03-27 06:31:42 +00:00
|
|
|
static inline void amd_updatel(void __iomem *mmio, int offset, u32 mask, u32 val)
|
|
|
|
{
|
|
|
|
u32 tmp;
|
|
|
|
|
|
|
|
tmp = readl(mmio + offset);
|
|
|
|
tmp = (tmp & ~mask) | val;
|
|
|
|
writel(tmp, mmio + offset);
|
|
|
|
}
|
2024-01-29 05:51:37 +00:00
|
|
|
#endif
|