Skip to content

same70b: Add support for SMC for SAME70-series #148367

same70b: Add support for SMC for SAME70-series

same70b: Add support for SMC for SAME70-series #148367

Re-run triggered September 10, 2024 19:31
Status Success
Total duration 2m 37s
Artifacts 1

compliance.yml

on: pull_request
Run compliance checks on patch series (PR)
2m 25s
Run compliance checks on patch series (PR)
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 1 notice
Run compliance checks on patch series (PR)
Process completed with exit code 1.
Run compliance checks on patch series (PR): ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details. You may want to run clang-format on this change: -#define BUS_WIDTH(node_id) COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_bus_width), \ - (SMC_MODE_DBW_16_BIT), (0)) +#define BUS_WIDTH(node_id) \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_bus_width), (SMC_MODE_DBW_16_BIT), (0)) -#define BANK_CONFIG(node_id) \ - { \ - .cs = DT_REG_ADDR(node_id), \ - .mode = BUS_WIDTH(node_id) \ - | COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_write_mode), \ - (SMC_MODE_WRITE_MODE), (0)) \ - | COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_read_mode), \ - (SMC_MODE_READ_MODE), (0)), \ - .setup_timing = SETUP_TIMING(node_id), \ - .pulse_timing = PULSE_TIMING(node_id), \ - .cycle_timing = CYCLE_TIMING(node_id), \ +#define BANK_CONFIG(node_id) \ + { \ + .cs = DT_REG_ADDR(node_id), \ + .mode = BUS_WIDTH(node_id) | \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_write_mode), \ + (SMC_MODE_WRITE_MODE), (0)) | \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_read_mode), \ + (SMC_MODE_READ_MODE), (0)), \ + .setup_timing = SETUP_TIMING(node_id), \ + .pulse_timing = PULSE_TIMING(node_id), \ + .cycle_timing = CYCLE_TIMING(node_id), \ File:drivers/memc/memc_sam_smc.c Line:92
You may want to run clang-format on this change: drivers/memc/memc_sam_smc.c#L92
drivers/memc/memc_sam_smc.c:92 -#define BUS_WIDTH(node_id) COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_bus_width), \ - (SMC_MODE_DBW_16_BIT), (0)) +#define BUS_WIDTH(node_id) \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_bus_width), (SMC_MODE_DBW_16_BIT), (0)) -#define BANK_CONFIG(node_id) \ - { \ - .cs = DT_REG_ADDR(node_id), \ - .mode = BUS_WIDTH(node_id) \ - | COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_write_mode), \ - (SMC_MODE_WRITE_MODE), (0)) \ - | COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_read_mode), \ - (SMC_MODE_READ_MODE), (0)), \ - .setup_timing = SETUP_TIMING(node_id), \ - .pulse_timing = PULSE_TIMING(node_id), \ - .cycle_timing = CYCLE_TIMING(node_id), \ +#define BANK_CONFIG(node_id) \ + { \ + .cs = DT_REG_ADDR(node_id), \ + .mode = BUS_WIDTH(node_id) | \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_write_mode), \ + (SMC_MODE_WRITE_MODE), (0)) | \ + COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_read_mode), \ + (SMC_MODE_READ_MODE), (0)), \ + .setup_timing = SETUP_TIMING(node_id), \ + .pulse_timing = PULSE_TIMING(node_id), \ + .cycle_timing = CYCLE_TIMING(node_id), \

Artifacts

Produced during runtime
Name Size
compliance.xml
918 Bytes