Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
661a7335
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看板
提交
661a7335
编写于
10月 08, 2013
作者:
S
Simon Horman
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'heads/soc2' into boards2-base
Conflicts: arch/arm/mach-shmobile/board-lager.c
上级
63862f14
687c27b0
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
59 addition
and
35 deletion
+59
-35
Documentation/devicetree/bindings/mmc/tmio_mmc.txt
Documentation/devicetree/bindings/mmc/tmio_mmc.txt
+10
-7
arch/arm/boot/dts/r8a73a4.dtsi
arch/arm/boot/dts/r8a73a4.dtsi
+3
-3
arch/arm/boot/dts/r8a7778.dtsi
arch/arm/boot/dts/r8a7778.dtsi
+0
-1
arch/arm/boot/dts/r8a7779.dtsi
arch/arm/boot/dts/r8a7779.dtsi
+0
-1
arch/arm/boot/dts/r8a7790.dtsi
arch/arm/boot/dts/r8a7790.dtsi
+4
-5
arch/arm/boot/dts/sh73a0.dtsi
arch/arm/boot/dts/sh73a0.dtsi
+3
-3
arch/arm/mach-shmobile/board-armadillo800eva.c
arch/arm/mach-shmobile/board-armadillo800eva.c
+2
-2
arch/arm/mach-shmobile/board-lager.c
arch/arm/mach-shmobile/board-lager.c
+26
-1
drivers/gpio/gpio-rcar.c
drivers/gpio/gpio-rcar.c
+3
-4
drivers/mmc/host/sh_mobile_sdhi.c
drivers/mmc/host/sh_mobile_sdhi.c
+8
-8
未找到文件。
Documentation/devicetree/bindings/mmc/tmio_mmc.txt
浏览文件 @
661a7335
...
...
@@ -9,12 +9,15 @@ compulsory and any optional properties, common to all SD/MMC drivers, as
described in mmc.txt, can be used. Additionally the following tmio_mmc-specific
optional bindings can be used.
Required properties:
- compatible: "renesas,sdhi-shmobile" - a generic sh-mobile SDHI unit
"renesas,sdhi-sh7372" - SDHI IP on SH7372 SoC
"renesas,sdhi-sh73a0" - SDHI IP on SH73A0 SoC
"renesas,sdhi-r8a73a4" - SDHI IP on R8A73A4 SoC
"renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
"renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
"renesas,sdhi-r8a7779" - SDHI IP on R8A7779 SoC
"renesas,sdhi-r8a7790" - SDHI IP on R8A7790 SoC
Optional properties:
- toshiba,mmc-wrprotect-disable: write-protect detection is unavailable
When used with Renesas SDHI hardware, the following compatibility strings
configure various model-specific properties:
"renesas,sh7372-sdhi": (default) compatible with SH7372
"renesas,r8a7740-sdhi": compatible with R8A7740: certain MMC/SD commands have to
wait for the interface to become idle.
arch/arm/boot/dts/r8a73a4.dtsi
浏览文件 @
661a7335
...
...
@@ -193,7 +193,7 @@
};
sdhi0: sdhi@ee100000 {
compatible = "renesas,
r8a73a4-sdhi
";
compatible = "renesas,
sdhi-r8a73a4
";
reg = <0 0xee100000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 165 4>;
...
...
@@ -202,7 +202,7 @@
};
sdhi1: sdhi@ee120000 {
compatible = "renesas,
r8a73a4-sdhi
";
compatible = "renesas,
sdhi-r8a73a4
";
reg = <0 0xee120000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 166 4>;
...
...
@@ -211,7 +211,7 @@
};
sdhi2: sdhi@ee140000 {
compatible = "renesas,
r8a73a4-sdhi
";
compatible = "renesas,
sdhi-r8a73a4
";
reg = <0 0xee140000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 167 4>;
...
...
arch/arm/boot/dts/r8a7778.dtsi
浏览文件 @
661a7335
...
...
@@ -96,6 +96,5 @@
pfc: pfc@fffc0000 {
compatible = "renesas,pfc-r8a7778";
reg = <0xfffc000 0x118>;
#gpio-range-cells = <3>;
};
};
arch/arm/boot/dts/r8a7779.dtsi
浏览文件 @
661a7335
...
...
@@ -188,7 +188,6 @@
pfc: pfc@fffc0000 {
compatible = "renesas,pfc-r8a7779";
reg = <0xfffc0000 0x23c>;
#gpio-range-cells = <3>;
};
thermal@ffc48000 {
...
...
arch/arm/boot/dts/r8a7790.dtsi
浏览文件 @
661a7335
...
...
@@ -148,11 +148,10 @@
pfc: pfc@e6060000 {
compatible = "renesas,pfc-r8a7790";
reg = <0 0xe6060000 0 0x250>;
#gpio-range-cells = <3>;
};
sdhi0: sdhi@ee100000 {
compatible = "renesas,
r8a7790-sdhi
";
compatible = "renesas,
sdhi-r8a7790
";
reg = <0 0xee100000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 165 4>;
...
...
@@ -161,7 +160,7 @@
};
sdhi1: sdhi@ee120000 {
compatible = "renesas,
r8a7790-sdhi
";
compatible = "renesas,
sdhi-r8a7790
";
reg = <0 0xee120000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 166 4>;
...
...
@@ -170,7 +169,7 @@
};
sdhi2: sdhi@ee140000 {
compatible = "renesas,
r8a7790-sdhi
";
compatible = "renesas,
sdhi-r8a7790
";
reg = <0 0xee140000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 167 4>;
...
...
@@ -179,7 +178,7 @@
};
sdhi3: sdhi@ee160000 {
compatible = "renesas,
r8a7790-sdhi
";
compatible = "renesas,
sdhi-r8a7790
";
reg = <0 0xee160000 0 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 168 4>;
...
...
arch/arm/boot/dts/sh73a0.dtsi
浏览文件 @
661a7335
...
...
@@ -196,7 +196,7 @@
};
sdhi0: sdhi@ee100000 {
compatible = "renesas,
r8a7740-sdhi
";
compatible = "renesas,
sdhi-r8a7740
";
reg = <0xee100000 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 83 4
...
...
@@ -208,7 +208,7 @@
/* SDHI1 and SDHI2 have no CD pins, no need for CD IRQ */
sdhi1: sdhi@ee120000 {
compatible = "renesas,
r8a7740-sdhi
";
compatible = "renesas,
sdhi-r8a7740
";
reg = <0xee120000 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 88 4
...
...
@@ -219,7 +219,7 @@
};
sdhi2: sdhi@ee140000 {
compatible = "renesas,
r8a7740-sdhi
";
compatible = "renesas,
sdhi-r8a7740
";
reg = <0xee140000 0x100>;
interrupt-parent = <&gic>;
interrupts = <0 104 4
...
...
arch/arm/mach-shmobile/board-armadillo800eva.c
浏览文件 @
661a7335
...
...
@@ -1109,9 +1109,9 @@ static const struct pinctrl_map eva_pinctrl_map[] = {
PIN_MAP_MUX_GROUP_DEFAULT
(
"asoc-simple-card.1"
,
"pfc-r8a7740"
,
"fsib_mclk_in"
,
"fsib"
),
/* GETHER */
PIN_MAP_MUX_GROUP_DEFAULT
(
"
sh-eth
"
,
"pfc-r8a7740"
,
PIN_MAP_MUX_GROUP_DEFAULT
(
"
r8a7740-gether
"
,
"pfc-r8a7740"
,
"gether_mii"
,
"gether"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"
sh-eth
"
,
"pfc-r8a7740"
,
PIN_MAP_MUX_GROUP_DEFAULT
(
"
r8a7740-gether
"
,
"pfc-r8a7740"
,
"gether_int"
,
"gether"
),
/* HDMI */
PIN_MAP_MUX_GROUP_DEFAULT
(
"sh-mobile-hdmi"
,
"pfc-r8a7740"
,
...
...
arch/arm/mach-shmobile/board-lager.c
浏览文件 @
661a7335
...
...
@@ -30,6 +30,7 @@
#include <linux/platform_data/gpio-rcar.h>
#include <linux/platform_data/rcar-du.h>
#include <linux/platform_device.h>
#include <linux/phy.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/sh_eth.h>
...
...
@@ -223,6 +224,30 @@ static void __init lager_add_standard_devices(void)
lager_add_du_device
();
}
/*
* Ether LEDs on the Lager board are named LINK and ACTIVE which corresponds
* to non-default 01 setting of the Micrel KSZ8041 PHY control register 1 bits
* 14-15. We have to set them back to 01 from the default 00 value each time
* the PHY is reset. It's also important because the PHY's LED0 signal is
* connected to SoC's ETH_LINK signal and in the PHY's default mode it will
* bounce on and off after each packet, which we apparently want to avoid.
*/
static
int
lager_ksz8041_fixup
(
struct
phy_device
*
phydev
)
{
u16
phyctrl1
=
phy_read
(
phydev
,
0x1e
);
phyctrl1
&=
~
0xc000
;
phyctrl1
|=
0x4000
;
return
phy_write
(
phydev
,
0x1e
,
phyctrl1
);
}
static
void
__init
lager_init
(
void
)
{
lager_add_standard_devices
();
phy_register_fixup_for_id
(
"r8a7790-ether-ff:01"
,
lager_ksz8041_fixup
);
}
static
const
char
*
lager_boards_compat_dt
[]
__initdata
=
{
"renesas,lager"
,
NULL
,
...
...
@@ -232,6 +257,6 @@ DT_MACHINE_START(LAGER_DT, "lager")
.
smp
=
smp_ops
(
r8a7790_smp_ops
),
.
init_early
=
r8a7790_init_early
,
.
init_time
=
rcar_gen2_timer_init
,
.
init_machine
=
lager_
add_standard_devices
,
.
init_machine
=
lager_
init
,
.
dt_compat
=
lager_boards_compat_dt
,
MACHINE_END
drivers/gpio/gpio-rcar.c
浏览文件 @
661a7335
...
...
@@ -293,10 +293,9 @@ static void gpio_rcar_parse_pdata(struct gpio_rcar_priv *p)
if
(
pdata
)
{
p
->
config
=
*
pdata
;
}
else
if
(
IS_ENABLED
(
CONFIG_OF
)
&&
np
)
{
ret
=
of_parse_phandle_with_args
(
np
,
"gpio-ranges"
,
"#gpio-range-cells"
,
0
,
&
args
);
p
->
config
.
number_of_pins
=
ret
==
0
&&
args
.
args_count
==
3
?
args
.
args
[
2
]
ret
=
of_parse_phandle_with_fixed_args
(
np
,
"gpio-ranges"
,
3
,
0
,
&
args
);
p
->
config
.
number_of_pins
=
ret
==
0
?
args
.
args
[
2
]
:
RCAR_MAX_GPIO_PER_BANK
;
p
->
config
.
gpio_base
=
-
1
;
}
...
...
drivers/mmc/host/sh_mobile_sdhi.c
浏览文件 @
661a7335
...
...
@@ -113,14 +113,14 @@ static const struct sh_mobile_sdhi_ops sdhi_ops = {
};
static
const
struct
of_device_id
sh_mobile_sdhi_of_match
[]
=
{
{
.
compatible
=
"renesas,s
hmobile-sdhi
"
},
{
.
compatible
=
"renesas,s
h7372-sdhi
"
},
{
.
compatible
=
"renesas,s
h73a0-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
r8a73a4-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
r8a7740-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
r8a7778-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
r8a7779-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
r8a7790-sdhi
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,s
dhi-shmobile
"
},
{
.
compatible
=
"renesas,s
dhi-sh7372
"
},
{
.
compatible
=
"renesas,s
dhi-sh73a0
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
sdhi-r8a73a4
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
sdhi-r8a7740
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
sdhi-r8a7778
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
sdhi-r8a7779
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{
.
compatible
=
"renesas,
sdhi-r8a7790
"
,
.
data
=
&
sh_mobile_sdhi_of_cfg
[
0
],
},
{},
};
MODULE_DEVICE_TABLE
(
of
,
sh_mobile_sdhi_of_match
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录