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
Kirill Smelkov
linux
Commits
d22527fe
Commit
d22527fe
authored
Jul 21, 2016
by
Michael Turquette
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clk-fixes' into clk-next
parents
b328d2c1
f96423f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/clk/at91/clk-programmable.c
drivers/clk/at91/clk-programmable.c
+1
-1
drivers/clk/sunxi/clk-sun4i-display.c
drivers/clk/sunxi/clk-sun4i-display.c
+4
-1
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
+0
-4
No files found.
drivers/clk/at91/clk-programmable.c
View file @
d22527fe
...
...
@@ -99,7 +99,7 @@ static int clk_programmable_set_parent(struct clk_hw *hw, u8 index)
struct
clk_programmable
*
prog
=
to_clk_programmable
(
hw
);
const
struct
clk_programmable_layout
*
layout
=
prog
->
layout
;
unsigned
int
mask
=
layout
->
css_mask
;
unsigned
int
pckr
=
0
;
unsigned
int
pckr
=
index
;
if
(
layout
->
have_slck_mck
)
mask
|=
AT91_PMC_CSSMCK_MCK
;
...
...
drivers/clk/sunxi/clk-sun4i-display.c
View file @
d22527fe
...
...
@@ -33,6 +33,8 @@ struct sun4i_a10_display_clk_data {
u8
width_div
;
u8
width_mux
;
u32
flags
;
};
struct
reset_data
{
...
...
@@ -166,7 +168,7 @@ static void __init sun4i_a10_display_init(struct device_node *node,
data
->
has_div
?
&
div
->
hw
:
NULL
,
data
->
has_div
?
&
clk_divider_ops
:
NULL
,
&
gate
->
hw
,
&
clk_gate_ops
,
0
);
data
->
flags
);
if
(
IS_ERR
(
clk
))
{
pr_err
(
"%s: Couldn't register the clock
\n
"
,
clk_name
);
goto
free_div
;
...
...
@@ -232,6 +234,7 @@ static const struct sun4i_a10_display_clk_data sun4i_a10_tcon_ch0_data __initcon
.
offset_rst
=
29
,
.
offset_mux
=
24
,
.
width_mux
=
2
,
.
flags
=
CLK_SET_RATE_PARENT
,
};
static
void
__init
sun4i_a10_tcon_ch0_setup
(
struct
device_node
*
node
)
...
...
drivers/clk/sunxi/clk-sun4i-tcon-ch1.c
View file @
d22527fe
...
...
@@ -79,15 +79,11 @@ static int tcon_ch1_is_enabled(struct clk_hw *hw)
static
u8
tcon_ch1_get_parent
(
struct
clk_hw
*
hw
)
{
struct
tcon_ch1_clk
*
tclk
=
hw_to_tclk
(
hw
);
int
num_parents
=
clk_hw_get_num_parents
(
hw
);
u32
reg
;
reg
=
readl
(
tclk
->
reg
)
>>
TCON_CH1_SCLK2_MUX_SHIFT
;
reg
&=
reg
>>
TCON_CH1_SCLK2_MUX_MASK
;
if
(
reg
>=
num_parents
)
return
-
EINVAL
;
return
reg
;
}
...
...
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