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
a58bca55
Commit
a58bca55
authored
Apr 14, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: re-enable SPI flash
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
bac04160
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Kbuild
software/kernel/Kbuild
+2
-2
Makefile
software/kernel/Makefile
+2
-0
svec-core-fpga.c
software/kernel/svec-core-fpga.c
+2
-4
No files found.
software/kernel/Kbuild
View file @
a58bca55
...
...
@@ -18,10 +18,10 @@ ccflags-y += -I$(FPGA_MGR_ABS)/include
ccflags-$(CONFIG_FPGA_MGR_BACKPORT) += -DCONFIG_FPGA_MGR_BACKPORT
ccflags-y += -I$(FMC_ABS)/include
ccflags-y += -I$(I2C_ABS)/include
ccflags-y += -I$(SPI_ABS)/include
# priority to I2C headers from our sources
LINUXINCLUDE := -I$(FMC_ABS)/include -I$(FMC_ABS)/include/linux -I$(I2C_ABS)/include -I$(I2C_ABS)/include/linux $(LINUXINCLUDE)
LINUXINCLUDE := -I$(FMC_ABS)/include -I$(FMC_ABS)/include/linux -I$(I2C_ABS)/include -I$(I2C_ABS)/include/linux
-I$(SPI_ABS)/include -I$(SPI_ABS)/include/linux
$(LINUXINCLUDE)
ifeq ($(CONFIG_FPGA_MGR_BACKPORT), y)
FPGA_MGR_BACKPORT_INCLUDE := -I$(FPGA_MGR_ABS)/include
...
...
software/kernel/Makefile
View file @
a58bca55
...
...
@@ -11,6 +11,7 @@ VMEBRIDGE_ABS ?= $(abspath $(VMEBRIDGE))
FPGA_MGR_ABS
?=
$
(
abspath
$(FPGA_MGR)
)
FMC_ABS
?=
$
(
abspath
$(FMC)
)
I2C_ABS
?=
$
(
abspath
$(I2C)
)
SPI_ABS
?=
$
(
abspath
$(SPI)
)
VERSION
=
$(
shell
git describe
--dirty
--long
--tags
)
...
...
@@ -36,4 +37,5 @@ modules help coccicheck modules_install: svec-core-fpga.h
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
\
FMC_ABS
=
$(FMC_ABS)
\
I2C_ABS
=
$(I2C_ABS)
\
SPI_ABS
=
$(SPI_ABS)
\
$@
software/kernel/svec-core-fpga.c
View file @
a58bca55
...
...
@@ -9,6 +9,7 @@
#include <linux/fpga/fpga-mgr.h>
#include <linux/types.h>
#include <linux/platform_data/i2c-ocores.h>
#include <linux/platform_data/spi-ocores.h>
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>
#include <linux/delay.h>
...
...
@@ -260,7 +261,7 @@ static struct ocores_i2c_platform_data svec_fpga_fmc_i2c_pdata = {
.
num_devices
=
0
,
.
devices
=
NULL
,
};
#if 0
static
struct
resource
svec_fpga_spi_res
[]
=
{
{
.
name
=
"spi-ocores-mem"
,
...
...
@@ -299,7 +300,6 @@ static struct spi_ocores_platform_data svec_fpga_spi_pdata = {
.
devices
=
svec_fpga_spi_devices_info
,
};
#endif
static
const
struct
mfd_cell
svec_fpga_mfd_devs
[]
=
{
[
SVEC_FPGA_MFD_FMC_I2C
]
=
{
.
name
=
"i2c-ohwr"
,
...
...
@@ -308,7 +308,6 @@ static const struct mfd_cell svec_fpga_mfd_devs[] = {
.
num_resources
=
ARRAY_SIZE
(
svec_fpga_fmc_i2c_res
),
.
resources
=
svec_fpga_fmc_i2c_res
,
},
#if 0
[
SVEC_FPGA_MFD_SPI
]
=
{
.
name
=
"spi-ocores"
,
.
platform_data
=
&
svec_fpga_spi_pdata
,
...
...
@@ -316,7 +315,6 @@ static const struct mfd_cell svec_fpga_mfd_devs[] = {
.
num_resources
=
ARRAY_SIZE
(
svec_fpga_spi_res
),
.
resources
=
svec_fpga_spi_res
,
},
#endif
};
static
inline
size_t
__fpga_mfd_devs_size
(
void
)
...
...
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