Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f7867cff
Commit
f7867cff
authored
Mar 16, 2020
by
Daniel Lezcano
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timers/drivers/timer-ti-dm' into timers/drivers/next
parents
05852445
02e6d546
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
82 deletions
+119
-82
drivers/clocksource/timer-ti-dm.c
drivers/clocksource/timer-ti-dm.c
+109
-74
drivers/pwm/pwm-omap-dmtimer.c
drivers/pwm/pwm-omap-dmtimer.c
+5
-3
include/clocksource/timer-ti-dm.h
include/clocksource/timer-ti-dm.h
+2
-2
include/linux/platform_data/dmtimer-omap.h
include/linux/platform_data/dmtimer-omap.h
+3
-3
No files found.
drivers/clocksource/timer-ti-dm.c
View file @
f7867cff
This diff is collapsed.
Click to expand it.
drivers/pwm/pwm-omap-dmtimer.c
View file @
f7867cff
...
...
@@ -183,7 +183,7 @@ static int pwm_omap_dmtimer_config(struct pwm_chip *chip,
if
(
timer_active
)
omap
->
pdata
->
stop
(
omap
->
dm_timer
);
omap
->
pdata
->
set_load
(
omap
->
dm_timer
,
true
,
load_value
);
omap
->
pdata
->
set_load
(
omap
->
dm_timer
,
load_value
);
omap
->
pdata
->
set_match
(
omap
->
dm_timer
,
true
,
match_value
);
dev_dbg
(
chip
->
dev
,
"load value: %#08x (%d), match value: %#08x (%d)
\n
"
,
...
...
@@ -192,7 +192,8 @@ static int pwm_omap_dmtimer_config(struct pwm_chip *chip,
omap
->
pdata
->
set_pwm
(
omap
->
dm_timer
,
pwm_get_polarity
(
pwm
)
==
PWM_POLARITY_INVERSED
,
true
,
PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE
);
PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE
,
true
);
/* If config was called while timer was running it must be reenabled. */
if
(
timer_active
)
...
...
@@ -222,7 +223,8 @@ static int pwm_omap_dmtimer_set_polarity(struct pwm_chip *chip,
omap
->
pdata
->
set_pwm
(
omap
->
dm_timer
,
polarity
==
PWM_POLARITY_INVERSED
,
true
,
PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE
);
PWM_OMAP_DMTIMER_TRIGGER_OVERFLOW_AND_COMPARE
,
true
);
mutex_unlock
(
&
omap
->
mutex
);
return
0
;
...
...
include/clocksource/timer-ti-dm.h
View file @
f7867cff
...
...
@@ -105,17 +105,17 @@ struct omap_dm_timer {
void
__iomem
*
pend
;
/* write pending */
void
__iomem
*
func_base
;
/* function register base */
atomic_t
enabled
;
unsigned
long
rate
;
unsigned
reserved
:
1
;
unsigned
posted
:
1
;
struct
timer_regs
context
;
int
(
*
get_context_loss_count
)(
struct
device
*
);
int
ctx_loss_count
;
int
revision
;
u32
capability
;
u32
errata
;
struct
platform_device
*
pdev
;
struct
list_head
node
;
struct
notifier_block
nb
;
};
int
omap_dm_timer_reserve_systimer
(
int
id
);
...
...
include/linux/platform_data/dmtimer-omap.h
View file @
f7867cff
...
...
@@ -30,12 +30,12 @@ struct omap_dm_timer_ops {
int
(
*
stop
)(
struct
omap_dm_timer
*
timer
);
int
(
*
set_source
)(
struct
omap_dm_timer
*
timer
,
int
source
);
int
(
*
set_load
)(
struct
omap_dm_timer
*
timer
,
int
autoreload
,
unsigned
int
value
);
int
(
*
set_load
)(
struct
omap_dm_timer
*
timer
,
unsigned
int
value
);
int
(
*
set_match
)(
struct
omap_dm_timer
*
timer
,
int
enable
,
unsigned
int
match
);
int
(
*
set_pwm
)(
struct
omap_dm_timer
*
timer
,
int
def_on
,
int
toggle
,
int
trigger
);
int
toggle
,
int
trigger
,
int
autoreload
);
int
(
*
get_pwm_status
)(
struct
omap_dm_timer
*
timer
);
int
(
*
set_prescaler
)(
struct
omap_dm_timer
*
timer
,
int
prescaler
);
unsigned
int
(
*
read_counter
)(
struct
omap_dm_timer
*
timer
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment