Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
8028b6f5
Commit
8028b6f5
authored
Sep 07, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc-adc.h: use fmc_{readl|writel} to access registers
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
2fef51c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fmc-adc.h
fmc-adc.h
+3
-3
No files found.
fmc-adc.h
View file @
8028b6f5
...
@@ -274,11 +274,11 @@ static inline int zfa_common_conf_set(struct fa_dev *fa,
...
@@ -274,11 +274,11 @@ static inline int zfa_common_conf_set(struct fa_dev *fa,
return
-
EINVAL
;
return
-
EINVAL
;
}
}
/* Read current register*/
/* Read current register*/
cur
=
readl
(
fa
->
base
+
reg
->
addr
);
cur
=
fmc_readl
(
fa
->
fmc
,
reg
->
addr
);
val
=
zio_reg_set
(
reg
,
cur
,
usr_val
);
val
=
zio_reg_set
(
reg
,
cur
,
usr_val
);
/* FIXME re-write usr_val when possible (zio need a patch) */
/* FIXME re-write usr_val when possible (zio need a patch) */
/* If the attribute has a valid address */
/* If the attribute has a valid address */
writel
(
val
,
fa
->
base
+
reg
->
addr
);
fmc_writel
(
fa
->
fmc
,
val
,
reg
->
addr
);
return
0
;
return
0
;
}
}
static
inline
void
zfa_common_info_get
(
struct
fa_dev
*
fa
,
static
inline
void
zfa_common_info_get
(
struct
fa_dev
*
fa
,
...
@@ -288,7 +288,7 @@ static inline void zfa_common_info_get(struct fa_dev *fa,
...
@@ -288,7 +288,7 @@ static inline void zfa_common_info_get(struct fa_dev *fa,
uint32_t
cur
;
uint32_t
cur
;
/* Read current register*/
/* Read current register*/
cur
=
readl
(
fa
->
base
+
reg
->
addr
);
cur
=
fmc_readl
(
fa
->
fmc
,
reg
->
addr
);
/* Return the value */
/* Return the value */
*
usr_val
=
zio_reg_get
(
reg
,
cur
);
*
usr_val
=
zio_reg_get
(
reg
,
cur
);
}
}
...
...
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