![]() |
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 <log.h>#include <mmu.h>#include <sys-clk.h>#include <sys-dram.h>#include <reg-dram.h>#include <pmu/axp.h>#include <common.h>
Functions | |
| int | init_DRAM (int type, void *buff) |
| void | __usdelay (unsigned long us) |
| void | csi_l2c_clear_invalid_all (void) |
| void | csi_l2c_clear_all (void) |
| int | set_ddr_voltage (unsigned int vol_val) |
| 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 | |
| static uint32_t | dram_size |
| void __usdelay | ( | unsigned long | us | ) |
| void csi_l2c_clear_all | ( | void | ) |
| void csi_l2c_clear_invalid_all | ( | void | ) |
|
extern |
| int set_ddr_voltage | ( | unsigned int | vol_val | ) |
| 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. |
| 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 |