diff options
author | Alistair Popple <alistair@popple.id.au> | 2013-12-09 02:17:02 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-12-29 22:17:13 -0500 |
commit | 3a553170d35d69bea3877bffa508489dfa6f133d (patch) | |
tree | 9cb5b53ea4a60e10c9cfe2644f35a9fe4673d050 /arch/powerpc/platforms/pasemi | |
parent | e589a4404fa06730355de204d3d136ed9bbc7dea (diff) |
powerpc/iommu: Add it_page_shift field to determine iommu page size
This patch adds a it_page_shift field to struct iommu_table and
initiliases it to 4K for all platforms.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pasemi')
-rw-r--r-- | arch/powerpc/platforms/pasemi/iommu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pasemi/iommu.c b/arch/powerpc/platforms/pasemi/iommu.c index 7d2d036754b5..2e576f2ae442 100644 --- a/arch/powerpc/platforms/pasemi/iommu.c +++ b/arch/powerpc/platforms/pasemi/iommu.c | |||
@@ -138,8 +138,11 @@ static void iommu_table_iobmap_setup(void) | |||
138 | pr_debug(" -> %s\n", __func__); | 138 | pr_debug(" -> %s\n", __func__); |
139 | iommu_table_iobmap.it_busno = 0; | 139 | iommu_table_iobmap.it_busno = 0; |
140 | iommu_table_iobmap.it_offset = 0; | 140 | iommu_table_iobmap.it_offset = 0; |
141 | iommu_table_iobmap.it_page_shift = IOBMAP_PAGE_SHIFT; | ||
142 | |||
141 | /* it_size is in number of entries */ | 143 | /* it_size is in number of entries */ |
142 | iommu_table_iobmap.it_size = 0x80000000 >> IOBMAP_PAGE_SHIFT; | 144 | iommu_table_iobmap.it_size = |
145 | 0x80000000 >> iommu_table_iobmap.it_page_shift; | ||
143 | 146 | ||
144 | /* Initialize the common IOMMU code */ | 147 | /* Initialize the common IOMMU code */ |
145 | iommu_table_iobmap.it_base = (unsigned long)iob_l2_base; | 148 | iommu_table_iobmap.it_base = (unsigned long)iob_l2_base; |