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
3dad21a9
Commit
3dad21a9
authored
Nov 23, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pcm037: Add support for SRAM device
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
ba54b958
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
arch/arm/mach-mx3/pcm037.c
arch/arm/mach-mx3/pcm037.c
+22
-0
No files found.
arch/arm/mach-mx3/pcm037.c
View file @
3dad21a9
...
...
@@ -21,6 +21,7 @@
#include <linux/platform_device.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/plat-ram.h>
#include <linux/memory.h>
#include <linux/gpio.h>
#include <linux/smc911x.h>
...
...
@@ -90,9 +91,30 @@ static struct platform_device pcm037_eth = {
},
};
static
struct
platdata_mtd_ram
pcm038_sram_data
=
{
.
bankwidth
=
2
,
};
static
struct
resource
pcm038_sram_resource
=
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
512
*
1024
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
static
struct
platform_device
pcm037_sram_device
=
{
.
name
=
"mtd-ram"
,
.
id
=
0
,
.
dev
=
{
.
platform_data
=
&
pcm038_sram_data
,
},
.
num_resources
=
1
,
.
resource
=
&
pcm038_sram_resource
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
pcm037_flash
,
&
pcm037_eth
,
&
pcm037_sram_device
,
};
/*
...
...
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