diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 12:14:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-02 12:14:38 -0700 |
| commit | 0b0fa57a2772be5bcef199ae5e769295afec0de5 (patch) | |
| tree | c4a2c9e40bc9da3cb315877e8ca37ab659500716 /arch/mips/rb532/gpio.c | |
| parent | 38904911e86495d4690f8d805720b90e65426c71 (diff) | |
| parent | 41022eff9c2d21e658c7a6fcd31005bf514d28b7 (diff) | |
| download | linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.tar.gz linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.tar.bz2 linux-0b0fa57a2772be5bcef199ae5e769295afec0de5.zip | |
Merge tag 'mips_5.18_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fixes from Thomas Bogendoerfer:
- build fix for gpio
- fix crc32 build problems
- check for failed memory allocations
* tag 'mips_5.18_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
MIPS: crypto: Fix CRC32 code
MIPS: rb532: move GPIOD definition into C-files
MIPS: lantiq: check the return value of kzalloc()
mips: sgi-ip22: add a check for the return of kzalloc()
Diffstat (limited to 'arch/mips/rb532/gpio.c')
| -rw-r--r-- | arch/mips/rb532/gpio.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index 94f02ada4082..29c21b9d42da 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c @@ -37,6 +37,16 @@ #include <asm/mach-rc32434/rb.h> #include <asm/mach-rc32434/gpio.h> +#define GPIOBASE 0x050000 +/* Offsets relative to GPIOBASE */ +#define GPIOFUNC 0x00 +#define GPIOCFG 0x04 +#define GPIOD 0x08 +#define GPIOILEVEL 0x0C +#define GPIOISTAT 0x10 +#define GPIONMIEN 0x14 +#define IMASK6 0x38 + struct rb532_gpio_chip { struct gpio_chip chip; void __iomem *regbase; |
