Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
[RFC PATCH] Unifiy ACPI & DT handling inside SOF#1315
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -93,6 +93,9 @@ struct snd_sof_dsp_ops { | ||
| int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */ | ||
| int (*remove)(struct snd_sof_dev *sof_dev); /* optional */ | ||
| /* machine driver probing */ | ||
| int (*machine_register)(struct snd_sof_dev *sof_dev); /* mandatory */ | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be optional? CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think yes, although I haven't seen any platform which doesn't have a "codec" scenario. | ||
| /* DSP core boot / reset */ | ||
| int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */ | ||
| int (*stall)(struct snd_sof_dev *sof_dev); /* optional */ | ||
| @@ -489,6 +492,7 @@ int snd_sof_create_page_table(struct snd_sof_dev *sdev, | ||
| struct snd_dma_buffer *dmab, | ||
| unsigned char *page_table, size_t size); | ||
| int sof_machine_register(struct snd_sof_dev *sdev); | ||
| /* | ||
| * Firmware loading. | ||
| */ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this supposed to do?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SOF DSP DT will look like this:
devm_of_platform_populate - walks the device tree and creates devices from nodes.
Now, it starts from DSP root node and it will find mach_drv child node. It reads the node and creates a platform_device from it. It is similar with
platform_device_register_databut it reads the information from DT instead of having them passed via pdata argument of platform_device_register_data.