aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/friendlyarm/nanopi2/onewire.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/friendlyarm/nanopi2/onewire.h')
-rw-r--r--roms/u-boot/board/friendlyarm/nanopi2/onewire.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/roms/u-boot/board/friendlyarm/nanopi2/onewire.h b/roms/u-boot/board/friendlyarm/nanopi2/onewire.h
new file mode 100644
index 000000000..9f6d7cfe5
--- /dev/null
+++ b/roms/u-boot/board/friendlyarm/nanopi2/onewire.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+
+ *
+ * Copyright (C) Guangzhou FriendlyARM Computer Tech. Co., Ltd.
+ * (http://www.friendlyarm.com)
+ */
+
+#ifndef __ONE_WIRE_H__
+#define __ONE_WIRE_H__
+
+extern void onewire_init(void);
+extern int onewire_get_info(unsigned char *lcd, unsigned short *fw_ver);
+extern int onewire_get_lcd_id(void);
+extern int onewire_set_backlight(int brightness);
+
+#endif /* __ONE_WIRE_H__ */