Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
15989543
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
15989543
编写于
1月 26, 2013
作者:
J
Jason Cooper
提交者:
Arnd Bergmann
2月 28, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: kirkwood: topkick: convert to pinctrl
Signed-off-by:
N
Jason Cooper
<
jason@lakedaemon.net
>
上级
8be7a962
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
90 addition
and
42 deletion
+90
-42
arch/arm/boot/dts/kirkwood-topkick.dts
arch/arm/boot/dts/kirkwood-topkick.dts
+90
-0
arch/arm/mach-kirkwood/board-usi_topkick.c
arch/arm/mach-kirkwood/board-usi_topkick.c
+0
-42
未找到文件。
arch/arm/boot/dts/kirkwood-topkick.dts
浏览文件 @
15989543
/
dts
-
v1
/;
/
include
/
"kirkwood.dtsi"
/
include
/
"kirkwood-6282.dtsi"
/
{
model
=
"Univeral Scientific Industrial Co. Topkick-1281P2"
;
...
...
@@ -16,6 +17,95 @@
};
ocp
@
f1000000
{
pinctrl
:
pinctrl
@
10000
{
/*
*
GPIO
LED
layout
*
*
/-
SYS_LED
(
2
)
*
|
*
|
/-
DISK_LED
*
|
|
*
|
|
/-
WLAN_LED
(
2
)
*
|
|
|
*
[
SW
]
[*]
[*]
[*]
*/
/*
*
Switch
positions
*
*
/-
SW_LEFT
(
2
)
*
|
*
|
/-
SW_IDLE
*
|
|
*
|
|
/-
SW_RIGHT
*
|
|
|
*
PS
[
L
]
[
I
]
[
R
]
LEDS
*/
pinctrl
-
0
=
<
&
pmx_led_disk_yellow
&
pmx_sata0_pwr_enable
&
pmx_led_sys_red
&
pmx_led_sys_blue
&
pmx_led_wifi_green
&
pmx_sw_left
&
pmx_sw_right
&
pmx_sw_idle
&
pmx_sw_left2
&
pmx_led_wifi_yellow
&
pmx_uart0
&
pmx_nand
>;
pinctrl
-
names
=
"default"
;
pmx_led_disk_yellow
:
pmx
-
led
-
disk
-
yellow
{
marvell
,
pins
=
"mpp21"
;
marvell
,
function
=
"gpio"
;
};
pmx_sata0_pwr_enable
:
pmx
-
sata0
-
pwr
-
enable
{
marvell
,
pins
=
"mpp36"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_sys_red
:
pmx
-
led
-
sys
-
red
{
marvell
,
pins
=
"mpp37"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_sys_blue
:
pmx
-
led
-
sys
-
blue
{
marvell
,
pins
=
"mpp38"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_wifi_green
:
pmx
-
led
-
wifi
-
green
{
marvell
,
pins
=
"mpp39"
;
marvell
,
function
=
"gpio"
;
};
pmx_sw_left
:
pmx
-
sw
-
left
{
marvell
,
pins
=
"mpp43"
;
marvell
,
function
=
"gpio"
;
};
pmx_sw_right
:
pmx
-
sw
-
right
{
marvell
,
pins
=
"mpp44"
;
marvell
,
function
=
"gpio"
;
};
pmx_sw_idle
:
pmx
-
sw
-
idle
{
marvell
,
pins
=
"mpp45"
;
marvell
,
function
=
"gpio"
;
};
pmx_sw_left2
:
pmx
-
sw
-
left2
{
marvell
,
pins
=
"mpp46"
;
marvell
,
function
=
"gpio"
;
};
pmx_led_wifi_yellow
:
pmx
-
led
-
wifi
-
yellow
{
marvell
,
pins
=
"mpp48"
;
marvell
,
function
=
"gpio"
;
};
};
serial
@
12000
{
clock
-
frequency
=
<
200000000
>;
status
=
"ok"
;
...
...
arch/arm/mach-kirkwood/board-usi_topkick.c
浏览文件 @
15989543
...
...
@@ -16,7 +16,6 @@
#include <linux/gpio.h>
#include <linux/platform_data/mmc-mvsdio.h>
#include "common.h"
#include "mpp.h"
static
struct
mv643xx_eth_platform_data
topkick_ge00_data
=
{
.
phy_addr
=
MV643XX_ETH_PHY_ADDR
(
0
),
...
...
@@ -26,52 +25,11 @@ static struct mvsdio_platform_data topkick_mvsdio_data = {
/* unfortunately the CD signal has not been connected */
};
/*
* GPIO LED layout
*
* /-SYS_LED(2)
* |
* | /-DISK_LED
* | |
* | | /-WLAN_LED(2)
* | | |
* [SW] [*] [*] [*]
*/
/*
* Switch positions
*
* /-SW_LEFT
* |
* | /-SW_IDLE
* | |
* | | /-SW_RIGHT
* | | |
* PS [L] [I] [R] LEDS
*/
static
unsigned
int
topkick_mpp_config
[]
__initdata
=
{
MPP21_GPIO
,
/* DISK_LED (low active) - yellow */
MPP36_GPIO
,
/* SATA0 power enable (high active) */
MPP37_GPIO
,
/* SYS_LED2 (low active) - red */
MPP38_GPIO
,
/* SYS_LED (low active) - blue */
MPP39_GPIO
,
/* WLAN_LED (low active) - green */
MPP43_GPIO
,
/* SW_LEFT (low active) */
MPP44_GPIO
,
/* SW_RIGHT (low active) */
MPP45_GPIO
,
/* SW_IDLE (low active) */
MPP46_GPIO
,
/* SW_LEFT (low active) */
MPP48_GPIO
,
/* WLAN_LED2 (low active) - yellow */
0
};
void
__init
usi_topkick_init
(
void
)
{
/*
* Basic setup. Needs to be called early.
*/
kirkwood_mpp_conf
(
topkick_mpp_config
);
kirkwood_ge00_init
(
&
topkick_ge00_data
);
kirkwood_sdio_init
(
&
topkick_mvsdio_data
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录