![]() |
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 |
Functions | |
| static int | ns_to_t (dram_para_t *para, int nanoseconds) |
| static void | sid_read_ldoB_cal (dram_para_t *para) |
| static void | dram_voltage_set (dram_para_t *para) |
| static void | dram_enable_all_master (void) |
| static void | dram_disable_all_master (void) |
| static void | eye_delay_compensation (dram_para_t *para) |
| static void | mctl_set_timing_params (dram_para_t *para) |
| static int | ccu_set_pll_ddr_clk (int index, dram_para_t *para) |
| static void | mctl_sys_init (dram_para_t *para) |
| static void | mctl_com_init (dram_para_t *para) |
| static void | mctl_phy_ac_remapping (dram_para_t *para) |
| static unsigned int | mctl_channel_init (unsigned int ch_index, dram_para_t *para) |
| static unsigned int | calculate_rank_size (uint32_t regval) |
| static unsigned int | DRAMC_get_dram_size (void) |
| static int | dqs_gate_detect (dram_para_t *para) |
| static int | dramc_simple_wr_test (unsigned int mem_mb, int len) |
| static void | mctl_vrefzq_init (dram_para_t *para) |
| static int | mctl_core_init (dram_para_t *para) |
| static int | auto_scan_dram_size (dram_para_t *para) |
| static int | auto_scan_dram_rank_width (dram_para_t *para) |
| static int | auto_scan_dram_config (dram_para_t *para) |
| static int | init_DRAM (int type, dram_para_t *para) |
| uint32_t | sunxi_dram_init (void *para) |
| Initialize the DRAM. | |
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 |
|
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. |
|
static |