Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
014947bc
Commit
014947bc
authored
Aug 30, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:spi: add support for unprepare hardware
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
390c47ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spi-ocores.c
software/kernel/spi-ocores.c
+15
-0
No files found.
software/kernel/spi-ocores.c
View file @
014947bc
...
...
@@ -652,6 +652,20 @@ static int spi_ocores_transfer_one_message(struct spi_master *master,
return
0
;
}
/**
* Unprepare hardware
*
* Mainly it disables interrupts
*/
static
int
spi_ocores_unprepare_transfer_hardware
(
struct
spi_master
*
master
)
{
struct
spi_ocores
*
sp
=
spi_master_get_devdata
(
master
);
spi_ocores_hw_xfer_config
(
sp
,
0
,
0
);
return
0
;
}
static
int
spi_ocores_probe
(
struct
platform_device
*
pdev
)
{
struct
spi_master
*
master
;
...
...
@@ -684,6 +698,7 @@ static int spi_ocores_probe(struct platform_device *pdev)
master
->
setup
=
spi_ocores_setup
;
master
->
cleanup
=
spi_ocores_cleanup
;
master
->
transfer_one_message
=
spi_ocores_transfer_one_message
;
master
->
unprepare_transfer_hardware
=
spi_ocores_unprepare_transfer_hardware
;
master
->
num_chipselect
=
SPI_OCORES_CS_MAX_N
;
master
->
mode_bits
=
SPI_LSB_FIRST
|
SPI_CPHA
;
if
(
pdata
->
big_endian
)
{
...
...
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