Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
61b032ef
Commit
61b032ef
authored
Jun 23, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm038: Add support for SJA1000 on baseboard
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
91bf9a25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
arch/arm/mach-mx2/pcm970-baseboard.c
arch/arm/mach-mx2/pcm970-baseboard.c
+29
-0
No files found.
arch/arm/mach-mx2/pcm970-baseboard.c
View file @
61b032ef
...
...
@@ -19,6 +19,7 @@
#include <linux/gpio.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/can/platform/sja1000.h>
#include <asm/mach/arch.h>
...
...
@@ -188,6 +189,33 @@ static struct imx_fb_platform_data pcm038_fb_data = {
.
dmacr
=
0x00020010
,
};
static
struct
resource
pcm970_sja1000_resources
[]
=
{
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
0x100
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IRQ_GPIOE
(
19
),
.
end
=
IRQ_GPIOE
(
19
),
.
flags
=
IORESOURCE_IRQ
|
IORESOURCE_IRQ_LOWEDGE
,
},
};
struct
sja1000_platform_data
pcm970_sja1000_platform_data
=
{
.
clock
=
16000000
/
2
,
.
ocr
=
0x40
|
0x18
,
.
cdr
=
0x40
,
};
static
struct
platform_device
pcm970_sja1000
=
{
.
name
=
"sja1000_platform"
,
.
dev
=
{
.
platform_data
=
&
pcm970_sja1000_platform_data
,
},
.
resource
=
pcm970_sja1000_resources
,
.
num_resources
=
ARRAY_SIZE
(
pcm970_sja1000_resources
),
};
/*
* system init for baseboard usage. Will be called by pcm038 init.
*
...
...
@@ -201,4 +229,5 @@ void __init pcm970_baseboard_init(void)
mxc_register_device
(
&
mxc_fb_device
,
&
pcm038_fb_data
);
mxc_register_device
(
&
mxc_sdhc_device1
,
&
sdhc_pdata
);
platform_device_register
(
&
pcm970_sja1000
);
}
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