Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MMC U-Boot Custodian Tree
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
U-Boot
Custodians
MMC U-Boot Custodian Tree
Commits
ceec4761
Commit
ceec4761
authored
9 months ago
by
Leo Yu-Chi Liang
Browse files
Options
Downloads
Patches
Plain Diff
andes: l2 cache driver: fixes typos and cctl status
Signed-off-by:
Leo Yu-Chi Liang
<
ycliang@andestech.com
>
parent
a0dce092
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/cache/cache-andes-l2.c
+5
-3
5 additions, 3 deletions
drivers/cache/cache-andes-l2.c
with
5 additions
and
3 deletions
drivers/cache/cache-andes-l2.c
+
5
−
3
View file @
ceec4761
...
...
@@ -30,7 +30,7 @@ struct l2cache {
volatile
u64
cctl_command2
;
volatile
u64
cctl_access_line2
;
volatile
u64
cctl_command3
;
volatile
u64
cctl_access_line
4
;
volatile
u64
cctl_access_line
3
;
volatile
u64
cctl_status
;
};
...
...
@@ -97,13 +97,15 @@ static int andes_l2_disable(struct udevice *dev)
struct
andes_l2_plat
*
plat
=
dev_get_plat
(
dev
);
volatile
struct
l2cache
*
regs
=
plat
->
regs
;
u8
hart
=
gd
->
arch
.
boot_hart
;
void
__iomem
*
cctlcmd
=
(
void
__iomem
*
)
CCTL_CMD_REG
(
regs
,
hart
);
void
__iomem
*
cctlstatus
=
(
void
__iomem
*
)
CCTL_STATUS_REG
(
regs
,
hart
);
if
((
regs
)
&&
(
readl
(
&
regs
->
control
)
&
L2_ENABLE
))
{
writel
(
L2_WBINVAL_ALL
,
cctlcmd
);
while
((
readl
(
&
regs
->
cctl
_
status
)
&
CCTL_STATUS_MSK
(
hart
)))
{
if
((
readl
(
&
regs
->
cctl
_
status
)
&
CCTL_STATUS_ILLEGAL
(
hart
)))
{
while
((
readl
(
cctlstatus
)
&
CCTL_STATUS_MSK
(
hart
)))
{
if
((
readl
(
cctlstatus
)
&
CCTL_STATUS_ILLEGAL
(
hart
)))
{
printf
(
"L2 flush illegal! hanging..."
);
hang
();
}
...
...
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