/* SPDX-License-Identifier: GPL-2.0-only */ /* * OMAP2xxx/3xxx-common Power/Reset Management (PRM) register definitions * * Copyright (C) 2007-2009, 2011-2012 Texas Instruments, Inc. * Copyright (C) 2008-2010 Nokia Corporation * Paul Walmsley * * The PRM hardware modules on the OMAP2/3 are quite similar to each * other. The PRM on OMAP4 has a new register layout, and is handled * in a separate file.
*/ #ifndef __ARCH_ARM_MACH_OMAP2_PRM2XXX_3XXX_H #define __ARCH_ARM_MACH_OMAP2_PRM2XXX_3XXX_H
#include"prcm-common.h" #include"prm.h"
/* * Module specific PRM register offsets from PRM_BASE + domain offset * * Use prm_{read,write}_mod_reg() with these registers. * * With a few exceptions, these are the register names beginning with * {PM,RM}_* on both OMAP2/3 SoC families.. (The exceptions are the * IRQSTATUS and IRQENABLE bits.)
*/
/* Register offsets appearing on both OMAP2 and OMAP3 */
/* Read-modify-write a register in a PRM module. Caller must lock */ staticinline u32 omap2_prm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module,
s16 idx)
{
u32 v;
v = omap2_prm_read_mod_reg(module, idx);
v &= ~mask;
v |= bits;
omap2_prm_write_mod_reg(v, module, idx);
return v;
}
/* Read a PRM register, AND it, and shift the result down to bit 0 */ staticinline u32 omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask)
{
u32 v;
v = omap2_prm_read_mod_reg(domain, idx);
v &= mask;
v >>= __ffs(mask);
/* * Bits common to specific registers * * The 3430 register and bit names are generally used, * since they tend to make more sense
*/
/* PM_EVGENONTIM_MPU */ /* Named PM_EVEGENONTIM_MPU on the 24XX */ #define OMAP_ONTIMEVAL_SHIFT 0 #define OMAP_ONTIMEVAL_MASK (0xffffffff << 0)
/* PM_EVGENOFFTIM_MPU */ /* Named PM_EVEGENOFFTIM_MPU on the 24XX */ #define OMAP_OFFTIMEVAL_SHIFT 0 #define OMAP_OFFTIMEVAL_MASK (0xffffffff << 0)
/* PRM_CLKSETUP and PRCM_VOLTSETUP */ /* Named PRCM_CLKSSETUP on the 24XX */ #define OMAP_SETUP_TIME_SHIFT 0 #define OMAP_SETUP_TIME_MASK (0xffff << 0)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.