/* * The ENVM reset is the lowest bit in the register & I am using the CLK_FOO * defines in the dt to make things easier to configure - so this is accounting * for the offset of 3 there.
*/ #define MPFS_PERIPH_OFFSET CLK_ENVM #define MPFS_NUM_RESETS 30u #define MPFS_SLEEP_MIN_US 100 #define MPFS_SLEEP_MAX_US 200
/* block concurrent access to the soft reset register */ static DEFINE_SPINLOCK(mpfs_reset_lock);
/* * CLK_RESERVED does not map to a clock, but it does map to a reset, * so it has to be accounted for here. It is the reset for the fabric, * so if this reset gets called - do not reset it.
*/ if (index == CLK_RESERVED) {
dev_err(rcdev->dev, "Resetting the fabric is not supported\n"); return -EINVAL;
}
if (index < MPFS_PERIPH_OFFSET || index >= (MPFS_PERIPH_OFFSET + rcdev->nr_resets)) {
dev_err(rcdev->dev, "Invalid reset index %u\n", index); return -EINVAL;
}
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.