omap: iommu: fix pte programming
authorSuman Anna <s-anna@ti.com>
Wed, 4 May 2011 22:45:37 +0000 (17:45 -0500)
committerOhad Ben-Cohen <ohad@wizery.com>
Mon, 4 Jul 2011 12:07:45 +0000 (15:07 +0300)
commit7e20b6f39aef541d890eba1fdf493f33b39d29e4
tree83874cac3d3bbe9b0e61ce513f7237ca37178bd9
parent61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf
omap: iommu: fix pte programming

Fix the pte programming to set the page attributes correctly
by replacing the bitwise check with an explicit values check.

Otherwise, 16MB entries will be erroneously programmed like
4KB entries, which is not what the hardware expects.

Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
arch/arm/mach-omap2/iommu2.c