From 27d231e90c0d3d28d6a3b348a42091c094b47343 Mon Sep 17 00:00:00 2001 From: Patrik Jakobsson Date: Tue, 21 Jun 2016 01:14:15 +0200 Subject: [PATCH] fthd: Add S2_IOMMU_BASE_ADDR define Signed-off-by: Patrik Jakobsson --- fthd_buffer.c | 2 +- fthd_reg.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fthd_buffer.c b/fthd_buffer.c index bc8439b..c164c06 100644 --- a/fthd_buffer.c +++ b/fthd_buffer.c @@ -80,7 +80,7 @@ struct iommu_obj *iommu_allocate_sgtable(struct fthd_private *dev_priv, obj->offset = obj->base.start - root->start; obj->size = total_len; - pos = 0x9000 + obj->offset * 4; + pos = S2_IOMMU_BASE_ADDR + obj->offset * 4; for (i = 0; i < sgtable->nents; i++) { sg = sgtable->sgl + i; WARN_ON(sg->offset); diff --git a/fthd_reg.h b/fthd_reg.h index 6d26dc1..247e84d 100644 --- a/fthd_reg.h +++ b/fthd_reg.h @@ -172,6 +172,8 @@ static const u32 fthd_ddr_phy_reg_map[] = { #define S2_3204 0x3204 #define S2_3208 0x3208 +#define S2_IOMMU_BASE_ADDR 0x9000 + /* On iomem with pointer at 0x0ff0 (Bar 4: 1MB) */ #define ISP_FW_CHAN_CTRL 0xc3000 #define ISP_FW_QUEUE_CTRL 0xc3004