diff options
| author | Omar Ramirez Luna <omar.luna@linaro.org> | 2012-11-19 20:05:50 -0500 |
|---|---|---|
| committer | Joerg Roedel <joro@8bytes.org> | 2012-12-03 12:48:13 -0500 |
| commit | 72b15b6ae97796c5fac687addde5dbfab872cf94 (patch) | |
| tree | be849a67c3b00a4bb0f4651901e0c37323e74c94 /include/linux/platform_data | |
| parent | 87f8e57327bd8d85fb5b46cad29ac281430cc50d (diff) | |
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/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/iommu-omap.h | 8 |
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 c677b9f2fef..ef2060d7eeb 100644 --- a/include/linux/platform_data/iommu-omap.h +++ b/include/linux/platform_data/iommu-omap.h | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #include <linux/platform_device.h> | ||
| 14 | |||
| 13 | #define MMU_REG_SIZE 256 | 15 | #define MMU_REG_SIZE 256 |
| 14 | 16 | ||
| 15 | /** | 17 | /** |
| @@ -43,7 +45,11 @@ struct omap_mmu_dev_attr { | |||
| 43 | struct iommu_platform_data { | 45 | struct iommu_platform_data { |
| 44 | const char *name; | 46 | const char *name; |
| 45 | const char *clk_name; | 47 | const char *clk_name; |
| 46 | const int nr_tlb_entries; | 48 | const char *reset_name; |
| 49 | int nr_tlb_entries; | ||
| 47 | u32 da_start; | 50 | u32 da_start; |
| 48 | u32 da_end; | 51 | u32 da_end; |
| 52 | |||
| 53 | int (*assert_reset)(struct platform_device *pdev, const char *name); | ||
| 54 | int (*deassert_reset)(struct platform_device *pdev, const char *name); | ||
| 49 | }; | 55 | }; |
