]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/mach-omap2/prminst44xx.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / mach-omap2 / prminst44xx.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
2ace831f
PW
2/*
3 * OMAP4 Power/Reset Management (PRM) function prototypes
4 *
5 * Copyright (C) 2010 Nokia Corporation
eaac329d 6 * Copyright (C) 2011 Texas Instruments, Inc.
2ace831f 7 * Paul Walmsley
2ace831f
PW
8 */
9#ifndef __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
10#define __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
11
e3002d1a
NM
12#define PRM_INSTANCE_UNKNOWN -1
13extern s32 omap4_prmst_get_prm_dev_inst(void);
48e0c114 14void omap4_prminst_set_prm_dev_inst(s32 dev_inst);
e3002d1a 15
2ace831f
PW
16/*
17 * In an ideal world, we would not export these low-level functions,
18 * but this will probably take some time to fix properly
19 */
20extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx);
21extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx);
22extern u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part,
eaac329d 23 s16 inst, u16 idx);
2ace831f 24
e54433f1 25extern void omap4_prminst_global_warm_sw_reset(void);
2ace831f 26
eaac329d 27extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst,
e54433f1 28 u16 rstctrl_offs);
eaac329d 29extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst,
e54433f1 30 u16 rstctrl_offs);
37fb59d7
TK
31int omap4_prminst_deassert_hardreset(u8 shift, u8 st_shift, u8 part,
32 s16 inst, u16 rstctrl_offs,
33 u16 rstst_offs);
eaac329d 34
d9a16f9a
PW
35extern void omap_prm_base_init(void);
36
2ace831f 37#endif