soc/amd/common: Add amdblocks/spi.h

Add the spi header for spi function prototypes. Fixes spi.c build
error for the missing header.

Change-Id: I0dbb5bf84cc3462a7aa58a5531d6b8b8bc8ca4df
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/22793
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Marc Jones 2017-12-08 20:40:02 -07:00 committed by Martin Roth
parent 0c891d27df
commit 2464efbca6
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,23 @@
/*
* 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.
*/
#ifndef __AMD_SPI_H__
#define __AMD_SPI_H__
#include <stdint.h>
void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len);
#endif /* __AMD_SPI_H__ */

View File

@ -16,7 +16,7 @@
#include <console/console.h> #include <console/console.h>
#include <spi-generic.h> #include <spi-generic.h>
#include <spi_flash.h> #include <spi_flash.h>
#include "s3_resume.h" #include <amdblocks/spi.h>
void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len) void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len)
{ {