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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot