summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-11-16 01:45:46 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2022-02-28 09:29:35 +0300
commitd36b683a0f4d9cd22aded61595b771c88203f3ab (patch)
tree719ca576392b936d4b87e1b625c050cd1b1722b8 /include
parentfea51613222edba814d33a21d9485463cf3988f3 (diff)
downloadu-boot-d36b683a0f4d9cd22aded61595b771c88203f3ab.tar.xz
board: sl28: print CPLD version on bootup
Most of the time it is very useful to have the version of the board management controller. Now that we have a driver, print it during startup. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/sl28cpld.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sl28cpld.h b/include/sl28cpld.h
index d116607cfb..9a7c6de31f 100644
--- a/include/sl28cpld.h
+++ b/include/sl28cpld.h
@@ -6,6 +6,8 @@
#ifndef __SL28CPLD_H
#define __SL28CPLD_H
+#define SL28CPLD_VERSION 0x03
+
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,