[PATCH v3 03/13] OMAP4: hwmod: Replace CLKCTRL absolute address with offset macros

Paul Walmsley paul at pwsan.com
Thu Jul 7 04:25:23 EDT 2011


On Fri, 1 Jul 2011, Benoit Cousson wrote:

> The CLKCTRL register was accessed using an absolute address.
> The usage of hardcoded macros to calculate virtual address from physical
> one should be avoided as much as possible.
> The usage of a offset will allow future improvement like migration from
> the current architecture code toward a module driver.
> 
> Update cm_xxx accessor, move definition to the proper header file and
> update copyrights.
> 
> Signed-off-by: Benoit Cousson <b-cousson at ti.com>
> Cc: Paul Walmsley <paul at pwsan.com>
> Cc: Rajendra Nayak <rnayak at ti.com>

This patch was updated to use '_cminst_' in the function names that are in 
the cminst44xx.c file, rather than '_cm_', to preserve consistency with 
the rest of the file.  Updated patch below.


- Paul




More information about the linux-arm-kernel mailing list