From df8e304e24a94a22766c2c8a9b3de330d1048346 Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Thu, 3 Apr 2008 16:34:40 -0600 Subject: [PATCH] PRM/CM: Add new PRM/CM register bit manipulation functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed