summaryrefslogtreecommitdiff
path: root/src/soc/intel/fsp_broadwell_de/smbus-imc.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-19 18:50:20 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-21 06:43:29 +0000
commitf67c81fc7030e278cf3dbc906f9ba5e265d843f0 (patch)
treec89f4856690b80e8aa3c53a51ff2e4dfd553c84f /src/soc/intel/fsp_broadwell_de/smbus-imc.c
parent433471244b7313dde6bb07d58943bfd0d9957c59 (diff)
downloadcoreboot-f67c81fc7030e278cf3dbc906f9ba5e265d843f0.tar.xz
soc/intel/fsp_broadwell_de: Drop support
Relocatable ramstage, postcar stage and C_ENVIRONMENT_BOOTBLOCK are now mandatory features, which this platform lacks. Change-Id: I8b6502b0894f9e2b8b1334871d7b6cde65cba7d4 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36984 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/smbus-imc.c')
-rw-r--r--src/soc/intel/fsp_broadwell_de/smbus-imc.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/smbus-imc.c b/src/soc/intel/fsp_broadwell_de/smbus-imc.c
deleted file mode 100644
index 61dc080c50..0000000000
--- a/src/soc/intel/fsp_broadwell_de/smbus-imc.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2019 Facebook, 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 <stddef.h>
-#include <device/pci_def.h>
-#include <device/early_smbus.h>
-#include <intelblocks/imc.h>
-#include <soc/pci_devs.h>
-#include <spd.h>
-
-/* read word, return value on success */
-uint16_t smbus_read_word(u32 smbus_dev, u8 addr, u8 offset)
-{
- uint16_t res = 0;
-
- if (imc_smbus_spd_xfer(IMC_DEV, addr, offset, IMC_DEVICE_EEPROM, IMC_DATA_WORD,
- IMC_CONTROLLER_ID0, IMC_READ, &res)
- == 0) {
- return res;
- }
- return 0;
-}
-
-/* read byte, return value on success */
-uint8_t smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset)
-{
- uint16_t res = 0;
-
- if (imc_smbus_spd_xfer(IMC_DEV, addr, offset, IMC_DEVICE_EEPROM, IMC_DATA_BYTE,
- IMC_CONTROLLER_ID0, IMC_READ, &res)
- == 0) {
- return res;
- }
- return 0;
-}
-
-/* write byte, return 0 on success, -1 otherwise */
-uint8_t smbus_write_byte(u32 smbus_dev, u8 addr, u8 offset, u8 value)
-{
- if (imc_smbus_spd_xfer(IMC_DEV, addr, offset, IMC_DEVICE_WP_EEPROM, IMC_DATA_BYTE,
- IMC_CONTROLLER_ID0, IMC_WRITE, &value)
- == 0) {
- return 0;
- }
- return -1;
-}