mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00
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:
parent
4b6e4e618e
commit
9876baf180
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue