Skip to content

Commit

Permalink
sw: Add clock init function symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Oct 9, 2023
1 parent 45a8f2e commit f27055e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/include/car_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ void car_disable_domain(enum car_rst rst)
car_set_isolate(rst, CAR_ISOLATE_ENABLE);
}

// Init clock after PoR. Define if required (for PLL configuration, clk mux selection signals, clk
// dividers division values, etc)
void car_clk_init(void) __attribute__((weak));

// De-isolate and ungate domains at startup. In non-secure boot mode, only the host domain is
// de-isolated and ungated after POR. In secure boot mode, both the host domain and the security
// domain are de-isolated and ungated after POR. Note that L2 and peripheral domain are always-on
Expand All @@ -221,6 +225,7 @@ void car_enable_all_domains()

void car_init_start()
{
car_clk_init();
car_enable_all_domains();
}

Expand Down

0 comments on commit f27055e

Please sign in to comment.