mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
x86: sysreset: Move priv/plat structs to headers
With the new of-platdata, these need to be available to dt_platdata.c so must be in header files. Move them and add the dtd struct too. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
6563b205eb
commit
6a2350f8c9
18
arch/x86/include/asm/sysreset.h
Normal file
18
arch/x86/include/asm/sysreset.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
|
/*
|
||||||
|
* Copyright 2020 Google LLC
|
||||||
|
*/
|
||||||
|
#ifndef _X86_ASM_SYSRESET_H_
|
||||||
|
#define _X86_ASM_SYSRESET_H_
|
||||||
|
|
||||||
|
#include <dt-structs.h>
|
||||||
|
|
||||||
|
struct x86_sysreset_plat {
|
||||||
|
#if CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
|
struct dtd_x86_reset dtplat;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct udevice *pch;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* _X86_ASM_SYSRESET_H_ */
|
@ -13,10 +13,7 @@
|
|||||||
#include <acpi/acpi_s3.h>
|
#include <acpi/acpi_s3.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
#include <asm/sysreset.h>
|
||||||
struct x86_sysreset_plat {
|
|
||||||
struct udevice *pch;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Power down the machine by using the power management sleep control
|
* Power down the machine by using the power management sleep control
|
||||||
|
Loading…
x
Reference in New Issue
Block a user