Skip to content

Commit 6e679b0

Browse files
committed
platform: intel: ace30: update clock definitions
Set proper clock definition for ACE30 Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
1 parent c64e373 commit 6e679b0

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

  • src/platform/ace30

src/platform/ace30/include/platform/lib/clk.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818

1919
#define CPU_WOVCRO_FREQ_IDX 0
2020

21-
#define CPU_LPRO_FREQ_IDX 1
22-
23-
#define CPU_HPRO_FREQ_IDX 2
21+
#define CPU_IPLL_FREQ_IDX 1
2422

2523
#define CPU_LOWEST_FREQ_IDX CPU_WOVCRO_FREQ_IDX
2624

27-
#define CPU_DEFAULT_IDX CPU_HPRO_FREQ_IDX
25+
#define CPU_DEFAULT_IDX CPU_IPLL_FREQ_IDX
2826

29-
#define NUM_CPU_FREQ 3
27+
#define NUM_CPU_FREQ 2
3028

3129
#define PRIMARY_CORE_BASE_CPS_USAGE 20000
3230
#define SECONDARY_CORE_BASE_CPS_USAGE 10000

src/platform/ace30/lib/clk.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
#include <rtos/clk.h>
1010

1111
static const struct freq_table platform_cpu_freq[] = {
12-
{ 38400000, 38400 },
13-
{ 120000000, 120000 },
14-
{ CLK_MAX_CPU_HZ, 400000 },
12+
{ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC, CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / 1000 },
13+
{ CLK_MAX_CPU_HZ, CLK_MAX_CPU_HZ / 1000 },
1514
};
1615

1716
STATIC_ASSERT(ARRAY_SIZE(platform_cpu_freq) == NUM_CPU_FREQ, invalid_number_of_cpu_frequencies);

0 commit comments

Comments
 (0)