Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Santosh Shilimkar | 9920eca | 2013-05-29 12:38:01 -0400 | [diff] [blame] | 2 | /* |
| 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 Shilimkar | 9920eca | 2013-05-29 12:38:01 -0400 | [diff] [blame] | 17 | */ |
| 18 | |
| 19 | #ifndef __ARCH_ARM_MACH_OMAP2_PRM44XX_54XX_H |
| 20 | #define __ARCH_ARM_MACH_OMAP2_PRM44XX_54XX_H |
| 21 | |
Tero Kristo | ab7b2ff | 2014-11-20 15:02:59 +0200 | [diff] [blame] | 22 | #include "prcm-common.h" |
| 23 | |
Santosh Shilimkar | 9920eca | 2013-05-29 12:38:01 -0400 | [diff] [blame] | 24 | /* Function prototypes */ |
| 25 | #ifndef __ASSEMBLER__ |
| 26 | |
Santosh Shilimkar | 9920eca | 2013-05-29 12:38:01 -0400 | [diff] [blame] | 27 | /* |
| 28 | * OMAP4/OMAP5 access functions for voltage controller (VC) and |
| 29 | * voltage proccessor (VP) in the PRM. |
| 30 | */ |
| 31 | extern u32 omap4_prm_vcvp_read(u8 offset); |
| 32 | extern void omap4_prm_vcvp_write(u32 val, u8 offset); |
| 33 | extern u32 omap4_prm_vcvp_rmw(u32 mask, u32 bits, u8 offset); |
| 34 | |
Tero Kristo | ab7b2ff | 2014-11-20 15:02:59 +0200 | [diff] [blame] | 35 | int __init omap44xx_prm_init(const struct omap_prcm_init_data *data); |
Santosh Shilimkar | 9920eca | 2013-05-29 12:38:01 -0400 | [diff] [blame] | 36 | |
| 37 | #endif |
| 38 | |
| 39 | #endif |