blob: 6e15a254772a07c0ed6757cf5170bea788fd2182 [file] [log] [blame]
Frank Vibrans69da1b62011-02-14 19:04:45 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Paul Menzela46a7122013-02-23 18:37:27 +010017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Frank Vibrans69da1b62011-02-14 19:04:45 +000018 */
19
Frank Vibrans69da1b62011-02-14 19:04:45 +000020#ifndef _AGESAWRAPPER_H_
21#define _AGESAWRAPPER_H_
22
23#include <stdint.h>
24#include "Porting.h"
25#include "AGESA.h"
26
Frank Vibrans69da1b62011-02-14 19:04:45 +000027/* Define AMD Ontario APPU SSID/SVID */
28#define AMD_APU_SVID 0x1022
29#define AMD_APU_SSID 0x1234
30#define PCIE_BASE_ADDRESS CONFIG_MMCONF_BASE_ADDRESS
31
Frank Vibrans69da1b62011-02-14 19:04:45 +000032enum {
Kerry Shehf03360f2012-01-19 13:25:55 +080033 PICK_DMI, /* DMI Interface */
34 PICK_PSTATE, /* Acpi Pstate SSDT Table */
35 PICK_SRAT, /* SRAT Table */
36 PICK_SLIT, /* SLIT Table */
37 PICK_WHEA_MCE, /* WHEA MCE table */
38 PICK_WHEA_CMC, /* WHEA CMV table */
39 PICK_ALIB, /* SACPI SSDT table with ALIB implementation */
Frank Vibrans69da1b62011-02-14 19:04:45 +000040};
41
Frank Vibrans69da1b62011-02-14 19:04:45 +000042UINT32 agesawrapper_amdinitreset (void);
43UINT32 agesawrapper_amdinitearly (void);
44UINT32 agesawrapper_amdinitenv (void);
45UINT32 agesawrapper_amdinitlate (void);
46UINT32 agesawrapper_amdinitpost (void);
47UINT32 agesawrapper_amdinitmid (void);
Kerry Sheh01f7ab92012-01-19 13:18:36 +080048
Frank Vibrans69da1b62011-02-14 19:04:45 +000049UINT32 agesawrapper_amdreadeventlog (void);
Kerry Sheh01f7ab92012-01-19 13:18:36 +080050
51UINT32 agesawrapper_amdinitcpuio (void);
Frank Vibrans69da1b62011-02-14 19:04:45 +000052UINT32 agesawrapper_amdinitmmio (void);
Kerry Sheh01f7ab92012-01-19 13:18:36 +080053UINT32 agesawrapper_amdlaterunaptask (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
Frank Vibrans69da1b62011-02-14 19:04:45 +000054void *agesawrapper_getlateinitptr (int pick);
55
Kyösti Mälkki005028e2014-06-19 23:12:15 +030056static inline UINT32 agesawrapper_amdS3Save(void) { return 0; }
Frank Vibrans69da1b62011-02-14 19:04:45 +000057#endif