Skip to content

Commit

Permalink
mpfs_coremmc: MPFS_FPGA_FIC0_CLK defined as config value
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed Feb 12, 2025
1 parent 61280a5 commit 4924b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/risc-v/src/mpfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,11 @@ config MPFS_COREMMC_IRQNUM
range 0 63
depends on MPFS_COREMMC

config MPFS_COREMMC_FIC0_CLK
int "Frequency of FIC0 clock"
default 125000000
depends on MPFS_COREMMC

config MPFS_TAMPER
bool "Tamper detection"
default n
Expand Down
2 changes: 1 addition & 1 deletion arch/risc-v/src/mpfs/mpfs_coremmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

/* Clocks and timing */

#define MPFS_FPGA_FIC0_CLK (125000000)
#define MPFS_FPGA_FIC0_CLK (CONFIG_MPFS_COREMMC_FIC0_CLK)

#define COREMMC_CMDTIMEOUT (100000)
#define COREMMC_LONGTIMEOUT (100000000)
Expand Down

0 comments on commit 4924b03

Please sign in to comment.