Uh oh!
There was an error while loading. Please reload this page.
forked from torvalds/linux
- Notifications
You must be signed in to change notification settings - Fork 150
ASoC:SOF:APL:set I2S slave before enabling DSP#813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
plbossart
merged 3 commits into
thesofproject:topic/sof-dev
from
zhuyingjiang:topic/apl-set-I2S-as-slaveApr 22, 2019
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -84,6 +84,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, const void *fwdata, | ||
| const struct sof_intel_dsp_desc *chip = hda->desc; | ||
| unsigned int status; | ||
| int ret; | ||
| int i; | ||
| /* step 1: power up corex */ | ||
| ret = hda_dsp_core_power_up(sdev, chip->cores_mask); | ||
| @@ -92,6 +93,16 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, const void *fwdata, | ||
| goto err; | ||
| } | ||
| /* DSP is powered up, set all SSPs to slave mode */ | ||
| for (i = 0; i < chip->ssp_count; i++) { | ||
| snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, | ||
| chip->ssp_base_offset | ||
| + i * SSP_DEV_MEM_SIZE | ||
| + SSP_SSC1_OFFSET, | ||
| SSP_SET_SLAVE, | ||
| SSP_SET_SLAVE); | ||
| } | ||
plbossart marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| /* step 2: purge FW request */ | ||
| snd_sof_dsp_write(sdev, HDA_DSP_BAR, chip->ipc_req, | ||
| chip->ipc_req_mask | (HDA_DSP_IPC_PURGE_FW | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -339,6 +339,23 @@ | ||
| #define HDA_ADSP_FW_STATUS_SKL HDA_ADSP_SRAM0_BASE_SKL | ||
| #define HDA_ADSP_ERROR_CODE_SKL (HDA_ADSP_FW_STATUS_SKL + 0x4) | ||
| /* Host Device Memory Space */ | ||
plbossart marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| #define APL_SSP_BASE_OFFSET 0x2000 | ||
| #define CNL_SSP_BASE_OFFSET 0x10000 | ||
| /* Host Device Memory Size of a Single SSP */ | ||
| #define SSP_DEV_MEM_SIZE 0x1000 | ||
| /* SSP Count of the Platform */ | ||
| #define APL_SSP_COUNT 6 | ||
| #define CNL_SSP_COUNT 3 | ||
| /* SSP Registers */ | ||
| #define SSP_SSC1_OFFSET 0x4 | ||
| #define SSP_SET_SCLK_SLAVE BIT(25) | ||
| #define SSP_SET_SFRM_SLAVE BIT(24) | ||
| #define SSP_SET_SLAVE (SSP_SET_SCLK_SLAVE | SSP_SET_SFRM_SLAVE) | ||
| #define HDA_IDISP_CODEC(x) ((x) & BIT(2)) | ||
| struct sof_intel_dsp_bdl { | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.