Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * OMAP4 Power/Reset Management (PRM) function prototypes
0004  *
0005  * Copyright (C) 2010 Nokia Corporation
0006  * Copyright (C) 2011 Texas Instruments, Inc.
0007  * Paul Walmsley
0008  */
0009 #ifndef __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
0010 #define __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
0011 
0012 #define PRM_INSTANCE_UNKNOWN    -1
0013 extern s32 omap4_prmst_get_prm_dev_inst(void);
0014 void omap4_prminst_set_prm_dev_inst(s32 dev_inst);
0015 
0016 /*
0017  * In an ideal world, we would not export these low-level functions,
0018  * but this will probably take some time to fix properly
0019  */
0020 extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx);
0021 extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx);
0022 extern u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part,
0023                        s16 inst, u16 idx);
0024 
0025 extern void omap4_prminst_global_warm_sw_reset(void);
0026 
0027 extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst,
0028                            u16 rstctrl_offs);
0029 extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst,
0030                       u16 rstctrl_offs);
0031 int omap4_prminst_deassert_hardreset(u8 shift, u8 st_shift, u8 part,
0032                      s16 inst, u16 rstctrl_offs,
0033                      u16 rstst_offs);
0034 
0035 extern void omap_prm_base_init(void);
0036 
0037 #endif