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
a59ca977
Commit
a59ca977
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/dspi' into spi-next
parents
a35a1df6
05209f45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
drivers/spi/Kconfig
drivers/spi/Kconfig
+1
-0
drivers/spi/spi-fsl-dspi.c
drivers/spi/spi-fsl-dspi.c
+4
-4
No files found.
drivers/spi/Kconfig
View file @
a59ca977
...
...
@@ -264,6 +264,7 @@ config SPI_FSL_SPI
config SPI_FSL_DSPI
tristate "Freescale DSPI controller"
select SPI_BITBANG
depends on SOC_VF610 || COMPILE_TEST
help
This enables support for the Freescale DSPI controller in master
mode. VF610 platform uses the controller.
...
...
drivers/spi/spi-fsl-dspi.c
View file @
a59ca977
...
...
@@ -108,7 +108,7 @@ struct fsl_dspi {
struct
spi_bitbang
bitbang
;
struct
platform_device
*
pdev
;
void
*
base
;
void
__iomem
*
base
;
int
irq
;
struct
clk
*
clk
;
...
...
@@ -165,7 +165,7 @@ static void hz_to_spi_baud(char *pbr, char *br, int speed_hz,
}
}
pr_warn
(
"Can not find valid b
ua
d rate,speed_hz is %d,clkrate is %ld\
pr_warn
(
"Can not find valid b
au
d rate,speed_hz is %d,clkrate is %ld\
,we use the max prescaler value.
\n
"
,
speed_hz
,
clkrate
);
*
pbr
=
ARRAY_SIZE
(
pbr_tbl
)
-
1
;
*
br
=
ARRAY_SIZE
(
brs
)
-
1
;
...
...
@@ -520,7 +520,6 @@ static int dspi_probe(struct platform_device *pdev)
clk_disable_unprepare
(
dspi
->
clk
);
out_master_put:
spi_master_put
(
master
);
platform_set_drvdata
(
pdev
,
NULL
);
return
ret
;
}
...
...
@@ -531,6 +530,7 @@ static int dspi_remove(struct platform_device *pdev)
/* Disconnect from the SPI framework */
spi_bitbang_stop
(
&
dspi
->
bitbang
);
clk_disable_unprepare
(
dspi
->
clk
);
spi_master_put
(
dspi
->
bitbang
.
master
);
return
0
;
...
...
@@ -547,5 +547,5 @@ static struct platform_driver fsl_dspi_driver = {
module_platform_driver
(
fsl_dspi_driver
);
MODULE_DESCRIPTION
(
"Freescale DSPI Controller Driver"
);
MODULE_LICENSE
(
"GPL
v2
"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"platform:"
DRIVER_NAME
);
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