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
61e84f99
Commit
61e84f99
authored
Dec 12, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Malta: Add missing MTD file.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
bf81b464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
arch/mips/mips-boards/malta/malta_mtd.c
arch/mips/mips-boards/malta/malta_mtd.c
+63
-0
No files found.
arch/mips/mips-boards/malta/malta_mtd.c
0 → 100644
View file @
61e84f99
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 MIPS Technologies, Inc.
* written by Ralf Baechle <ralf@linux-mips.org>
*/
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <mtd/mtd-abi.h>
static
struct
mtd_partition
malta_mtd_partitions
[]
=
{
{
.
name
=
"YAMON"
,
.
offset
=
0x0
,
.
size
=
0x100000
,
.
mask_flags
=
MTD_WRITEABLE
},
{
.
name
=
"User FS"
,
.
offset
=
0x100000
,
.
size
=
0x2e0000
},
{
.
name
=
"Board Config"
,
.
offset
=
0x3e0000
,
.
size
=
0x020000
,
.
mask_flags
=
MTD_WRITEABLE
}
};
static
struct
physmap_flash_data
malta_flash_data
=
{
.
width
=
4
,
.
nr_parts
=
ARRAY_SIZE
(
malta_mtd_partitions
),
.
parts
=
malta_mtd_partitions
};
static
struct
resource
malta_flash_resource
=
{
.
start
=
0x1e000000
,
.
end
=
0x1e3fffff
,
.
flags
=
IORESOURCE_MEM
};
static
struct
platform_device
malta_flash
=
{
.
name
=
"physmap-flash"
,
.
id
=
0
,
.
dev
=
{
.
platform_data
=
&
malta_flash_data
,
},
.
num_resources
=
1
,
.
resource
=
&
malta_flash_resource
,
};
static
int
__init
malta_mtd_init
(
void
)
{
platform_device_register
(
&
malta_flash
);
return
0
;
}
module_init
(
malta_mtd_init
)
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