aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-03-16 16:54:54 -0400
committerPaul Walmsley <paul@pwsan.com>2015-03-24 13:52:50 -0400
commitedec17863362e0106b9e6b2f83237c7bd535e346 (patch)
tree18700a55aae8c8b510bd3f495ec528cb4cbaf01e /arch/arm/mach-omap2
parent1ac964f4c527267c8380e6e3c70d31ca1d162f93 (diff)
ARM: DRA7: hwmod: Fix the hwmod class for GPTimer4
GPTimer 4 is a regular timer and not a secure timer, so fix the hwmod to use the correct hwmod class (even though there are no differences in the class definition itself). Signed-off-by: Suman Anna <s-anna@ti.com> [paul@pwsan.com: dropped dra7xx_timer_secure_hwmod_class and dra7xx_timer_secure_sysc to avoid compiler warnings] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_7xx_data.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
index d0f03e73add4..701234d8db1b 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -1763,21 +1763,6 @@ static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
1763 .sysc = &dra7xx_timer_1ms_sysc, 1763 .sysc = &dra7xx_timer_1ms_sysc,
1764}; 1764};
1765 1765
1766static struct omap_hwmod_class_sysconfig dra7xx_timer_secure_sysc = {
1767 .rev_offs = 0x0000,
1768 .sysc_offs = 0x0010,
1769 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1770 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1771 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1772 SIDLE_SMART_WKUP),
1773 .sysc_fields = &omap_hwmod_sysc_type2,
1774};
1775
1776static struct omap_hwmod_class dra7xx_timer_secure_hwmod_class = {
1777 .name = "timer",
1778 .sysc = &dra7xx_timer_secure_sysc,
1779};
1780
1781static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = { 1766static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
1782 .rev_offs = 0x0000, 1767 .rev_offs = 0x0000,
1783 .sysc_offs = 0x0010, 1768 .sysc_offs = 0x0010,
@@ -1841,7 +1826,7 @@ static struct omap_hwmod dra7xx_timer3_hwmod = {
1841/* timer4 */ 1826/* timer4 */
1842static struct omap_hwmod dra7xx_timer4_hwmod = { 1827static struct omap_hwmod dra7xx_timer4_hwmod = {
1843 .name = "timer4", 1828 .name = "timer4",
1844 .class = &dra7xx_timer_secure_hwmod_class, 1829 .class = &dra7xx_timer_hwmod_class,
1845 .clkdm_name = "l4per_clkdm", 1830 .clkdm_name = "l4per_clkdm",
1846 .main_clk = "timer4_gfclk_mux", 1831 .main_clk = "timer4_gfclk_mux",
1847 .prcm = { 1832 .prcm = {