Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC DEL 1ns 4cha - Software
Commits
cf4a7685
Commit
cf4a7685
authored
May 02, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: remove CS_NONE for spi, an old leftover
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
e33a615f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
fine-delay.h
kernel/fine-delay.h
+0
-1
gpio.c
kernel/gpio.c
+0
-6
No files found.
kernel/fine-delay.h
View file @
cf4a7685
...
@@ -280,7 +280,6 @@ enum fd_acam_modes {
...
@@ -280,7 +280,6 @@ enum fd_acam_modes {
#define FD_CS_DAC 0
/* DAC for VCXO */
#define FD_CS_DAC 0
/* DAC for VCXO */
#define FD_CS_PLL 1
/* AD9516 PLL */
#define FD_CS_PLL 1
/* AD9516 PLL */
#define FD_CS_GPIO 2
/* MCP23S17 GPIO */
#define FD_CS_GPIO 2
/* MCP23S17 GPIO */
#define FD_CS_NONE 3
/* Unconnected, used as a delay */
/* MCP23S17 register addresses (only ones which are used by the lib) */
/* MCP23S17 register addresses (only ones which are used by the lib) */
#define FD_MCP_IODIR 0x00
#define FD_MCP_IODIR 0x00
...
...
kernel/gpio.c
View file @
cf4a7685
...
@@ -21,9 +21,6 @@ static int gpio_writel(struct fd_dev *fd, int val, int reg)
...
@@ -21,9 +21,6 @@ static int gpio_writel(struct fd_dev *fd, int val, int reg)
int
rval
=
fd_spi_xfer
(
fd
,
FD_CS_GPIO
,
24
,
int
rval
=
fd_spi_xfer
(
fd
,
FD_CS_GPIO
,
24
,
0x4e0000
|
(
reg
<<
8
)
|
val
,
NULL
);
0x4e0000
|
(
reg
<<
8
)
|
val
,
NULL
);
fd_spi_xfer
(
fd
,
FD_CS_NONE
,
24
,
0
,
NULL
);
return
rval
;
return
rval
;
}
}
...
@@ -35,9 +32,6 @@ static int gpio_readl(struct fd_dev *fd, int reg)
...
@@ -35,9 +32,6 @@ static int gpio_readl(struct fd_dev *fd, int reg)
err
=
fd_spi_xfer
(
fd
,
FD_CS_GPIO
,
24
,
err
=
fd_spi_xfer
(
fd
,
FD_CS_GPIO
,
24
,
0x4f0000
|
(
reg
<<
8
),
&
ret
);
0x4f0000
|
(
reg
<<
8
),
&
ret
);
fd_spi_xfer
(
fd
,
FD_CS_NONE
,
24
,
0
,
NULL
);
if
(
err
<
0
)
if
(
err
<
0
)
return
err
;
return
err
;
return
ret
&
0xff
;
return
ret
&
0xff
;
...
...
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