Skip to content

Commit

Permalink
drivers: ipm: fix build issue from DT macro conversion
Browse files Browse the repository at this point in the history
Since idc_read/idc_write are used outside of the driver we can't use the
DT_INST_... form (that utilize DT_DRV_COMPAT) of the macro's in
ipm_cavs_idc_priv.h.  Use DT_INST(0, intel_cavs_idc) explicitly in the
header to fix the build issue.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Mar 27, 2020
1 parent 090088d commit 9f6d957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ipm/ipm_cavs_idc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#ifndef ZEPHYR_DRIVERS_IPM_IPM_CAVS_IDC_PRIV_H_
#define ZEPHYR_DRIVERS_IPM_IPM_CAVS_IDC_PRIV_H_

#define IDC_REG_SIZE DT_INST_REG_SIZE(0)
#define IDC_REG_SIZE DT_REG_SIZE(DT_INST(0, intel_cavs_idc))
#define IDC_REG_BASE(x) \
(DT_INST_REG_ADDR(0) + x * IDC_REG_SIZE)
(DT_REG_ADDR(DT_INST(0, intel_cavs_idc)) + x * IDC_REG_SIZE)

#define IDC_CPU_OFFSET 0x10

Expand Down

0 comments on commit 9f6d957

Please sign in to comment.