Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo4p update asize isize #22

Open
wants to merge 2 commits into
base: ambiq-stable
Choose a base branch
from

Conversation

RichardSWheatley
Copy link
Member

Update some small features from last pull request for mspi

@RichardSWheatley RichardSWheatley self-assigned this Nov 27, 2024
@RichardSWheatley RichardSWheatley force-pushed the apollo4p-update-asize-isize branch 2 times, most recently from b5eb25d to b476ce5 Compare November 27, 2024 17:22
LOG_INST_ERR(cfg->log, "%u, failed to configure device.", __LINE__);
ret = -EHOSTDOWN;
goto e_return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}
data->dev_cfg.cmd_length = hal_dev_cfg.eInstrCfg + 1;
data->dev_cfg.addr_length = hal_dev_cfg.eAddrCfg + 1;

@@ -1047,6 +1063,20 @@ static int mspi_pio_prepare(const struct device *controller, am_hal_mspi_pio_tra

data->dev_cfg.addr_length = xfer->addr_length;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
data->dev_cfg.addr_length = xfer->addr_length;

if (ret) {
LOG_INST_ERR(cfg->log, "%u, failed to configure device.", __LINE__);
ret = -EHOSTDOWN;
}
Copy link
Member

Choose a reason for hiding this comment

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

Updates to data->hal_dev_cfg.eAddrCfg, data->hal_dev_cfg.eInstrCfg, data->dev_cfg.addr_length and data->dev_cfg.cmd_length should happen here. After hal function had returned successful.

@RichardSWheatley RichardSWheatley force-pushed the apollo4p-update-asize-isize branch from b476ce5 to 5de2a46 Compare December 12, 2024 19:00
This adds the separate config for ASIZE and ISIZE setting
ran clang format on driver

Signed-off-by: Richard Wheatley <[email protected]>
Combine the separate mspi memc in CMakeLists

Signed-off-by: Richard Wheatley <[email protected]>
@RichardSWheatley RichardSWheatley force-pushed the apollo4p-update-asize-isize branch from 5de2a46 to c2d78e6 Compare February 20, 2025 14:15
@RichardSWheatley RichardSWheatley added bug Something isn't working invalid This doesn't seem right and removed bug Something isn't working labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants