In the original AGESA headers, these tables are not defined as const. Cast them to void * so that they'll work with either version of the headers. BUG=b:64766233 TEST=Build in cros tree and upstream coreboot, with old headers and updated headers. Change-Id: I75387b57caf5a3c6c25655120aafd942254b5c73 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/22059 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
28 lines
870 B
C
28 lines
870 B
C
/*
|
|
* 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 <AGESA.h>
|
|
#include <BiosCallOuts.h>
|
|
#include <FchPlatform.h>
|
|
#include <soc/southbridge.h>
|
|
#include <stdlib.h>
|
|
|
|
extern const GPIO_CONTROL oem_kahlee_gpio[];
|
|
|
|
void platform_FchParams_reset(FCH_RESET_DATA_BLOCK *FchParams_reset)
|
|
{
|
|
FchParams_reset->EarlyOemGpioTable = (void *)oem_kahlee_gpio;
|
|
}
|