Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ec5109e7
Commit
ec5109e7
authored
Oct 27, 2010
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blackfin: bf561: SMP: add multicore pll handlers
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
10cdc1a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
arch/blackfin/mach-bf561/include/mach/pll.h
arch/blackfin/mach-bf561/include/mach/pll.h
+53
-0
No files found.
arch/blackfin/mach-bf561/include/mach/pll.h
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>
#endif
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