mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ARM: OMAP4: CM: use cm_base* in register address calculations
OMAP44XX_CM*_REGADDR macros should be avoided, instead use the cm_base* iomaps. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
parent
7af1363742
commit
cdb445147a
@ -30,23 +30,23 @@
|
|||||||
/* Read a register in CM1 */
|
/* Read a register in CM1 */
|
||||||
u32 omap4_cm1_read_inst_reg(s16 inst, u16 reg)
|
u32 omap4_cm1_read_inst_reg(s16 inst, u16 reg)
|
||||||
{
|
{
|
||||||
return __raw_readl(OMAP44XX_CM1_REGADDR(inst, reg));
|
return __raw_readl(cm_base + inst + reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write into a register in CM1 */
|
/* Write into a register in CM1 */
|
||||||
void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 reg)
|
void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 reg)
|
||||||
{
|
{
|
||||||
__raw_writel(val, OMAP44XX_CM1_REGADDR(inst, reg));
|
__raw_writel(val, cm_base + inst + reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a register in CM2 */
|
/* Read a register in CM2 */
|
||||||
u32 omap4_cm2_read_inst_reg(s16 inst, u16 reg)
|
u32 omap4_cm2_read_inst_reg(s16 inst, u16 reg)
|
||||||
{
|
{
|
||||||
return __raw_readl(OMAP44XX_CM2_REGADDR(inst, reg));
|
return __raw_readl(cm2_base + inst + reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write into a register in CM2 */
|
/* Write into a register in CM2 */
|
||||||
void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 reg)
|
void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 reg)
|
||||||
{
|
{
|
||||||
__raw_writel(val, OMAP44XX_CM2_REGADDR(inst, reg));
|
__raw_writel(val, cm2_base + inst + reg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user