Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 - Software
Commits
50c83791
Commit
50c83791
authored
Aug 16, 2012
by
Federico Vaga
Committed by
Alessandro Rubini
Sep 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec-fmc.c: bugfix: gpio configuration mask is shifted by 4
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
754f9700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec-fmc.c
kernel/spec-fmc.c
+8
-8
No files found.
kernel/spec-fmc.c
View file @
50c83791
...
...
@@ -106,17 +106,17 @@ static int spec_irq_request(struct fmc_device *fmc, irq_handler_t handler,
*/
/* bypass = alternate function */
gennum_mask_val
(
spec
,
0xfc
,
0x00
,
GNGPIO_BYPASS_MODE
);
gennum_mask_val
(
spec
,
0xfc
0
,
0x00
,
GNGPIO_BYPASS_MODE
);
/* direction 0 = output */
gennum_mask_val
(
spec
,
0x44
,
0x
00
,
GNGPIO_DIRECTION_MODE
);
gennum_mask_val
(
spec
,
0xb8
,
0xb8
,
GNGPIO_DIRECTION_MODE
);
gennum_mask_val
(
spec
,
0x44
,
0x44
,
GNGPIO_OUTPUT_ENABLE
);
gennum_mask_val
(
spec
,
0x44
0
,
0x0
00
,
GNGPIO_DIRECTION_MODE
);
gennum_mask_val
(
spec
,
0xb8
0
,
0xb80
,
GNGPIO_DIRECTION_MODE
);
gennum_mask_val
(
spec
,
0x44
0
,
0x440
,
GNGPIO_OUTPUT_ENABLE
);
gennum_mask_val
(
spec
,
0xb8
,
0x
00
,
GNGPIO_INT_TYPE
);
/* 0 = edge */
gennum_mask_val
(
spec
,
0xb8
,
0xb8
,
GNGPIO_INT_VALUE
);
/* 1 = raising */
gennum_mask_val
(
spec
,
0xb8
,
0x
00
,
GNGPIO_INT_ON_ANY
);
gennum_mask_val
(
spec
,
0xb8
0
,
0x0
00
,
GNGPIO_INT_TYPE
);
/* 0 = edge */
gennum_mask_val
(
spec
,
0xb8
0
,
0xb80
,
GNGPIO_INT_VALUE
);
/* 1 = raising */
gennum_mask_val
(
spec
,
0xb8
0
,
0x0
00
,
GNGPIO_INT_ON_ANY
);
gennum_writel
(
spec
,
0xb8
,
GNGPIO_INT_MASK_CLR
);
/* enable */
gennum_writel
(
spec
,
0xb8
0
,
GNGPIO_INT_MASK_CLR
);
/* enable */
return
0
;
}
...
...
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