kernel/0413-eswin-dsp-fixes.patch
2025-02-23 12:25:17 -05:00

57 lines
2.0 KiB
Diff

From 244de98b43bd79dbc0c425b186c8e8b492ce42ce Mon Sep 17 00:00:00 2001
From: Jason Montleon <jason@montleon.com>
Date: Fri, 21 Feb 2025 03:13:29 -0500
Subject: [PATCH 413/413] eswin dsp fixes
---
drivers/soc/eswin/ai_driver/dsp/dsp_main.c | 1 +
drivers/soc/eswin/ai_driver/dsp/dsp_platform.h | 2 ++
drivers/soc/eswin/ai_driver/dsp/dsp_proc.c | 1 +
3 files changed, 4 insertions(+)
diff --git a/drivers/soc/eswin/ai_driver/dsp/dsp_main.c b/drivers/soc/eswin/ai_driver/dsp/dsp_main.c
index 9cd6a5686515..d36ec75a6412 100644
--- a/drivers/soc/eswin/ai_driver/dsp/dsp_main.c
+++ b/drivers/soc/eswin/ai_driver/dsp/dsp_main.c
@@ -60,6 +60,7 @@
#include <linux/dma-mapping.h>
#include <linux/devfreq.h>
#include <linux/pm_opp.h>
+#include <linux/eswin-win2030-sid-cfg.h>
#include "eswin-khandle.h"
diff --git a/drivers/soc/eswin/ai_driver/dsp/dsp_platform.h b/drivers/soc/eswin/ai_driver/dsp/dsp_platform.h
index 40740cdfe21e..95bfff06cbfe 100644
--- a/drivers/soc/eswin/ai_driver/dsp/dsp_platform.h
+++ b/drivers/soc/eswin/ai_driver/dsp/dsp_platform.h
@@ -31,11 +31,13 @@ int es_dsp_reboot_core(struct es_dsp_hw *);
int es_dsp_enable(struct es_dsp_hw *);
void es_dsp_disable(struct es_dsp_hw *);
int es_dsp_set_rate(struct es_dsp_hw *, unsigned long *rate);
+int es_dsp_get_rate(struct es_dsp_hw *hw);
void es_dsp_reset(struct es_dsp_hw *);
void es_dsp_halt(struct es_dsp_hw *);
void es_dsp_release(struct es_dsp_hw *);
int es_dsp_sync(struct es_dsp *dsp);
int es_dsp_load_op(struct es_dsp_hw *, void *op_ptr);
+int es_dsp_map_resource(struct es_dsp *dsp);
int es_dsp_platform_init(void);
int es_dsp_platform_uninit(void);
diff --git a/drivers/soc/eswin/ai_driver/dsp/dsp_proc.c b/drivers/soc/eswin/ai_driver/dsp/dsp_proc.c
index e21212fecb6b..99a1cfe2b6c5 100644
--- a/drivers/soc/eswin/ai_driver/dsp/dsp_proc.c
+++ b/drivers/soc/eswin/ai_driver/dsp/dsp_proc.c
@@ -26,6 +26,7 @@
#include <linux/seq_file.h>
#include <linux/iommu.h>
#include "dsp_main.h"
+#include "dsp_platform.h"
static struct proc_dir_entry *proc_es_dsp;
extern int dsp_log_level;
--
2.47.0