drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / arch / arm / mach-omap2 / prcm_mpu44xx.c
blob7236c50388a82a2d814bba6ae27902239e12792c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * OMAP4 PRCM_MPU module functions
5 * Copyright (C) 2009 Nokia Corporation
6 * Paul Walmsley
7 */
9 #include <linux/kernel.h>
10 #include <linux/types.h>
11 #include <linux/errno.h>
12 #include <linux/err.h>
13 #include <linux/io.h>
15 #include "iomap.h"
16 #include "common.h"
17 #include "prcm_mpu44xx.h"
18 #include "cm-regbits-44xx.h"
21 * prcm_mpu_base: the virtual address of the start of the PRCM_MPU IP
22 * block registers
24 struct omap_domain_base prcm_mpu_base;
26 /* PRCM_MPU low-level functions */
28 u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg)
30 return readl_relaxed(OMAP44XX_PRCM_MPU_REGADDR(inst, reg));
33 void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 reg)
35 writel_relaxed(val, OMAP44XX_PRCM_MPU_REGADDR(inst, reg));
38 /**
39 * omap2_set_globals_prcm_mpu - set the MPU PRCM base address (for early use)
40 * @prcm_mpu: PRCM_MPU base virtual address
42 * XXX Will be replaced when the PRM/CM drivers are completed.
44 void __init omap2_set_globals_prcm_mpu(void __iomem *prcm_mpu)
46 prcm_mpu_base.va = prcm_mpu;