Browse Source

Merge "fix(rpi3): use correct define for GPIO reg_clr" into integration

pull/2005/merge
Manish V Badarkhe 2 months ago
committed by TrustedFirmware Code Review
parent
commit
a12ff0393c
  1. 3
      drivers/rpi3/gpio/rpi3_gpio.c

3
drivers/rpi3/gpio/rpi3_gpio.c

@ -1,6 +1,7 @@
/*
* Copyright (c) 2019, Linaro Limited
* Copyright (c) 2019, Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
* Copyright (c) 2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -120,7 +121,7 @@ static void rpi3_gpio_set_value(int gpio, int value)
int regN = gpio / 32;
int shift = gpio % 32;
uintptr_t reg_set = reg_base + RPI3_GPIO_GPSET(regN);
uintptr_t reg_clr = reg_base + RPI3_GPIO_GPSET(regN);
uintptr_t reg_clr = reg_base + RPI3_GPIO_GPCLR(regN);
switch (value) {
case GPIO_LEVEL_LOW:

Loading…
Cancel
Save