Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
63ddc5b0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
提交
63ddc5b0
编写于
6月 21, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: imx: dynamically register spi_imx devices (imx25)
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
642e466b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
61 deletion
+14
-61
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
+7
-1
未找到文件。
arch/arm/mach-mx25/devices-imx25.h
浏览文件 @
63ddc5b0
...
...
@@ -18,3 +18,10 @@
#define imx25_add_mxc_nand(pdata) \
imx_add_mxc_nand_v21(MX25_NFC_BASE_ADDR, MX25_INT_NANDFC, pdata)
#define imx25_add_spi_imx0(pdata) \
imx_add_spi_imx(0, MX25_CSPI1_BASE_ADDR, SZ_16K, MX25_INT_CSPI1, pdata)
#define imx25_add_spi_imx1(pdata) \
imx_add_spi_imx(1, MX25_CSPI2_BASE_ADDR, SZ_16K, MX25_INT_CSPI2, pdata)
#define imx25_add_spi_imx2(pdata) \
imx_add_spi_imx(2, MX25_CSPI3_BASE_ADDR, SZ_16K, MX25_INT_CSPI3, pdata)
arch/arm/mach-mx25/devices.c
浏览文件 @
63ddc5b0
...
...
@@ -181,63 +181,6 @@ struct platform_device mxc_usbh2 = {
.
num_resources
=
ARRAY_SIZE
(
mxc_usbh2_resources
),
};
static
struct
resource
mxc_spi_resources0
[]
=
{
{
.
start
=
0x43fa4000
,
.
end
=
0x43fa7fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
14
,
.
end
=
14
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_spi_device0
=
{
.
name
=
"spi_imx"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mxc_spi_resources0
),
.
resource
=
mxc_spi_resources0
,
};
static
struct
resource
mxc_spi_resources1
[]
=
{
{
.
start
=
0x50010000
,
.
end
=
0x50013fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
13
,
.
end
=
13
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_spi_device1
=
{
.
name
=
"spi_imx"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
mxc_spi_resources1
),
.
resource
=
mxc_spi_resources1
,
};
static
struct
resource
mxc_spi_resources2
[]
=
{
{
.
start
=
0x50004000
,
.
end
=
0x50007fff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
0
,
.
end
=
0
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxc_spi_device2
=
{
.
name
=
"spi_imx"
,
.
id
=
2
,
.
num_resources
=
ARRAY_SIZE
(
mxc_spi_resources2
),
.
resource
=
mxc_spi_resources2
,
};
static
struct
resource
mxc_pwm_resources0
[]
=
{
{
.
start
=
0x53fe0000
,
...
...
arch/arm/mach-mx25/devices.h
浏览文件 @
63ddc5b0
...
...
@@ -6,9 +6,6 @@ extern struct platform_device mxc_uart_device4;
extern
struct
platform_device
mxc_otg
;
extern
struct
platform_device
otg_udc_device
;
extern
struct
platform_device
mxc_usbh2
;
extern
struct
platform_device
mxc_spi_device0
;
extern
struct
platform_device
mxc_spi_device1
;
extern
struct
platform_device
mxc_spi_device2
;
extern
struct
platform_device
mxc_pwm_device0
;
extern
struct
platform_device
mxc_pwm_device1
;
extern
struct
platform_device
mxc_pwm_device2
;
...
...
arch/arm/plat-mxc/include/mach/mx25.h
浏览文件 @
63ddc5b0
...
...
@@ -14,6 +14,7 @@
#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_CSPI1_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xa4000)
#define MX25_IOMUXC_BASE_ADDR (MX25_AIPS1_BASE_ADDR + 0xac000)
#define MX25_CRM_BASE_ADDR (MX25_AIPS2_BASE_ADDR + 0x80000)
...
...
@@ -33,18 +34,23 @@
#define MX25_UART1_BASE_ADDR 0x43f90000
#define MX25_UART2_BASE_ADDR 0x43f94000
#define MX25_CSPI3_BASE_ADDR 0x50004000
#define MX25_CSPI2_BASE_ADDR 0x50010000
#define MX25_FEC_BASE_ADDR 0x50038000
#define MX25_NFC_BASE_ADDR 0xbb000000
#define MX25_DRYICE_BASE_ADDR 0x53ffc000
#define MX25_LCDC_BASE_ADDR 0x53fbc000
#define MX25_INT_CSPI3 0
#define MX25_INT_I2C1 3
#define MX25_INT_I2C2 4
#define MX25_INT_I2C3 10
#define MX25_INT_CSPI2 13
#define MX25_INT_CSPI1 14
#define MX25_INT_DRYICE 25
#define MX25_INT_FEC 57
#define MX25_INT_NANDFC 33
#define MX25_INT_LCDC 39
#define MX25_INT_FEC 57
#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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录