From 8c7417dca8308eefc8a0d7c4769fcd9758cdcf2c Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Sat, 3 Feb 2018 21:43:38 +0100 Subject: [PATCH] clean up ramstage --- src/mainboard/nintendo/switch/Makefile.inc | 1 - src/mainboard/nintendo/switch/boardid.c | 39 ---------------------- src/mainboard/nintendo/switch/mainboard.c | 8 ----- 3 files changed, 48 deletions(-) delete mode 100644 src/mainboard/nintendo/switch/boardid.c diff --git a/src/mainboard/nintendo/switch/Makefile.inc b/src/mainboard/nintendo/switch/Makefile.inc index d609d7bdc1..1c62469f3f 100644 --- a/src/mainboard/nintendo/switch/Makefile.inc +++ b/src/mainboard/nintendo/switch/Makefile.inc @@ -36,7 +36,6 @@ romstage-y += romstage.c romstage-y += sdram_configs.c romstage-y += cbfs_switch.c -ramstage-y += boardid.c ramstage-y += mainboard.c ramstage-y += reset.c ramstage-y += pmic.c diff --git a/src/mainboard/nintendo/switch/boardid.c b/src/mainboard/nintendo/switch/boardid.c deleted file mode 100644 index 208a045443..0000000000 --- a/src/mainboard/nintendo/switch/boardid.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2015 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include -#include -#include -#include - -#include "gpio.h" - -uint32_t board_id(void) -{ - static int id = -1; - - if (id < 0) { - gpio_t gpio[] = {[1] = BD_ID1, [0] = BD_ID0}; /* ID0 is LSB */ - - id = gpio_base3_value(gpio, ARRAY_SIZE(gpio)); - } - - return id; -} - -uint32_t ram_code(void) -{ - return sdram_get_ram_code(); -} diff --git a/src/mainboard/nintendo/switch/mainboard.c b/src/mainboard/nintendo/switch/mainboard.c index 644fb9bab5..1d231c3f7d 100644 --- a/src/mainboard/nintendo/switch/mainboard.c +++ b/src/mainboard/nintendo/switch/mainboard.c @@ -218,11 +218,3 @@ struct chip_operations mainboard_ops = { .name = "switch", .enable_dev = mainboard_enable, }; - -void lb_board(struct lb_header *header) -{ -#if IS_ENABLED(CONFIG_CHROMEOS) - lb_table_add_serialno_from_vpd(header); -#endif - soc_add_mtc(header); -}