On Tue, Jul 17, 2012 at 5:02 AM, Dong Aisheng <[email protected]> wrote: > On Sun, Jul 15, 2012 at 04:43:03AM +0800, Linus Walleij wrote:
>> This whole issue appears in other systems so you're not alone >> on this, for example the ux500 PRCMU driver has exactly these >> properties. >> > So how does ux500 PRCMU handle this? First, this driver is in MFD which is the most apropriate place I can think of right now. Then we have accessor functions, but when we just want to read/write a register we have this API: u32 db8500_prcmu_read(unsigned int reg); void db8500_prcmu_write(unsigned int reg, u32 value); void db8500_prcmu_write_masked(unsigned int reg, u32 mask, u32 value); The third function is an oddity which performs read-modify-write on the other side (firmware). Yours, Linus Walleij _______________________________________________ devicetree-discuss mailing list [email protected] https://lists.ozlabs.org/listinfo/devicetree-discuss
