Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
9be8631b
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9be8631b
编写于
5月 04, 2011
作者:
M
Mike Frysinger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Blackfin: net2272: move pin setup to boards files
Signed-off-by:
N
Mike Frysinger
<
vapier@gentoo.org
>
上级
c6cb13f9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
192 addition
and
0 deletion
+192
-0
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf527/boards/ezkit.c
+3
-0
arch/blackfin/mach-bf533/boards/stamp.c
arch/blackfin/mach-bf533/boards/stamp.c
+41
-0
arch/blackfin/mach-bf537/boards/cm_bf537e.c
arch/blackfin/mach-bf537/boards/cm_bf537e.c
+22
-0
arch/blackfin/mach-bf537/boards/cm_bf537u.c
arch/blackfin/mach-bf537/boards/cm_bf537u.c
+34
-0
arch/blackfin/mach-bf537/boards/stamp.c
arch/blackfin/mach-bf537/boards/stamp.c
+24
-0
arch/blackfin/mach-bf537/boards/tcm_bf537.c
arch/blackfin/mach-bf537/boards/tcm_bf537.c
+22
-0
arch/blackfin/mach-bf561/boards/cm_bf561.c
arch/blackfin/mach-bf561/boards/cm_bf561.c
+22
-0
arch/blackfin/mach-bf561/boards/ezkit.c
arch/blackfin/mach-bf561/boards/ezkit.c
+24
-0
未找到文件。
arch/blackfin/mach-bf527/boards/ezkit.c
浏览文件 @
9be8631b
...
...
@@ -408,6 +408,9 @@ static struct resource net2272_bfin_resources[] = {
.
start
=
0x20300000
,
.
end
=
0x20300000
+
0x100
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
1
,
.
flags
=
IORESOURCE_BUS
,
},
{
.
start
=
IRQ_PF7
,
.
end
=
IRQ_PF7
,
...
...
arch/blackfin/mach-bf533/boards/stamp.c
浏览文件 @
9be8631b
...
...
@@ -79,6 +79,9 @@ static struct resource net2272_bfin_resources[] = {
.
start
=
0x20300000
,
.
end
=
0x20300000
+
0x100
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
1
,
.
flags
=
IORESOURCE_BUS
,
},
{
.
start
=
IRQ_PF10
,
.
end
=
IRQ_PF10
,
...
...
@@ -659,6 +662,41 @@ static struct platform_device *stamp_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
/* Set PF0 to 0, PF1 to 1 make /AMS3 work properly */
ret
=
gpio_request
(
GPIO_PF0
,
"net2272"
);
if
(
ret
)
return
ret
;
ret
=
gpio_request
(
GPIO_PF1
,
"net2272"
);
if
(
ret
)
{
gpio_free
(
GPIO_PF0
);
return
ret
;
}
ret
=
gpio_request
(
GPIO_PF11
,
"net2272"
);
if
(
ret
)
{
gpio_free
(
GPIO_PF0
);
gpio_free
(
GPIO_PF1
);
return
ret
;
}
gpio_direction_output
(
GPIO_PF0
,
0
);
gpio_direction_output
(
GPIO_PF1
,
1
);
/* Reset the USB chip */
gpio_direction_output
(
GPIO_PF11
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PF11
,
1
);
#endif
return
0
;
}
static
int
__init
stamp_init
(
void
)
{
int
ret
;
...
...
@@ -685,6 +723,9 @@ static int __init stamp_init(void)
}
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
spi_register_board_info
(
bfin_spi_board_info
,
ARRAY_SIZE
(
bfin_spi_board_info
));
return
0
;
}
...
...
arch/blackfin/mach-bf537/boards/cm_bf537e.c
浏览文件 @
9be8631b
...
...
@@ -766,6 +766,24 @@ static struct platform_device *cm_bf537e_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PG14
,
"net2272"
);
if
(
ret
)
return
ret
;
/* Reset USB Chip, PG14 */
gpio_direction_output
(
GPIO_PG14
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PG14
,
1
);
#endif
return
0
;
}
static
int
__init
cm_bf537e_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
@@ -777,6 +795,10 @@ static int __init cm_bf537e_init(void)
#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
irq_set_status_flags
(
PATA_INT
,
IRQ_NOAUTOEN
);
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
return
0
;
}
...
...
arch/blackfin/mach-bf537/boards/cm_bf537u.c
浏览文件 @
9be8631b
...
...
@@ -731,6 +731,36 @@ static struct platform_device *cm_bf537u_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PH15
,
driver_name
);
if
(
ret
)
return
ret
;
ret
=
gpio_request
(
GPIO_PH13
,
"net2272"
);
if
(
ret
)
{
gpio_free
(
GPIO_PH15
);
return
ret
;
}
/* Set PH15 Low make /AMS2 work properly */
gpio_direction_output
(
GPIO_PH15
,
0
);
/* enable CLKBUF output */
bfin_write_VR_CTL
(
bfin_read_VR_CTL
()
|
CLKBUFOE
);
/* Reset the USB chip */
gpio_direction_output
(
GPIO_PH13
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PH13
,
1
);
#endif
return
0
;
}
static
int
__init
cm_bf537u_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
@@ -742,6 +772,10 @@ static int __init cm_bf537u_init(void)
#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
irq_set_status_flags
(
PATA_INT
,
IRQ_NOAUTOEN
);
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
return
0
;
}
...
...
arch/blackfin/mach-bf537/boards/stamp.c
浏览文件 @
9be8631b
...
...
@@ -366,6 +366,9 @@ static struct resource net2272_bfin_resources[] = {
.
start
=
0x20300000
,
.
end
=
0x20300000
+
0x100
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
1
,
.
flags
=
IORESOURCE_BUS
,
},
{
.
start
=
IRQ_PF7
,
.
end
=
IRQ_PF7
,
...
...
@@ -2916,6 +2919,24 @@ static struct platform_device *stamp_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PF6
,
"net2272"
);
if
(
ret
)
return
ret
;
/* Reset the USB chip */
gpio_direction_output
(
GPIO_PF6
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PF6
,
1
);
#endif
return
0
;
}
static
int
__init
stamp_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
@@ -2926,6 +2947,9 @@ static int __init stamp_init(void)
ARRAY_SIZE
(
bfin_i2c_board_info
));
spi_register_board_info
(
bfin_spi_board_info
,
ARRAY_SIZE
(
bfin_spi_board_info
));
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
return
0
;
}
...
...
arch/blackfin/mach-bf537/boards/tcm_bf537.c
浏览文件 @
9be8631b
...
...
@@ -733,6 +733,24 @@ static struct platform_device *cm_bf537_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PG14
,
"net2272"
);
if
(
ret
)
return
ret
;
/* Reset USB Chip, PG14 */
gpio_direction_output
(
GPIO_PG14
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PG14
,
1
);
#endif
return
0
;
}
static
int
__init
tcm_bf537_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
@@ -744,6 +762,10 @@ static int __init tcm_bf537_init(void)
#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
irq_set_status_flags
(
PATA_INT
,
IRQ_NOAUTOEN
);
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
return
0
;
}
...
...
arch/blackfin/mach-bf561/boards/cm_bf561.c
浏览文件 @
9be8631b
...
...
@@ -532,6 +532,24 @@ static struct platform_device *cm_bf561_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PF46
,
"net2272"
);
if
(
ret
)
return
ret
;
/* Reset USB Chip, PF46 */
gpio_direction_output
(
GPIO_PF46
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PF46
,
1
);
#endif
return
0
;
}
static
int
__init
cm_bf561_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
@@ -543,6 +561,10 @@ static int __init cm_bf561_init(void)
#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
irq_set_status_flags
(
PATA_INT
,
IRQ_NOAUTOEN
);
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
return
0
;
}
...
...
arch/blackfin/mach-bf561/boards/ezkit.c
浏览文件 @
9be8631b
...
...
@@ -107,6 +107,9 @@ static struct resource net2272_bfin_resources[] = {
.
start
=
0x2C000000
,
.
end
=
0x2C000000
+
0x7F
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
1
,
.
flags
=
IORESOURCE_BUS
,
},
{
.
start
=
IRQ_PF10
,
.
end
=
IRQ_PF10
,
...
...
@@ -516,6 +519,24 @@ static struct platform_device *ezkit_devices[] __initdata = {
#endif
};
static
int
__init
net2272_init
(
void
)
{
#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
int
ret
;
ret
=
gpio_request
(
GPIO_PF11
,
"net2272"
);
if
(
ret
)
return
ret
;
/* Reset the USB chip */
gpio_direction_output
(
GPIO_PF11
,
0
);
mdelay
(
2
);
gpio_set_value
(
GPIO_PF11
,
1
);
#endif
return
0
;
}
static
int
__init
ezkit_init
(
void
)
{
int
ret
;
...
...
@@ -542,6 +563,9 @@ static int __init ezkit_init(void)
udelay
(
400
);
#endif
if
(
net2272_init
())
pr_warning
(
"unable to configure net2272; it probably won't work
\n
"
);
spi_register_board_info
(
bfin_spi_board_info
,
ARRAY_SIZE
(
bfin_spi_board_info
));
return
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录