![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <config.h>#include <log.h>#include <timer.h>#include <common.h>#include <jmp.h>#include <mmu.h>#include <smalloc.h>#include <sstdlib.h>#include <string.h>#include <cli.h>#include <cli_shell.h>#include <cli_termesc.h>#include <sys-clk.h>#include <sys-dram.h>#include <sys-i2c.h>#include <sys-rtc.h>#include <sys-sdcard.h>#include <sys-sid.h>#include <sys-spi.h>#include <pmu/axp.h>#include <fdt_wrapper.h>#include <ff.h>#include <sys-sdhci.h>#include <uart.h>
Classes | |
| struct | atf_head |
| struct | image_info_t |
Macros | |
| #define | CONFIG_BL31_FILENAME "bl31.bin" |
| #define | CONFIG_BL31_LOAD_ADDR (0x48000000) |
| #define | CONFIG_DTB_FILENAME "sunxi.dtb" |
| #define | CONFIG_DTB_LOAD_ADDR (0x4a200000) |
| #define | CONFIG_KERNEL_FILENAME "Image" |
| #define | CONFIG_KERNEL_LOAD_ADDR (0x40080000) |
| #define | CONFIG_BL33_FILENAME "syter_bl33.bin" |
| #define | CONFIG_BL33_LOAD_ADDR (0x4a000000) |
| #define | CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define | CONFIG_DEFAULT_BOOTDELAY 0 |
| #define | CONFIG_HEAP_BASE (0x40800000) |
| #define | CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define | FILENAME_MAX_LEN 16 |
| #define | CHUNK_SIZE 0x20000 |
Typedefs | |
| typedef struct atf_head | atf_head_t |
Functions | |
| void | enable_sram_a3 () |
| void | rtc_set_vccio_det_spare () |
| void | set_rpio_power_mode (void) |
| void | sunxi_nsi_init () |
| void | gicr_set_waker (void) |
| static int | fatfs_loadimage (char *filename, BYTE *dest) |
| static int | load_sdcard (image_info_t *image) |
| void | jmp_to_arm64 (uint32_t addr) |
| static int | abortboot_single_key (int bootdelay) |
| msh_declare_command (boot) | |
| msh_define_help (boot, "boot to linux", "Usage: boot\n") | |
| int | cmd_boot (int argc, const char **argv) |
| msh_declare_command (reload) | |
| msh_define_help (reload, "rescan TF Card and reload DTB", "Usage: reload\n") | |
| int | cmd_reload (int argc, const char **argv) |
| int | main (void) |
Variables | |
| sunxi_serial_t | uart_dbg |
| sunxi_i2c_t | i2c_pmu |
| sdhci_t | sdhci0 |
| uint32_t | dram_para [32] |
| image_info_t | image |
| const msh_command_entry | commands [] |
| #define CHUNK_SIZE 0x20000 |
| #define CONFIG_BL31_FILENAME "bl31.bin" |
| #define CONFIG_BL31_LOAD_ADDR (0x48000000) |
| #define CONFIG_BL33_FILENAME "syter_bl33.bin" |
| #define CONFIG_BL33_LOAD_ADDR (0x4a000000) |
| #define CONFIG_DEFAULT_BOOTDELAY 0 |
| #define CONFIG_DTB_FILENAME "sunxi.dtb" |
| #define CONFIG_DTB_LOAD_ADDR (0x4a200000) |
| #define CONFIG_HEAP_BASE (0x40800000) |
| #define CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define CONFIG_KERNEL_FILENAME "Image" |
| #define CONFIG_KERNEL_LOAD_ADDR (0x40080000) |
| #define CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define FILENAME_MAX_LEN 16 |
| typedef struct atf_head atf_head_t |
|
static |
| int cmd_boot | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_reload | ( | int | argc, |
| const char ** | argv | ||
| ) |
|
extern |
|
static |
|
extern |
| void jmp_to_arm64 | ( | uint32_t | addr | ) |
|
static |
| int main | ( | void | ) |
| msh_declare_command | ( | boot | ) |
| msh_declare_command | ( | reload | ) |
| msh_define_help | ( | boot | , |
| "boot to linux" | , | ||
| "Usage: boot\n" | |||
| ) |
| msh_define_help | ( | reload | , |
| "rescan TF Card and reload DTB" | , | ||
| "Usage: reload\n" | |||
| ) |
|
extern |
|
extern |
|
extern |
| const msh_command_entry commands[] |
|
extern |
|
extern |
| image_info_t image |
|
extern |
|
extern |