Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple VME FMC Carrier SVEC
Commits
5e488d67
Commit
5e488d67
authored
Oct 27, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/mtdparts' into develop
parents
585ec687
255529ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
svec-core-fpga.c
software/kernel/svec-core-fpga.c
+23
-2
No files found.
software/kernel/svec-core-fpga.c
View file @
5e488d67
...
...
@@ -13,6 +13,8 @@
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>
#include <linux/delay.h>
#include <linux/sizes.h>
#include <linux/mtd/partitions.h>
#include "svec.h"
#include "svec-core-fpga.h"
...
...
@@ -315,10 +317,29 @@ static struct resource svec_fpga_spi_res[] = {
},
};
static
struct
mtd_partition
svec_flash_parts
[]
=
{
[
0
]
=
{
.
name
=
"SFPGA"
,
.
offset
=
0
,
.
size
=
SZ_1M
,
},
[
1
]
=
{
.
name
=
"AFPGA"
,
.
offset
=
0x100000
,
.
size
=
5
*
SZ_1M
,
},
[
2
]
=
{
.
name
=
"AFPGA_DATA"
,
.
offset
=
MTDPART_OFS_APPEND
,
.
size
=
MTDPART_SIZ_FULL
,
},
};
struct
flash_platform_data
svec_flash_pdata
=
{
.
name
=
"svec-flash"
,
.
parts
=
NULL
,
.
nr_parts
=
0
,
.
parts
=
svec_flash_parts
,
.
nr_parts
=
ARRAY_SIZE
(
svec_flash_parts
)
,
.
type
=
"m25p128"
,
};
...
...
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