mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
fthd: Add S2_IOMMU_BASE_ADDR define
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user