aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/domain
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-04-13 00:42:50 +0200
committerStefano Babic <sbabic@denx.de>2022-04-21 12:44:23 +0200
commit19842b6a20f3205c40f868f9d0a787f7ed5c9f18 (patch)
treeab608559e9dc9c523a123cba38ef882cd6ebb73a /drivers/power/domain
parent8741d9275626dc2fdea725b6c5bdcd824c03a526 (diff)
downloadu-boot-19842b6a20f3205c40f868f9d0a787f7ed5c9f18.zip
u-boot-19842b6a20f3205c40f868f9d0a787f7ed5c9f18.tar.gz
u-boot-19842b6a20f3205c40f868f9d0a787f7ed5c9f18.tar.bz2
imx: power-domain: Inline arch-imx8m/power-domain.h
The arch/arm/include/asm/arch-imx8m/power-domain.h is not included anywhere except in drivers/power/domain/imx8m-power-domain.c, just inline the content and drop the header. No functional change. Tested-By: Tim Harvey <tharvey@gateworks.com> #imx8mp-venice-defconfig Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/power/domain')
-rw-r--r--drivers/power/domain/imx8m-power-domain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index ac7411f..c32dbcc 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -9,7 +9,6 @@
#include <power-domain-uclass.h>
#include <asm/global_data.h>
#include <asm/io.h>
-#include <asm/arch/power-domain.h>
#include <asm/mach-imx/sys_proto.h>
#include <dm/device-internal.h>
#include <dm/device.h>
@@ -18,6 +17,12 @@
DECLARE_GLOBAL_DATA_PTR;
+struct imx8m_power_domain_plat {
+ int resource_id;
+ int has_pd;
+ struct power_domain pd;
+};
+
static int imx8m_power_domain_on(struct power_domain *power_domain)
{
struct udevice *dev = power_domain->dev;