aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2021-08-07 16:01:10 +0800
committerStefano Babic <sbabic@denx.de>2021-08-09 14:46:51 +0200
commit3e2379418122555779e771e9289e744476974f9c (patch)
tree33b40e92d9f95702bdf95cc1bd09b706ac552aab /arch/arm/include
parent4b9423e6f2f7904fe9465d0a3706740c07d9390a (diff)
downloadu-boot-3e2379418122555779e771e9289e744476974f9c.zip
u-boot-3e2379418122555779e771e9289e744476974f9c.tar.gz
u-boot-3e2379418122555779e771e9289e744476974f9c.tar.bz2
imx8ulp: add upower api support
Add upower api support, this is modified from upower firmware exported package. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-imx8ulp/upower.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-imx8ulp/upower.h b/arch/arm/include/asm/arch-imx8ulp/upower.h
new file mode 100644
index 0000000..0f1875b
--- /dev/null
+++ b/arch/arm/include/asm/arch-imx8ulp/upower.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2021 NXP
+ */
+
+#ifndef __ASM_ARCH_IMX8ULP_UPOWER_H
+#define __ASM_ARCH_IMX8ULP_UPOWER_H
+
+#include <asm/types.h>
+
+int upower_init(void);
+int upower_pmic_i2c_write(u32 reg_addr, u32 reg_val);
+int upower_pmic_i2c_read(u32 reg_addr, u32 *reg_val);
+
+#endif