![]() |
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 <sys-clk.h>#include <sys-dram.h>#include <common.h>
Macros | |
| #define | DIV_ROUND_UP(a, b) (((a) + (b) -1) / (b)) |
| #define | CONFIG_SYS_SDRAM_BASE SDRAM_BASE |
| #define | SUNXI_SID_BASE 0x3006200 |
Variables | |
| static const uint8_t | ac_remapping_tables [][22] |
| #define CONFIG_SYS_SDRAM_BASE SDRAM_BASE |
| #define DIV_ROUND_UP | ( | a, | |
| b | |||
| ) | (((a) + (b) -1) / (b)) |
| #define SUNXI_SID_BASE 0x3006200 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| 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.
|
static |