blob: 0915a109260d11e32ac130121976f0acf3598595 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Santosh Shilimkar9920eca2013-05-29 12:38:01 -04002/*
3 * OMAP44xx and 54xx PRM common functions
4 *
5 * Copyright (C) 2009-2013 Texas Instruments, Inc.
6 * Copyright (C) 2009-2010 Nokia Corporation
7 *
8 * Paul Walmsley (paul@pwsan.com)
9 * Rajendra Nayak (rnayak@ti.com)
10 * Benoit Cousson (b-cousson@ti.com)
11 *
12 * This file is automatically generated from the OMAP hardware databases.
13 * We respectfully ask that any modifications to this file be coordinated
14 * with the public linux-omap@vger.kernel.org mailing list and the
15 * authors above to ensure that the autogeneration scripts are kept
16 * up-to-date with the file contents.
Santosh Shilimkar9920eca2013-05-29 12:38:01 -040017 */
18
19#ifndef __ARCH_ARM_MACH_OMAP2_PRM44XX_54XX_H
20#define __ARCH_ARM_MACH_OMAP2_PRM44XX_54XX_H
21
Tero Kristoab7b2ff2014-11-20 15:02:59 +020022#include "prcm-common.h"
23
Santosh Shilimkar9920eca2013-05-29 12:38:01 -040024/* Function prototypes */
25#ifndef __ASSEMBLER__
26
Santosh Shilimkar9920eca2013-05-29 12:38:01 -040027/*
28 * OMAP4/OMAP5 access functions for voltage controller (VC) and
29 * voltage proccessor (VP) in the PRM.
30 */
31extern u32 omap4_prm_vcvp_read(u8 offset);
32extern void omap4_prm_vcvp_write(u32 val, u8 offset);
33extern u32 omap4_prm_vcvp_rmw(u32 mask, u32 bits, u8 offset);
34
Tero Kristoab7b2ff2014-11-20 15:02:59 +020035int __init omap44xx_prm_init(const struct omap_prcm_init_data *data);
Santosh Shilimkar9920eca2013-05-29 12:38:01 -040036
37#endif
38
39#endif