Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
05f68940
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看板
提交
05f68940
编写于
3月 14, 2011
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'devel-mux' and 'devel-misc' into omap-for-linus
上级
17fe12c5
02b7b94e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
35 addition
and
25 deletion
+35
-25
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-h4.c
+1
-1
arch/arm/mach-omap2/board-zoom.c
arch/arm/mach-omap2/board-zoom.c
+1
-1
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/id.c
+13
-0
arch/arm/plat-omap/include/plat/iovmm.h
arch/arm/plat-omap/include/plat/iovmm.h
+0
-2
arch/arm/plat-omap/iommu.c
arch/arm/plat-omap/iommu.c
+8
-6
arch/arm/plat-omap/iovmm.c
arch/arm/plat-omap/iovmm.c
+12
-15
未找到文件。
arch/arm/mach-omap2/board-h4.c
浏览文件 @
05f68940
...
...
@@ -299,7 +299,6 @@ static void __init omap_h4_init_early(void)
static
void
__init
omap_h4_init_irq
(
void
)
{
omap_init_irq
();
h4_init_flash
();
}
static
struct
at24_platform_data
m24c01
=
{
...
...
@@ -372,6 +371,7 @@ static void __init omap_h4_init(void)
platform_add_devices
(
h4_devices
,
ARRAY_SIZE
(
h4_devices
));
omap2_usbfs_init
(
&
h4_usb_config
);
omap_serial_init
();
h4_init_flash
();
}
static
void
__init
omap_h4_map_io
(
void
)
...
...
arch/arm/mach-omap2/board-zoom.c
浏览文件 @
05f68940
...
...
@@ -48,7 +48,7 @@ static void __init omap_zoom_init_early(void)
#ifdef CONFIG_OMAP_MUX
static
struct
omap_board_mux
board_mux
[]
__initdata
=
{
/* WLAN IRQ - GPIO 162 */
OMAP3_MUX
(
MCBSP1_CLKX
,
OMAP_MUX_MODE4
|
OMAP_PIN_INPUT
_PULLUP
),
OMAP3_MUX
(
MCBSP1_CLKX
,
OMAP_MUX_MODE4
|
OMAP_PIN_INPUT
),
/* WLAN POWER ENABLE - GPIO 101 */
OMAP3_MUX
(
CAM_D2
,
OMAP_MUX_MODE4
|
OMAP_PIN_OUTPUT
),
/* WLAN SDIO: MMC3 CMD */
...
...
arch/arm/mach-omap2/id.c
浏览文件 @
05f68940
...
...
@@ -84,6 +84,11 @@ EXPORT_SYMBOL(omap_type);
#define OMAP_TAP_DIE_ID_2 0x0220
#define OMAP_TAP_DIE_ID_3 0x0224
#define OMAP_TAP_DIE_ID_44XX_0 0x0200
#define OMAP_TAP_DIE_ID_44XX_1 0x0208
#define OMAP_TAP_DIE_ID_44XX_2 0x020c
#define OMAP_TAP_DIE_ID_44XX_3 0x0210
#define read_tap_reg(reg) __raw_readl(tap_base + (reg))
struct
omap_id
{
...
...
@@ -107,6 +112,14 @@ static u16 tap_prod_id;
void
omap_get_die_id
(
struct
omap_die_id
*
odi
)
{
if
(
cpu_is_omap44xx
())
{
odi
->
id_0
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_0
);
odi
->
id_1
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_1
);
odi
->
id_2
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_2
);
odi
->
id_3
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_3
);
return
;
}
odi
->
id_0
=
read_tap_reg
(
OMAP_TAP_DIE_ID_0
);
odi
->
id_1
=
read_tap_reg
(
OMAP_TAP_DIE_ID_1
);
odi
->
id_2
=
read_tap_reg
(
OMAP_TAP_DIE_ID_2
);
...
...
arch/arm/plat-omap/include/plat/iovmm.h
浏览文件 @
05f68940
...
...
@@ -71,8 +71,6 @@ struct iovm_struct {
#define IOVMF_LINEAR_MASK (3 << (2 + IOVMF_SW_SHIFT))
#define IOVMF_DA_FIXED (1 << (4 + IOVMF_SW_SHIFT))
#define IOVMF_DA_ANON (2 << (4 + IOVMF_SW_SHIFT))
#define IOVMF_DA_MASK (3 << (4 + IOVMF_SW_SHIFT))
extern
struct
iovm_struct
*
find_iovm_area
(
struct
iommu
*
obj
,
u32
da
);
...
...
arch/arm/plat-omap/iommu.c
浏览文件 @
05f68940
...
...
@@ -982,11 +982,6 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
err
=
-
ENODEV
;
goto
err_mem
;
}
obj
->
regbase
=
ioremap
(
res
->
start
,
resource_size
(
res
));
if
(
!
obj
->
regbase
)
{
err
=
-
ENOMEM
;
goto
err_mem
;
}
res
=
request_mem_region
(
res
->
start
,
resource_size
(
res
),
dev_name
(
&
pdev
->
dev
));
...
...
@@ -995,6 +990,12 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
goto
err_mem
;
}
obj
->
regbase
=
ioremap
(
res
->
start
,
resource_size
(
res
));
if
(
!
obj
->
regbase
)
{
err
=
-
ENOMEM
;
goto
err_ioremap
;
}
irq
=
platform_get_irq
(
pdev
,
0
);
if
(
irq
<
0
)
{
err
=
-
ENODEV
;
...
...
@@ -1023,8 +1024,9 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
err_pgd:
free_irq
(
irq
,
obj
);
err_irq:
release_mem_region
(
res
->
start
,
resource_size
(
res
));
iounmap
(
obj
->
regbase
);
err_ioremap:
release_mem_region
(
res
->
start
,
resource_size
(
res
));
err_mem:
clk_put
(
obj
->
clk
);
err_clk:
...
...
arch/arm/plat-omap/iovmm.c
浏览文件 @
05f68940
...
...
@@ -271,20 +271,21 @@ static struct iovm_struct *alloc_iovm_area(struct iommu *obj, u32 da,
size_t
bytes
,
u32
flags
)
{
struct
iovm_struct
*
new
,
*
tmp
;
u32
start
,
prev_end
,
align
e
ment
;
u32
start
,
prev_end
,
alignment
;
if
(
!
obj
||
!
bytes
)
return
ERR_PTR
(
-
EINVAL
);
start
=
da
;
align
e
ment
=
PAGE_SIZE
;
alignment
=
PAGE_SIZE
;
if
(
flags
&
IOVMF_DA_ANON
)
{
start
=
obj
->
da_start
;
if
(
~
flags
&
IOVMF_DA_FIXED
)
{
/* Don't map address 0 */
start
=
obj
->
da_start
?
obj
->
da_start
:
alignment
;
if
(
flags
&
IOVMF_LINEAR
)
align
e
ment
=
iopgsz_max
(
bytes
);
start
=
roundup
(
start
,
align
e
ment
);
alignment
=
iopgsz_max
(
bytes
);
start
=
roundup
(
start
,
alignment
);
}
else
if
(
start
<
obj
->
da_start
||
start
>
obj
->
da_end
||
obj
->
da_end
-
start
<
bytes
)
{
return
ERR_PTR
(
-
EINVAL
);
...
...
@@ -303,8 +304,8 @@ static struct iovm_struct *alloc_iovm_area(struct iommu *obj, u32 da,
if
(
tmp
->
da_start
>
start
&&
(
tmp
->
da_start
-
start
)
>=
bytes
)
goto
found
;
if
(
tmp
->
da_end
>=
start
&&
flags
&
IOVMF_DA_ANON
)
start
=
roundup
(
tmp
->
da_end
+
1
,
align
e
ment
);
if
(
tmp
->
da_end
>=
start
&&
~
flags
&
IOVMF_DA_FIXED
)
start
=
roundup
(
tmp
->
da_end
+
1
,
alignment
);
prev_end
=
tmp
->
da_end
;
}
...
...
@@ -650,7 +651,6 @@ u32 iommu_vmap(struct iommu *obj, u32 da, const struct sg_table *sgt,
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_DISCONT
;
flags
|=
IOVMF_MMIO
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_vmap
(
obj
,
da
,
sgt
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
@@ -690,7 +690,7 @@ EXPORT_SYMBOL_GPL(iommu_vunmap);
* @flags: iovma and page property
*
* Allocate @bytes linearly and creates 1-n-1 mapping and returns
* @da again, which might be adjusted if 'IOVMF_DA_
ANON' is
set.
* @da again, which might be adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_vmalloc
(
struct
iommu
*
obj
,
u32
da
,
size_t
bytes
,
u32
flags
)
{
...
...
@@ -709,7 +709,6 @@ u32 iommu_vmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags)
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_DISCONT
;
flags
|=
IOVMF_ALLOC
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
sgt
=
sgtable_alloc
(
bytes
,
flags
,
da
,
0
);
if
(
IS_ERR
(
sgt
))
{
...
...
@@ -780,7 +779,7 @@ static u32 __iommu_kmap(struct iommu *obj, u32 da, u32 pa, void *va,
* @flags: iovma and page property
*
* Creates 1-1-1 mapping and returns @da again, which can be
* adjusted if 'IOVMF_DA_
ANON' is
set.
* adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_kmap
(
struct
iommu
*
obj
,
u32
da
,
u32
pa
,
size_t
bytes
,
u32
flags
)
...
...
@@ -799,7 +798,6 @@ u32 iommu_kmap(struct iommu *obj, u32 da, u32 pa, size_t bytes,
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_LINEAR
;
flags
|=
IOVMF_MMIO
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_kmap
(
obj
,
da
,
pa
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
@@ -838,7 +836,7 @@ EXPORT_SYMBOL_GPL(iommu_kunmap);
* @flags: iovma and page property
*
* Allocate @bytes linearly and creates 1-1-1 mapping and returns
* @da again, which might be adjusted if 'IOVMF_DA_
ANON' is
set.
* @da again, which might be adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_kmalloc
(
struct
iommu
*
obj
,
u32
da
,
size_t
bytes
,
u32
flags
)
{
...
...
@@ -858,7 +856,6 @@ u32 iommu_kmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags)
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_LINEAR
;
flags
|=
IOVMF_ALLOC
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_kmap
(
obj
,
da
,
pa
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录