Skip to content

Commit

Permalink
plat-sam: implement plat_get_freq() for sama7g5
Browse files Browse the repository at this point in the history
Sama7g5 platform does not have support for the ARM generic timer
extension, so plat_get_freq() needs to be updated to be able to
probe clocks early using the device tree as for the sama5d2.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
  • Loading branch information
tprrt authored and TonyHan11 committed Jan 22, 2024
1 parent 62dd396 commit d0a89d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/arch/arm/plat-sam/freq.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ static TEE_Result get_freq_from_dt(void)
if (!fdt)
panic();

#ifdef CFG_DRIVERS_SAMA7G5_CLK
node = fdt_node_offset_by_compatible(fdt, -1, "arm,cortex-a7");
#else
node = fdt_node_offset_by_compatible(fdt, -1, "arm,cortex-a5");
#endif
if (!node)
panic();

Expand Down

0 comments on commit d0a89d7

Please sign in to comment.