Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
dda954f2
Commit
dda954f2
authored
8 years ago
by
Troy Kisky
Browse files
Options
Downloads
Patches
Plain Diff
ipu_disp: add set_bit_ so that mx51evk links
Signed-off-by:
Troy Kisky
<
troy.kisky@boundarydevices.com
>
parent
4684afa5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/video/ipu_disp.c
+11
-1
11 additions, 1 deletion
drivers/video/ipu_disp.c
with
11 additions
and
1 deletion
drivers/video/ipu_disp.c
+
11
−
1
View file @
dda954f2
...
...
@@ -834,6 +834,16 @@ static unsigned long offset_mask_bitmap;
#define DC_MAPPING_PTR_MAX 29
static
unsigned
long
mapping_bitmap
;
static
void
set_bit_
(
int
nr
,
volatile
void
*
addr
)
{
int
mask
;
unsigned
int
*
a
=
(
unsigned
int
*
)
addr
;
a
+=
nr
>>
5
;
mask
=
1
<<
(
nr
&
0x1f
);
*
a
|=
mask
;
}
static
int
find_field
(
u32
val
,
u32
*
reg_base
,
unsigned
long
*
bitmap
,
int
max
)
{
int
i
=
0
;
...
...
@@ -863,7 +873,7 @@ static int find_field(u32 val, u32 *reg_base, unsigned long* bitmap, int max)
reg
&=
~
(
0xFFFF
<<
(
16
*
(
i
&
0x1
)));
reg
|=
val
<<
(
16
*
(
i
&
0x1
));
__raw_writel
(
reg
,
&
reg_base
[
i
>>
1
]);
set_bit
(
i
,
bitmap
);
set_bit
_
(
i
,
bitmap
);
debug
(
"%s: [%d] = 0x%x max=%d
\n
"
,
__func__
,
i
,
val
,
max
);
return
i
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment