From e01cfc94759d8fdbfa5f751f298bbfd04db7f672 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Wed, 15 Nov 2017 15:47:54 -0700 Subject: amd/common: Define regions in AGESA cbmem In 6c747068 "amd/stoneyridge: Put AGESA heap into cbmem" the AGESA heap was moved completely into cbmem. This was a departure from the "late cbmem init" method of adding it late in post, then storing the S3 volatile data to the region. Remove the hardcoded base address that was missed in that commit. To prepare for S3 support, split the region into subregions for heap, AGESA's S3 volatile storage, and an MTRR save area. BUG=b:69614064 Change-Id: I06c137f56516f3a04091d1191cd657a0aa07320b Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/22720 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- .../amd/common/block/include/amdblocks/s3_resume.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/soc/amd/common/block/include/amdblocks/s3_resume.h (limited to 'src/soc/amd/common/block/include/amdblocks/s3_resume.h') diff --git a/src/soc/amd/common/block/include/amdblocks/s3_resume.h b/src/soc/amd/common/block/include/amdblocks/s3_resume.h new file mode 100644 index 0000000000..567b0a8c40 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/s3_resume.h @@ -0,0 +1,21 @@ +/* + * 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_S3_RESUME_H__ +#define __AMD_S3_RESUME_H__ + +#define S3_VOLATILE_SIZE 0x6000 + +#endif /* __AMD_S3_RESUME_H__ */ -- cgit v1.2.3