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 f76ea76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions arch/risc-v/src/mpfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ config MPFS_COREMMC_IRQNUM
range 0 63
depends on MPFS_COREMMC

config MPFS_FPGA_FIC0_CLK_FREQ
int "FIC0 clk freq"
default 125000000
---help---
Frequency of FPGA FIC0 clock.

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_FPGA_FIC0_CLK_FREQ)

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

0 comments on commit f76ea76

Please sign in to comment.