Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
db326be1
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
db326be1
编写于
15年前
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OMAP: Remove ifdefs for io.h
Remove ifdefs for io.h Signed-off-by:
N
Tony Lindgren
<
tony@atomide.com
>
上级
6175556f
无相关合并请求
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
13 deletion
+34
-13
arch/arm/mach-omap1/io.c
arch/arm/mach-omap1/io.c
+3
-3
arch/arm/plat-omap/include/mach/io.h
arch/arm/plat-omap/include/mach/io.h
+29
-8
arch/arm/plat-omap/io.c
arch/arm/plat-omap/io.c
+2
-2
未找到文件。
arch/arm/mach-omap1/io.c
浏览文件 @
db326be1
...
...
@@ -29,9 +29,9 @@ extern void omapfb_reserve_sdram(void);
*/
static
struct
map_desc
omap_io_desc
[]
__initdata
=
{
{
.
virtual
=
IO_VIRT
,
.
pfn
=
__phys_to_pfn
(
IO_PHYS
),
.
length
=
IO_SIZE
,
.
virtual
=
OMAP1_
IO_VIRT
,
.
pfn
=
__phys_to_pfn
(
OMAP1_
IO_PHYS
),
.
length
=
OMAP1_
IO_SIZE
,
.
type
=
MT_DEVICE
}
};
...
...
This diff is collapsed.
Click to expand it.
arch/arm/plat-omap/include/mach/io.h
浏览文件 @
db326be1
...
...
@@ -66,13 +66,21 @@
#define OMAP2_IO_OFFSET 0x90000000
#define OMAP2_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_IO_OFFSET)
/* L3 and L4 */
#if defined(CONFIG_ARCH_OMAP1)
/*
* ----------------------------------------------------------------------------
* Omap1 specific IO mapping
* ----------------------------------------------------------------------------
*/
#define
IO_PHYS
0xFFFB0000
#define
IO_SIZE
0x40000
#define
IO_VIRT (
IO_PHYS - OMAP1_IO_OFFSET)
#define
OMAP1_IO_PHYS
0xFFFB0000
#define
OMAP1_IO_SIZE
0x40000
#define
OMAP1_IO_VIRT (OMAP1_
IO_PHYS - OMAP1_IO_OFFSET)
#elif defined(CONFIG_ARCH_OMAP2)
/*
* ----------------------------------------------------------------------------
* Omap2 specific IO mapping
* ----------------------------------------------------------------------------
*/
/* We map both L3 and L4 on OMAP2 */
#define L3_24XX_PHYS L3_24XX_BASE
/* 0x68000000 */
...
...
@@ -106,7 +114,11 @@
#define DSP_MMU_24XX_VIRT 0xe2000000
#define DSP_MMU_24XX_SIZE SZ_4K
#elif defined(CONFIG_ARCH_OMAP3)
/*
* ----------------------------------------------------------------------------
* Omap3 specific IO mapping
* ----------------------------------------------------------------------------
*/
/* We map both L3 and L4 on OMAP3 */
#define L3_34XX_PHYS L3_34XX_BASE
/* 0x68000000 */
...
...
@@ -157,8 +169,12 @@
#define DSP_MMU_34XX_VIRT 0xe2000000
#define DSP_MMU_34XX_SIZE SZ_4K
/*
* ----------------------------------------------------------------------------
* Omap4 specific IO mapping
* ----------------------------------------------------------------------------
*/
#elif defined(CONFIG_ARCH_OMAP4)
/* We map both L3 and L4 on OMAP4 */
#define L3_44XX_PHYS L3_44XX_BASE
#define L3_44XX_VIRT 0xd4000000
...
...
@@ -185,7 +201,12 @@
#define OMAP44XX_GPMC_VIRT 0xe0000000
#define OMAP44XX_GPMC_SIZE SZ_1M
#endif
/*
* ----------------------------------------------------------------------------
* Omap specific register access
* ----------------------------------------------------------------------------
*/
#ifndef __ASSEMBLER__
...
...
This diff is collapsed.
Click to expand it.
arch/arm/plat-omap/io.c
浏览文件 @
db326be1
...
...
@@ -30,8 +30,8 @@ void __iomem *omap_ioremap(unsigned long p, size_t size, unsigned int type)
{
#ifdef CONFIG_ARCH_OMAP1
if
(
cpu_class_is_omap1
())
{
if
(
BETWEEN
(
p
,
IO_PHYS
,
IO_SIZE
))
return
XLATE
(
p
,
IO_PHYS
,
IO_VIRT
);
if
(
BETWEEN
(
p
,
OMAP1_IO_PHYS
,
OMAP1_
IO_SIZE
))
return
XLATE
(
p
,
OMAP1_IO_PHYS
,
OMAP1_
IO_VIRT
);
}
if
(
cpu_is_omap730
())
{
if
(
BETWEEN
(
p
,
OMAP730_DSP_BASE
,
OMAP730_DSP_SIZE
))
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部