ipq806x: Typecast address to void * in read/write operations
Typecast address to void* to accomodate address being passed as integers BUG=None BRANCH=None TEST=Compiled successfully Change-Id: Iceb51056c8a30a9a9dbd0594f75c23000faa6120 Reviewed-on: https://chromium-review.googlesource.com/194365 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
c3c573b6a2
commit
abf9b1e77b
1 changed files with 9 additions and 0 deletions
|
|
@ -37,6 +37,15 @@
|
|||
#define _PLATFORM_MSM8960_IOMAP_H_
|
||||
|
||||
#include <configs/ipq806x_cdp.h>
|
||||
|
||||
/* Typecast to allow integers being passed as address
|
||||
This needs to be included because vendor code is not compliant with our
|
||||
macros for read/write. Hence, special macros for readl_i and writel_i are
|
||||
included to do this in one place for all occurrences in vendor code
|
||||
*/
|
||||
#define readl_i(a) read32((const void *)(a))
|
||||
#define writel_i(v,a) write32(v,(void *)a)
|
||||
|
||||
#define MSM_CLK_CTL_BASE 0x00900000
|
||||
|
||||
#define MSM_TMR_BASE 0x0200A000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue