diff options
author | Lars Povlsen <lars.povlsen@microchip.com> | 2018-12-20 09:56:03 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2019-01-16 13:56:43 +0100 |
commit | e58031acdc84bbd3c2d22fab4455a0f079f936a0 (patch) | |
tree | 0c0ac2192a58e8110e6e8a891edaf4cf03196d37 /arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h | |
parent | 3098ade229af721c8b64b423e2e11f5896b45710 (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/ocelot/ocelot_devcpu_gcb.h')
-rw-r--r-- | arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h index f8aa97ba26..d3a76412e2 100644 --- a/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h +++ b/arch/mips/mach-mscc/include/mach/ocelot/ocelot_devcpu_gcb.h @@ -18,4 +18,6 @@ #define PERF_GPIO_OE 0x44 +#define GPIO_ALT(x) (0x54 + 4 * (x)) + #endif |