Marc Jones (marc@marcjonesconsulting.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18443
-gerrit
commit b0f0792a32e7226e0b633868c44814bbcefc1b77 Author: Marshall Dawson marshalldawson3rd@gmail.com Date: Tue Feb 14 17:18:45 2017 -0700
amd/gardenia: Add early_mainboard.c file
Add a file that can speed up the SPI interface to match the populated SPI flash. The board uses an MX25U6435F.
Original-Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com Original-Reviewed-by: Marc Jones marcj303@gmail.com (cherry picked from commit cfda0166302d2c89aa09d95df84b97eb49b1f4fd)
Change-Id: Ibbad1391fb128249a58caa9358ecb5e0ca6382aa Signed-off-by: Marc Jones marcj303@gmail.com --- src/mainboard/amd/gardenia/Makefile.inc | 3 +++ src/mainboard/amd/gardenia/early_mainboard.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+)
diff --git a/src/mainboard/amd/gardenia/Makefile.inc b/src/mainboard/amd/gardenia/Makefile.inc index 72cd042..43c5a04 100644 --- a/src/mainboard/amd/gardenia/Makefile.inc +++ b/src/mainboard/amd/gardenia/Makefile.inc @@ -19,3 +19,6 @@ romstage-y += OemCustomize.c ramstage-y += BiosCallOuts.c ramstage-y += OemCustomize.c ramstage-$(CONFIG_HUDSON_IMC_FWM) += fchec.c + +verstage-y += early_mainboard.c +romstage-y += early_mainboard.c diff --git a/src/mainboard/amd/gardenia/early_mainboard.c b/src/mainboard/amd/gardenia/early_mainboard.c new file mode 100644 index 0000000..e89484b --- /dev/null +++ b/src/mainboard/amd/gardenia/early_mainboard.c @@ -0,0 +1,28 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2017 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 <arch/io.h> +#include <device/pci_def.h> +#include <cpu/x86/msr.h> +#include <cpu/amd/pi/car.h> +#include <southbridge/amd/pi/hudson/hudson.h> + +void car_mainboard_pre_console_init(void) +{ + hudson_set_spi100(SPI_SPEED_33M, + SPI_SPEED_66M, SPI_SPEED_16M, SPI_SPEED_16M); + hudson_disable_4dw_burst(); + hudson_read_mode(SPI_READ_MODE_QUAD114); +}