summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2023-10-05 05:02:31 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2023-10-14 11:41:09 +0300
commitd9c8965dbc394b46ab2440ef423a5e8c2872f6ed (patch)
tree16e1a0990921e1ca53102f3de60f478e8daf4900 /meta-ampere/meta-jade
parent2013739591dc50e6d01836d0017e7e5a02225709 (diff)
downloadopenbmc-d9c8965dbc394b46ab2440ef423a5e8c2872f6ed.tar.xz
meta-ampere: mtmitchell: use standard gpio commands
Change to use gpioset and gpioget to set value for output GPIOs and read value for input GPIOs. This commit also corrects GPIO base numbers which are changed in Linux kernel 6.5 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I802f9d777537ff28f94945006b6582b15523e3a8
Diffstat (limited to 'meta-ampere/meta-jade')
-rw-r--r--meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/gpio-defs.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/gpio-defs.sh b/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/gpio-defs.sh
index 2f2a4d6703..4414f79e9b 100644
--- a/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/gpio-defs.sh
+++ b/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/gpio-defs.sh
@@ -6,8 +6,7 @@ GPIO_CHIP0_IDX=0
GPIO_CHIP1_IDX=1
# Base of GPIO chip in /sys/class/gpio
-GPIO_CHIP0_BASE=792
-GPIO_CHIP1_BASE=780
+GPIO_CHIP0_BASE=512
### Power control configuration
# Power control gpios