| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | 2 | * OMAP Dual-Mode Timers |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 4 | + * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 5 | 5 | * Tarun Kanti DebBarma <tarun.kanti@ti.com> |
|---|
| 6 | 6 | * Thara Gopinath <thara@ti.com> |
|---|
| 7 | 7 | * |
|---|
| .. | .. |
|---|
| 74 | 74 | #define OMAP_TIMER_ERRATA_I103_I767 0x80000000 |
|---|
| 75 | 75 | |
|---|
| 76 | 76 | struct timer_regs { |
|---|
| 77 | + u32 ocp_cfg; |
|---|
| 77 | 78 | u32 tidr; |
|---|
| 78 | 79 | u32 tier; |
|---|
| 79 | 80 | u32 twer; |
|---|
| .. | .. |
|---|
| 105 | 106 | void __iomem *pend; /* write pending */ |
|---|
| 106 | 107 | void __iomem *func_base; /* function register base */ |
|---|
| 107 | 108 | |
|---|
| 109 | + atomic_t enabled; |
|---|
| 108 | 110 | unsigned long rate; |
|---|
| 109 | 111 | unsigned reserved:1; |
|---|
| 110 | 112 | unsigned posted:1; |
|---|
| 111 | 113 | struct timer_regs context; |
|---|
| 112 | | - int (*get_context_loss_count)(struct device *); |
|---|
| 113 | | - int ctx_loss_count; |
|---|
| 114 | 114 | int revision; |
|---|
| 115 | 115 | u32 capability; |
|---|
| 116 | 116 | u32 errata; |
|---|
| 117 | 117 | struct platform_device *pdev; |
|---|
| 118 | 118 | struct list_head node; |
|---|
| 119 | + struct notifier_block nb; |
|---|
| 119 | 120 | }; |
|---|
| 120 | 121 | |
|---|
| 121 | 122 | int omap_dm_timer_reserve_systimer(int id); |
|---|
| .. | .. |
|---|
| 248 | 249 | |
|---|
| 249 | 250 | /* |
|---|
| 250 | 251 | * 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. |
|---|
| 253 | 253 | */ |
|---|
| 254 | 254 | #if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2PLUS) |
|---|
| 255 | 255 | static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg, |
|---|