fthd: Add S2_IOMMU_BASE_ADDR define

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
Patrik Jakobsson
2016-06-21 01:14:15 +02:00
parent ecef74923f
commit 27d231e90c
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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