-
Notifications
You must be signed in to change notification settings - Fork 8.4k
drivers: memc: Fix various APS6404 device driver issues #79513
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,6 +135,7 @@ | |
| return ret; | ||
| } | ||
|
|
||
| #if CONFIG_PM_DEVICE | ||
| static void acquire(const struct device *psram) | ||
| { | ||
| const struct memc_mspi_aps6404l_config *cfg = psram->config; | ||
|
|
@@ -154,6 +155,7 @@ | |
| } | ||
| } | ||
| } | ||
| #endif /* CONFIG_PM_DEVICE */ | ||
|
|
||
| static void release(const struct device *psram) | ||
| { | ||
|
|
@@ -341,28 +343,34 @@ | |
| } | ||
| data->dev_cfg = cfg->tar_dev_cfg; | ||
|
|
||
| #if CONFIG_MSPI_TIMING | ||
| if (mspi_timing_config(cfg->bus, &cfg->dev_id, cfg->timing_cfg_mask, | ||
| (void *)&cfg->tar_timing_cfg)) { | ||
| LOG_ERR("Failed to config mspi timing/%u", __LINE__); | ||
| return -EIO; | ||
| } | ||
| data->timing_cfg = cfg->tar_timing_cfg; | ||
| #endif /* CONFIG_MSPI_TIMING */ | ||
|
|
||
| #if CONFIG_MSPI_XIP | ||
|
||
| if (cfg->tar_xip_cfg.enable) { | ||
| if (mspi_xip_config(cfg->bus, &cfg->dev_id, &cfg->tar_xip_cfg)) { | ||
| LOG_ERR("Failed to enable XIP/%u", __LINE__); | ||
| return -EIO; | ||
| } | ||
| data->xip_cfg = cfg->tar_xip_cfg; | ||
| } | ||
| #endif /* CONFIG_MSPI_XIP */ | ||
|
|
||
| #if CONFIG_MSPI_SCRAMBLE | ||
| if (cfg->tar_scramble_cfg.enable) { | ||
| if (mspi_scramble_config(cfg->bus, &cfg->dev_id, &cfg->tar_scramble_cfg)) { | ||
| LOG_ERR("Failed to enable scrambling/%u", __LINE__); | ||
| return -EIO; | ||
| } | ||
| data->scramble_cfg = cfg->tar_scramble_cfg; | ||
| } | ||
| #endif /* MSPI_SCRAMBLE */ | ||
|
|
||
| release(psram); | ||
|
|
||
|
|
@@ -423,9 +431,10 @@ | |
| } | ||
| #define MSPI_TIMING_CONFIG_MASK(n) DT_INST_PROP(n, ambiq_timing_config_mask) | ||
| #else | ||
| #define MSPI_TIMING_CONFIG(n) | ||
| #define MSPI_TIMING_CONFIG_MASK(n) | ||
| #define MSPI_TIMING_CONFIG(n) {} | ||
| #define MSPI_TIMING_CONFIG_MASK(n) MSPI_TIMING_PARAM_DUMMY | ||
| #define MSPI_PORT(n) 0 | ||
| #endif | ||
|
Check notice on line 437 in drivers/memc/memc_mspi_aps6404l.c
|
||
|
|
||
| #define MEMC_MSPI_APS6404L(n) \ | ||
| static const struct memc_mspi_aps6404l_config \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.