![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <barrier.h>#include <io.h>#include <mmu.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <jmp.h>#include <log.h>#include <reg-ncat.h>#include <sys-dram.h>#include <sys-rtc.h>#include <pmu/axp.h>#include <pmu/reg/reg-axp2202.h>
Functions | |
| int | init_DRAM (int type, void *buff) |
| int | set_ddr_voltage (uint32_t vol_val) |
| void | get_vdd_sys_pmu_id (void) |
| int | set_vdd_sys_reg (int set_vol, int onoff) |
| uint8_t | get_vdd_sys_reg (void) |
| void | __usdelay (unsigned long us) |
| uint32_t | sunxi_get_dram_size () |
| Get the size of the DRAM (Dynamic Random Access Memory). | |
| uint32_t | sunxi_dram_init (void *para) |
| Initialize the DRAM. | |
Variables | |
| sunxi_i2c_t | i2c_pmu |
| static uint32_t | AXP2202_RUNTIME_ADDR = 0x0 |
| static uint32_t | dram_size |
| void __usdelay | ( | unsigned long | us | ) |
| void get_vdd_sys_pmu_id | ( | void | ) |
| uint8_t get_vdd_sys_reg | ( | void | ) |
|
extern |
| int set_ddr_voltage | ( | uint32_t | vol_val | ) |
| int set_vdd_sys_reg | ( | int | set_vol, |
| int | onoff | ||
| ) |
| uint32_t sunxi_dram_init | ( | void * | para | ) |
Initialize the DRAM.
This function initializes the DRAM with the specified parameters. The initialization process may involve configuration of memory controllers and other hardware settings. The user must provide a pointer to a structure containing the necessary initialization parameters.
| para | A pointer to a structure containing the parameters needed for the initialization process. |
Initialize the DRAM.
This function initializes the DRAM using the provided parameters encapsulated in the dram_para_t structure. It calls the init_DRAM function to perform the actual initialization and returns the result.
| para | A pointer to the dram_para_t structure that contains DRAM initialization parameters. The function casts this void pointer to a dram_para_t pointer. |
init_DRAM function call, which represents the size of the initialized DRAM in MB. A return value of 0 indicates failure. | uint32_t sunxi_get_dram_size | ( | ) |
Get the size of the DRAM (Dynamic Random Access Memory).
This function retrieves the total size of the DRAM available in the system. The size is returned in bytes.
|
static |
|
static |
|
extern |