![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/sdram.h>
#include <soc/timer.h>
#include <soc/uart.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <symbols.h>
#include <libbdk-boot/bdk-boot.h>
#include <soc/ecam0.h>
#include <console/uart.h>
#include <libbdk-hal/bdk-pcie.h>
#include <device/pci.h>
#include <libbdk-hal/bdk-qlm.h>
#include <libbdk-hal/bdk-config.h>
#include <libbdk-arch/bdk-csrs-bgx.h>
#include <bootmem.h>
#include <soc/bl31_plat_params.h>
#include <cbfs.h>
#include <cbmem.h>
#include <fit.h>
Go to the source code of this file.
Functions | |
static void | dt_platform_fixup_phy (struct device_tree_node *node, char *path, int64_t phy_address, bdk_qlm_modes_t qlm_mode) |
static void | dt_iterate_phy (struct device_tree_node *parent, const char *name, char *path, int64_t phy_address, bdk_qlm_modes_t qlm_mode) |
static void | dt_platform_fixup_mac (struct device_tree_node *node) |
static void | dt_iterate_mac (struct device_tree_node *parent) |
static int | dt_platform_fixup (struct device_tree_fixup *fixup, struct device_tree *tree) |
void | bootmem_platform_add_ranges (void) |
static void | soc_read_resources (struct device *dev) |
static void | soc_init_atf (void) |
static void | soc_init (struct device *dev) |
static void | soc_final (struct device *dev) |
static void | enable_soc_dev (struct device *dev) |
Variables | |
static const char * | QLM_BGX_MODE_MAP [BDK_QLM_MODE_LAST] |
u8 | _sff8104 [] |
u8 | _esff8104 [] |
static struct device_operations | soc_ops |
struct chip_operations | soc_cavium_cn81xx_ops |
Definition at line 312 of file soc.c.
References _esff8104, _sff8104, BM_MEM_RESERVED, bootmem_add_range(), MiB, and sdram_size_mb().
|
static |
Definition at line 150 of file soc.c.
References device_tree_node::children, dt_platform_fixup_mac(), list_for_each, name, fdt_property::name, device_tree_property::prop, device_tree_node::properties, and strcmp().
Referenced by dt_platform_fixup().
|
static |
Definition at line 91 of file soc.c.
References device_tree_node::children, dt_platform_fixup_phy(), list_for_each, name, fdt_property::name, device_tree_property::prop, device_tree_node::properties, and strcmp().
Referenced by dt_platform_fixup().
|
static |
Definition at line 168 of file soc.c.
References addr, BIOS_ERR, BIOS_INFO, dt_add_bin_prop(), dt_add_u32_prop(), dt_find_bin_prop(), dt_find_node_by_path(), dt_iterate_mac(), dt_iterate_phy(), free(), device_tree_node::list_node, list_remove(), malloc(), NULL, PEM_PEMX_PF_BAR0, device_tree_node::phandle, printk, QLM_BGX_MODE_MAP, device_tree::root, SMMU_PF_BAR0, snprintf(), thunderx_get_io_clock(), UAAx_PF_BAR0, uart_is_enabled(), and uart_platform_refclk().
Referenced by soc_init().
|
static |
Definition at line 113 of file soc.c.
References BIOS_INFO, dt_add_bin_prop(), dt_find_bin_prop(), device_tree_node::list_node, list_remove(), name, device_tree_node::name, NULL, and printk.
Referenced by dt_iterate_mac().
|
static |
Definition at line 50 of file soc.c.
References BIOS_INFO, dt_delete_prop(), dt_find_bin_prop(), device_tree_node::list_node, list_remove(), device_tree_node::name, NULL, printk, strcmp(), strlen(), and strncmp().
Referenced by dt_iterate_phy().
Definition at line 386 of file soc.c.
References DEVICE_PATH_CPU_CLUSTER, DEVICE_PATH_DOMAIN, domain_path::domain, device_path::domain, device::ops, device::path, pci_domain_ops_ecam0, soc_ops, and device_path::type.
Definition at line 374 of file soc.c.
References watchdog_disable().
Definition at line 354 of file soc.c.
References CONFIG, device_tree_fixups, dt_platform_fixup(), device_tree_fixup::fixup, list_insert_after(), device_tree_fixup::list_node, malloc(), and soc_init_atf().
Definition at line 329 of file soc.c.
References _sff8104, cbfs_map(), cbmem_find(), CBMEM_ID_CBTABLE, cn81xx_register_bl31_param(), bl31_fdt_param::fdt_ptr, bl31_fdt_param::h, bl31_u64_param::h, memcpy(), PARAM_COREBOOT_TABLE, PARAM_FDT, bl31_plat_param::type, and bl31_u64_param::value.
Referenced by soc_init().
Definition at line 323 of file soc.c.
References KiB, ram_resource, and sdram_size_mb().
|
extern |
Referenced by bootmem_platform_add_ranges().
|
extern |
Referenced by bootmem_platform_add_ranges(), and soc_init_atf().
|
static |
Definition at line 32 of file soc.c.
Referenced by dt_platform_fixup().
struct chip_operations soc_cavium_cn81xx_ops |
|
static |
Definition at line 374 of file soc.c.
Referenced by enable_soc_dev().