fix(rpi3): use correct define for GPIO reg_clr

Changed reg_clr to use the base address + RPI3_GPIO_GPCLR,
this corrects the reg_clr address.

Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com>
Signed-off-by: Abhi Singh <abhi.singh@arm.com>
Change-Id: I9ca50905efd4c640f143783c5a00676b246a2e26
This commit is contained in:
Abhi.Singh 2024-06-25 13:43:27 -05:00 committed by Abhi.Singh
parent 4b6e4e618e
commit 9876baf180

View file

@ -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: