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
9b17e801
Commit
9b17e801
authored
Jan 11, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/sunxi' into spi-next
parents
174c2116
218e0b57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/spi/spi-sun4i.c
drivers/spi/spi-sun4i.c
+3
-3
No files found.
drivers/spi/spi-sun4i.c
View file @
9b17e801
...
@@ -140,6 +140,9 @@ static void sun4i_spi_set_cs(struct spi_device *spi, bool enable)
...
@@ -140,6 +140,9 @@ static void sun4i_spi_set_cs(struct spi_device *spi, bool enable)
reg
&=
~
SUN4I_CTL_CS_MASK
;
reg
&=
~
SUN4I_CTL_CS_MASK
;
reg
|=
SUN4I_CTL_CS
(
spi
->
chip_select
);
reg
|=
SUN4I_CTL_CS
(
spi
->
chip_select
);
/* We want to control the chip select manually */
reg
|=
SUN4I_CTL_CS_MANUAL
;
if
(
enable
)
if
(
enable
)
reg
|=
SUN4I_CTL_CS_LEVEL
;
reg
|=
SUN4I_CTL_CS_LEVEL
;
else
else
...
@@ -222,9 +225,6 @@ static int sun4i_spi_transfer_one(struct spi_master *master,
...
@@ -222,9 +225,6 @@ static int sun4i_spi_transfer_one(struct spi_master *master,
else
else
reg
|=
SUN4I_CTL_DHB
;
reg
|=
SUN4I_CTL_DHB
;
/* We want to control the chip select manually */
reg
|=
SUN4I_CTL_CS_MANUAL
;
sun4i_spi_write
(
sspi
,
SUN4I_CTL_REG
,
reg
);
sun4i_spi_write
(
sspi
,
SUN4I_CTL_REG
,
reg
);
/* Ensure that we have a parent clock fast enough */
/* Ensure that we have a parent clock fast enough */
...
...
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