Skip to content

Commit

Permalink
s4muap arm: fix for compilation issue.
Browse files Browse the repository at this point in the history
Fixed the compilation issue of S4_MUAP driver
for arm 32-bit build.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
  • Loading branch information
pangupta authored and laurenpost committed Aug 3, 2021
1 parent e3cafb3 commit b57b822
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/firmware/imx/s400-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ static int s4_muap_ioctl_img_auth_cmd_handler(struct s4_mu_device_ctx *dev_ctx,
s = img->dst & ~(CACHELINE_SIZE - 1);
e = ALIGN(img->dst + img->size, CACHELINE_SIZE) - 1;

#ifdef CONFIG_ARM64
__flush_dcache_area((void *) s, e);
#else
__cpuc_flush_dcache_area((void *) s, e);
#endif
s400_muap_priv->tx_msg.header = (s400_muap_priv->cmd_tag << 24) |
(S400_VERIFY_IMAGE_REQ << 16) |
(S400_VERIFY_IMAGE_REQ_SIZE << 8) |
Expand Down

0 comments on commit b57b822

Please sign in to comment.