summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2016-09-16 01:35:35 +0300
committerKevin Hilman <khilman@baylibre.com>2016-09-16 01:35:35 +0300
commit39f0d9803f393f3d78fc815736d024a8adc149a8 (patch)
tree4fd238ba20b377e5f042579f42098a9bf54a2277 /include/linux
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
parentdfdd7d4af6ebee027be7bf2636b2314937948da6 (diff)
downloadlinux-39f0d9803f393f3d78fc815736d024a8adc149a8.tar.xz
Merge tag 'amlogic-drivers-2' into v4.8/dt64-2
Amlogic driver updates for v4.9, 2nd round - media: update IR support for newer SoCs - firmware: add secure monitor driver - net: new stmmac glue driver - usb: udd DWC2 support for meson-gxbb - clocks: expose more clock IDs for use by DT - DT binding updates
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/firmware/meson/meson_sm.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h
new file mode 100644
index 000000000000..8e953c6f394a
--- /dev/null
+++ b/include/linux/firmware/meson/meson_sm.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2016 Endless Mobile, Inc.
+ * Author: Carlo Caione <carlo@endlessm.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _MESON_SM_FW_H_
+#define _MESON_SM_FW_H_
+
+enum {
+ SM_EFUSE_READ,
+ SM_EFUSE_WRITE,
+ SM_EFUSE_USER_MAX,
+};
+
+struct meson_sm_firmware;
+
+int meson_sm_call(unsigned int cmd_index, u32 *ret, u32 arg0, u32 arg1,
+ u32 arg2, u32 arg3, u32 arg4);
+int meson_sm_call_write(void *buffer, unsigned int b_size, unsigned int cmd_index,
+ u32 arg0, u32 arg1, u32 arg2, u32 arg3, u32 arg4);
+int meson_sm_call_read(void *buffer, unsigned int cmd_index, u32 arg0, u32 arg1,
+ u32 arg2, u32 arg3, u32 arg4);
+
+#endif /* _MESON_SM_FW_H_ */