2 * OMAP4 CM1, CM2 module low-level functions
4 * Copyright (C) 2010 Nokia Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * These functions are intended to be used only by the cminst44xx.c file.
12 * XXX Perhaps we should just move them there and make them static.
15 #include <linux/kernel.h>
16 #include <linux/types.h>
17 #include <linux/errno.h>
18 #include <linux/err.h>
25 /* CM1 hardware module low-level functions */
27 /* Read a register in CM1 */
28 u32
omap4_cm1_read_inst_reg(s16 inst
, u16 reg
)
30 return readl_relaxed(cm_base
+ inst
+ reg
);
33 /* Write into a register in CM1 */
34 void omap4_cm1_write_inst_reg(u32 val
, s16 inst
, u16 reg
)
36 writel_relaxed(val
, cm_base
+ inst
+ reg
);
39 /* Read a register in CM2 */
40 u32
omap4_cm2_read_inst_reg(s16 inst
, u16 reg
)
42 return readl_relaxed(cm2_base
+ inst
+ reg
);
45 /* Write into a register in CM2 */
46 void omap4_cm2_write_inst_reg(u32 val
, s16 inst
, u16 reg
)
48 writel_relaxed(val
, cm2_base
+ inst
+ reg
);
This page took 0.051897 seconds and 5 git commands to generate.