diff options
author | Binbin Zhou <[email protected]> | 2025-01-07 18:38:56 +0800 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2025-01-08 09:54:20 +0100 |
commit | e59f4c97172de0c302894cfd5616161c1f0c4d85 (patch) | |
tree | c327805a04a9a78ca86248fcf41eac3b80f6da38 | |
parent | 8bd76b3d3f3af7ac2898b6a27ad90c444fec418f (diff) |
gpio: loongson: Fix Loongson-2K2000 ACPI GPIO register offset
Since commit 3feb70a61740 ("gpio: loongson: add more gpio chip
support"), the Loongson-2K2000 GPIO is supported.
However, according to the firmware development specification, the
Loongson-2K2000 ACPI GPIO register offsets in the driver do not match
the register base addresses in the firmware, resulting in the registers
not being accessed properly.
Now, we fix it to ensure the GPIO function works properly.
Cc: [email protected]
Cc: Yinbo Zhu <[email protected]>
Fixes: 3feb70a61740 ("gpio: loongson: add more gpio chip support")
Co-developed-by: Hongliang Wang <[email protected]>
Signed-off-by: Hongliang Wang <[email protected]>
Signed-off-by: Binbin Zhou <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r-- | drivers/gpio/gpio-loongson-64bit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-loongson-64bit.c b/drivers/gpio/gpio-loongson-64bit.c index 6749d4dd6d64..7f4d78fd800e 100644 --- a/drivers/gpio/gpio-loongson-64bit.c +++ b/drivers/gpio/gpio-loongson-64bit.c @@ -237,9 +237,9 @@ static const struct loongson_gpio_chip_data loongson_gpio_ls2k2000_data1 = { static const struct loongson_gpio_chip_data loongson_gpio_ls2k2000_data2 = { .label = "ls2k2000_gpio", .mode = BIT_CTRL_MODE, - .conf_offset = 0x84, - .in_offset = 0x88, - .out_offset = 0x80, + .conf_offset = 0x4, + .in_offset = 0x8, + .out_offset = 0x0, }; static const struct loongson_gpio_chip_data loongson_gpio_ls3a5000_data = { |