[U-Boot] [PATCH 1/3] bcm2835_gpio: Add support for pinmux

Amit Tomer amittomer25 at gmail.com
Wed Jan 17 09:26:00 UTC 2018


Hi,

> +       val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]);
> +       val &= ~(BCM2835_GPIO_FSEL_MASK << BCM2835_GPIO_FSEL_SHIFT(gpio));
> +       val |= (func << BCM2835_GPIO_FSEL_SHIFT(gpio));
> +       writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]);

Can clrsetbits_le32 be used here ?

Thanks
-Amit


More information about the U-Boot mailing list