[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/44] Implement BCM2838 GPIO functionality
From: |
Peter Maydell |
Subject: |
Re: [PATCH 07/44] Implement BCM2838 GPIO functionality |
Date: |
Fri, 4 Aug 2023 13:21:10 +0100 |
On Wed, 26 Jul 2023 at 14:51, Sergey Kambalin <serg.oker@gmail.com> wrote:
>
> Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
> ---
> hw/gpio/bcm2838_gpio.c | 197 ++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 193 insertions(+), 4 deletions(-)
> static void bcm2838_gpio_reset(DeviceState *dev)
> {
> BCM2838GpioState *s = BCM2838_GPIO(dev);
>
> + int i;
> + for (i = 0; i < 6; i++) {
> + gpfsel_set(s, i, 0);
> + }
This is a rather inefficient way to do
memset(s->fsel, 0, sizeof(s->fsel));
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 07/44] Implement BCM2838 GPIO functionality,
Peter Maydell <=