Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
de91a378
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
de91a378
编写于
11月 04, 2013
作者:
L
Linus Walleij
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'pinmux/next/pfc' of
git://linuxtv.org/pinchartl/fbdev
into devel
上级
5e1109ad
50884519
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
4285 addition
and
0 deletion
+4285
-0
drivers/pinctrl/sh-pfc/Kconfig
drivers/pinctrl/sh-pfc/Kconfig
+5
-0
drivers/pinctrl/sh-pfc/Makefile
drivers/pinctrl/sh-pfc/Makefile
+1
-0
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.c
+9
-0
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/core.h
+1
-0
drivers/pinctrl/sh-pfc/pfc-r8a7778.c
drivers/pinctrl/sh-pfc/pfc-r8a7778.c
+55
-0
drivers/pinctrl/sh-pfc/pfc-r8a7791.c
drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+4214
-0
未找到文件。
drivers/pinctrl/sh-pfc/Kconfig
浏览文件 @
de91a378
...
...
@@ -45,6 +45,11 @@ config PINCTRL_PFC_R8A7790
depends on ARCH_R8A7790
select PINCTRL_SH_PFC
config PINCTRL_PFC_R8A7791
def_bool y
depends on ARCH_R8A7791
select PINCTRL_SH_PFC
config PINCTRL_PFC_SH7203
def_bool y
depends on CPU_SUBTYPE_SH7203
...
...
drivers/pinctrl/sh-pfc/Makefile
浏览文件 @
de91a378
...
...
@@ -8,6 +8,7 @@ obj-$(CONFIG_PINCTRL_PFC_R8A7740) += pfc-r8a7740.o
obj-$(CONFIG_PINCTRL_PFC_R8A7778)
+=
pfc-r8a7778.o
obj-$(CONFIG_PINCTRL_PFC_R8A7779)
+=
pfc-r8a7779.o
obj-$(CONFIG_PINCTRL_PFC_R8A7790)
+=
pfc-r8a7790.o
obj-$(CONFIG_PINCTRL_PFC_R8A7791)
+=
pfc-r8a7791.o
obj-$(CONFIG_PINCTRL_PFC_SH7203)
+=
pfc-sh7203.o
obj-$(CONFIG_PINCTRL_PFC_SH7264)
+=
pfc-sh7264.o
obj-$(CONFIG_PINCTRL_PFC_SH7269)
+=
pfc-sh7269.o
...
...
drivers/pinctrl/sh-pfc/core.c
浏览文件 @
de91a378
...
...
@@ -431,6 +431,12 @@ static const struct of_device_id sh_pfc_of_table[] = {
.
data
=
&
r8a7790_pinmux_info
,
},
#endif
#ifdef CONFIG_PINCTRL_PFC_R8A7791
{
.
compatible
=
"renesas,pfc-r8a7791"
,
.
data
=
&
r8a7791_pinmux_info
,
},
#endif
#ifdef CONFIG_PINCTRL_PFC_SH7372
{
.
compatible
=
"renesas,pfc-sh7372"
,
...
...
@@ -558,6 +564,9 @@ static const struct platform_device_id sh_pfc_id_table[] = {
#ifdef CONFIG_PINCTRL_PFC_R8A7790
{
"pfc-r8a7790"
,
(
kernel_ulong_t
)
&
r8a7790_pinmux_info
},
#endif
#ifdef CONFIG_PINCTRL_PFC_R8A7791
{
"pfc-r8a7791"
,
(
kernel_ulong_t
)
&
r8a7791_pinmux_info
},
#endif
#ifdef CONFIG_PINCTRL_PFC_SH7203
{
"pfc-sh7203"
,
(
kernel_ulong_t
)
&
sh7203_pinmux_info
},
#endif
...
...
drivers/pinctrl/sh-pfc/core.h
浏览文件 @
de91a378
...
...
@@ -69,6 +69,7 @@ extern const struct sh_pfc_soc_info r8a7740_pinmux_info;
extern
const
struct
sh_pfc_soc_info
r8a7778_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
r8a7779_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
r8a7790_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
r8a7791_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
sh7203_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
sh7264_pinmux_info
;
extern
const
struct
sh_pfc_soc_info
sh7269_pinmux_info
;
...
...
drivers/pinctrl/sh-pfc/pfc-r8a7778.c
浏览文件 @
de91a378
...
...
@@ -1304,6 +1304,33 @@ AUDIO_PFC_DAT(audio_clkout_a, AUDIO_CLKOUT_A);
AUDIO_PFC_PIN
(
audio_clkout_b
,
RCAR_GP_PIN
(
1
,
16
));
AUDIO_PFC_DAT
(
audio_clkout_b
,
AUDIO_CLKOUT_B
);
/* - CAN macro --------_----------------------------------------------------- */
#define CAN_PFC_PINS(name, args...) SH_PFC_PINS(name, args)
#define CAN_PFC_DATA(name, tx, rx) SH_PFC_MUX2(name, tx, rx)
#define CAN_PFC_CLK(name, clk) SH_PFC_MUX1(name, clk)
/* - CAN0 ------------------------------------------------------------------- */
CAN_PFC_PINS
(
can0_data_a
,
RCAR_GP_PIN
(
1
,
30
),
RCAR_GP_PIN
(
1
,
31
));
CAN_PFC_DATA
(
can0_data_a
,
CAN0_TX_A
,
CAN0_RX_A
);
CAN_PFC_PINS
(
can0_data_b
,
RCAR_GP_PIN
(
2
,
26
),
RCAR_GP_PIN
(
2
,
27
));
CAN_PFC_DATA
(
can0_data_b
,
CAN0_TX_B
,
CAN0_RX_B
);
/* - CAN1 ------------------------------------------------------------------- */
CAN_PFC_PINS
(
can1_data_a
,
RCAR_GP_PIN
(
4
,
20
),
RCAR_GP_PIN
(
4
,
19
));
CAN_PFC_DATA
(
can1_data_a
,
CAN1_TX_A
,
CAN1_RX_A
);
CAN_PFC_PINS
(
can1_data_b
,
RCAR_GP_PIN
(
2
,
28
),
RCAR_GP_PIN
(
2
,
29
));
CAN_PFC_DATA
(
can1_data_b
,
CAN1_TX_B
,
CAN1_RX_B
);
/* - CAN_CLK --------------------------------------------------------------- */
CAN_PFC_PINS
(
can_clk_a
,
RCAR_GP_PIN
(
3
,
24
));
CAN_PFC_CLK
(
can_clk_a
,
CAN_CLK_A
);
CAN_PFC_PINS
(
can_clk_b
,
RCAR_GP_PIN
(
1
,
16
));
CAN_PFC_CLK
(
can_clk_b
,
CAN_CLK_B
);
CAN_PFC_PINS
(
can_clk_c
,
RCAR_GP_PIN
(
4
,
24
));
CAN_PFC_CLK
(
can_clk_c
,
CAN_CLK_C
);
CAN_PFC_PINS
(
can_clk_d
,
RCAR_GP_PIN
(
2
,
25
));
CAN_PFC_CLK
(
can_clk_d
,
CAN_CLK_D
);
/* - Ether ------------------------------------------------------------------ */
SH_PFC_PINS
(
ether_rmii
,
RCAR_GP_PIN
(
4
,
10
),
RCAR_GP_PIN
(
4
,
11
),
RCAR_GP_PIN
(
4
,
13
),
RCAR_GP_PIN
(
4
,
9
),
...
...
@@ -1698,6 +1725,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP
(
audio_clk_c
),
SH_PFC_PIN_GROUP
(
audio_clkout_a
),
SH_PFC_PIN_GROUP
(
audio_clkout_b
),
SH_PFC_PIN_GROUP
(
can0_data_a
),
SH_PFC_PIN_GROUP
(
can0_data_b
),
SH_PFC_PIN_GROUP
(
can1_data_a
),
SH_PFC_PIN_GROUP
(
can1_data_b
),
SH_PFC_PIN_GROUP
(
can_clk_a
),
SH_PFC_PIN_GROUP
(
can_clk_b
),
SH_PFC_PIN_GROUP
(
can_clk_c
),
SH_PFC_PIN_GROUP
(
can_clk_d
),
SH_PFC_PIN_GROUP
(
ether_rmii
),
SH_PFC_PIN_GROUP
(
ether_link
),
SH_PFC_PIN_GROUP
(
ether_magic
),
...
...
@@ -1826,6 +1861,24 @@ static const char * const audio_clk_groups[] = {
"audio_clkout_b"
,
};
static
const
char
*
const
can0_groups
[]
=
{
"can0_data_a"
,
"can0_data_b"
,
"can_clk_a"
,
"can_clk_b"
,
"can_clk_c"
,
"can_clk_d"
,
};
static
const
char
*
const
can1_groups
[]
=
{
"can1_data_a"
,
"can1_data_b"
,
"can_clk_a"
,
"can_clk_b"
,
"can_clk_c"
,
"can_clk_d"
,
};
static
const
char
*
const
ether_groups
[]
=
{
"ether_rmii"
,
"ether_link"
,
...
...
@@ -2022,6 +2075,8 @@ static const char * const vin1_groups[] = {
static
const
struct
sh_pfc_function
pinmux_functions
[]
=
{
SH_PFC_FUNCTION
(
audio_clk
),
SH_PFC_FUNCTION
(
can0
),
SH_PFC_FUNCTION
(
can1
),
SH_PFC_FUNCTION
(
ether
),
SH_PFC_FUNCTION
(
hscif0
),
SH_PFC_FUNCTION
(
hscif1
),
...
...
drivers/pinctrl/sh-pfc/pfc-r8a7791.c
0 → 100644
浏览文件 @
de91a378
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录