summaryrefslogtreecommitdiff
path: root/include/sl28cpld.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-02-25 18:06:24 +0530
committerPriyanka Jain <priyanka.jain@nxp.com>2022-02-28 11:59:35 +0530
commit42595eb7067c6c076e1c98213438be727f883fe2 (patch)
treed729731176951b2edf7f4fd17272dae38ccbc050 /include/sl28cpld.h
parenta900c7f8161b74fc66ec715e68e7244b53f04298 (diff)
misc: add sl28cpld base driver
Add a multi-function device driver which will probe its children and provides methods to access the device. Signed-off-by: Michael Walle <michael@walle.cc> [Rebased] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/sl28cpld.h')
-rw-r--r--include/sl28cpld.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sl28cpld.h b/include/sl28cpld.h
new file mode 100644
index 0000000000..d116607cfb
--- /dev/null
+++ b/include/sl28cpld.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2021 Michael Walle <michael@walle.cc>
+ */
+
+#ifndef __SL28CPLD_H
+#define __SL28CPLD_H
+
+int sl28cpld_read(struct udevice *dev, uint offset);
+int sl28cpld_write(struct udevice *dev, uint offset, uint8_t value);
+int sl28cpld_update(struct udevice *dev, uint offset, uint8_t clear,
+ uint8_t set);
+
+#endif