Hi Wolfgang, On 15/06/11 22:51, Wolfgang Denk wrote: > Dear Graeme Russ, > > In message <4df8a8cf.5000...@gmail.com> you wrote: >> >> And to set the value then you have: >> >> reg &= ~a_mask; /* Clear a_val */ >> reg |= (a_val << a_shift) & a_mask; /* Set new a_val */ > > This could be done using > > clrsetbits_le32(®, a_mask, a_val << a_shift); >
Well the funny thing is, I find the former more obvious than the later ;) (but that's because I am not familiar with clrsetbits*) - But yes, 'I get it' Regards, Graeme _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot