![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <io.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <timer.h>#include <log.h>#include <sys-clk.h>
Functions | |
| static void | set_pll_general (uint32_t pll_addr, uint32_t en, uint32_t output_gate_en, uint32_t pll_d, uint32_t pll_d_off, uint32_t pll_n) |
| static void | set_pll_e90x (void) |
| static void | set_pll_a27l2 (void) |
| static void | set_pll_peri_ctrl0 (uint32_t en, uint32_t output_gate_en, uint32_t pll_n, uint32_t pll_m) |
| static void | set_pll_peri_ctrl1 (void) |
| static void | set_pll_peri (void) |
| static void | set_pll_csi (void) |
| static void | set_pll_video (void) |
| static void | set_ahb (void) |
| static void | set_apb (void) |
| static void | set_apb_spec (void) |
| void | sunxi_clk_init (void) |
| Initialize the global clocks. | |
| void | sunxi_clk_pre_init (void) |
| Initialize the necessary clocks for minsys boot up. | |
| void | sunxi_clk_dump () |
| Dump all clock-related register values. | |
| uint32_t | sunxi_clk_get_hosc_type () |
| Get the type of High-Speed Oscillator (HOSC). | |
| uint32_t | sunxi_clk_get_peri1x_rate () |
| Get the clock rate of the PERI1X bus. | |
Variables | |
| uint32_t | current_hosc_freq |
| Current frequency of the high-speed oscillator (HOSC) in MHz. | |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void sunxi_clk_dump | ( | void | ) |
Dump all clock-related register values.
This function prints out all clock-related register values for debugging and observation.
| uint32_t sunxi_clk_get_hosc_type | ( | void | ) |
Get the type of High-Speed Oscillator (HOSC).
This function retrieves the type of the High-Speed Oscillator currently being used. The returned value can indicate different HOSC configurations or features supported by the system.
| uint32_t sunxi_clk_get_peri1x_rate | ( | ) |
Get the clock rate of the PERI1X bus.
| void sunxi_clk_init | ( | void | ) |
Initialize the global clocks.
This function initializes the global clocks, including PLLs and clock dividers.
| void sunxi_clk_pre_init | ( | void | ) |
Initialize the necessary clocks for minsys boot up.
This function initializes the necessary clocks for minsys boot up clocks
|
extern |
Current frequency of the high-speed oscillator (HOSC) in MHz.