Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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 PCIe FMC carrier SPEC
Commits
28415268
Commit
28415268
authored
Oct 16, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/v1.4.2'
parents
91a98594
b64fe8ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
25 deletions
+27
-25
CHANGELOG.rst
CHANGELOG.rst
+6
-0
Makefile
software/Makefile
+4
-5
Makefile
software/kernel/Makefile
+14
-8
spec-core.c
software/kernel/spec-core.c
+3
-12
No files found.
CHANGELOG
→
CHANGELOG
.rst
View file @
28415268
...
@@ -2,6 +2,12 @@
...
@@ -2,6 +2,12 @@
Changelog
Changelog
=========
=========
[1.4.2] - 2019-10-15
====================
Fixed
-----
- [sw] fix SPEC driver dependency with I2C OCores
[1.4.1] - 2019-09-23
[1.4.1] - 2019-09-23
====================
====================
Changed
Changed
...
...
software/Makefile
View file @
28415268
...
@@ -7,17 +7,16 @@ REPO_PARENT ?= $(shell /bin/pwd)/..
...
@@ -7,17 +7,16 @@ REPO_PARENT ?= $(shell /bin/pwd)/..
DIRS
=
kernel
DIRS
=
kernel
.PHONY
:
all clean modules install modules_install $(DIRS)
.PHONY
:
all clean modules install modules_install
coccicheck
$(DIRS)
all clean modules install modules_install
:
$(DIRS)
all clean
:
$(DIRS)
install modules_install coccicheck modules
:
kernel
clean
:
TARGET = clean
clean
:
TARGET = clean
modules
:
TARGET = modules
modules
:
TARGET = modules
coccicheck
:
TARGET = coccicheck
install
:
TARGET = install
install
:
TARGET = install
modules_install
:
TARGET = modules_install
modules_install
:
TARGET = modules_install
ENV_VAR
:=
CONFIG_FPGA_MGR_BACKPORT_PATH
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH)
ENV_VAR
+=
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
$(DIRS)
:
$(DIRS)
:
$(MAKE)
-C
$@
$(ENV_VAR)
$(TARGET)
$(MAKE)
-C
$@
$(ENV_VAR)
$(TARGET)
software/kernel/Makefile
View file @
28415268
...
@@ -43,20 +43,26 @@ CHEBY ?= /usr/bin/cheby
...
@@ -43,20 +43,26 @@ CHEBY ?= /usr/bin/cheby
all
:
modules
all
:
modules
.PHONY
:
all modules clean help install modules_install spec-core-fpga.h
.PHONY
:
all modules clean help install modules_install
coccicheck
spec-core-fpga.h
spec-core-fpga.h
:
spec-core-fpga.h
:
ifeq
($(DKMS),
0)
ifeq
($(DKMS),
0)
$(CHEBY)
--gen-c
-i
$(HDL_DIR)/rtl/spec_base_regs.cheby
>
$@
$(CHEBY)
--gen-c
-i
$(HDL_DIR)/rtl/spec_base_regs.cheby
>
$@
endif
endif
modules help install modules_install
:
spec-core-fpga.h
clean-spec-core-fpga.h
:
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
VERSION
=
$(VERSION)
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
FMC_ABS
=
$(FMC_ABS)
I2C_ABS
=
$(I2C_ABS)
SPI_ABS
=
$(SPI_ABS)
$@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean
:
rm
-rf
*
.o
*
~ .
*
.cmd
*
.ko
*
.mod.c .tmp_versions Module.symvers
\
Module.markers modules.order
ifeq
($(DKMS),
0)
ifeq
($(DKMS),
0)
rm
-f
spec-core-fpga.h
rm
-f
spec-core-fpga.h
endif
endif
install
:
modules_install
clean
:
clean-spec-core-fpga.h
modules help coccicheck modules_install clean
:
spec-core-fpga.h
$(MAKE)
-C
$(LINUX)
M
=
$(
shell
pwd
)
\
VERSION
=
$(VERSION)
\
CONFIG_FPGA_MGR_BACKPORT_PATH_ABS
=
$(CONFIG_FPGA_MGR_BACKPORT_PATH_ABS)
\
CONFIG_FPGA_MGR_BACKPORT
=
$(CONFIG_FPGA_MGR_BACKPORT)
\
FMC_ABS
=
$(FMC_ABS)
\
I2C_ABS
=
$(I2C_ABS)
\
SPI_ABS
=
$(SPI_ABS)
\
$@
software/kernel/spec-core.c
View file @
28415268
...
@@ -82,16 +82,9 @@ static ssize_t spec_dbg_fw_write(struct file *file,
...
@@ -82,16 +82,9 @@ static ssize_t spec_dbg_fw_write(struct file *file,
return
count
;
return
count
;
}
}
static
int
spec_dbg_fw_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
file
->
private_data
=
inode
->
i_private
;
return
0
;
}
static
const
struct
file_operations
spec_dbg_fw_ops
=
{
static
const
struct
file_operations
spec_dbg_fw_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
s
pec_dbg_fw
_open
,
.
open
=
s
imple
_open
,
.
write
=
spec_dbg_fw_write
,
.
write
=
spec_dbg_fw_write
,
};
};
...
@@ -279,12 +272,10 @@ static int spec_gpio_init_table(struct spec_gn412x *spec_gn412x)
...
@@ -279,12 +272,10 @@ static int spec_gpio_init_table(struct spec_gn412x *spec_gn412x)
struct
gpiod_lookup_table
*
lookup
;
struct
gpiod_lookup_table
*
lookup
;
int
err
=
0
;
int
err
=
0
;
lookup
=
k
zalloc
(
spec_gpiod_table_size
(),
GFP_KERNEL
);
lookup
=
k
memdup
(
&
spec_gpiod_table
,
spec_gpiod_table_size
(),
GFP_KERNEL
);
if
(
!
lookup
)
if
(
!
lookup
)
return
-
ENOMEM
;
return
-
ENOMEM
;
memcpy
(
lookup
,
&
spec_gpiod_table
,
spec_gpiod_table_size
());
lookup
->
dev_id
=
kstrdup
(
dev_name
(
&
spec_gn412x
->
pdev
->
dev
),
GFP_KERNEL
);
lookup
->
dev_id
=
kstrdup
(
dev_name
(
&
spec_gn412x
->
pdev
->
dev
),
GFP_KERNEL
);
if
(
!
lookup
->
dev_id
)
if
(
!
lookup
->
dev_id
)
goto
err_dup
;
goto
err_dup
;
...
@@ -757,6 +748,6 @@ MODULE_VERSION(VERSION);
...
@@ -757,6 +748,6 @@ MODULE_VERSION(VERSION);
MODULE_DESCRIPTION
(
"Driver for the 'Simple PCIe FMC Carrier' a.k.a. SPEC"
);
MODULE_DESCRIPTION
(
"Driver for the 'Simple PCIe FMC Carrier' a.k.a. SPEC"
);
MODULE_DEVICE_TABLE
(
pci
,
spec_pci_tbl
);
MODULE_DEVICE_TABLE
(
pci
,
spec_pci_tbl
);
MODULE_SOFTDEP
(
"pre: gn412x_gpio gn412x_fcl htvic spec_gn412x_dma i2c_mux i2c
_ohwr
spi-ocores"
);
MODULE_SOFTDEP
(
"pre: gn412x_gpio gn412x_fcl htvic spec_gn412x_dma i2c_mux i2c
-ocores
spi-ocores"
);
ADDITIONAL_VERSIONS
;
ADDITIONAL_VERSIONS
;
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