Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
37035d62
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看板
提交
37035d62
编写于
11月 15, 2013
作者:
S
Steven Miao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
blackfin: pinctrl-adi2: code cleanup after using pinctrl-adi2
Signed-off-by:
N
Steven Miao
<
realmz6@gmail.com
>
上级
54e4ff4d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
66 deletion
+4
-66
arch/blackfin/mach-bf609/boards/ezkit.c
arch/blackfin/mach-bf609/boards/ezkit.c
+4
-66
未找到文件。
arch/blackfin/mach-bf609/boards/ezkit.c
浏览文件 @
37035d62
...
...
@@ -678,14 +678,9 @@ static struct mtd_partition ezkit_partitions[] = {
int
bf609_nor_flash_init
(
struct
platform_device
*
pdev
)
{
#define CONFIG_SMC_GCTL_VAL 0x00000010
const
unsigned
short
pins
[]
=
{
P_A3
,
P_A4
,
P_A5
,
P_A6
,
P_A7
,
P_A8
,
P_A9
,
P_A10
,
P_A11
,
P_A12
,
P_A13
,
P_A14
,
P_A15
,
P_A16
,
P_A17
,
P_A18
,
P_A19
,
P_A20
,
P_A21
,
P_A22
,
P_A23
,
P_A24
,
P_A25
,
P_NORCK
,
0
,
};
peripheral_request_list
(
pins
,
"smc0"
);
if
(
!
devm_pinctrl_get_select_default
(
&
pdev
->
dev
))
return
-
EBUSY
;
bfin_write32
(
SMC_GCTL
,
CONFIG_SMC_GCTL_VAL
);
bfin_write32
(
SMC_B0CTL
,
0x01002011
);
bfin_write32
(
SMC_B0TIM
,
0x08170977
);
...
...
@@ -693,16 +688,9 @@ int bf609_nor_flash_init(struct platform_device *pdev)
return
0
;
}
void
bf609_nor_flash_exit
(
struct
platform_device
*
dev
)
void
bf609_nor_flash_exit
(
struct
platform_device
*
p
dev
)
{
const
unsigned
short
pins
[]
=
{
P_A3
,
P_A4
,
P_A5
,
P_A6
,
P_A7
,
P_A8
,
P_A9
,
P_A10
,
P_A11
,
P_A12
,
P_A13
,
P_A14
,
P_A15
,
P_A16
,
P_A17
,
P_A18
,
P_A19
,
P_A20
,
P_A21
,
P_A22
,
P_A23
,
P_A24
,
P_A25
,
P_NORCK
,
0
,
};
peripheral_free_list
(
pins
);
devm_pinctrl_put
(
pdev
->
dev
.
pins
->
p
);
bfin_write32
(
SMC_GCTL
,
0
);
}
...
...
@@ -1331,17 +1319,6 @@ static struct platform_device bfin_pinctrl_device = {
.
id
=
0
,
};
#ifdef CONFIG_PINCTRL_ADI2
# define ADI_PINT_DEVNAME "adi-gpio-pint"
# define ADI_GPIO_DEVNAME "adi-gpio"
# define ADI_PINCTRL_DEVNAME "pinctrl-adi2"
static
struct
platform_device
bfin_pinctrl_device
=
{
.
name
=
ADI_PINCTRL_DEVNAME
,
.
id
=
0
,
};
static
struct
resource
bfin_pint0_resources
[]
=
{
{
.
start
=
PINT0_MASK_SET
,
...
...
@@ -2092,45 +2069,6 @@ static struct pinctrl_map __initdata bfin_pinmux_map[] = {
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
};
/* Pin control settings */
static
struct
pinctrl_map
__initdata
bfin_pinmux_map
[]
=
{
/* per-device maps */
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0"
),
#ifdef CONFIG_BFIN_UART0_CTSRTS
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0_ctsrts"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1"
),
#ifdef CONFIG_BFIN_UART1_CTSRTS
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1_ctsrts"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_sir.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_sir.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-sdh.0"
,
"pinctrl-adi2.0"
,
NULL
,
"rsi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"stmmaceth.0"
,
"pinctrl-adi2.0"
,
NULL
,
"eth0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-spi3.0"
,
"pinctrl-adi2.0"
,
NULL
,
"spi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-spi3.1"
,
"pinctrl-adi2.0"
,
NULL
,
"spi1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"i2c-bfin-twi.0"
,
"pinctrl-adi2.0"
,
NULL
,
"twi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"i2c-bfin-twi.1"
,
"pinctrl-adi2.0"
,
NULL
,
"twi1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-rotary"
,
"pinctrl-adi2.0"
,
NULL
,
"rotary"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_can.0"
,
"pinctrl-adi2.0"
,
NULL
,
"can0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"physmap-flash.0"
,
"pinctrl-adi2.0"
,
NULL
,
"smc0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bf609_nl8048.2"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi2_16b"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_display.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi2_16b"
),
#if defined(CONFIG_VIDEO_MT9M114) || defined(CONFIG_VIDEO_MT9M114_MODULE)
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_8b"
),
#elif defined(CONFIG_VIDEO_VS6624) || defined(CONFIG_VIDEO_VS6624_MODULE)
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_16b"
),
#else
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_24b"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.0"
,
"pinctrl-adi2.0"
,
NULL
,
"sport0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.0"
,
"pinctrl-adi2.0"
,
NULL
,
"sport0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.1"
,
"pinctrl-adi2.0"
,
NULL
,
"sport1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.1"
,
"pinctrl-adi2.0"
,
NULL
,
"sport1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
};
static
int
__init
ezkit_init
(
void
)
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录