drivers: ospi: hal: add HyperBus Initialization - #122
Open
GaneshRamani-AlifSemi wants to merge 1 commit into
Open
drivers: ospi: hal: add HyperBus Initialization#122GaneshRamani-AlifSemi wants to merge 1 commit into
GaneshRamani-AlifSemi wants to merge 1 commit into
Conversation
GaneshRamani-AlifSemi
requested review from
RupeshKumar-AlifSemi and
silesh-alifsemi
April 29, 2026 08:04
There was a problem hiding this comment.
Pull request overview
This PR updates the OSPI HyperBus XiP initialization API and expands the initialization sequence to program controller/XiP registers using a shared ospi_xip_config structure (including wait cycles and, on some SoCs, XiP CS selection).
Changes:
- Changes
ospi_hyperbus_xip_init()to takestruct ospi_xip_config *xip_cfginstead of discrete parameters. - Adds explicit
OSPI_CTRLR0programming for HyperBus XiP init and switches XiP wait-cycles sourcing toxip_cfg->xip_wait_cycles. - Enables XiP slave-select via
ospi_control_xip_ss()for specific SoC series usingxip_cfg->xip_cs_pin.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| drivers/ospi/src/ospi.c | Updates HyperBus XiP init implementation (controller register programming, wait cycles from config, conditional XiP SS control). |
| drivers/ospi/include/ospi.h | Updates the HyperBus XiP init API declaration and its parameter documentation to use ospi_xip_config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GaneshRamani-AlifSemi
force-pushed
the
hyperbus_init
branch
from
May 8, 2026 06:39
a34f5a2 to
174249c
Compare
Contributor
Author
|
copilots comments are reviewed and updated ! |
update api to enable hyperbus settings in OSPI controllor. Signed-off-by: Ganesh Kumar R <ganesh.ramani@alifsemi.com>
GaneshRamani-AlifSemi
force-pushed
the
hyperbus_init
branch
from
May 8, 2026 07:01
174249c to
8dce839
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update api to enable hyperbus settings in OSPI controllor.