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

Alexander Graf agraf at suse.de
Wed Jan 17 22:00:54 UTC 2018



On 17.01.18 10:26, Amit Tomer wrote:
> 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 ?

Yeah, thanks for the suggestion!

Alex


More information about the U-Boot mailing list