Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
10cdc1a7
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
10cdc1a7
编写于
10月 27, 2010
作者:
M
Mike Frysinger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Blackfin: unify pll.h headers
Signed-off-by:
N
Mike Frysinger
<
vapier@gentoo.org
>
上级
73a40064
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
93 addition
and
435 deletion
+93
-435
arch/blackfin/include/mach-common/pll.h
arch/blackfin/include/mach-common/pll.h
+86
-0
arch/blackfin/mach-bf518/include/mach/pll.h
arch/blackfin/mach-bf518/include/mach/pll.h
+1
-63
arch/blackfin/mach-bf527/include/mach/pll.h
arch/blackfin/mach-bf527/include/mach/pll.h
+1
-63
arch/blackfin/mach-bf533/include/mach/pll.h
arch/blackfin/mach-bf533/include/mach/pll.h
+1
-57
arch/blackfin/mach-bf537/include/mach/pll.h
arch/blackfin/mach-bf537/include/mach/pll.h
+1
-57
arch/blackfin/mach-bf538/include/mach/pll.h
arch/blackfin/mach-bf538/include/mach/pll.h
+1
-63
arch/blackfin/mach-bf548/include/mach/pll.h
arch/blackfin/mach-bf548/include/mach/pll.h
+1
-69
arch/blackfin/mach-bf561/include/mach/pll.h
arch/blackfin/mach-bf561/include/mach/pll.h
+1
-63
未找到文件。
arch/blackfin/include/mach-common/pll.h
0 → 100644
浏览文件 @
10cdc1a7
/*
* Copyright 2005-2010 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_COMMON_PLL_H
#define _MACH_COMMON_PLL_H
#ifndef __ASSEMBLY__
#include <asm/blackfin.h>
#include <asm/irqflags.h>
#ifndef bfin_iwr_restore
static
inline
void
bfin_iwr_restore
(
unsigned
long
iwr0
,
unsigned
long
iwr1
,
unsigned
long
iwr2
)
{
#ifdef SIC_IWR
bfin_write_SIC_IWR
(
iwr0
);
#else
bfin_write_SIC_IWR0
(
iwr0
);
# ifdef SIC_IWR1
bfin_write_SIC_IWR1
(
iwr1
);
# endif
# ifdef SIC_IWR2
bfin_write_SIC_IWR2
(
iwr2
);
# endif
#endif
}
#endif
#ifndef bfin_iwr_save
static
inline
void
bfin_iwr_save
(
unsigned
long
niwr0
,
unsigned
long
niwr1
,
unsigned
long
niwr2
,
unsigned
long
*
iwr0
,
unsigned
long
*
iwr1
,
unsigned
long
*
iwr2
)
{
#ifdef SIC_IWR
*
iwr0
=
bfin_read_SIC_IWR
();
#else
*
iwr0
=
bfin_read_SIC_IWR0
();
# ifdef SIC_IWR1
*
iwr1
=
bfin_read_SIC_IWR1
();
# endif
# ifdef SIC_IWR2
*
iwr2
=
bfin_read_SIC_IWR2
();
# endif
#endif
bfin_iwr_restore
(
niwr0
,
niwr1
,
niwr2
);
}
#endif
static
inline
void
_bfin_write_pll_relock
(
u32
addr
,
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
,
iwr2
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
bfin_iwr_save
(
IWR_ENABLE
(
0
),
0
,
0
,
&
iwr0
,
&
iwr1
,
&
iwr2
);
bfin_write16
(
addr
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_iwr_restore
(
iwr0
,
iwr1
,
iwr2
);
hard_local_irq_restore
(
flags
);
}
/* Writing to PLL_CTL initiates a PLL relock sequence */
static
inline
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
_bfin_write_pll_relock
(
PLL_CTL
,
val
);
}
/* Writing to VR_CTL initiates a PLL relock sequence */
static
inline
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
_bfin_write_pll_relock
(
VR_CTL
,
val
);
}
#endif
#endif
arch/blackfin/mach-bf518/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf527/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf533/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2005-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr
=
bfin_read32
(
SIC_IWR
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR
,
IWR_ENABLE
(
0
));
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR
,
iwr
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr
=
bfin_read32
(
SIC_IWR
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR
,
IWR_ENABLE
(
0
));
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR
,
iwr
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf537/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2005-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr
=
bfin_read32
(
SIC_IWR
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR
,
IWR_ENABLE
(
0
));
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR
,
iwr
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr
=
bfin_read32
(
SIC_IWR
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR
,
IWR_ENABLE
(
0
));
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR
,
iwr
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf538/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2008-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf548/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
,
iwr2
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
iwr2
=
bfin_read32
(
SIC_IWR2
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write32
(
SIC_IWR2
,
0
);
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
bfin_write32
(
SIC_IWR2
,
iwr2
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
,
iwr2
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
iwr2
=
bfin_read32
(
SIC_IWR2
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write32
(
SIC_IWR2
,
0
);
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
bfin_write32
(
SIC_IWR2
,
iwr2
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
arch/blackfin/mach-bf561/include/mach/pll.h
浏览文件 @
10cdc1a7
/*
* Copyright 2005-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_PLL_H
#define _MACH_PLL_H
#include <asm/blackfin.h>
#include <asm/irqflags.h>
/* Writing to PLL_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_PLL_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_PLL_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
PLL_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
/* Writing to VR_CTL initiates a PLL relock sequence. */
static
__inline__
void
bfin_write_VR_CTL
(
unsigned
int
val
)
{
unsigned
long
flags
,
iwr0
,
iwr1
;
if
(
val
==
bfin_read_VR_CTL
())
return
;
flags
=
hard_local_irq_save
();
/* Enable the PLL Wakeup bit in SIC IWR */
iwr0
=
bfin_read32
(
SIC_IWR0
);
iwr1
=
bfin_read32
(
SIC_IWR1
);
/* Only allow PPL Wakeup) */
bfin_write32
(
SIC_IWR0
,
IWR_ENABLE
(
0
));
bfin_write32
(
SIC_IWR1
,
0
);
bfin_write16
(
VR_CTL
,
val
);
SSYNC
();
asm
(
"IDLE;"
);
bfin_write32
(
SIC_IWR0
,
iwr0
);
bfin_write32
(
SIC_IWR1
,
iwr1
);
hard_local_irq_restore
(
flags
);
}
#endif
/* _MACH_PLL_H */
#include <mach-common/pll.h>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录