coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
alternate_cbfs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_SAMSUNG_COMMON_INCLUDE_SOC_ALTERNATE_CBFS_H
4 #define SOC_SAMSUNG_COMMON_INCLUDE_SOC_ALTERNATE_CBFS_H
5 
6 /* These are pointers to function pointers. Double indirection! */
7 static void **const irom_sdmmc_read_blocks_ptr = (void **)0x02020030;
8 static void **const irom_msh_read_from_fifo_emmc_ptr = (void **)0x02020044;
9 static void **const irom_msh_end_boot_op_emmc_ptr = (void **)0x02020048;
10 static void **const irom_spi_sf_read_ptr = (void **)0x02020058;
11 static void **const irom_load_image_from_usb_ptr = (void **)0x02020070;
12 
13 #define SECONDARY_BASE_BOOT_USB 0xfeed0002
14 static u32 *const iram_secondary_base = (u32 *)0x02020018;
15 
16 /* Values pulled from U-Boot, I think the manual is wrong here (for SPI) */
17 #define OM_STAT_SDMMC 0x4
18 #define OM_STAT_EMMC 0x8
19 #define OM_STAT_SPI 0x14
20 #define OM_STAT_MASK 0x7f
21 
22 #endif /* SOC_SAMSUNG_COMMON_INCLUDE_SOC_ALTERNATE_CBFS_H */
static void **const irom_load_image_from_usb_ptr
static u32 *const iram_secondary_base
static void **const irom_msh_read_from_fifo_emmc_ptr
Definition: alternate_cbfs.h:8
static void **const irom_spi_sf_read_ptr
static void **const irom_sdmmc_read_blocks_ptr
Definition: alternate_cbfs.h:7
static void **const irom_msh_end_boot_op_emmc_ptr
Definition: alternate_cbfs.h:9
uint32_t u32
Definition: stdint.h:51