Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
4ded6575
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4ded6575
编写于
1月 26, 2013
作者:
J
Jason Cooper
提交者:
Arnd Bergmann
2月 28, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: kirkwood: nsa310: convert to pinctrl
Signed-off-by:
N
Jason Cooper
<
jason@lakedaemon.net
>
上级
44d032e7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
99 addition
and
35 deletion
+99
-35
arch/arm/boot/dts/kirkwood-nsa310.dts
arch/arm/boot/dts/kirkwood-nsa310.dts
+99
-0
arch/arm/mach-kirkwood/board-dt.c
arch/arm/mach-kirkwood/board-dt.c
+0
-3
arch/arm/mach-kirkwood/board-nsa310.c
arch/arm/mach-kirkwood/board-nsa310.c
+0
-26
arch/arm/mach-kirkwood/common.h
arch/arm/mach-kirkwood/common.h
+0
-6
未找到文件。
arch/arm/boot/dts/kirkwood-nsa310.dts
浏览文件 @
4ded6575
...
...
@@ -16,6 +16,105 @@
};
ocp
@
f1000000
{
pinctrl
:
pinctrl
@
10000
{
pinctrl
-
0
=
<
&
pmx_led_esata_green
&
pmx_led_esata_red
&
pmx_led_usb_green
&
pmx_led_usb_red
&
pmx_usb_power_off
&
pmx_led_sys_green
&
pmx_led_sys_red
&
pmx_btn_reset
&
pmx_btn_copy
&
pmx_led_copy_green
&
pmx_led_copy_red
&
pmx_led_hdd_green
&
pmx_led_hdd_red
&
pmx_unknown
&
pmx_btn_power
&
pmx_pwr_off
>;
pinctrl
-
names
=
"default"
;
pmx_led_esata_green
:
pmx
-
led
-
esata
-
green
{
marvell
,
pins
=
"mpp12"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_esata_red
:
pmx
-
led
-
esata
-
red
{
marvell
,
pins
=
"mpp13"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_usb_green
:
pmx
-
led
-
usb
-
green
{
marvell
,
pins
=
"mpp15"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_usb_red
:
pmx
-
led
-
usb
-
red
{
marvell
,
pins
=
"mpp16"
;
marvell
,
function
=
"gpio"
;
};
pmx_usb_power_off
:
pmx
-
usb
-
power
-
off
{
marvell
,
pins
=
"mpp21"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_sys_green
:
pmx
-
led
-
sys
-
green
{
marvell
,
pins
=
"mpp28"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_sys_red
:
pmx
-
led
-
sys
-
red
{
marvell
,
pins
=
"mpp29"
;
marvell
,
function
=
"gpio"
;
};
pmx_btn_reset
:
pmx
-
btn
-
reset
{
marvell
,
pins
=
"mpp36"
;
marvell
,
function
=
"gpio"
;
};
pmx_btn_copy
:
pmx
-
btn
-
copy
{
marvell
,
pins
=
"mpp37"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_copy_green
:
pmx
-
led
-
copy
-
green
{
marvell
,
pins
=
"mpp39"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_copy_red
:
pmx
-
led
-
copy
-
red
{
marvell
,
pins
=
"mpp40"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_hdd_green
:
pmx
-
led
-
hdd
-
green
{
marvell
,
pins
=
"mpp41"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_hdd_red
:
pmx
-
led
-
hdd
-
red
{
marvell
,
pins
=
"mpp42"
;
marvell
,
function
=
"gpio"
;
};
pmx_unknown
:
pmx
-
unknown
{
marvell
,
pins
=
"mpp44"
;
marvell
,
function
=
"gpio"
;
};
pmx_btn_power
:
pmx
-
btn
-
power
{
marvell
,
pins
=
"mpp46"
;
marvell
,
function
=
"gpio"
;
};
pmx_pwr_off
:
pmx
-
pwr
-
off
{
marvell
,
pins
=
"mpp48"
;
marvell
,
function
=
"gpio"
;
};
};
serial
@
12000
{
clock
-
frequency
=
<
200000000
>;
...
...
arch/arm/mach-kirkwood/board-dt.c
浏览文件 @
4ded6575
...
...
@@ -144,9 +144,6 @@ static void __init kirkwood_dt_init(void)
if
(
of_machine_is_compatible
(
"usi,topkick"
))
usi_topkick_init
();
if
(
of_machine_is_compatible
(
"zyxel,nsa310"
))
nsa310_init
();
of_platform_populate
(
NULL
,
kirkwood_dt_match_table
,
NULL
,
NULL
);
}
...
...
arch/arm/mach-kirkwood/board-nsa310.c
浏览文件 @
4ded6575
...
...
@@ -14,32 +14,6 @@
#include <mach/kirkwood.h>
#include <linux/of.h>
#include "common.h"
#include "mpp.h"
static
unsigned
int
nsa310_mpp_config
[]
__initdata
=
{
MPP12_GPIO
,
/* led esata green */
MPP13_GPIO
,
/* led esata red */
MPP15_GPIO
,
/* led usb green */
MPP16_GPIO
,
/* led usb red */
MPP21_GPIO
,
/* control usb power off */
MPP28_GPIO
,
/* led sys green */
MPP29_GPIO
,
/* led sys red */
MPP36_GPIO
,
/* key reset */
MPP37_GPIO
,
/* key copy */
MPP39_GPIO
,
/* led copy green */
MPP40_GPIO
,
/* led copy red */
MPP41_GPIO
,
/* led hdd green */
MPP42_GPIO
,
/* led hdd red */
MPP44_GPIO
,
/* ?? */
MPP46_GPIO
,
/* key power */
MPP48_GPIO
,
/* control power off */
0
};
void
__init
nsa310_init
(
void
)
{
kirkwood_mpp_conf
(
nsa310_mpp_config
);
}
static
int
__init
nsa310_pci_init
(
void
)
{
...
...
arch/arm/mach-kirkwood/common.h
浏览文件 @
4ded6575
...
...
@@ -135,12 +135,6 @@ void ns2_init(void);
static
inline
void
ns2_init
(
void
)
{};
#endif
#ifdef CONFIG_MACH_NSA310_DT
void
nsa310_init
(
void
);
#else
static
inline
void
nsa310_init
(
void
)
{};
#endif
#ifdef CONFIG_MACH_OPENBLOCKS_A6_DT
void
openblocks_a6_init
(
void
);
#else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录