Skip to content

platform: refactor: move clock, interrupt and timer to drivers - #233

Closed
jajanusz wants to merge 10 commits into
thesofproject:nextfrom
jajanusz:drivers-refactor
Closed

jajanusz wants to merge 10 commits into
thesofproject:nextfrom
jajanusz:drivers-refactor

Conversation

@jajanusz

@jajanusz jajanusz commented Aug 17, 2018 •

Copy link
Copy Markdown
Contributor

Please wait for @mmaka1 review.

Split in commit, so you can easily see steps done in this refactor.
Had to be done in one pull request because separate commits will cause a lot more chaos for others while merging/rebasing.

Next we will have to deduplicate code in mentioned functions.
From now on all shared code should go to intel/cavs folders and all platform specific code will go to folder for that platform (so we will be able to get rid of ifdefs).

Signed-off-by: Janusz Jankowski janusz.jankowski@linux.intel.com

@jajanusz
jajanusz requested a review from mmaka1 August 17, 2018 13:43
@mmaka1

mmaka1 commented Aug 21, 2018

Copy link
Copy Markdown

The structure of the drivers sources should reflect: //. E.g. intel/cavs/apollolake. Deploy the common sources to cavs wherever possible. Compile-time platform specific configuration of the drivers should stay in the platforms.

@lgirdwood

Copy link
Copy Markdown
Member

@jajanusz please also fix checkpatch comments.

Split files into appropriate folders.
Added makefiles to not break build.
Fixed checkpatch errors in dw-dma and baytrail/ssp.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Moved platform_interrupt_* functions from platform.c to interrupt.c
to match CNL&APL. Updated headers for BYT&HSW to have the same functions
declarations as CNL&APL.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
For cnl&apl removed platform_timer_register from public api
and made it static.
For byt&hsw moved platform_timer to platform.h
(just like it is for cnl&apl).

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
+ Indents for 'CHECK: Alignment should match open parenthesis'

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants