Skip to content

Clock rework & AST2600 CLK + FMC Support#85

Draft
sinuscosinustan wants to merge 4 commits intomainfrom
ts-ast2600-clk
Draft

Clock rework & AST2600 CLK + FMC Support#85
sinuscosinustan wants to merge 4 commits intomainfrom
ts-ast2600-clk

Conversation

@sinuscosinustan
Copy link
Collaborator

The previous AST2500 clock implementation was actually for the AST2400 but somehow worked (lol).

This PR:

  • Moves the actual AST2400 clock implementation to the correct compatible
  • Adds the correct AST2500 clock implementation
  • Adds support for the AST2600 clock and FMC (FMC still WIP)

In order to support multiple platforms using different code paths,
the functions must be moved into SoC-specific ones, and the generic
functions will call the defined functions in `clk_ops`.

Signed-off-by: Tan Siewert <tan@siewert.io>
The code was wrongfully marked as compatible for the AST2500, but it
actually is for the AST2400.
Either way, it seems that the AST2400 code worked (?) on the AST2500, at
least to a specific grade.

Rename the functions and the compatible to AST2400. The code for the
AST2500 will be re-added in a later commit.

Signed-off-by: Tan Siewert <tan@siewert.io>
The original implementation used for the AST2500 was the implementation
for the AST2400 instead, and the compatibles were fixed.

Re-add the support for the AST2500 SoC with the correct implementation
for the clock.

Signed-off-by: Tan Siewert <tan@siewert.io>
Most of the commands like writing to the FMC require the clock driver.

Signed-off-by: Tan Siewert <tan@siewert.io>
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.

1 participant