Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a8ff0456
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a8ff0456
编写于
6月 16, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: imx: dynamically register imx-i2c devices (imx25)
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
2b92084f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
64 deletion
+17
-64
arch/arm/mach-mx25/devices-imx25.h
arch/arm/mach-mx25/devices-imx25.h
+7
-0
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.c
+0
-57
arch/arm/mach-mx25/devices.h
arch/arm/mach-mx25/devices.h
+0
-3
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mx25.h
+10
-4
未找到文件。
arch/arm/mach-mx25/devices-imx25.h
浏览文件 @
a8ff0456
...
...
@@ -9,5 +9,12 @@
#include <mach/mx25.h>
#include <mach/devices-common.h>
#define imx25_add_imx_i2c0(pdata) \
imx_add_imx_i2c(0, MX25_I2C1_BASE_ADDR, SZ_16K, MX25_INT_I2C1, pdata)
#define imx25_add_imx_i2c1(pdata) \
imx_add_imx_i2c(1, MX25_I2C2_BASE_ADDR, SZ_16K, MX25_INT_I2C2, pdata)
#define imx25_add_imx_i2c2(pdata) \
imx_add_imx_i2c(2, MX25_I2C3_BASE_ADDR, SZ_16K, MX25_INT_I2C3, pdata)
#define imx25_add_mxc_nand(pdata) \
imx_add_mxc_nand_v21(MX25_NFC_BASE_ADDR, MX25_INT_NANDFC, pdata)
arch/arm/mach-mx25/devices.c
浏览文件 @
a8ff0456
...
...
@@ -333,63 +333,6 @@ struct platform_device mxc_pwm_device3 = {
.
resource
=
mxc_pwm_resources3
,
};
static
struct
resource
mxc_i2c_1_resources
[]
=
{
{
.
start
=
0x43f80000
,
.
end
=
0x43f83fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
3
,
.
end
=
3
,
.
flags
=
IORESOURCE_IRQ
,
}
};
struct
platform_device
mxc_i2c_device0
=
{
.
name
=
"imx-i2c"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mxc_i2c_1_resources
),
.
resource
=
mxc_i2c_1_resources
,
};
static
struct
resource
mxc_i2c_2_resources
[]
=
{
{
.
start
=
0x43f98000
,
.
end
=
0x43f9bfff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
4
,
.
end
=
4
,
.
flags
=
IORESOURCE_IRQ
,
}
};
struct
platform_device
mxc_i2c_device1
=
{
.
name
=
"imx-i2c"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
mxc_i2c_2_resources
),
.
resource
=
mxc_i2c_2_resources
,
};
static
struct
resource
mxc_i2c_3_resources
[]
=
{
{
.
start
=
0x43f84000
,
.
end
=
0x43f87fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
10
,
.
end
=
10
,
.
flags
=
IORESOURCE_IRQ
,
}
};
struct
platform_device
mxc_i2c_device2
=
{
.
name
=
"imx-i2c"
,
.
id
=
2
,
.
num_resources
=
ARRAY_SIZE
(
mxc_i2c_3_resources
),
.
resource
=
mxc_i2c_3_resources
,
};
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
{
.
chip
.
label
=
"gpio-0"
,
...
...
arch/arm/mach-mx25/devices.h
浏览文件 @
a8ff0456
...
...
@@ -14,9 +14,6 @@ extern struct platform_device mxc_pwm_device1;
extern
struct
platform_device
mxc_pwm_device2
;
extern
struct
platform_device
mxc_pwm_device3
;
extern
struct
platform_device
mxc_keypad_device
;
extern
struct
platform_device
mxc_i2c_device0
;
extern
struct
platform_device
mxc_i2c_device1
;
extern
struct
platform_device
mxc_i2c_device2
;
extern
struct
platform_device
mx25_fec_device
;
extern
struct
platform_device
mx25_rtc_device
;
extern
struct
platform_device
mx25_fb_device
;
...
...
arch/arm/plat-mxc/include/mach/mx25.h
浏览文件 @
a8ff0456
...
...
@@ -11,6 +11,9 @@
#define MX25_AVIC_BASE_ADDR_VIRT 0xfc400000
#define MX25_AVIC_SIZE SZ_1M
#define MX25_I2C1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x80000)
#define MX25_I2C3_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x84000)
#define MX25_I2C2_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0x98000)
#define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000)
#define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000)
...
...
@@ -35,10 +38,13 @@
#define MX25_DRYICE_BASE_ADDR 0x53ffc000
#define MX25_LCDC_BASE_ADDR 0x53fbc000
#define MX25_INT_DRYICE 25
#define MX25_INT_FEC 57
#define MX25_INT_NANDFC 33
#define MX25_INT_LCDC 39
#define MX25_INT_I2C1 3
#define MX25_INT_I2C2 4
#define MX25_INT_I2C3 10
#define MX25_INT_DRYICE 25
#define MX25_INT_FEC 57
#define MX25_INT_NANDFC 33
#define MX25_INT_LCDC 39
#if defined(IMX_NEEDS_DEPRECATED_SYMBOLS)
#define UART1_BASE_ADDR MX25_UART1_BASE_ADDR
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录