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); Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de I think animal testing is a terrible idea; they get all nervous and give the wrong answers. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot