Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mtb-dsl-pse8xxgp/pdl/drivers/source/cy_smif_memslot.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,20 @@ cy_en_smif_status_t Cy_SMIF_MemInit(SMIF_Type *base,

context->flags = memCfg->flags;

#ifdef CONFIG_TRUSTED_EXECUTION_SECURE

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we relying on a Zephyr provided Kconfig here? That seems like a small inverse dependence issue if so.

/* Before SFDP Enumeration, configure SMIF dedicated Clock and RWDS lines */
SMIF_CLK_HSIOM(base) = ((uint32_t)(HSIOM_SEL_ACT_15)) | (((uint32_t)HSIOM_SEL_ACT_15) << 8U);
SMIF_RWDS_HSIOM(base) = (uint32_t)HSIOM_SEL_ACT_15;
SMIF_CLK_DRIVEMODE(base) = CY_GPIO_DM_STRONG | (CY_GPIO_DM_STRONG << 4U);
SMIF_RWDS_DRIVEMODE(base) = CY_GPIO_DM_PULLDOWN;

/* DRIVE Strength kept as full for initial bring up.
In case of power consumption impact we have to optimize this setting */
In case of power consumption impact we have to optimize this setting */
SMIF_CLK_DRIVE_STRENGTH(base) = ((CY_GPIO_DRIVE_FULL) | (CY_GPIO_DRIVE_FULL << 8U));
SMIF_RWDS_DRIVE_STRENGTH(base) = CY_GPIO_DRIVE_FULL;
SMIF_DEVICE_IDX_RX_CAPTURE_CONFIG(base, idx) |= _VAL2FLD(SMIF_CORE_DEVICE_RX_CAPTURE_CONFIG_NEG_SDL_TAP_SEL, 1U);
SMIF_DEVICE_IDX_RX_CAPTURE_CONFIG(base, idx) |= _VAL2FLD(SMIF_CORE_DEVICE_RX_CAPTURE_CONFIG_POS_SDL_TAP_SEL, 1U);
#endif

/* SPI(deviceCfg) and Hyperbus(hbdeviceCfg) are mutually exclusive and if both are initialized, priority would be for SPI(deviceCfg) */
if(memCfg->deviceCfg != NULL)
Expand Down
Loading