device.c (668c3c237f5ddc2889879b08f26d2374231f3287) device.c (02f29be6a553e4ebee5b718165b01cc4f17dffa8)
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// Copyright(c) 2020 Intel Corporation. All rights reserved.
4//
5// Author: Cezary Rojewski <cezary.rojewski@intel.com>
6//
7// Special thanks to:
8// Marcin Barlik <marcin.barlik@intel.com>

--- 8 unchanged lines hidden (view full) ---

17#include <linux/interrupt.h>
18#include <linux/module.h>
19#include <linux/pci.h>
20#include <linux/platform_device.h>
21#include <linux/pm_runtime.h>
22#include <sound/intel-dsp-config.h>
23#include <sound/soc.h>
24#include <sound/soc-acpi.h>
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// Copyright(c) 2020 Intel Corporation. All rights reserved.
4//
5// Author: Cezary Rojewski <cezary.rojewski@intel.com>
6//
7// Special thanks to:
8// Marcin Barlik <marcin.barlik@intel.com>

--- 8 unchanged lines hidden (view full) ---

17#include <linux/interrupt.h>
18#include <linux/module.h>
19#include <linux/pci.h>
20#include <linux/platform_device.h>
21#include <linux/pm_runtime.h>
22#include <sound/intel-dsp-config.h>
23#include <sound/soc.h>
24#include <sound/soc-acpi.h>
25#include <sound/soc-acpi-intel-match.h>
26#include "core.h"
27#include "registers.h"
28
29#define CREATE_TRACE_POINTS
30#include "trace.h"
31
32static int __maybe_unused catpt_suspend(struct device *dev)
33{

--- 271 unchanged lines hidden (view full) ---

305 catpt_dsp_power_down(cdev);
306
307 catpt_sram_free(&cdev->iram);
308 catpt_sram_free(&cdev->dram);
309
310 return 0;
311}
312
25#include "core.h"
26#include "registers.h"
27
28#define CREATE_TRACE_POINTS
29#include "trace.h"
30
31static int __maybe_unused catpt_suspend(struct device *dev)
32{

--- 271 unchanged lines hidden (view full) ---

304 catpt_dsp_power_down(cdev);
305
306 catpt_sram_free(&cdev->iram);
307 catpt_sram_free(&cdev->dram);
308
309 return 0;
310}
311
312static struct snd_soc_acpi_mach lpt_machines[] = {
313 {
314 .id = "INT33CA",
315 .drv_name = "hsw_rt5640",
316 },
317 {}
318};
319
320static struct snd_soc_acpi_mach wpt_machines[] = {
321 {
322 .id = "INT33CA",
323 .drv_name = "hsw_rt5640",
324 },
325 {
326 .id = "INT343A",
327 .drv_name = "bdw_rt286",
328 },
329 {
330 .id = "10EC5650",
331 .drv_name = "bdw-rt5650",
332 },
333 {
334 .id = "RT5677CE",
335 .drv_name = "bdw-rt5677",
336 },
337 {}
338};
339
313static struct catpt_spec lpt_desc = {
340static struct catpt_spec lpt_desc = {
314 .machines = snd_soc_acpi_intel_haswell_machines,
341 .machines = lpt_machines,
315 .core_id = 0x01,
316 .host_dram_offset = 0x000000,
317 .host_iram_offset = 0x080000,
318 .host_shim_offset = 0x0E7000,
319 .host_dma_offset = { 0x0F0000, 0x0F8000 },
320 .host_ssp_offset = { 0x0E8000, 0x0E9000 },
321 .dram_mask = LPT_VDRTCTL0_DSRAMPGE_MASK,
322 .iram_mask = LPT_VDRTCTL0_ISRAMPGE_MASK,
323 .d3srampgd_bit = LPT_VDRTCTL0_D3SRAMPGD,
324 .d3pgd_bit = LPT_VDRTCTL0_D3PGD,
325 .pll_shutdown = lpt_dsp_pll_shutdown,
326};
327
328static struct catpt_spec wpt_desc = {
342 .core_id = 0x01,
343 .host_dram_offset = 0x000000,
344 .host_iram_offset = 0x080000,
345 .host_shim_offset = 0x0E7000,
346 .host_dma_offset = { 0x0F0000, 0x0F8000 },
347 .host_ssp_offset = { 0x0E8000, 0x0E9000 },
348 .dram_mask = LPT_VDRTCTL0_DSRAMPGE_MASK,
349 .iram_mask = LPT_VDRTCTL0_ISRAMPGE_MASK,
350 .d3srampgd_bit = LPT_VDRTCTL0_D3SRAMPGD,
351 .d3pgd_bit = LPT_VDRTCTL0_D3PGD,
352 .pll_shutdown = lpt_dsp_pll_shutdown,
353};
354
355static struct catpt_spec wpt_desc = {
329 .machines = snd_soc_acpi_intel_broadwell_machines,
356 .machines = wpt_machines,
330 .core_id = 0x02,
331 .host_dram_offset = 0x000000,
332 .host_iram_offset = 0x0A0000,
333 .host_shim_offset = 0x0FB000,
334 .host_dma_offset = { 0x0FE000, 0x0FF000 },
335 .host_ssp_offset = { 0x0FC000, 0x0FD000 },
336 .dram_mask = WPT_VDRTCTL0_DSRAMPGE_MASK,
337 .iram_mask = WPT_VDRTCTL0_ISRAMPGE_MASK,

--- 27 unchanged lines hidden ---
357 .core_id = 0x02,
358 .host_dram_offset = 0x000000,
359 .host_iram_offset = 0x0A0000,
360 .host_shim_offset = 0x0FB000,
361 .host_dma_offset = { 0x0FE000, 0x0FF000 },
362 .host_ssp_offset = { 0x0FC000, 0x0FD000 },
363 .dram_mask = WPT_VDRTCTL0_DSRAMPGE_MASK,
364 .iram_mask = WPT_VDRTCTL0_ISRAMPGE_MASK,

--- 27 unchanged lines hidden ---