BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
0b9b861e
Commit
0b9b861e
authored
Nov 15, 2017
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide relevant platform data for mcp251x IoT card by default
parent
88d9a19c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mcp251x.c
linux_kernel_modules/mcp251x/mcp251x.c
+7
-0
No files found.
linux_kernel_modules/mcp251x/mcp251x.c
View file @
0b9b861e
...
...
@@ -1024,6 +1024,10 @@ static const struct spi_device_id mcp251x_id_table[] = {
};
MODULE_DEVICE_TABLE
(
spi
,
mcp251x_id_table
);
static
struct
mcp251x_platform_data
msm_mcp2515_pdata
=
{
.
oscillator_frequency
=
16
*
1000
*
1000
,
};
static
int
mcp251x_can_probe
(
struct
spi_device
*
spi
)
{
const
struct
of_device_id
*
of_id
=
of_match_device
(
mcp251x_of_match
,
...
...
@@ -1034,6 +1038,9 @@ static int mcp251x_can_probe(struct spi_device *spi)
int
freq
,
ret
=
-
ENODEV
;
struct
clk
*
clk
;
if
(
!
pdata
)
pdata
=
&
msm_mcp2515_pdata
;
clk
=
devm_clk_get
(
&
spi
->
dev
,
NULL
);
if
(
IS_ERR
(
clk
))
{
if
(
pdata
)
...
...
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