u-boot/arch
Eugeniy Paltsev fe3eb7a887 GPIO: CREG: improve flexibility of hsdk-creg-gpio driver
CREG GPIO is a driver for weird soc-specific output ports, which are
controlled by some fields in memory mapped register.

Example:

31                 9        7        5           0   < bit number
|                  |        |        |           |
[     not used     | gpio-1 | gpio-0 | <-shift-> ]   < 32 bit register
                       ^        ^
                       |        |
                write 0x2 == set output to "1" (activate)
                write 0x3 == set output to "0" (deactivate)

As of tooday we only support fixed (hardcoded) bit per gpio line,
activate / deactivatei and shift values. Fix that by read them from
device tree to be able to use this driver for other boards.

Remove "hsdk" prefix from compatible string as this driver can be
used with different boards like HSDK, AXS101, AXS103, etc.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-07-31 07:49:47 +03:00
..
arc GPIO: CREG: improve flexibility of hsdk-creg-gpio driver 2018-07-31 07:49:47 +03:00
arm Patch queue for efi - 2018-07-25 2018-07-30 16:02:29 -04:00
m68k m68k: m5253evbe: Remove this board 2018-07-23 14:33:21 -04:00
microblaze dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00
mips Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
nds32 nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit() 2018-05-15 21:44:05 -04:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
riscv efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00
sandbox Patch queue for efi - 2018-07-25 2018-07-30 16:02:29 -04:00
sh SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
x86 x86: Add efi_loader bits to x86_64 linker script 2018-07-25 14:57:44 +02:00
xtensa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00