![]() |
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 <mmc/sys-sdcard.h>#include <sys-clk.h>#include <sys-dram.h>#include <sys-i2c.h>#include <sys-rtc.h>#include <sys-sid.h>#include <sys-spi.h>#include <pmu/axp.h>#include <fdt_wrapper.h>#include <ff.h>#include <libfdt.h>#include <sys-sdhci.h>#include <uart.h>#include "spi_lcd.c"
Classes | |
| struct | atf_head |
| struct | ext_linux_data |
| struct | image_info_t |
| struct | image_header |
Macros | |
| #define | CONFIG_SPLASH_LOAD_ADDR (0x40080000) |
| #define | CONFIG_SPLASH_FILENAME "splash.bin" |
| #define | CONFIG_BL31_FILENAME "bl31.bin" |
| #define | CONFIG_BL31_LOAD_ADDR (0x48000000) |
| #define | CONFIG_DTB_LOAD_ADDR (0x40400000) |
| #define | CONFIG_DTBO_LOAD_ADDR (0x50400000) |
| #define | CONFIG_INITRD_LOAD_ADDR (0x43000000) |
| #define | CONFIG_KERNEL_LOAD_ADDR (0x40800000) |
| #define | CONFIG_SCP_FILENAME "scp.bin" |
| #define | CONFIG_SCP_LOAD_ADDR (0x48100000) |
| #define | CONFIG_EXTLINUX_FILENAME "extlinux/extlinux.conf" |
| #define | CONFIG_EXTLINUX_LOAD_ADDR (0x40020000) |
| #define | CONFIG_PLATFORM_MAGIC "\0RAW\xbe\xe9\0\0" |
| #define | CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define | CONFIG_HEAP_BASE (0x50800000) |
| #define | CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define | FILENAME_MAX_LEN 25 |
| #define | IH_COMP_NONE 0 /* No Compression Used */ |
| #define | IH_COMP_GZIP 1 /* gzip Compression Used */ |
| #define | IH_COMP_BZIP2 2 /* bzip2 Compression Used */ |
| #define | IH_MAGIC 0x56190527 /* mkimage magic for uinitrd */ |
| #define | IH_NMLEN 32 /* Image Name Length */ |
| #define | CHUNK_SIZE 0x160000 |
Typedefs | |
| typedef struct atf_head | atf_head_t |
| typedef struct ext_linux_data | ext_linux_data_t |
| typedef struct image_header | image_header_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_size (char *filename, BYTE *dest, uint32_t *file_size) |
| static int | fatfs_loadimage (char *filename, BYTE *dest) |
| static int | load_sdcard (image_info_t *image) |
| void | jmp_to_arm64 (uint32_t addr) |
| static char * | skip_spaces (char *str) |
| static char * | find_substring (char *source, const char *target) |
| static char * | copy_until_newline_or_end (char *source) |
| static void | parse_extlinux_data (char *config, ext_linux_data_t *data) |
| static int | fdt_pack_reg (const void *fdt, void *buf, uint64_t address, uint64_t size) |
| static int | update_pmu_ext_info_dtb (image_info_t *image) |
| static char | to_hex_char (uint8_t value) |
| static void | chip_sid_to_mac (uint32_t chip_sid[4], uint8_t mac_address[6]) |
| static char * | get_mac_address_from_sid (uint32_t chip_sid[4], char mac_address_str[18]) |
| static int | load_extlinux (image_info_t *image, uint32_t dram_size) |
| static int | abortboot_single_key (int bootdelay) |
| int | main (void) |
Variables | |
| sunxi_serial_t | uart_dbg |
| sunxi_i2c_t | i2c_pmu |
| sunxi_sdhci_t | sdhci0 |
| sunxi_sdhci_t | sdhci2 |
| uint32_t | dram_para [32] |
| char * | dram_para_name [32] |
| image_info_t | image |
| #define CHUNK_SIZE 0x160000 |
| #define CONFIG_BL31_FILENAME "bl31.bin" |
| #define CONFIG_BL31_LOAD_ADDR (0x48000000) |
| #define CONFIG_DTB_LOAD_ADDR (0x40400000) |
| #define CONFIG_DTBO_LOAD_ADDR (0x50400000) |
| #define CONFIG_EXTLINUX_FILENAME "extlinux/extlinux.conf" |
| #define CONFIG_EXTLINUX_LOAD_ADDR (0x40020000) |
| #define CONFIG_HEAP_BASE (0x50800000) |
| #define CONFIG_HEAP_SIZE (16 * 1024 * 1024) |
| #define CONFIG_INITRD_LOAD_ADDR (0x43000000) |
| #define CONFIG_KERNEL_LOAD_ADDR (0x40800000) |
| #define CONFIG_PLATFORM_MAGIC "\0RAW\xbe\xe9\0\0" |
| #define CONFIG_SCP_FILENAME "scp.bin" |
| #define CONFIG_SCP_LOAD_ADDR (0x48100000) |
| #define CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define CONFIG_SPLASH_FILENAME "splash.bin" |
| #define CONFIG_SPLASH_LOAD_ADDR (0x40080000) |
| #define FILENAME_MAX_LEN 25 |
| #define IH_COMP_BZIP2 2 /* bzip2 Compression Used */ |
| #define IH_COMP_GZIP 1 /* gzip Compression Used */ |
| #define IH_COMP_NONE 0 /* No Compression Used */ |
| #define IH_MAGIC 0x56190527 /* mkimage magic for uinitrd */ |
| #define IH_NMLEN 32 /* Image Name Length */ |
| typedef struct atf_head atf_head_t |
| typedef struct ext_linux_data ext_linux_data_t |
| typedef struct image_header image_header_t |
|
static |
|
static |
|
extern |
|
static |
|
static |
|
static |
|
extern |
| void jmp_to_arm64 | ( | uint32_t | addr | ) |
|
static |
|
static |
| int main | ( | void | ) |
|
static |
|
extern |
|
extern |
|
static |
|
extern |
|
inlinestatic |
|
static |
|
extern |
|
extern |
|
extern |
| image_info_t image |
|
extern |
|
extern |
|
extern |