summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOmar Ramirez Luna <omar.luna@linaro.org>2012-11-19 19:05:50 -0600
committerJoerg Roedel <joro@8bytes.org>2012-12-03 18:48:13 +0100
commit72b15b6ae97796c5fac687addde5dbfab872cf94 (patch)
treebe849a67c3b00a4bb0f4651901e0c37323e74c94 /include
parent87f8e57327bd8d85fb5b46cad29ac281430cc50d (diff)
downloadlinux-72b15b6ae97796c5fac687addde5dbfab872cf94.tar.gz
linux-72b15b6ae97796c5fac687addde5dbfab872cf94.tar.bz2
linux-72b15b6ae97796c5fac687addde5dbfab872cf94.zip
iommu/omap: Migrate to hwmod framework
Use hwmod data and device attributes to build and register an omap device for iommu driver. - Update the naming convention in isp module. - Remove unneeded check for number of resources, as this is now handled by omap_device and prevents driver from loading. - Now unused, remove platform device and resource data, handling of sysconfig register for softreset purposes, use default latency structure. - Use hwmod API for reset handling. Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org> Tested-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/iommu-omap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/platform_data/iommu-omap.h b/include/linux/platform_data/iommu-omap.h
index c677b9f2fefa..ef2060d7eeb8 100644
--- a/include/linux/platform_data/iommu-omap.h
+++ b/include/linux/platform_data/iommu-omap.h
@@ -10,6 +10,8 @@
* published by the Free Software Foundation.
*/
+#include <linux/platform_device.h>
+
#define MMU_REG_SIZE 256
/**
@@ -43,7 +45,11 @@ struct omap_mmu_dev_attr {
struct iommu_platform_data {
const char *name;
const char *clk_name;
- const int nr_tlb_entries;
+ const char *reset_name;
+ int nr_tlb_entries;
u32 da_start;
u32 da_end;
+
+ int (*assert_reset)(struct platform_device *pdev, const char *name);
+ int (*deassert_reset)(struct platform_device *pdev, const char *name);
};