-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 228443 b: refs/heads/master c: ec5109e h: refs/heads/master i: 228441: b55359f 228439: ff1dc31 v: v3
- Loading branch information
Mike Frysinger
committed
Jan 10, 2011
1 parent
9fada4b
commit d770f73
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 10cdc1a78a02bb1d76b28b146083cb060399d86f | ||
refs/heads/master: ec5109e7ca086359c46fe5351121d0e125a2879b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
/* | ||
* 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 |