Loading arch/arm/mach-omap1/timer.c +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <linux/err.h> #include <linux/slab.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <mach/irqs.h> Loading arch/arm/mach-omap2/timer.c +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <asm/mach/time.h> #include <asm/smp_twd.h> Loading arch/arm/plat-omap/dmtimer.c +2 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,8 @@ #include <linux/pm_runtime.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <plat/dmtimer.h> Loading arch/arm/plat-omap/include/plat/dmtimer.h +0 −8 Original line number Diff line number Diff line Loading @@ -124,14 +124,6 @@ struct omap_dm_timer { struct list_head node; }; struct dmtimer_platform_data { /* set_timer_src - Only used for OMAP1 devices */ int (*set_timer_src)(struct platform_device *pdev, int source); u32 timer_errata; u32 timer_capability; int (*get_context_loss_count)(struct device *); }; int omap_dm_timer_reserve_systimer(int id); struct omap_dm_timer *omap_dm_timer_request(void); struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id); Loading include/linux/platform_data/dmtimer-omap.h 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * DMTIMER platform data for TI OMAP platforms * * Copyright (C) 2012 Texas Instruments * Author: Jon Hunter <jon-hunter@ti.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __PLATFORM_DATA_DMTIMER_OMAP_H__ #define __PLATFORM_DATA_DMTIMER_OMAP_H__ struct dmtimer_platform_data { /* set_timer_src - Only used for OMAP1 devices */ int (*set_timer_src)(struct platform_device *pdev, int source); u32 timer_capability; u32 timer_errata; int (*get_context_loss_count)(struct device *); }; #endif /* __PLATFORM_DATA_DMTIMER_OMAP_H__ */ Loading
arch/arm/mach-omap1/timer.c +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <linux/err.h> #include <linux/slab.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <mach/irqs.h> Loading
arch/arm/mach-omap2/timer.c +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <asm/mach/time.h> #include <asm/smp_twd.h> Loading
arch/arm/plat-omap/dmtimer.c +2 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,8 @@ #include <linux/pm_runtime.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/platform_data/dmtimer-omap.h> #include <plat/dmtimer.h> Loading
arch/arm/plat-omap/include/plat/dmtimer.h +0 −8 Original line number Diff line number Diff line Loading @@ -124,14 +124,6 @@ struct omap_dm_timer { struct list_head node; }; struct dmtimer_platform_data { /* set_timer_src - Only used for OMAP1 devices */ int (*set_timer_src)(struct platform_device *pdev, int source); u32 timer_errata; u32 timer_capability; int (*get_context_loss_count)(struct device *); }; int omap_dm_timer_reserve_systimer(int id); struct omap_dm_timer *omap_dm_timer_request(void); struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id); Loading
include/linux/platform_data/dmtimer-omap.h 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * DMTIMER platform data for TI OMAP platforms * * Copyright (C) 2012 Texas Instruments * Author: Jon Hunter <jon-hunter@ti.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __PLATFORM_DATA_DMTIMER_OMAP_H__ #define __PLATFORM_DATA_DMTIMER_OMAP_H__ struct dmtimer_platform_data { /* set_timer_src - Only used for OMAP1 devices */ int (*set_timer_src)(struct platform_device *pdev, int source); u32 timer_capability; u32 timer_errata; int (*get_context_loss_count)(struct device *); }; #endif /* __PLATFORM_DATA_DMTIMER_OMAP_H__ */