diff options
author | Felix Singer <felixsinger@posteo.net> | 2023-02-08 23:31:17 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2023-02-16 23:02:17 +0000 |
commit | c013fa6234f08e22dd3706849936847cf82b5024 (patch) | |
tree | 769ae8bae8bb7a7464ecf17e32684355b53162ac /src/mainboard/scaleway/tagada/ramstage.c | |
parent | 28daa6b9ae09af8caadee5ff251e1a7d6cd721fb (diff) | |
download | coreboot-c013fa6234f08e22dd3706849936847cf82b5024.tar.gz coreboot-c013fa6234f08e22dd3706849936847cf82b5024.tar.bz2 coreboot-c013fa6234f08e22dd3706849936847cf82b5024.zip |
mb/scaleway/tagada: Drop support
According to the author of the mainboard scaleway/tagada, the mainboard
is not used anymore. Since the mainboard is not publicly available for
purchase and not used anywhere else, the usual deprecation process
of 6 months is not needed.
Thus, to reduce the maintenance overhead for the community, support for
the following components will be removed from the master branch and will
be maintained on the release 4.19 branch. Also, add a note to the 4.20
release notes.
* Mainboard Scaleway Tagada
Change-Id: Ifb83b8f2b1dc40cbef657e52c629948dc466ec6e
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72915
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/scaleway/tagada/ramstage.c')
-rw-r--r-- | src/mainboard/scaleway/tagada/ramstage.c | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/mainboard/scaleway/tagada/ramstage.c b/src/mainboard/scaleway/tagada/ramstage.c deleted file mode 100644 index bb0a385f7ea8..000000000000 --- a/src/mainboard/scaleway/tagada/ramstage.c +++ /dev/null @@ -1,87 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <string.h> -#include <fsp/api.h> -#include <soc/ramstage.h> -#include <smbios.h> -#include <spd.h> - -#include "bmcinfo.h" - -void mainboard_silicon_init_params(FSPS_UPD *params) -{ - /* Disable eMMC */ - params->FspsConfig.PcdEnableEmmc = 0; - - if (bmcinfo_disable_nic1()) - params->FspsConfig.PcdEnableGbE = 2; // disable lan 1 only -} - -/* Override smbios_mainboard_serial_number to retrieve it from BMC */ -const char *smbios_mainboard_serial_number(void) -{ - const char *bmc_serial = bmcinfo_serial(); - if (bmc_serial) - return bmc_serial; - return CONFIG_MAINBOARD_SERIAL_NUMBER; -} - -/* Override smbios_system_set_uuid */ -void smbios_system_set_uuid(u8 *uuid) -{ - const u8 *bmc_uuid = bmcinfo_uuid(); - if (bmc_uuid) - memcpy(uuid, bmc_uuid, 16); - /* leave all zero */ -} - -/* Override smbios_mainboard_version */ -const char *smbios_mainboard_version(void) -{ - const int hwRev = bmcinfo_hwrev(); - switch (hwRev) { - case 0: - return "Z0"; - case 1: - return "A0"; - case 2: - return "A1"; - } - return ""; -} - -/* Override smbios_mainboard_features_flags */ -u8 smbios_mainboard_feature_flags(void) -{ - return 0xc; -} - -/* Override smbios_mainboard_location_in_chassis */ -const char *smbios_mainboard_location_in_chassis(void) -{ - static char location[4] = "n/a"; - int slot = bmcinfo_slot(); - if (slot >= 0) - snprintf(location, 4, "N%d", slot); - return location; -} - -/* Override smbios_mainboard_board_type */ -smbios_board_type smbios_mainboard_board_type(void) -{ - return SMBIOS_BOARD_TYPE_SERVER_BLADE; -} - -smbios_enclosure_type smbios_mainboard_enclosure_type(void) -{ - return SMBIOS_ENCLOSURE_MULTI_SYSTEM_CHASSIS; -} - -/* Add any mainboard specific information for dimm */ -void mainboard_add_dimm_info( - struct memory_info *mem_info, - int channel, int dimm, int index) -{ - /* Mainboard only has DDR4 DIMM slots */ - mem_info->dimm[index].mod_type = DDR4_SPD_UDIMM; -} |