summaryrefslogtreecommitdiff
path: root/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
diff options
context:
space:
mode:
authorLars Povlsen <lars.povlsen@microchip.com>2018-12-20 09:56:03 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-01-16 13:56:43 +0100
commite58031acdc84bbd3c2d22fab4455a0f079f936a0 (patch)
tree0c0ac2192a58e8110e6e8a891edaf4cf03196d37 /arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
parent3098ade229af721c8b64b423e2e11f5896b45710 (diff)
mips: mscc: Add generic GPIO control utility function
The GPIO control function can be used for controlling alternate functions associated with a GPIO. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Diffstat (limited to 'arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h')
-rw-r--r--arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
index 8c0b612325..a06cf819b0 100644
--- a/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
+++ b/arch/mips/mach-mscc/include/mach/luton/luton_devcpu_gcb.h
@@ -11,4 +11,6 @@
#define PERF_SOFT_RST_SOFT_SWC_RST BIT(1)
#define PERF_SOFT_RST_SOFT_CHIP_RST BIT(0)
+#define GPIO_ALT(x) (0x88 + 4 * (x))
+
#endif