Skip to content

Commit

Permalink
drivers: mtk: add afe drivers for mt8196
Browse files Browse the repository at this point in the history
Add AFE drivers for memif/singen control.

Signed-off-by: Darren Ye <[email protected]>
  • Loading branch information
Darren Ye committed Jan 16, 2025
1 parent aef943d commit d2ab33a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/drivers/mediatek/afe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ endif()
if(CONFIG_MT8195)
add_subdirectory(mt8195)
endif()
if(CONFIG_MT8196)
add_subdirectory(mt8196)
endif()
5 changes: 5 additions & 0 deletions src/drivers/mediatek/afe/mt8196/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause

if(CONFIG_TEST_SGEN)
add_local_sources(sof afe-sgen.c)
endif()
23 changes: 23 additions & 0 deletions src/drivers/mediatek/afe/mt8196/afe-sgen.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright(c) 2024 MediaTek. All rights reserved.
*
* Author: Darren Ye <[email protected]>
*/

#include <stdint.h>

#include <sof/drivers/afe-sgen.h>
#include <sof/lib/io.h>
#include <sof/lib/uuid.h>
#include <sof/trace/trace.h>
#include <mt8196-afe-reg.h>
#include <mt8196-afe-common.h>

void afe_sinegen_enable(void)
{
}

void afe_sinegen_disable(void)
{
}

0 comments on commit d2ab33a

Please sign in to comment.