Hi Kevin,
Both the existing functions and the new functions all do basically the same thing: - read base + offset - set/clear bit(s) based on GPIO# - write base + offset
Davinci doesn't really do a read-modify-write. Instead, it sets bits into set_data/clr_data registers to indirectly manipulate out_data contents. On the other hand, the tnetv107x controller follows a read-modify-write as you've outlined.
This poses a bit of a problem is structuring a common table containing register offsets and bitmasks. Is there a problem with writing to the out_data register instead of set/clr_data?
Regards Cyril. _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source