forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: OMAP4+: CM: Move function prototypes to common header for re-use
OMAP5 reuses OMAP4 CM IP block which lets us re-use CM1/CM2 functions. So move the function prototypes from cm1_44xx.h, cm2_44xx.h to cm_prm44xx_54xx.h header. The suggestion came from Paul Walmsley as part of the OMAP5 data file review. This is preparatory patch to add OMAP5 CM data file. Cc: Paul Walmsley <[email protected]> Acked-by: Rajendra Nayak <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
- Loading branch information
Santosh Shilimkar
authored and
Paul Walmsley
committed
Jun 8, 2013
1 parent
42e872a
commit 19fa20d
Showing
3 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* OMAP44xx and OMAP54xx CM1/CM2 function prototypes | ||
* | ||
* Copyright (C) 2009-2013 Texas Instruments, Inc. | ||
* Copyright (C) 2009-2010 Nokia Corporation | ||
* | ||
* Paul Walmsley ([email protected]) | ||
* Rajendra Nayak ([email protected]) | ||
* Benoit Cousson ([email protected]) | ||
* | ||
* This file is automatically generated from the OMAP hardware databases. | ||
* We respectfully ask that any modifications to this file be coordinated | ||
* with the public [email protected] mailing list and the | ||
* authors above to ensure that the autogeneration scripts are kept | ||
* up-to-date with the file contents. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
*/ | ||
|
||
#ifndef __ARCH_ARM_MACH_OMAP2_CM_44XX_54XX_H | ||
#define __ARCH_ARM_MACH_OMAP2_CM_44XX_55XX_H | ||
|
||
/* CM1 Function prototypes */ | ||
extern u32 omap4_cm1_read_inst_reg(s16 inst, u16 idx); | ||
extern void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 idx); | ||
extern u32 omap4_cm1_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx); | ||
|
||
/* CM2 Function prototypes */ | ||
extern u32 omap4_cm2_read_inst_reg(s16 inst, u16 idx); | ||
extern void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 idx); | ||
extern u32 omap4_cm2_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx); | ||
|
||
#endif |