Release 4.14 arch/blackfin/mach-bf561/include/mach/pll.h
/*
* 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)
#define SUPPLE_1_WAKEUP ((IRQ_SUPPLE_1 - (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);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mike Frysinger | 54 | 100.00% | 1 | 100.00% |
Total | 54 | 100.00% | 1 | 100.00% |
#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);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mike Frysinger | 80 | 100.00% | 1 | 100.00% |
Total | 80 | 100.00% | 1 | 100.00% |
#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) |
IWR_ENABLE(SUPPLE_1_WAKEUP), 0, iwr0, iwr1, iwr2);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mike Frysinger | 40 | 88.89% | 1 | 50.00% |
Bob Liu | 5 | 11.11% | 1 | 50.00% |
Total | 45 | 100.00% | 2 | 100.00% |
#endif
#endif
#include <mach-common/pll.h>
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mike Frysinger | 215 | 95.13% | 2 | 50.00% |
Bob Liu | 9 | 3.98% | 1 | 25.00% |
David Howells | 2 | 0.88% | 1 | 25.00% |
Total | 226 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.