Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Libcedrus
Commits
85cbc027
Commit
85cbc027
authored
Feb 16, 2016
by
Jens Kuske
Browse files
Add A80 support
parent
c1fb5e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cedrus.c
View file @
85cbc027
...
...
@@ -80,7 +80,7 @@ EXPORT struct cedrus *cedrus_open(void)
ve
.
version
=
readl
(
ve
.
regs
+
VE_VERSION
)
>>
16
;
if
(
ve
.
version
>=
0x16
67
)
if
(
ve
.
version
>=
0x16
39
)
ve
.
ioctl_offset
=
1
;
ioctl
(
ve
.
fd
,
IOCTL_ENABLE_VE
+
ve
.
ioctl_offset
,
0
);
...
...
@@ -193,12 +193,18 @@ EXPORT uint32_t cedrus_mem_get_phys_addr(const struct cedrus_mem *mem)
uint32_t
phys2bus
(
uint32_t
phys
)
{
return
phys
-
0x40000000
;
if
(
ve
.
version
==
0x1639
)
return
phys
-
0x20000000
;
else
return
phys
-
0x40000000
;
}
uint32_t
bus2phys
(
uint32_t
bus
)
{
return
bus
+
0x40000000
;
if
(
ve
.
version
==
0x1639
)
return
bus
+
0x20000000
;
else
return
bus
+
0x40000000
;
}
EXPORT
uint32_t
cedrus_mem_get_bus_addr
(
const
struct
cedrus_mem
*
mem
)
...
...
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