From: Paul Walmsley Date: Thu, 3 Apr 2008 22:34:40 +0000 (-0600) Subject: PRM/CM: Add new PRM/CM register bit manipulation functions X-Git-Tag: v2.6.25-omap1~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8e304e24a94a22766c2c8a9b3de330d1048346;p=pandora-kernel.git PRM/CM: Add new PRM/CM register bit manipulation functions This patch implements an idea from Igor Stoppa from last year. We use functions to modify PRM/CM register bits, rather than open-coding those operations. The patch provides functions that do read + AND + OR + write sequences on CM and PRM registers: {cm,prm}_rmw_reg_bits(), and {cm,prm}_rmw_mod_reg_bits(). Several convenience functions are then implemented on top of those functions for setting and clearing bits: {cm,prm}_{set,clear}_mod_reg_bits(). These functions don't provide any locking; it is expected that the caller will handle this. Thanks to Jouni Högander for catching some embarrassing errors in earlier versions of this code. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed