aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/dimmSpd.c
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2017-11-16 10:01:08 -0700
committerMarc Jones <marc@marcjonesconsulting.com>2017-11-20 16:26:12 +0000
commitafd03d8a28df60a058e73e4f1f4e0e89f8373bd1 (patch)
tree7863473b08e75be776a864c7a55ec24cd1ad7676 /src/soc/amd/stoneyridge/dimmSpd.c
parentda6b1bc9e26df88e1c7b841f72307dd4997e09a5 (diff)
amd/stoneyridge: Fix SPD files and functions camel case
Remove ugly camel case in the soc/amd/common and Stoney Ridge SPD files and functions. Update the related mainboards. Also, remove a unreferenced function prototype, smbus_readSpd(). Change-Id: I51045b6621f0708d61a570acbdcb4e6522baa1ea Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/22483 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/dimmSpd.c')
-rw-r--r--src/soc/amd/stoneyridge/dimmSpd.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/soc/amd/stoneyridge/dimmSpd.c b/src/soc/amd/stoneyridge/dimmSpd.c
deleted file mode 100644
index 163779d95f..0000000000
--- a/src/soc/amd/stoneyridge/dimmSpd.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2015 - 2016 Advanced Micro Devices, 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 <agesawrapper.h>
-#include <device/pci_def.h>
-#include <device/device.h>
-#include <soc/pci_devs.h>
-#include <stdlib.h>
-#include "chip.h"
-#include <dimmSpd.h>
-
-AGESA_STATUS AmdMemoryReadSPD(UINT32 unused1, UINTN unused2,
- AGESA_READ_SPD_PARAMS *info)
-{
- uint8_t spdAddress;
- DEVTREE_CONST struct device *dev = dev_find_slot(0, DCT_DEVFN);
- DEVTREE_CONST struct soc_amd_stoneyridge_config *conf = dev->chip_info;
-
- if ((dev == 0) || (conf == 0))
- return AGESA_ERROR;
- if (info->SocketId >= ARRAY_SIZE(conf->spdAddrLookup))
- return AGESA_ERROR;
- if (info->MemChannelId >= ARRAY_SIZE(conf->spdAddrLookup[0]))
- return AGESA_ERROR;
- if (info->DimmId >= ARRAY_SIZE(conf->spdAddrLookup[0][0]))
- return AGESA_ERROR;
- spdAddress = conf->spdAddrLookup
- [info->SocketId][info->MemChannelId][info->DimmId];
- if (spdAddress == 0)
- return AGESA_ERROR;
- int err = sb_readSpd(spdAddress, (void *)info->Buffer, 128);
- if (err)
- return AGESA_ERROR;
- return AGESA_SUCCESS;
-}