Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED Linux Kernel Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
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
KED Software Projects
Miscellaneous
KED Linux Kernel Fork
Commits
ec5109e7
Commit
ec5109e7
authored
14 years ago
by
Mike Frysinger
Browse files
Options
Downloads
Patches
Plain Diff
Blackfin: bf561: SMP: add multicore pll handlers
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
10cdc1a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/blackfin/mach-bf561/include/mach/pll.h
+53
-0
53 additions, 0 deletions
arch/blackfin/mach-bf561/include/mach/pll.h
with
53 additions
and
0 deletions
arch/blackfin/mach-bf561/include/mach/pll.h
+
53
−
0
View file @
ec5109e7
/*
* Copyright 2005-2010 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#ifndef __ASSEMBLY__
#ifdef CONFIG_SMP
#include
<asm/blackfin.h>
#include
<asm/irqflags.h>
#include
<mach/irq.h>
#define SUPPLE_0_WAKEUP ((IRQ_SUPPLE_0 - (IRQ_CORETMR + 1)) % 32)
static
inline
void
bfin_iwr_restore
(
unsigned
long
iwr0
,
unsigned
long
iwr1
,
unsigned
long
iwr2
)
{
unsigned
long
SICA_SICB_OFF
=
((
bfin_read_DSPID
()
&
0xff
)
?
0x1000
:
0
);
bfin_write32
(
SIC_IWR0
+
SICA_SICB_OFF
,
iwr0
);
bfin_write32
(
SIC_IWR1
+
SICA_SICB_OFF
,
iwr1
);
}
#define bfin_iwr_restore bfin_iwr_restore
static
inline
void
bfin_iwr_save
(
unsigned
long
niwr0
,
unsigned
long
niwr1
,
unsigned
long
niwr2
,
unsigned
long
*
iwr0
,
unsigned
long
*
iwr1
,
unsigned
long
*
iwr2
)
{
unsigned
long
SICA_SICB_OFF
=
((
bfin_read_DSPID
()
&
0xff
)
?
0x1000
:
0
);
*
iwr0
=
bfin_read32
(
SIC_IWR0
+
SICA_SICB_OFF
);
*
iwr1
=
bfin_read32
(
SIC_IWR1
+
SICA_SICB_OFF
);
bfin_iwr_restore
(
niwr0
,
niwr1
,
niwr2
);
}
#define bfin_iwr_save bfin_iwr_save
static
inline
void
bfin_iwr_set_sup0
(
unsigned
long
*
iwr0
,
unsigned
long
*
iwr1
,
unsigned
long
*
iwr2
)
{
bfin_iwr_save
(
0
,
IWR_ENABLE
(
SUPPLE_0_WAKEUP
),
0
,
iwr0
,
iwr1
,
iwr2
);
}
#endif
#endif
#include
<mach-common/pll.h>
#include
<mach-common/pll.h>
#endif
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