hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/include/clocksource/timer-ti-dm.h
....@@ -1,7 +1,7 @@
11 /*
22 * OMAP Dual-Mode Timers
33 *
4
- * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
4
+ * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/
55 * Tarun Kanti DebBarma <tarun.kanti@ti.com>
66 * Thara Gopinath <thara@ti.com>
77 *
....@@ -74,6 +74,7 @@
7474 #define OMAP_TIMER_ERRATA_I103_I767 0x80000000
7575
7676 struct timer_regs {
77
+ u32 ocp_cfg;
7778 u32 tidr;
7879 u32 tier;
7980 u32 twer;
....@@ -105,17 +106,17 @@
105106 void __iomem *pend; /* write pending */
106107 void __iomem *func_base; /* function register base */
107108
109
+ atomic_t enabled;
108110 unsigned long rate;
109111 unsigned reserved:1;
110112 unsigned posted:1;
111113 struct timer_regs context;
112
- int (*get_context_loss_count)(struct device *);
113
- int ctx_loss_count;
114114 int revision;
115115 u32 capability;
116116 u32 errata;
117117 struct platform_device *pdev;
118118 struct list_head node;
119
+ struct notifier_block nb;
119120 };
120121
121122 int omap_dm_timer_reserve_systimer(int id);
....@@ -248,8 +249,7 @@
248249
249250 /*
250251 * The below are inlined to optimize code size for system timers. Other code
251
- * should not need these at all, see
252
- * include/linux/platform_data/pwm_omap_dmtimer.h
252
+ * should not need these at all.
253253 */
254254 #if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2PLUS)
255255 static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg,