[nrf fromtree] drivers: flash: nordic: Introduce nrf_mramc driver #11179
Annotations
1 error, 1 warning, and 6 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L0
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- #include <string.h>
-
- #include <zephyr/drivers/flash.h>
- #include <zephyr/logging/log.h>
- #include <nrfx_mramc.h>
- #if defined(CONFIG_SOC_FLASH_NRF_MRAMC_FLUSH_CACHE)
- #include <hal/nrf_cache.h>
- #endif
+#include <string.h>
+
+#include <zephyr/drivers/flash.h>
+#include <zephyr/logging/log.h>
+#include <nrfx_mramc.h>
+#if defined(CONFIG_SOC_FLASH_NRF_MRAMC_FLUSH_CACHE)
+#include <hal/nrf_cache.h>
+#endif
LOG_MODULE_REGISTER(flash_nrf_mramc, CONFIG_FLASH_LOG_LEVEL);
#define DT_DRV_COMPAT nordic_nrf_mramc
-#define _ADD_SIZE(node_id) + DT_REG_SIZE(node_id)
-#define _WBS(node_id) DT_PROP(node_id, write_block_size),
-#define _EBS(node_id) DT_PROP(node_id, erase_block_size),
+#define _ADD_SIZE(node_id) +DT_REG_SIZE(node_id)
+#define _WBS(node_id) DT_PROP(node_id, write_block_size),
+#define _EBS(node_id) DT_PROP(node_id, erase_block_size),
File:drivers/flash/soc_flash_nrf_mramc.c
Line:23
You may want to run clang-format on this change:
-#define WBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _WBS)
-#define EBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _EBS)
-
-#define _FIRST_HELPER(first, ...) first
-#define _FIRST(...) _FIRST_HELPER(__VA_ARGS__)
-
-#define WRITE_BLOCK_SIZE _FIRST(WBS_LIST)
-#define ERASE_BLOCK_SIZE _FIRST(EBS_LIST)
+#define WBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _WBS)
+#define EBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _EBS)
+
+#define _FIRST_HELPER(first, ...) first
+#define _FIRST(...) _FIRST_HELPER(__VA_ARGS__)
+
+#define WRITE_BLOCK_SIZE _FIRST(WBS_LIST)
+#define ERASE_BLOCK_SIZE _FIRST(EBS_LIST)
BUILD_ASSERT((ERASE_BLOCK_SIZE % WRITE_BLOCK_SIZE) == 0,
- "erase-block-size expected to be a multiple of write-block-size");
+ "erase-block-size expected to be a multiple of write-block-size");
File:drivers/flash/soc_flash_nrf_mramc.c
Line:42
You may want to run clang-format on this change:
-static int nrf_mramc_write(const struct device *dev, off_t offset,
- const void *data, size_t len)
+static int nrf_mramc_write(const struct device *dev, off_t offset, const void *data, size_t len)
File:drivers/flash/soc_flash_nrf_mramc.c
Line:95
You may want to run clang-format on this change:
- .caps = {
- .no_explicit_erase = true,
- },
+ .caps =
+ {
+ .no_explicit_erase = true,
+ },
File:drivers/flash/soc_flash_nrf_mramc.c
Line:173
You may want to run clang-format on this change:
- const struct flash_pages_layout **layout, size_t *layout_size)
+ const struct flash_pages_layout **layout, size_t *layout_size)
File:drivers/flash/soc_flash_nrf_mramc.c
Line:181
You may want to run clang-format on this change:
- &nrf_mram_api);
+ &nrf_mram_api);
File:drivers/flash/soc_flash_nrf_mramc.c
Line:222
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L222
drivers/flash/soc_flash_nrf_mramc.c:222
- &nrf_mram_api);
+ &nrf_mram_api);
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L181
drivers/flash/soc_flash_nrf_mramc.c:181
- const struct flash_pages_layout **layout, size_t *layout_size)
+ const struct flash_pages_layout **layout, size_t *layout_size)
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L173
drivers/flash/soc_flash_nrf_mramc.c:173
- .caps = {
- .no_explicit_erase = true,
- },
+ .caps =
+ {
+ .no_explicit_erase = true,
+ },
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L95
drivers/flash/soc_flash_nrf_mramc.c:95
-static int nrf_mramc_write(const struct device *dev, off_t offset,
- const void *data, size_t len)
+static int nrf_mramc_write(const struct device *dev, off_t offset, const void *data, size_t len)
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L42
drivers/flash/soc_flash_nrf_mramc.c:42
-#define WBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _WBS)
-#define EBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _EBS)
-
-#define _FIRST_HELPER(first, ...) first
-#define _FIRST(...) _FIRST_HELPER(__VA_ARGS__)
-
-#define WRITE_BLOCK_SIZE _FIRST(WBS_LIST)
-#define ERASE_BLOCK_SIZE _FIRST(EBS_LIST)
+#define WBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _WBS)
+#define EBS_LIST DT_INST_FOREACH_CHILD_STATUS_OKAY(0, _EBS)
+
+#define _FIRST_HELPER(first, ...) first
+#define _FIRST(...) _FIRST_HELPER(__VA_ARGS__)
+
+#define WRITE_BLOCK_SIZE _FIRST(WBS_LIST)
+#define ERASE_BLOCK_SIZE _FIRST(EBS_LIST)
BUILD_ASSERT((ERASE_BLOCK_SIZE % WRITE_BLOCK_SIZE) == 0,
- "erase-block-size expected to be a multiple of write-block-size");
+ "erase-block-size expected to be a multiple of write-block-size");
|
Run Compliance Tests:
drivers/flash/soc_flash_nrf_mramc.c#L23
drivers/flash/soc_flash_nrf_mramc.c:23
- #include <string.h>
-
- #include <zephyr/drivers/flash.h>
- #include <zephyr/logging/log.h>
- #include <nrfx_mramc.h>
- #if defined(CONFIG_SOC_FLASH_NRF_MRAMC_FLUSH_CACHE)
- #include <hal/nrf_cache.h>
- #endif
+#include <string.h>
+
+#include <zephyr/drivers/flash.h>
+#include <zephyr/logging/log.h>
+#include <nrfx_mramc.h>
+#if defined(CONFIG_SOC_FLASH_NRF_MRAMC_FLUSH_CACHE)
+#include <hal/nrf_cache.h>
+#endif
LOG_MODULE_REGISTER(flash_nrf_mramc, CONFIG_FLASH_LOG_LEVEL);
#define DT_DRV_COMPAT nordic_nrf_mramc
-#define _ADD_SIZE(node_id) + DT_REG_SIZE(node_id)
-#define _WBS(node_id) DT_PROP(node_id, write_block_size),
-#define _EBS(node_id) DT_PROP(node_id, erase_block_size),
+#define _ADD_SIZE(node_id) +DT_REG_SIZE(node_id)
+#define _WBS(node_id) DT_PROP(node_id, write_block_size),
+#define _EBS(node_id) DT_PROP(node_id, erase_block_size),
|
Loading