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
f436464d
Commit
f436464d
authored
Aug 28, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: add symbols for clock frequencies
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
02eb8c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spec-core-fpga.c
software/kernel/spec-core-fpga.c
+5
-3
No files found.
software/kernel/spec-core-fpga.c
View file @
f436464d
...
...
@@ -323,10 +323,12 @@ static struct resource spec_fpga_fmc_i2c_res[] = {
},
};
#define SPEC_FPGA_WB_CLK_HZ 62500000
#define SPEC_FPGA_WB_CLK_KHZ (SPEC_FPGA_WB_CLK_HZ / 1000)
static
struct
ocores_i2c_platform_data
spec_fpga_fmc_i2c_pdata
=
{
.
reg_shift
=
2
,
/* 32bit aligned */
.
reg_io_width
=
4
,
.
clock_khz
=
62500
,
.
clock_khz
=
SPEC_FPGA_WB_CLK_KHZ
,
.
big_endian
=
0
,
.
num_devices
=
0
,
.
devices
=
NULL
,
...
...
@@ -356,7 +358,7 @@ struct flash_platform_data spec_flash_pdata = {
static
struct
spi_board_info
spec_fpga_spi_devices_info
[]
=
{
{
.
modalias
=
"m25p32"
,
.
max_speed_hz
=
75000000
,
.
max_speed_hz
=
SPEC_FPGA_WB_CLK_HZ
/
2
,
.
chip_select
=
0
,
.
platform_data
=
&
spec_flash_pdata
,
}
...
...
@@ -364,7 +366,7 @@ static struct spi_board_info spec_fpga_spi_devices_info[] = {
static
struct
spi_ocores_platform_data
spec_fpga_spi_pdata
=
{
.
big_endian
=
0
,
.
clock_hz
=
65200000
,
.
clock_hz
=
SPEC_FPGA_WB_CLK_HZ
,
.
num_devices
=
ARRAY_SIZE
(
spec_fpga_spi_devices_info
),
.
devices
=
spec_fpga_spi_devices_info
,
};
...
...
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