]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: Make atom components independent of sst-dsp
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 6 Oct 2020 06:49:05 +0000 (08:49 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Oct 2020 14:12:27 +0000 (15:12 +0100)
With sound/soc/intel/haswell and /baytrail gone, registers left within
sst-dsp header are atom-specific. Relocate these to atom internal header
to make atom truely independent of sound/soc/common processing code.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@intel.com>
Link: https://lore.kernel.org/r/20201006064907.16277-12-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst.c
sound/soc/intel/atom/sst/sst.h
sound/soc/intel/atom/sst/sst_acpi.c
sound/soc/intel/atom/sst/sst_drv_interface.c
sound/soc/intel/atom/sst/sst_ipc.c
sound/soc/intel/atom/sst/sst_loader.c
sound/soc/intel/atom/sst/sst_pvt.c
sound/soc/intel/atom/sst/sst_stream.c
sound/soc/intel/boards/bytcht_es8316.c
sound/soc/intel/boards/bytcr_rt5640.c
sound/soc/intel/common/sst-dsp.h

index d450b9848028d2ea3f505e4e1666d93fd499600b..e90590559185be4453dc42780ff3f0225c1fd5f8 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
 
 MODULE_AUTHOR("Vinod Koul <vinod.koul@intel.com>");
 MODULE_AUTHOR("Harsha Priya <priya.harsha@intel.com>");
index 2bee646e81b87bf04236528f3bf68d42096451bc..4d37d39fd8f42aa101c1bae304221dcd1b54162b 100644 (file)
 #define MRFLD_FW_FEATURE_BASE_OFFSET 0x4
 #define MRFLD_FW_BSS_RESET_BIT 0
 
+/* SST Shim register map */
+#define SST_CSR                        0x00
+#define SST_ISRX               0x18
+#define SST_IMRX               0x28
+#define SST_IPCX               0x38 /* IPC IA -> SST */
+#define SST_IPCD               0x40 /* IPC SST -> IA */
+
 extern const struct dev_pm_ops intel_sst_pm;
 enum sst_states {
        SST_FW_LOADING = 1,
index f3cfe83b9ac6d7ea982b26921af05718b4f2f571..f943a0884976eeae6c24bead4075c536f7abf923 100644 (file)
@@ -31,7 +31,6 @@
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
 #include "../sst-mfld-platform.h"
-#include "../../common/sst-dsp.h"
 #include "../../common/soc-intel-quirks.h"
 #include "sst.h"
 
index 762495385d5cb43630990bf60d589314868f22e9..0af618dd80730e564a029e498800b1de67baab66 100644 (file)
@@ -24,9 +24,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
-
-
 
 #define NUM_CODEC 2
 #define MIN_FRAGMENT 2
index c2851a829a64eeedc100d3ee7c48ac0383f6ada0..a8a9aa0057d30c367bf6a4e8bd005d706403f540 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
 
 struct sst_block *sst_create_block(struct intel_sst_drv *ctx,
                                        u32 msg_id, u32 drv_id)
index 5c42cce90ce29d0837b5306b23eddd6b6eabd952..1c9b0c9ec48315661b518b8c0eed3b8e4dadf544 100644 (file)
@@ -29,7 +29,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
 
 void memcpy32_toio(void __iomem *dst, const void *src, int count)
 {
index c099f7df61689e402bacc0c0276c42d38e4a24ff..e6a5c18a7018db1209cf56cc9b610b3405d1976c 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
 
 int sst_shim_write(void __iomem *addr, int offset, int value)
 {
index c0221e103e7967a955b33ed00b6c2df5cc4dc91d..ea1ef8a61fa6b54a9d0aaa73160c7b1513c72017 100644 (file)
@@ -23,7 +23,6 @@
 #include <asm/platform_sst_audio.h>
 #include "../sst-mfld-platform.h"
 #include "sst.h"
-#include "../../common/sst-dsp.h"
 
 int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params)
 {
index 414ae4bb5224a96d58d2586c2d2d092395ebe988..9c09b44b4d3388f78e55865de52e1647a5bffa2d 100644 (file)
@@ -28,7 +28,6 @@
 #include <sound/soc.h>
 #include <sound/soc-acpi.h>
 #include "../atom/sst-atom-controls.h"
-#include "../common/sst-dsp.h"
 #include "../common/soc-intel-quirks.h"
 
 /* jd-inv + terminating entry */
index fc202747ba837e83352ccdc8b9a6eb310c4e5367..9dadf6561444db23bcd812dd813717602058ce2a 100644 (file)
@@ -28,7 +28,6 @@
 #include <dt-bindings/sound/rt5640.h>
 #include "../../codecs/rt5640.h"
 #include "../atom/sst-atom-controls.h"
-#include "../common/sst-dsp.h"
 #include "../common/soc-intel-quirks.h"
 
 enum {
index f580e718b183cdddfc4ac14dc69d45d84c7b2dd2..021a36b2398a9a0a9d248e3d1371dba264b56330 100644 (file)
 #include <linux/types.h>
 #include <linux/interrupt.h>
 
-/* SST Shim register map
- * The register naming can differ between products. Some products also
- * contain extra functionality.
- */
-#define SST_CSR                        0x00
-#define SST_ISRX               0x18
-#define SST_IMRX               0x28
-#define SST_IPCX               0x38 /* IPC IA -> SST */
-#define SST_IPCD               0x40 /* IPC SST -> IA */
-
 struct sst_dsp;
 
 /*