Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
eb7fffa3
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eb7fffa3
编写于
7月 05, 2009
作者:
R
Russell King
提交者:
Russell King
7月 06, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ARM] realview: add PL061 gpiolib support
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
bbeddc43
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
102 addition
and
15 deletion
+102
-15
arch/arm/Kconfig
arch/arm/Kconfig
+1
-0
arch/arm/mach-realview/include/mach/gpio.h
arch/arm/mach-realview/include/mach/gpio.h
+6
-0
arch/arm/mach-realview/realview_eb.c
arch/arm/mach-realview/realview_eb.c
+19
-3
arch/arm/mach-realview/realview_pb1176.c
arch/arm/mach-realview/realview_pb1176.c
+19
-3
arch/arm/mach-realview/realview_pb11mp.c
arch/arm/mach-realview/realview_pb11mp.c
+19
-3
arch/arm/mach-realview/realview_pba8.c
arch/arm/mach-realview/realview_pba8.c
+19
-3
arch/arm/mach-realview/realview_pbx.c
arch/arm/mach-realview/realview_pbx.c
+19
-3
未找到文件。
arch/arm/Kconfig
浏览文件 @
eb7fffa3
...
...
@@ -217,6 +217,7 @@ config ARCH_REALVIEW
select ICST307
select GENERIC_TIME
select GENERIC_CLOCKEVENTS
select ARCH_WANT_OPTIONAL_GPIOLIB
help
This enables support for ARM Ltd RealView boards.
...
...
arch/arm/mach-realview/include/mach/gpio.h
0 → 100644
浏览文件 @
eb7fffa3
#include <asm-generic/gpio.h>
#define gpio_get_value __gpio_get_value
#define gpio_set_value __gpio_set_value
#define gpio_cansleep __gpio_cansleep
#define gpio_to_irq __gpio_to_irq
arch/arm/mach-realview/realview_eb.c
浏览文件 @
eb7fffa3
...
...
@@ -23,6 +23,7 @@
#include <linux/platform_device.h>
#include <linux/sysdev.h>
#include <linux/amba/bus.h>
#include <linux/amba/pl061.h>
#include <linux/io.h>
#include <mach/hardware.h>
...
...
@@ -113,6 +114,21 @@ static void __init realview_eb_map_io(void)
iotable_init
(
realview_eb11mp_io_desc
,
ARRAY_SIZE
(
realview_eb11mp_io_desc
));
}
static
struct
pl061_platform_data
gpio0_plat_data
=
{
.
gpio_base
=
0
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio1_plat_data
=
{
.
gpio_base
=
8
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio2_plat_data
=
{
.
gpio_base
=
16
,
.
irq_base
=
-
1
,
};
/*
* RealView EB AMBA devices
*/
...
...
@@ -189,9 +205,9 @@ AMBA_DEVICE(clcd, "dev:20", EB_CLCD, &clcd_plat_data);
AMBA_DEVICE
(
dmac
,
"dev:30"
,
DMAC
,
NULL
);
AMBA_DEVICE
(
sctl
,
"dev:e0"
,
SCTL
,
NULL
);
AMBA_DEVICE
(
wdog
,
"dev:e1"
,
EB_WATCHDOG
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
EB_GPIO0
,
NULL
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
NULL
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
EB_GPIO0
,
&
gpio0_plat_data
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
&
gpio1_plat_data
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
&
gpio2_plat_data
);
AMBA_DEVICE
(
rtc
,
"dev:e8"
,
EB_RTC
,
NULL
);
AMBA_DEVICE
(
sci0
,
"dev:f0"
,
SCI
,
NULL
);
AMBA_DEVICE
(
uart0
,
"dev:f1"
,
EB_UART0
,
NULL
);
...
...
arch/arm/mach-realview/realview_pb1176.c
浏览文件 @
eb7fffa3
...
...
@@ -23,6 +23,7 @@
#include <linux/platform_device.h>
#include <linux/sysdev.h>
#include <linux/amba/bus.h>
#include <linux/amba/pl061.h>
#include <linux/io.h>
#include <mach/hardware.h>
...
...
@@ -107,6 +108,21 @@ static void __init realview_pb1176_map_io(void)
iotable_init
(
realview_pb1176_io_desc
,
ARRAY_SIZE
(
realview_pb1176_io_desc
));
}
static
struct
pl061_platform_data
gpio0_plat_data
=
{
.
gpio_base
=
0
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio1_plat_data
=
{
.
gpio_base
=
8
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio2_plat_data
=
{
.
gpio_base
=
16
,
.
irq_base
=
-
1
,
};
/*
* RealView PB1176 AMBA devices
*/
...
...
@@ -164,9 +180,9 @@ AMBA_DEVICE(uart3, "fpga:09", PB1176_UART3, NULL);
AMBA_DEVICE
(
smc
,
"dev:00"
,
PB1176_SMC
,
NULL
);
AMBA_DEVICE
(
sctl
,
"dev:e0"
,
SCTL
,
NULL
);
AMBA_DEVICE
(
wdog
,
"dev:e1"
,
PB1176_WATCHDOG
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PB1176_GPIO0
,
NULL
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
NULL
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PB1176_GPIO0
,
&
gpio0_plat_data
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
&
gpio1_plat_data
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
&
gpio2_plat_data
);
AMBA_DEVICE
(
rtc
,
"dev:e8"
,
PB1176_RTC
,
NULL
);
AMBA_DEVICE
(
sci0
,
"dev:f0"
,
SCI
,
NULL
);
AMBA_DEVICE
(
uart0
,
"dev:f1"
,
PB1176_UART0
,
NULL
);
...
...
arch/arm/mach-realview/realview_pb11mp.c
浏览文件 @
eb7fffa3
...
...
@@ -23,6 +23,7 @@
#include <linux/platform_device.h>
#include <linux/sysdev.h>
#include <linux/amba/bus.h>
#include <linux/amba/pl061.h>
#include <linux/io.h>
#include <mach/hardware.h>
...
...
@@ -108,6 +109,21 @@ static void __init realview_pb11mp_map_io(void)
iotable_init
(
realview_pb11mp_io_desc
,
ARRAY_SIZE
(
realview_pb11mp_io_desc
));
}
static
struct
pl061_platform_data
gpio0_plat_data
=
{
.
gpio_base
=
0
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio1_plat_data
=
{
.
gpio_base
=
8
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio2_plat_data
=
{
.
gpio_base
=
16
,
.
irq_base
=
-
1
,
};
/*
* RealView PB11MPCore AMBA devices
*/
...
...
@@ -166,9 +182,9 @@ AMBA_DEVICE(uart3, "fpga:09", PB11MP_UART3, NULL);
AMBA_DEVICE
(
smc
,
"dev:00"
,
PB11MP_SMC
,
NULL
);
AMBA_DEVICE
(
sctl
,
"dev:e0"
,
SCTL
,
NULL
);
AMBA_DEVICE
(
wdog
,
"dev:e1"
,
PB11MP_WATCHDOG
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PB11MP_GPIO0
,
NULL
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
NULL
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PB11MP_GPIO0
,
&
gpio0_plat_data
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
&
gpio1_plat_data
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
&
gpio2_plat_data
);
AMBA_DEVICE
(
rtc
,
"dev:e8"
,
PB11MP_RTC
,
NULL
);
AMBA_DEVICE
(
sci0
,
"dev:f0"
,
SCI
,
NULL
);
AMBA_DEVICE
(
uart0
,
"dev:f1"
,
PB11MP_UART0
,
NULL
);
...
...
arch/arm/mach-realview/realview_pba8.c
浏览文件 @
eb7fffa3
...
...
@@ -23,6 +23,7 @@
#include <linux/platform_device.h>
#include <linux/sysdev.h>
#include <linux/amba/bus.h>
#include <linux/amba/pl061.h>
#include <linux/io.h>
#include <asm/irq.h>
...
...
@@ -98,6 +99,21 @@ static void __init realview_pba8_map_io(void)
iotable_init
(
realview_pba8_io_desc
,
ARRAY_SIZE
(
realview_pba8_io_desc
));
}
static
struct
pl061_platform_data
gpio0_plat_data
=
{
.
gpio_base
=
0
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio1_plat_data
=
{
.
gpio_base
=
8
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio2_plat_data
=
{
.
gpio_base
=
16
,
.
irq_base
=
-
1
,
};
/*
* RealView PBA8Core AMBA devices
*/
...
...
@@ -156,9 +172,9 @@ AMBA_DEVICE(uart3, "fpga:09", PBA8_UART3, NULL);
AMBA_DEVICE
(
smc
,
"dev:00"
,
PBA8_SMC
,
NULL
);
AMBA_DEVICE
(
sctl
,
"dev:e0"
,
SCTL
,
NULL
);
AMBA_DEVICE
(
wdog
,
"dev:e1"
,
PBA8_WATCHDOG
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PBA8_GPIO0
,
NULL
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
NULL
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PBA8_GPIO0
,
&
gpio0_plat_data
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
&
gpio1_plat_data
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
&
gpio2_plat_data
);
AMBA_DEVICE
(
rtc
,
"dev:e8"
,
PBA8_RTC
,
NULL
);
AMBA_DEVICE
(
sci0
,
"dev:f0"
,
SCI
,
NULL
);
AMBA_DEVICE
(
uart0
,
"dev:f1"
,
PBA8_UART0
,
NULL
);
...
...
arch/arm/mach-realview/realview_pbx.c
浏览文件 @
eb7fffa3
...
...
@@ -22,6 +22,7 @@
#include <linux/platform_device.h>
#include <linux/sysdev.h>
#include <linux/amba/bus.h>
#include <linux/amba/pl061.h>
#include <linux/io.h>
#include <asm/irq.h>
...
...
@@ -118,6 +119,21 @@ static void __init realview_pbx_map_io(void)
iotable_init
(
realview_local_io_desc
,
ARRAY_SIZE
(
realview_local_io_desc
));
}
static
struct
pl061_platform_data
gpio0_plat_data
=
{
.
gpio_base
=
0
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio1_plat_data
=
{
.
gpio_base
=
8
,
.
irq_base
=
-
1
,
};
static
struct
pl061_platform_data
gpio2_plat_data
=
{
.
gpio_base
=
16
,
.
irq_base
=
-
1
,
};
/*
* RealView PBXCore AMBA devices
*/
...
...
@@ -176,9 +192,9 @@ AMBA_DEVICE(uart3, "fpga:09", PBX_UART3, NULL);
AMBA_DEVICE
(
smc
,
"dev:00"
,
PBX_SMC
,
NULL
);
AMBA_DEVICE
(
sctl
,
"dev:e0"
,
SCTL
,
NULL
);
AMBA_DEVICE
(
wdog
,
"dev:e1"
,
PBX_WATCHDOG
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PBX_GPIO0
,
NULL
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
NULL
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
NULL
);
AMBA_DEVICE
(
gpio0
,
"dev:e4"
,
PBX_GPIO0
,
&
gpio0_plat_data
);
AMBA_DEVICE
(
gpio1
,
"dev:e5"
,
GPIO1
,
&
gpio1_plat_data
);
AMBA_DEVICE
(
gpio2
,
"dev:e6"
,
GPIO2
,
&
gpio2_plat_data
);
AMBA_DEVICE
(
rtc
,
"dev:e8"
,
PBX_RTC
,
NULL
);
AMBA_DEVICE
(
sci0
,
"dev:f0"
,
SCI
,
NULL
);
AMBA_DEVICE
(
uart0
,
"dev:f1"
,
PBX_UART0
,
NULL
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录