summaryrefslogtreecommitdiffstats
path: root/src/southbridge/amd/agesa/hudson/ramtop.c
blob: eeb37809fccb4a623f475e6bd962fdadd0a942fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <stdint.h>
#include <arch/io.h>
#include <acpi/acpi.h>
#include "hudson.h"

int acpi_get_sleep_type(void)
{
	u16 tmp = inw(ACPI_PM1_CNT_BLK);
	tmp = ((tmp & (7 << 10)) >> 10);
	return (int)tmp;
}