diff options
author | Benoit Cousson <b-cousson@ti.com> | 2011-07-10 07:56:31 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-07-10 07:56:31 -0400 |
commit | eaac329dfa6d3a4025242bf34d33aa3cb9df9f9f (patch) | |
tree | 5a597dc464ed5c2ff8fa75533fe8b4aefaa8b7d8 /arch/arm/mach-omap2/prminst44xx.h | |
parent | 11b10341bd12c87a8409c69cdcd7ee898400842f (diff) |
OMAP4: hwmod: Replace RSTCTRL absolute address with offset macros
The RSTCTRL register was accessed using an absolute address.
The usage of hardcoded macros to calculate virtual address from physical
one should be avoided as much as possible.
The usage of an offset will allow future improvement like migration from
the current architecture code toward a module driver.
Update prm_xxx accessors, move definition to the proper header file and
update copyrights.
Change the s16 register offset parameter to u16.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: use '_prminst_' in function names that are part of the
prminst44xx.c file]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prminst44xx.h')
-rw-r--r-- | arch/arm/mach-omap2/prminst44xx.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/prminst44xx.h b/arch/arm/mach-omap2/prminst44xx.h index 02dd66ddda8b..c14ae294cd54 100644 --- a/arch/arm/mach-omap2/prminst44xx.h +++ b/arch/arm/mach-omap2/prminst44xx.h | |||
@@ -2,6 +2,7 @@ | |||
2 | * OMAP4 Power/Reset Management (PRM) function prototypes | 2 | * OMAP4 Power/Reset Management (PRM) function prototypes |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Nokia Corporation | 4 | * Copyright (C) 2010 Nokia Corporation |
5 | * Copyright (C) 2011 Texas Instruments, Inc. | ||
5 | * Paul Walmsley | 6 | * Paul Walmsley |
6 | * | 7 | * |
7 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
@@ -18,8 +19,15 @@ | |||
18 | extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx); | 19 | extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx); |
19 | extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx); | 20 | extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx); |
20 | extern u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, | 21 | extern u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, |
21 | s16 inst, s16 idx); | 22 | s16 inst, u16 idx); |
22 | 23 | ||
23 | extern void omap4_prm_global_warm_sw_reset(void); | 24 | extern void omap4_prm_global_warm_sw_reset(void); |
24 | 25 | ||
26 | extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, | ||
27 | u16 rstctrl_offs); | ||
28 | extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, | ||
29 | u16 rstctrl_offs); | ||
30 | extern int omap4_prminst_deassert_hardreset(u8 shift, u8 part, s16 inst, | ||
31 | u16 rstctrl_offs); | ||
32 | |||
25 | #endif | 33 | #endif |